libc-top-half/musl/arch/sh/bits/fenv.h
raw| 1 | #ifndef __SH_FPU_ANY__ |
| 2 | |
| 3 | #define FE_ALL_EXCEPT 0 |
| 4 | #define FE_TONEAREST 0 |
| 5 | |
| 6 | #else |
| 7 | |
| 8 | #define FE_TONEAREST 0 |
| 9 | #define FE_TOWARDZERO 1 |
| 10 | |
| 11 | #define FE_INEXACT 0x04 |
| 12 | #define FE_UNDERFLOW 0x08 |
| 13 | #define FE_OVERFLOW 0x10 |
| 14 | #define FE_DIVBYZERO 0x20 |
| 15 | #define FE_INVALID 0x40 |
| 16 | #define FE_ALL_EXCEPT 0x7c |
| 17 | |
| 18 | #endif |
| 19 | |
| 20 | typedef unsigned long fexcept_t; |
| 21 | |
| 22 | typedef struct { |
| 23 | unsigned long __cw; |
| 24 | } fenv_t; |
| 25 | |
| 26 | #define FE_DFL_ENV ((const fenv_t *) -1) |