Lines Matching refs:round_up
58 EXPECT_EQ(fbl::round_up(0u, 1u), 0u);
59 EXPECT_EQ(fbl::round_up(0u, 5u), 0u);
60 EXPECT_EQ(fbl::round_up(5u, 5u), 5u);
62 EXPECT_EQ(fbl::round_up(1u, 6u), 6u);
63 EXPECT_EQ(fbl::round_up(6u, 1u), 6u);
64 EXPECT_EQ(fbl::round_up(6u, 3u), 6u);
65 EXPECT_EQ(fbl::round_up(6u, 4u), 8u);
67 EXPECT_EQ(fbl::round_up(15u, 8u), 16u);
68 EXPECT_EQ(fbl::round_up(16u, 8u), 16u);
69 EXPECT_EQ(fbl::round_up(17u, 8u), 24u);
70 EXPECT_EQ(fbl::round_up(123u, 100u), 200u);
71 EXPECT_EQ(fbl::round_up(123456u, 1000u), 124000u);
74 EXPECT_EQ(fbl::round_up(large_int, 64U), large_int);
75 EXPECT_EQ(fbl::round_up(large_int, 64LLU), large_int);
76 EXPECT_EQ(fbl::round_up(large_int + 63LLU, 64U), large_int + 64LLU);
77 EXPECT_EQ(fbl::round_up(large_int + 63LLU, 64LLU), large_int + 64LLU);
78 EXPECT_EQ(fbl::round_up(large_int, 3U), large_int + 2LLU);
79 EXPECT_EQ(fbl::round_up(large_int, 3LLU), large_int + 2LLU);
81 EXPECT_EQ(fbl::round_up(2U, large_int), large_int);
82 EXPECT_EQ(fbl::round_up(2LLU, large_int), large_int);
434 RUN_NAMED_TEST("round_up test", round_up_test)