Index: test/cctest/test-diy_fp.cc |
=================================================================== |
--- test/cctest/test-diy_fp.cc (revision 4092) |
+++ test/cctest/test-diy_fp.cc (working copy) |
@@ -8,6 +8,7 @@ |
#include "cctest.h" |
#include "diy_fp.h" |
+ |
using namespace v8::internal; |
@@ -16,10 +17,10 @@ |
DiyFp diy_fp2 = DiyFp(1, 0); |
DiyFp diff = DiyFp::Minus(diy_fp1, diy_fp2); |
- CHECK(2 == diff.f()); |
+ CHECK(2 == diff.f()); // NOLINT |
CHECK_EQ(0, diff.e()); |
diy_fp1.Subtract(diy_fp2); |
- CHECK(2 == diy_fp1.f()); |
+ CHECK(2 == diy_fp1.f()); // NOLINT |
CHECK_EQ(0, diy_fp1.e()); |
} |
@@ -29,29 +30,29 @@ |
DiyFp diy_fp2 = DiyFp(2, 0); |
DiyFp product = DiyFp::Times(diy_fp1, diy_fp2); |
- CHECK(0 == product.f()); |
+ CHECK(0 == product.f()); // NOLINT |
CHECK_EQ(64, product.e()); |
diy_fp1.Multiply(diy_fp2); |
- CHECK(0 == diy_fp1.f()); |
+ CHECK(0 == diy_fp1.f()); // NOLINT |
CHECK_EQ(64, diy_fp1.e()); |
diy_fp1 = DiyFp(V8_2PART_UINT64_C(0x80000000, 00000000), 11); |
diy_fp2 = DiyFp(2, 13); |
product = DiyFp::Times(diy_fp1, diy_fp2); |
- CHECK(1 == product.f()); |
+ CHECK(1 == product.f()); // NOLINT |
CHECK_EQ(11 + 13 + 64, product.e()); |
// Test rounding. |
diy_fp1 = DiyFp(V8_2PART_UINT64_C(0x80000000, 00000001), 11); |
diy_fp2 = DiyFp(1, 13); |
product = DiyFp::Times(diy_fp1, diy_fp2); |
- CHECK(1 == product.f()); |
+ CHECK(1 == product.f()); // NOLINT |
CHECK_EQ(11 + 13 + 64, product.e()); |
diy_fp1 = DiyFp(V8_2PART_UINT64_C(0x7fffffff, ffffffff), 11); |
diy_fp2 = DiyFp(1, 13); |
product = DiyFp::Times(diy_fp1, diy_fp2); |
- CHECK(0 == product.f()); |
+ CHECK(0 == product.f()); // NOLINT |
CHECK_EQ(11 + 13 + 64, product.e()); |
// Halfway cases are allowed to round either way. So don't check for it. |