diff options
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c index 215752210d..54f0940250 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -5272,3 +5272,14 @@ _ftol2_sse(double d) return _ftol(d); } #endif + +int +signbit(double x) +{ +#ifdef _M_IX86 + int *ip = (int *)(&x + 1) - 1; + return *ip < 0; +#else +# error not supported +#endif +} |