123456789101112131415161718192021222324252627282930313233343536373839 |
- #include <math.h>
- #include "math_private.h"
- int __fpclassifyf (float x)
- {
- u_int32_t wx;
- int retval = FP_NORMAL;
- GET_FLOAT_WORD (wx, x);
- wx &= 0x7fffffff;
- if (wx == 0)
- retval = FP_ZERO;
- else if (wx < 0x800000)
- retval = FP_SUBNORMAL;
- else if (wx >= 0x7f800000)
- retval = wx > 0x7f800000 ? FP_NAN : FP_INFINITE;
- return retval;
- }
- libm_hidden_def(__fpclassifyf)
|