Sign in
third-party-mirror
/
mingw-w64
/
518dd33c326f65684e8e938262b2a9ca94804cfb
/
.
/
mingw-w64-crt
/
math
/
fpclassifyf.c
blob: 9403f84e188097c56bd553246616867cdf099e12 [
file
] [
log
] [
blame
]
#include
<math.h>
int
__fpclassifyf
(
float
_x
){
unsigned
short
sw
;
__asm__
(
"fxam; fstsw %%ax;"
:
"=a"
(
sw
)
:
"t"
(
_x
)
);
return
sw
&
(
FP_NAN
|
FP_NORMAL
|
FP_ZERO
);
}