xref: /third_party/musl/arch/arm/bits/fenv.h (revision 570af302)
1#ifndef __ARM_PCS_VFP
2#define FE_ALL_EXCEPT 0
3#define FE_TONEAREST  0
4#else
5#define FE_INVALID    1
6#define FE_DIVBYZERO  2
7#define FE_OVERFLOW   4
8#define FE_UNDERFLOW  8
9#define FE_INEXACT    16
10#define FE_ALL_EXCEPT 31
11#define FE_TONEAREST  0
12#define FE_TOWARDZERO 0xc00000
13#endif
14#define FE_DOWNWARD   0x800000
15#define FE_UPWARD     0x400000
16
17typedef unsigned long fexcept_t;
18
19typedef struct {
20	unsigned long __cw;
21} fenv_t;
22
23#define FE_DFL_ENV      ((const fenv_t *) -1)
24