Blame arch/nt32/bits/fenv.h

20a5ca
#define FE_INVALID    1
20a5ca
#define __FE_DENORM   2
20a5ca
#define FE_DIVBYZERO  4
20a5ca
#define FE_OVERFLOW   8
20a5ca
#define FE_UNDERFLOW  16
20a5ca
#define FE_INEXACT    32
20a5ca
20a5ca
#define FE_ALL_EXCEPT 63
20a5ca
20a5ca
#define FE_TONEAREST  0
20a5ca
#define FE_DOWNWARD   0x400
20a5ca
#define FE_UPWARD     0x800
20a5ca
#define FE_TOWARDZERO 0xc00
20a5ca
20a5ca
typedef unsigned short fexcept_t;
20a5ca
20a5ca
typedef struct {
20a5ca
	unsigned short __control_word;
20a5ca
	unsigned short __unused1;
20a5ca
	unsigned short __status_word;
20a5ca
	unsigned short __unused2;
20a5ca
	unsigned short __tags;
20a5ca
	unsigned short __unused3;
20a5ca
	unsigned int __eip;
20a5ca
	unsigned short __cs_selector;
20a5ca
	unsigned int __opcode:11;
20a5ca
	unsigned int __unused4:5;
20a5ca
	unsigned int __data_offset;
20a5ca
	unsigned short __data_selector;
20a5ca
	unsigned short __unused5;
20a5ca
} fenv_t;
20a5ca
20a5ca
#define FE_DFL_ENV      ((const fenv_t *) -1)