Add incomplet long double math support to libmingwex.a
This commit is contained in:
10
winsup/mingw/mingwex/math/fpclassifyl.c
Normal file
10
winsup/mingw/mingwex/math/fpclassifyl.c
Normal file
@@ -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 );
|
||||
}
|
Reference in New Issue
Block a user