diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2005-09-24 01:26:24 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2005-09-24 01:26:24 +0000 |
commit | e6e55ca6a20efa91a1ad8cd127edcdf0b78d9202 (patch) | |
tree | 39a8f3e9739d102ed3e574186783c5f8e85b2ef9 /winsup/mingw/include/math.h | |
parent | 5cbcdfa9dddb6c96777d0319d82187054bfcfc69 (diff) | |
download | cygnal-e6e55ca6a20efa91a1ad8cd127edcdf0b78d9202.tar.gz cygnal-e6e55ca6a20efa91a1ad8cd127edcdf0b78d9202.tar.bz2 cygnal-e6e55ca6a20efa91a1ad8cd127edcdf0b78d9202.zip |
* include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
Avoid raising FP exceptions.
Diffstat (limited to 'winsup/mingw/include/math.h')
-rw-r--r-- | winsup/mingw/include/math.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/winsup/mingw/include/math.h b/winsup/mingw/include/math.h index c7800623f..1bd9b16c3 100644 --- a/winsup/mingw/include/math.h +++ b/winsup/mingw/include/math.h @@ -283,11 +283,10 @@ _CRTIMP int __cdecl _set_SSE2_enable (int); #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \ || !defined __STRICT_ANSI__ || defined __cplusplus -#define NAN (0.0F/0.0F) -#define HUGE_VALF (1.0F/0.0F) -#define HUGE_VALL (1.0L/0.0L) -#define INFINITY (1.0F/0.0F) - +#define HUGE_VALF 0x1.0p255f +#define HUGE_VALL 0x1.0p32767L +#define INFINITY HUGE_VALF +#define NAN (HUGE_VALF - HUGE_VALF) /* 7.12.3.1 */ /* |