- Timestamp:
- Mar 26, 2010, 2:40:25 PM (16 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 3 edited
-
libdvo/include/dvo.h (modified) (1 diff)
-
libfits/matrix/F_get_M_value.c (modified) (1 diff)
-
libohana/include/ohana.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libdvo/include/dvo.h
r27435 r27484 64 64 NAN_U_INT = 0xffffffff, 65 65 } DVO_INT_NAN; 66 67 # ifndef NAN68 # ifndef BYTE_SWAP69 # define __nan_bytes { 0x7f, 0xc0, 0, 0 }70 # else71 # define __nan_bytes { 0, 0, 0xc0, 0x7f }72 # endif73 static union { unsigned char __c[4]; float __d; } __nan_union74 __attribute_used__ = { __nan_bytes };75 # define NAN (__nan_union.__d)76 # endif77 66 78 67 /* RegImage.flag values */ -
trunk/Ohana/src/libfits/matrix/F_get_M_value.c
r27451 r27484 11 11 return (0.0); 12 12 pixel = matrix[0].Naxis[0]*y + x; 13 // value = NAN; 14 value = HUGE_VAL; 13 value = NAN; 15 14 16 15 if (matrix[0].unsign) { -
trunk/Ohana/src/libohana/include/ohana.h
r27479 r27484 94 94 }; 95 95 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 102 static union { unsigned char __c[4]; float __d; } __nan_union 103 __attribute_used__ = { __nan_bytes }; 104 # define NAN (__nan_union.__d) 105 # endif 106 96 107 # ifndef M_PI 97 108 # define M_PI 3.14159265358979323846264
Note:
See TracChangeset
for help on using the changeset viewer.
