Add incomplet long double math support to libmingwex.a
This commit is contained in:
11
winsup/mingw/mingwex/math/fucom.c
Normal file
11
winsup/mingw/mingwex/math/fucom.c
Normal file
@@ -0,0 +1,11 @@
|
||||
int
|
||||
__fp_unordered_compare (long double x, long double y){
|
||||
unsigned short retval;
|
||||
__asm__ (
|
||||
"fucom %%st(1);"
|
||||
"fnstsw;"
|
||||
: "=a" (retval)
|
||||
: "t" (x), "u" (y)
|
||||
);
|
||||
return retval;
|
||||
}
|
Reference in New Issue
Block a user