about summary refs log tree commit diff
path: root/sysdeps/ieee754/flt-32/math_private.h
blob: e33db02b4c58c6de6bf0e01606927d2ae1cc3c3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef _MATH_PRIVATE_H_

#include_next <math_private.h>

#ifndef __isnanf
extern __always_inline int
__isnanf (float d)
{
  u_int32_t di;
  GET_FLOAT_WORD (di, d);
  return (di & 0x7fffffff) > 0x7f800000;
}
#endif

#ifndef __isinf_nsf
extern __always_inline int
__isinf_nsf (float d)
{
  u_int32_t di;
  GET_FLOAT_WORD (di, d);
  return (di & 0x7fffffff) == 0x7f800000;
}
#endif

#ifndef __finitef
extern __always_inline int
__finitef (float d)
{
  u_int32_t di;
  GET_FLOAT_WORD (di, d);
  return (di & 0x7fffffff) < 0x7f800000;
}
#endif

#endif /* _MATH_PRIVATE_H_ */