Lines Matching refs:bigint

27 using fmt::detail::bigint;
31 static_assert(!std::is_copy_constructible<bigint>::value, "");
32 static_assert(!std::is_copy_assignable<bigint>::value, "");
35 EXPECT_EQ("", fmt::format("{}", bigint())); in TEST()
36 EXPECT_EQ("42", fmt::format("{}", bigint(0x42))); in TEST()
37 EXPECT_EQ("123456789abcedf0", fmt::format("{}", bigint(0x123456789abcedf0))); in TEST()
41 bigint n1(42); in TEST()
42 bigint n2(42); in TEST()
46 bigint n3(43); in TEST()
49 bigint n4(42 * 0x100000001); in TEST()
56 add_compare(bigint(0xffffffff), bigint(0xffffffff), bigint(1) <<= 64), 0); in TEST()
57 EXPECT_LT(add_compare(bigint(1) <<= 32, bigint(1), bigint(1) <<= 96), 0); in TEST()
58 EXPECT_GT(add_compare(bigint(1) <<= 32, bigint(0), bigint(0xffffffff)), 0); in TEST()
59 EXPECT_GT(add_compare(bigint(0), bigint(1) <<= 32, bigint(0xffffffff)), 0); in TEST()
60 EXPECT_GT(add_compare(bigint(42), bigint(1), bigint(42)), 0); in TEST()
61 EXPECT_GT(add_compare(bigint(0xffffffff), bigint(1), bigint(0xffffffff)), 0); in TEST()
62 EXPECT_LT(add_compare(bigint(10), bigint(10), bigint(22)), 0); in TEST()
63 EXPECT_LT(add_compare(bigint(0x100000010), bigint(0x100000010), in TEST()
64 bigint(0x300000010)), in TEST()
66 EXPECT_GT(add_compare(bigint(0x1ffffffff), bigint(0x100000002), in TEST()
67 bigint(0x300000000)), in TEST()
69 EXPECT_EQ(add_compare(bigint(0x1ffffffff), bigint(0x100000002), in TEST()
70 bigint(0x300000001)), in TEST()
72 EXPECT_LT(add_compare(bigint(0x1ffffffff), bigint(0x100000002), in TEST()
73 bigint(0x300000002)), in TEST()
75 EXPECT_LT(add_compare(bigint(0x1ffffffff), bigint(0x100000002), in TEST()
76 bigint(0x300000003)), in TEST()
81 bigint n(0x42); in TEST()
91 bigint n(0x42); in TEST()
99 bigint bigmax(max_value<uint32_t>()); in TEST()
125 bigint n0(0); in TEST()
128 bigint n1(0x100); in TEST()
131 bigint n2(0xfffffffff); in TEST()
134 bigint n3(max_value<uint64_t>()); in TEST()
137 bigint n4; in TEST()
143 bigint zero(0); in TEST()
144 EXPECT_THROW(bigint(0).divmod_assign(zero), assertion_failure); in TEST()
145 EXPECT_THROW(bigint(42).divmod_assign(zero), assertion_failure); in TEST()
149 bigint n(100); in TEST()
155 bigint n1(42); in TEST()
157 bigint n2; in TEST()
167 bigint n1(100); in TEST()
168 int result = n1.divmod_assign(bigint(10)); in TEST()
173 result = n1.divmod_assign(bigint(42) <<= 320); in TEST()
178 bigint n2(42); in TEST()
219 bigint exact, cache(fp.f); in TEST()