mirror of
https://github.com/dlang/phobos.git
synced 2025-05-01 07:30:33 +03:00
Merge pull request #6981 from jpf91/mingw_minimal
[dmd-cxx] GCC9 last-minute fix: MinGW changes to get phobos to build (backport #6980)
This commit is contained in:
commit
b5e9661a08
1 changed files with 10 additions and 4 deletions
14
std/math.d
14
std/math.d
|
@ -170,6 +170,12 @@ else version (D_InlineAsm_X86_64)
|
||||||
version = InlineAsm_X86_Any;
|
version = InlineAsm_X86_Any;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
version (CRuntime_Microsoft)
|
||||||
|
{
|
||||||
|
version (InlineAsm_X86_Any)
|
||||||
|
version = MSVC_InlineAsm;
|
||||||
|
}
|
||||||
|
|
||||||
version (X86_64) version = StaticallyHaveSSE;
|
version (X86_64) version = StaticallyHaveSSE;
|
||||||
version (X86) version (OSX) version = StaticallyHaveSSE;
|
version (X86) version (OSX) version = StaticallyHaveSSE;
|
||||||
|
|
||||||
|
@ -3688,7 +3694,7 @@ real logb(real x) @trusted nothrow @nogc
|
||||||
ret ;
|
ret ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else version (CRuntime_Microsoft)
|
else version (MSVC_InlineAsm)
|
||||||
{
|
{
|
||||||
asm pure nothrow @nogc
|
asm pure nothrow @nogc
|
||||||
{
|
{
|
||||||
|
@ -3975,7 +3981,7 @@ real ceil(real x) @trusted pure nothrow @nogc
|
||||||
ret ;
|
ret ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else version (CRuntime_Microsoft)
|
else version (MSVC_InlineAsm)
|
||||||
{
|
{
|
||||||
short cw;
|
short cw;
|
||||||
asm pure nothrow @nogc
|
asm pure nothrow @nogc
|
||||||
|
@ -4103,7 +4109,7 @@ real floor(real x) @trusted pure nothrow @nogc
|
||||||
ret ;
|
ret ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else version (CRuntime_Microsoft)
|
else version (MSVC_InlineAsm)
|
||||||
{
|
{
|
||||||
short cw;
|
short cw;
|
||||||
asm pure nothrow @nogc
|
asm pure nothrow @nogc
|
||||||
|
@ -4603,7 +4609,7 @@ real trunc(real x) @trusted nothrow @nogc
|
||||||
ret ;
|
ret ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else version (CRuntime_Microsoft)
|
else version (MSVC_InlineAsm)
|
||||||
{
|
{
|
||||||
short cw;
|
short cw;
|
||||||
asm pure nothrow @nogc
|
asm pure nothrow @nogc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue