Skip to content

Commit a56287d

Browse files
ljmf00dlang-bot
authored andcommitted
chore(math/exponential): avoid import constants if not InlineAsm_X87
Signed-off-by: Luís Ferreira <[email protected]>
1 parent 19c6e8d commit a56287d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/math/exponential.d

+2-2
Original file line numberDiff line numberDiff line change
@@ -968,10 +968,10 @@ if (isUnsigned!F && isUnsigned!G && isUnsigned!H)
968968
pragma(inline, true)
969969
real exp(real x) @trusted pure nothrow @nogc // TODO: @safe
970970
{
971-
import std.math.constants : LOG2E;
972-
973971
version (InlineAsm_X87)
974972
{
973+
import std.math.constants : LOG2E;
974+
975975
// e^^x = 2^^(LOG2E*x)
976976
// (This is valid because the overflow & underflow limits for exp
977977
// and exp2 are so similar).

0 commit comments

Comments
 (0)