Ignore:
Timestamp:
Sep 20, 2006, 3:45:13 PM (19 years ago)
Author:
andersca
Message:

JavaScriptCore:

2006-09-20 Anders Carlsson <[email protected]>

Reviewed by Dave Hyatt.

  • wtf/MathExtras.h: Get rid of lrint.

WebCore:

2006-09-20 Anders Carlsson <[email protected]>

Reviewed by Dave Hyatt.

  • dom/WheelEvent.cpp: (WebCore::WheelEvent::WheelEvent): Use lroundf instead of lround since deltas are floats.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/MathExtras.h

    r16481 r16487  
    3838inline long lround(double num) { return num > 0 ? num + 0.5 : ceil(num - 0.5); }
    3939inline long lroundf(float num) { return num > 0 ? num + 0.5f : ceilf(num - 0.5f); }
    40 inline int lrint(float num) { return int(lroundf(num)); }
    4140inline double round(double num) { return num > 0 ? floor(num + 0.5) : ceil(num - 0.5); }
    4241inline float roundf(float num) { return num > 0 ? floorf(num + 0.5f) : ceilf(num - 0.5f); }
Note: See TracChangeset for help on using the changeset viewer.