]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ALIROOT/fpu.c
Dummy trapfpe() for non-Linux platforms
[u/mrichter/AliRoot.git] / ALIROOT / fpu.c
CommitLineData
d94e688b 1#ifdef __linux
2#include <fpu_control.h>
3void __attribute__ ((constructor))
4 trapfpe () {
5 fpu_control_t cw = _FPU_DEFAULT & ~(_FPU_MASK_IM | _FPU_MASK_ZM |
6 _FPU_MASK_OM);
7 _FPU_SETCW(cw);
8}
7f1cd484 9#else
10void trapfpe () {}
d94e688b 11#endif