Changeset 49585 in webkit for trunk/JavaScriptCore/wtf/MathExtras.h
- Timestamp:
- Oct 14, 2009, 2:45:27 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/MathExtras.h
r44765 r49585 103 103 #if COMPILER(MSVC) || COMPILER(RVCT) 104 104 105 inline long long llround(double num) { return static_cast<long long>(num > 0 ? num + 0.5 : ceil(num - 0.5)); } 106 inline long long llroundf(float num) { return static_cast<long long>(num > 0 ? num + 0.5f : ceil(num - 0.5f)); } 105 107 inline long lround(double num) { return static_cast<long>(num > 0 ? num + 0.5 : ceil(num - 0.5)); } 106 108 inline long lroundf(float num) { return static_cast<long>(num > 0 ? num + 0.5f : ceilf(num - 0.5f)); }
Note:
See TracChangeset
for help on using the changeset viewer.