IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27484 for trunk


Ignore:
Timestamp:
Mar 26, 2010, 2:40:25 PM (16 years ago)
Author:
eugene
Message:

move definition of NAN from dvo.h to ohana.h (non-C99 only)

Location:
trunk/Ohana/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/include/dvo.h

    r27435 r27484  
    6464    NAN_U_INT   = 0xffffffff,
    6565} DVO_INT_NAN;
    66 
    67 # ifndef NAN
    68 # ifndef BYTE_SWAP
    69 #  define __nan_bytes           { 0x7f, 0xc0, 0, 0 }
    70 # else
    71 #  define __nan_bytes           { 0, 0, 0xc0, 0x7f }
    72 # endif
    73 static union { unsigned char __c[4]; float __d; } __nan_union
    74     __attribute_used__ = { __nan_bytes };
    75 # define NAN    (__nan_union.__d)
    76 # endif
    7766
    7867/* RegImage.flag values */
  • trunk/Ohana/src/libfits/matrix/F_get_M_value.c

    r27451 r27484  
    1111    return (0.0);
    1212  pixel = matrix[0].Naxis[0]*y + x;
    13   // value = NAN;
    14   value = HUGE_VAL;
     13  value = NAN;
    1514
    1615  if (matrix[0].unsign) {
  • trunk/Ohana/src/libohana/include/ohana.h

    r27479 r27484  
    9494};
    9595
     96# ifndef NAN
     97# ifndef BYTE_SWAP
     98#  define __nan_bytes           { 0x7f, 0xc0, 0, 0 }
     99# else
     100#  define __nan_bytes           { 0, 0, 0xc0, 0x7f }
     101# endif
     102static union { unsigned char __c[4]; float __d; } __nan_union
     103    __attribute_used__ = { __nan_bytes };
     104# define NAN    (__nan_union.__d)
     105# endif
     106
    96107# ifndef M_PI
    97108# define M_PI 3.14159265358979323846264
Note: See TracChangeset for help on using the changeset viewer.