RESOLVED FIXED Bug 96003
Fix WTF.Lrint on 32-bit platforms
https://bugs.webkit.org/show_bug.cgi?id=96003
Summary Fix WTF.Lrint on 32-bit platforms
Fady Samuel
Reported 2012-09-06 11:49:16 PDT
Disable WTF.Lrint as it fails on Chromium Win/Mac
Attachments
Patch (1.39 KB, patch)
2012-09-06 11:52 PDT, Fady Samuel
no flags
Patch (1.97 KB, patch)
2012-09-06 12:43 PDT, Fady Samuel
benjamin: review+
benjamin: commit-queue-
Fady Samuel
Comment 1 2012-09-06 11:52:04 PDT
Fady Samuel
Comment 2 2012-09-06 12:43:48 PDT
Benjamin Poulain
Comment 3 2012-09-06 12:45:22 PDT
Comment on attachment 162559 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=162559&action=review > Tools/TestWebKitAPI/Tests/WTF/MathExtras.cpp:49 > + // Largest double number with 0.5 precision and one halfway rounding case below. > + EXPECT_EQ(lrint(pow(2.0, 52) - 0.5), pow(2.0, 52)); > + EXPECT_EQ(lrint(pow(2.0, 52) - 1.5), pow(2.0, 52) - 2); > + // Smallest double number with 0.5 precision and one halfway rounding case above. > + EXPECT_EQ(lrint(-pow(2.0, 52) + 0.5), -pow(2.0, 52)); > + EXPECT_EQ(lrint(-pow(2.0, 52) + 1.5), -pow(2.0, 52) + 2); Wrong indent.
Benjamin Poulain
Comment 4 2012-09-06 12:50:13 PDT
Note You need to log in before you can comment on or make changes to this bug.