Skip to content

Commit ab09084

Browse files
authored
Merge pull request #8705 from ibuclaw/debug/darwin22
std.math.exponential: Disable use of fyl2x and fyl2xp1 intrinsics on dmd/macOS port
2 parents 454dff1 + f2ac205 commit ab09084

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

std/math/exponential.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ static import core.stdc.math;
3939

4040
version (DigitalMars)
4141
{
42-
version = INLINE_YL2X; // x87 has opcodes for these
42+
version (OSX) { } // macOS 13 (M1) has issues emulating instruction
43+
else version = INLINE_YL2X; // x87 has opcodes for these
4344
}
4445

4546
version (D_InlineAsm_X86) version = InlineAsm_X86_Any;

0 commit comments

Comments
 (0)