All pastes #761231 Raw Edit

Untitled

public text v1 · immutable
·published 2007-11-04 18:43 UTC
rendered paste body
--- wtf/MathExtras.h    (revision 732419)
+++ wtf/MathExtras.h    (working copy)
@@ -59,7 +59,6 @@

 #if COMPILER(MSVC)

-inline bool isinf(double num) { return !_finite(num) && !_isnan(num); }
 #ifndef BUILDING_KDE__
  inline bool isnan(double num) { return _isnan(num); }
  inline long lround(double num) { return num > 0 ? num + 0.5 : ceil(num - 0.5); }
@@ -67,7 +66,6 @@
  inline double round(double num) { return num > 0 ? floor(num + 0.5) : ceil(num - 0.5); }
  inline float roundf(float num) { return num > 0 ? floorf(num + 0.5f) : ceilf(num - 0.5f); }
 #endif
-inline bool signbit(double num) { return _copysign(1.0, num) < 0; }

 #ifndef BUILDING_KDE__
 // FIXME: where to get std::numeric_limits from?