]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ALIROOT/fpu.c
Changes needed on Opteron (x86_64)
[u/mrichter/AliRoot.git] / ALIROOT / fpu.c
CommitLineData
d94e688b 1#ifdef __linux
a978596b 2#if defined (__ia64) || defined (__x86_64)
d9f43611 3#else
d94e688b 4#include <fpu_control.h>
5void __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}
d9f43611 11#endif
7f1cd484 12#else
13void trapfpe () {}
d94e688b 14#endif