source: issm/oecreview/Archive/19101-20495/ISSM-20382-20383.diff@ 20498

Last change on this file since 20498 was 20498, checked in by Mathieu Morlighem, 9 years ago

CHG: done with Archive/19101-20495

File size: 981 bytes
  • ../trunk-jpl/src/c/shared/Numerics/constants.h

     
    2222/*Windows specific typefefs: */
    2323#ifdef _INTEL_WIN_
    2424
    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
    3126//For reference, for Intel compile on win64
    3227//#define NAN 0.0/0.0
    33 //#define INFINITY 1.0/0.0
    34 
    35 //Most generic way it would seem:
    36 #define INFINITY (DBL_MAX+DBL_MAX)
    3728#define NAN (INFINITY-INFINITY)
     29#endif
    3830
     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)
    3935#endif
    4036
    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.