diff options
Diffstat (limited to 'winsup/mingw/mingwex/fpclassifyl.c')
-rw-r--r-- | winsup/mingw/mingwex/fpclassifyl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/winsup/mingw/mingwex/fpclassifyl.c b/winsup/mingw/mingwex/fpclassifyl.c new file mode 100644 index 000000000..9979d6278 --- /dev/null +++ b/winsup/mingw/mingwex/fpclassifyl.c @@ -0,0 +1,10 @@ +#include <math.h> +int __fpclassifyl (long double _x){ + unsigned short sw; + __asm__ ( + "fxam; fstsw %%ax;" + : "=a" (sw) + : "t" (_x) + ); + return sw & (FP_NAN | FP_NORMAL | FP_ZERO ); +} |