Changeset 940 for trunk/test/half.cpp
- Timestamp:
- Sep 10, 2011, 4:55:44 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/half.cpp
r937 r940 17 17 #include "core.h" 18 18 #include "lol/unit.h" 19 20 /* Ensure isnan() is present even on systems that don't define it, or21 * when -ffast-math is being used. */22 #if defined __FAST_MATH__23 # undef isnan24 #endif25 #if !defined isnan26 static inline int isnan(float f)27 {28 union { float f; uint32_t x; } u = { f };29 return (u.x << 1) > 0xff000000u;30 }31 #endif32 19 33 20 namespace lol
Note: See TracChangeset
for help on using the changeset viewer.