Changeset 96780 in webkit for trunk/Source/JavaScriptCore/wtf
- Timestamp:
- Oct 5, 2011, 7:04:19 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/wtf/MathExtras.h
r95555 r96780 150 150 inline int isfinite(double x) { return _finite(x); } 151 151 152 // MSVC's math.h does not currently supply log2 .152 // MSVC's math.h does not currently supply log2 or log2f. 153 153 inline double log2(double num) 154 154 { 155 155 // This constant is roughly M_LN2, which is not provided by default on Windows. 156 156 return log(num) / 0.693147180559945309417232121458176568; 157 } 158 159 inline float log2f(float num) 160 { 161 // This constant is roughly M_LN2, which is not provided by default on Windows. 162 return logf(num) / 0.693147180559945309417232121458176568f; 157 163 } 158 164
Note:
See TracChangeset
for help on using the changeset viewer.