Changeset 20383
- Timestamp:
- 03/30/16 14:01:50 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/shared/Numerics/constants.h
r14916 r20383 23 23 #ifdef _INTEL_WIN_ 24 24 25 /*Complicated way, which does not handle INFINITY though: */ 26 /*#ifndef NAN 27 static const unsigned long __nan[2] = {0xffffffff, 0x7fffffff}; 28 #define NAN (*(const float *) __nan) 29 #endif*/ 30 25 #ifndef NAN 31 26 //For reference, for Intel compile on win64 32 27 //#define NAN 0.0/0.0 33 //#define INFINITY 1.0/0.034 35 //Most generic way it would seem:36 #define INFINITY (DBL_MAX+DBL_MAX)37 28 #define NAN (INFINITY-INFINITY) 38 39 29 #endif 40 30 41 #endif //ifndef _ISSMTYPEDEFS_H_ 31 #ifndef INFINITY 32 //For reference, for Intel compile on win64 33 //#define INFINITY 1.0/0.0 34 #define INFINITY (DBL_MAX+DBL_MAX) 35 #endif 36 37 #endif /*_INTEL_WIN_*/ 38 39 #endif /*_ISSM_CONSTANTS_H_*/
Note:
See TracChangeset
for help on using the changeset viewer.