]>
Commit | Line | Data |
---|---|---|
1 | #ifdef __linux | |
2 | #if defined (__ia64) || defined (__x86_64) | |
3 | #else | |
4 | #include <fpu_control.h> | |
5 | void __attribute__ ((constructor)) | |
6 | trapfpe () { | |
7 | fpu_control_t cw = _FPU_DEFAULT & ~(_FPU_MASK_IM | _FPU_MASK_ZM | | |
8 | _FPU_MASK_OM); | |
9 | _FPU_SETCW(cw); | |
10 | } | |
11 | #endif | |
12 | #else | |
13 | void trapfpe () {} | |
14 | #endif |