| 1 |
/** |
| 2 |
* This file has no copyright assigned and is placed in the Public Domain. |
| 3 |
* This file is part of the mingw-w64 runtime package. |
| 4 |
* No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| 5 |
*/ |
| 6 |
int __fp_unordered_compare (long double x, long double y); |
| 7 |
|
| 8 |
int |
| 9 |
__fp_unordered_compare (long double x, long double y){ |
| 10 |
unsigned short retval; |
| 11 |
__asm__ __volatile__ ( |
| 12 |
"fucom %%st(1);" |
| 13 |
"fnstsw;" |
| 14 |
: "=a" (retval) |
| 15 |
: "t" (x), "u" (y) |
| 16 |
); |
| 17 |
return retval; |
| 18 |
} |