diff options
Diffstat (limited to 'winsup/mingw/include/math.h')
-rw-r--r-- | winsup/mingw/include/math.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/mingw/include/math.h b/winsup/mingw/include/math.h index 29bf27ce0..585723b22 100644 --- a/winsup/mingw/include/math.h +++ b/winsup/mingw/include/math.h @@ -373,19 +373,19 @@ __CRT_INLINE int __cdecl __isnanl (long double _x) __CRT_INLINE int __cdecl __signbit (double x) { unsigned short stw; __asm__ ( "fxam; fstsw %%ax;": "=a" (stw) : "t" (x)); - return stw & 0x0200; + return (stw & 0x0200) != 0; } __CRT_INLINE int __cdecl __signbitf (float x) { unsigned short stw; __asm__ ("fxam; fstsw %%ax;": "=a" (stw) : "t" (x)); - return stw & 0x0200; + return (stw & 0x0200) != 0; } __CRT_INLINE int __cdecl __signbitl (long double x) { unsigned short stw; __asm__ ("fxam; fstsw %%ax;": "=a" (stw) : "t" (x)); - return stw & 0x0200; + return (stw & 0x0200) != 0; } #define signbit(x) (sizeof (x) == sizeof (float) ? __signbitf (x) \ |