Sign in
third-party-mirror
/
mingw-w64
/
518dd33c326f65684e8e938262b2a9ca94804cfb
/
.
/
mingw-w64-crt
/
math
/
signbit.c
blob: ebf7fc638bdaf1cf37fc089d1ced8c25e7b4cac7 [
file
] [
log
] [
blame
]
#define
__FP_SIGNBIT
0x0200
int
__signbit
(
double
x
)
{
unsigned
short
sw
;
__asm__
(
"fxam; fstsw %%ax;"
:
"=a"
(
sw
)
:
"t"
(
x
)
);
return
(
sw
&
__FP_SIGNBIT
)
!=
0
;
}
#undef
signbit
int
__attribute__
((
alias
(
"__signbit"
)))
signbit
(
double
);