123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- #ifndef _FPU_CONTROL_H
- #define _FPU_CONTROL_H
- #include <features.h>
- #define _FPU_MASK_BSUN 0x8000
- #define _FPU_MASK_SNAN 0x4000
- #define _FPU_MASK_OPERR 0x2000
- #define _FPU_MASK_OVFL 0x1000
- #define _FPU_MASK_UNFL 0x0800
- #define _FPU_MASK_DZ 0x0400
- #define _FPU_MASK_INEX1 0x0200
- #define _FPU_MASK_INEX2 0x0100
- #define _FPU_EXTENDED 0x00
- #define _FPU_DOUBLE 0x80
- #define _FPU_SINGLE 0x40
- #define _FPU_RC_NEAREST 0x00
- #define _FPU_RC_ZERO 0x10
- #define _FPU_RC_DOWN 0x20
- #define _FPU_RC_UP 0x30
- #define _FPU_RESERVED 0xFFFF000F
- #define _FPU_DEFAULT 0x00000000
- #define _FPU_IEEE 0x00000001
- typedef unsigned int fpu_control_t __attribute__ ((__mode__ (__SI__)));
- #define _FPU_GETCW(cw) __asm__ ("fmove%.l %!, %0" : "=dm" (cw))
- #define _FPU_SETCW(cw) __asm__ __volatile__ ("fmove%.l %0, %!" : : "dm" (cw))
- #if 0
- extern fpu_control_t __fpu_control;
- #endif
- #endif
|