2002-06-13 12:20:48 +02:00
|
|
|
#define __FP_SIGNBIT 0x0200
|
|
|
|
|
|
|
|
int __signbitl (long double x) {
|
|
|
|
unsigned short sw;
|
|
|
|
__asm__ ("fxam; fstsw %%ax;"
|
|
|
|
: "=a" (sw)
|
|
|
|
: "t" (x) );
|
2005-05-03 10:39:19 +02:00
|
|
|
return (sw & __FP_SIGNBIT) != 0;
|
2002-06-13 12:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
int __attribute__ ((alias ("__signbitl"))) signbitl (long double);
|