git://git.uio.no
/
u
/
mrichter
/
AliRoot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
4fda4d6fec87b64b91a4819a2f3db1a08d356f8c
[u/mrichter/AliRoot.git]
/
ALIROOT
/
fpu.c
1
#ifdef __linux
2
#define _GNU_SOURCE 1
3
#include <fenv.h>
4
static void __attribute__ ((constructor)) trapfpe(void)
5
{
6
/* Enable some exceptions. At startup all exceptions are masked. */
7
feenableexcept(FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW);
8
}
9
#else
10
void trapfpe () {}
11
#endif