diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2005-05-03 08:39:19 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2005-05-03 08:39:19 +0000 |
commit | 8559dd92d0e27f4ad4dbf21f1032889c6a813fef (patch) | |
tree | 0c9cf798c4baafb7364ba28b9629d4c137b9cbd8 /winsup/mingw/include/math.h | |
parent | 38efa5f12862993a697398f41cfad4312f77e81f (diff) | |
download | cygnal-8559dd92d0e27f4ad4dbf21f1032889c6a813fef.tar.gz cygnal-8559dd92d0e27f4ad4dbf21f1032889c6a813fef.tar.bz2 cygnal-8559dd92d0e27f4ad4dbf21f1032889c6a813fef.zip |
* mingwex/math/signbit.c (__signbit): Make return value
consistent with GCC's __builtin_signbit.
* mingwex/math/signbitf.c (__signbitf): Likewise.
* mingwex/math/signbitf.c (__signbitl): Likewise.
* include/math.h (__signbit, __signbitf, __signbitl): Likewise
for inlines.
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) \ |