Lines Matching refs:diy_fp
30 DiyFp diy_fp = Double(ordered).AsDiyFp();
31 CHECK_EQ(0x12 - 0x3FF - 52, diy_fp.e());
33 CHECK(V8_2PART_UINT64_C(0x00134567, 89ABCDEF) == diy_fp.f()); // NOLINT
36 diy_fp = Double(min_double64).AsDiyFp();
37 CHECK_EQ(-0x3FF - 52 + 1, diy_fp.e());
39 CHECK(1 == diy_fp.f()); // NOLINT
42 diy_fp = Double(max_double64).AsDiyFp();
43 CHECK_EQ(0x7FE - 0x3FF - 52, diy_fp.e());
44 CHECK(V8_2PART_UINT64_C(0x001fffff, ffffffff) == diy_fp.f()); // NOLINT
50 DiyFp diy_fp = Double(ordered).AsNormalizedDiyFp();
51 CHECK_EQ(0x12 - 0x3FF - 52 - 11, diy_fp.e());
53 diy_fp.f()); // NOLINT
56 diy_fp = Double(min_double64).AsNormalizedDiyFp();
57 CHECK_EQ(-0x3FF - 52 + 1 - 63, diy_fp.e());
59 CHECK(V8_2PART_UINT64_C(0x80000000, 00000000) == diy_fp.f()); // NOLINT
62 diy_fp = Double(max_double64).AsNormalizedDiyFp();
63 CHECK_EQ(0x7FE - 0x3FF - 52 - 11, diy_fp.e());
65 diy_fp.f()); // NOLINT
144 DiyFp diy_fp = Double(1.5).AsNormalizedDiyFp();
146 CHECK_EQ(diy_fp.e(), boundary_minus.e());
147 CHECK_EQ(diy_fp.e(), boundary_plus.e());
150 CHECK(diy_fp.f() - boundary_minus.f() == boundary_plus.f() - diy_fp.f());
151 CHECK((1 << 10) == diy_fp.f() - boundary_minus.f()); // NOLINT
153 diy_fp = Double(1.0).AsNormalizedDiyFp();
155 CHECK_EQ(diy_fp.e(), boundary_minus.e());
156 CHECK_EQ(diy_fp.e(), boundary_plus.e());
159 CHECK_GT(boundary_plus.f() - diy_fp.f(), diy_fp.f() - boundary_minus.f());
160 CHECK((1 << 9) == diy_fp.f() - boundary_minus.f()); // NOLINT
161 CHECK((1 << 10) == boundary_plus.f() - diy_fp.f()); // NOLINT
164 diy_fp = Double(min_double64).AsNormalizedDiyFp();
166 CHECK_EQ(diy_fp.e(), boundary_minus.e());
167 CHECK_EQ(diy_fp.e(), boundary_plus.e());
170 CHECK(diy_fp.f() - boundary_minus.f() == boundary_plus.f() - diy_fp.f());
173 diy_fp.f() - boundary_minus.f()); // NOLINT
176 diy_fp = Double(smallest_normal64).AsNormalizedDiyFp();
179 CHECK_EQ(diy_fp.e(), boundary_minus.e());
180 CHECK_EQ(diy_fp.e(), boundary_plus.e());
183 CHECK(diy_fp.f() - boundary_minus.f() == boundary_plus.f() - diy_fp.f());
184 CHECK((1 << 10) == diy_fp.f() - boundary_minus.f()); // NOLINT
187 diy_fp = Double(largest_denormal64).AsNormalizedDiyFp();
190 CHECK_EQ(diy_fp.e(), boundary_minus.e());
191 CHECK_EQ(diy_fp.e(), boundary_plus.e());
192 CHECK(diy_fp.f() - boundary_minus.f() == boundary_plus.f() - diy_fp.f());
193 CHECK((1 << 11) == diy_fp.f() - boundary_minus.f()); // NOLINT
196 diy_fp = Double(max_double64).AsNormalizedDiyFp();
198 CHECK_EQ(diy_fp.e(), boundary_minus.e());
199 CHECK_EQ(diy_fp.e(), boundary_plus.e());
202 CHECK(diy_fp.f() - boundary_minus.f() == boundary_plus.f() - diy_fp.f());
203 CHECK((1 << 10) == diy_fp.f() - boundary_minus.f()); // NOLINT