File indexing completed on 2025-01-18 09:16:06
0001 #define _GNU_SOURCE
0002 #include <stdio.h>
0003 #include <stdlib.h>
0004 #include <fenv.h>
0005
0006 void enable_exceptions_()
0007 {
0008 int retval;
0009
0010
0011
0012 retval=feenableexcept( FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW | FE_UNDERFLOW );
0013 if ( retval == -1 )
0014 {
0015 fprintf(stderr, "Warning: call to feenableexcept() failed \n");
0016 }
0017 }
0018
0019
0020
0021
0022 void enable_exceptions__()
0023 {
0024 enable_exceptions_();
0025 }