source:
issm/oecreview/Archive/19101-20495/ISSM-20382-20383.diff@
20498
Last change on this file since 20498 was 20498, checked in by , 9 years ago | |
---|---|
File size: 981 bytes |
-
../trunk-jpl/src/c/shared/Numerics/constants.h
22 22 /*Windows specific typefefs: */ 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) 29 #endif 38 30 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) 39 35 #endif 40 36 41 #endif //ifndef _ISSMTYPEDEFS_H_ 37 #endif /*_INTEL_WIN_*/ 38 39 #endif /*_ISSM_CONSTANTS_H_*/
Note:
See TracBrowser
for help on using the repository browser.