Lines Matching refs:getLgFloor
227 TEST(ScaledNumberHelpersTest, getLgFloor) { in TEST() argument
228 EXPECT_EQ(0, getLgFloor(UINT32_C(1), 0)); in TEST()
229 EXPECT_EQ(1, getLgFloor(UINT32_C(1), 1)); in TEST()
230 EXPECT_EQ(1, getLgFloor(UINT32_C(2), 0)); in TEST()
231 EXPECT_EQ(2, getLgFloor(UINT32_C(7), 0)); in TEST()
232 EXPECT_EQ(3, getLgFloor(UINT32_C(1), 3)); in TEST()
233 EXPECT_EQ(3, getLgFloor(UINT32_C(8), 0)); in TEST()
234 EXPECT_EQ(3, getLgFloor(UINT32_C(9), 0)); in TEST()
235 EXPECT_EQ(3, getLgFloor(UINT32_C(64), -3)); in TEST()
236 EXPECT_EQ(31, getLgFloor((UINT32_MAX >> 1) + 2, 0)); in TEST()
237 EXPECT_EQ(31, getLgFloor(UINT32_MAX, 0)); in TEST()
238 EXPECT_EQ(INT32_MIN, getLgFloor(UINT32_C(0), -1)); in TEST()
239 EXPECT_EQ(INT32_MIN, getLgFloor(UINT32_C(0), 0)); in TEST()
240 EXPECT_EQ(INT32_MIN, getLgFloor(UINT32_C(0), 1)); in TEST()
242 EXPECT_EQ(0, getLgFloor(UINT64_C(1), 0)); in TEST()
243 EXPECT_EQ(1, getLgFloor(UINT64_C(1), 1)); in TEST()
244 EXPECT_EQ(1, getLgFloor(UINT64_C(2), 0)); in TEST()
245 EXPECT_EQ(2, getLgFloor(UINT64_C(7), 0)); in TEST()
246 EXPECT_EQ(3, getLgFloor(UINT64_C(1), 3)); in TEST()
247 EXPECT_EQ(3, getLgFloor(UINT64_C(8), 0)); in TEST()
248 EXPECT_EQ(3, getLgFloor(UINT64_C(9), 0)); in TEST()
249 EXPECT_EQ(3, getLgFloor(UINT64_C(64), -3)); in TEST()
250 EXPECT_EQ(63, getLgFloor((UINT64_MAX >> 1) + 2, 0)); in TEST()
251 EXPECT_EQ(63, getLgFloor(UINT64_MAX, 0)); in TEST()
252 EXPECT_EQ(INT32_MIN, getLgFloor(UINT64_C(0), -1)); in TEST()
253 EXPECT_EQ(INT32_MIN, getLgFloor(UINT64_C(0), 0)); in TEST()
254 EXPECT_EQ(INT32_MIN, getLgFloor(UINT64_C(0), 1)); in TEST()