]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ALIROOT/fpu.c
added the fragmentation function task to the train
[u/mrichter/AliRoot.git] / ALIROOT / fpu.c
CommitLineData
d94e688b 1#ifdef __linux
4ea4036d 2#define _GNU_SOURCE 1
3#include <fenv.h>
4static void __attribute__ ((constructor)) trapfpe(void)
5{
6 /* Enable some exceptions. At startup all exceptions are masked. */
7 feenableexcept(FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW);
d94e688b 8}
7f1cd484 9#else
10void trapfpe () {}
d94e688b 11#endif