Changeset 35234 in webkit for trunk/JavaScriptCore/wtf/MathExtras.h
- Timestamp:
- Jul 18, 2008, 8:31:37 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/MathExtras.h
r34198 r35234 33 33 #if PLATFORM(SOLARIS) 34 34 #include <ieeefp.h> 35 #endif 36 37 #if PLATFORM(OPENBSD) 38 #include <sys/types.h> 39 #include <machine/ieee.h> 35 40 #endif 36 41 … … 72 77 #ifndef signbit 73 78 inline bool signbit(double x) { return x < 0.0; } // FIXME: Wrong for negative 0. 79 #endif 80 81 #endif 82 83 #if PLATFORM(OPENBSD) 84 85 #ifndef isfinite 86 inline bool isfinite(double x) { return finite(x); } 87 #endif 88 #ifndef signbit 89 inline bool signbit(double x) { struct ieee_double *p = (struct ieee_double *)&x; return p->dbl_sign; } 74 90 #endif 75 91
Note:
See TracChangeset
for help on using the changeset viewer.