- signal(SIGFPE, SIG_IGN);
-#endif
-#if !defined( _MSC_VER ) && !defined( __MINGW32__ )
- signal(SIGPIPE, SIG_IGN);
-#endif
-
-#if defined(sgi)
- flush_fpe();
-
- // Bind all non-rendering threads to CPU1
- // This will reduce the jitter caused by them to an absolute minimum,
- // but it will only work with superuser authority.
- if ( geteuid() == 0 )
- {
- sysmp(MP_CLOCK, 0); // bind the timer only to CPU0
- sysmp(MP_ISOLATE, 1 ); // Isolate CPU1
- sysmp(MP_NONPREEMPTIVE, 1 ); // disable process time slicing on CPU1
+ signal(SIGFPE, SIG_IGN);
+#else
+ // Maybe Enable floating-point exceptions on Linux
+ for (int i = 0; i < argc; ++i) {
+ if (!strcmp("--enable-fpe", argv[i])) {
+ fpeAbort = true;
+ break;
+ }