Changeset 27095 in webkit for trunk/JavaScriptCore/wtf/MathExtras.h
- Timestamp:
- Oct 26, 2007, 12:51:25 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/MathExtras.h
r26542 r27095 68 68 inline float roundf(float num) { return num > 0 ? floorf(num + 0.5f) : ceilf(num - 0.5f); } 69 69 inline bool signbit(double num) { return _copysign(1.0, num) < 0; } 70 inline double trunc(double num) { return num > 0 ? floor(num) : ceil(num); } 70 71 71 72 inline double nextafter(double x, double y) { return _nextafter(x, y); }
Note:
See TracChangeset
for help on using the changeset viewer.