|
From: <ho...@us...> - 2004-02-27 03:13:15
|
Update of /cvsroot/ganc/ganc/src/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7355/src/include Modified Files: defines.h Log Message: Check for ISNAN and ISINF to improve portability So far if they're not available no alternative is used Index: defines.h =================================================================== RCS file: /cvsroot/ganc/ganc/src/include/defines.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** defines.h 27 Feb 2004 02:44:28 -0000 1.3 --- defines.h 27 Feb 2004 03:04:52 -0000 1.4 *************** *** 9,13 **** // format string for output ! #define FORMAT_STRING "%-15.10Lg\n" #define FUN_ABS fabsl --- 9,13 ---- // format string for output ! #define FORMAT_STRING "%15.10Lg\n" #define FUN_ABS fabsl *************** *** 40,44 **** // format string for output ! #define FORMAT_STRING "%-15.10g\n" #define FUN_ABS fabs --- 40,44 ---- // format string for output ! #define FORMAT_STRING "%15.10g\n" #define FUN_ABS fabs *************** *** 73,76 **** --- 73,82 ---- #endif /* not HAVE_ISINF */ + #ifdef HAVE_ISNAN + #define ISNAN(x) isnan ((x)) + #else /* not HAVE_ISNAN */ + #define ISNAN(x) 0 + #endif /* not HAVE_ISNAN */ + // definition of infinity, it depens on what VALUE_TYPE is |