Changeset 27152 in webkit for trunk/JavaScriptCore/wtf/MathExtras.h
- Timestamp:
- Oct 27, 2007, 12:10:40 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/MathExtras.h
r27095 r27152 101 101 inline double wtf_fmod(double x, double y) { return (!isinf(x) && isinf(y)) ? x : fmod(x, y); } 102 102 103 #define fmod(x, y) wtf_fmod(x, y) 103 // Work around a bug in the Microsoft CRT, where pow(NaN, 0) yields NaN instead of 1. 104 inline double wtf_pow(double x, double y) { return y == 0 ? 1 : pow(x, y); } 104 105 105 106 #define atan2(x, y) wtf_atan2(x, y) 107 #define fmod(x, y) wtf_fmod(x, y) 108 #define pow(x, y) wtf_pow(x, y) 106 109 107 110 #if defined(_CRT_RAND_S)
Note:
See TracChangeset
for help on using the changeset viewer.