Changeset 37d58372 in sasview
- Timestamp:
- Nov 30, 2011 1:45:30 PM (13 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- c38ea65
- Parents:
- 59ec324
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/libigor/libCylinder.h
r59ec324 r37d58372 6 6 #include <windows.h> 7 7 #define fmax max 8 9 typedef union { unsigned char __c[4]; float __f; } INFINITY; 10 11 # if __BYTE_ORDER == __BIG_ENDIAN 12 # define __HUGE_VALF_bytes { 0x7f, 0x80, 0, 0 } 13 # endif 14 # if __BYTE_ORDER == __LITTLE_ENDIAN 15 # define __HUGE_VALF_bytes { 0, 0, 0x80, 0x7f } 16 # endif 17 18 static __huge_valf_t __huge_valf = { __HUGE_VALF_bytes }; 19 # define INFINITY (__huge_valf.__f) 20 21 22 # if __BYTE_ORDER == __BIG_ENDIAN 23 # define __nan_bytes { 0x7f, 0xc0, 0, 0 } 24 # endif 25 # if __BYTE_ORDER == __LITTLE_ENDIAN 26 # define __nan_bytes { 0, 0, 0xc0, 0x7f } 27 # endif 28 29 static union { unsigned char __c[4]; float __d; } __nan_union 30 __attribute_used__ = { __nan_bytes }; 31 # define NAN (__nan_union.__d) 32 33 8 34 #endif 9 35
Note: See TracChangeset
for help on using the changeset viewer.