• Home
  • Raw
  • Download

Lines Matching refs:getLg

193 TEST(ScaledNumberHelpersTest, getLg) {  in TEST()  argument
194 EXPECT_EQ(0, getLg(UINT32_C(1), 0)); in TEST()
195 EXPECT_EQ(1, getLg(UINT32_C(1), 1)); in TEST()
196 EXPECT_EQ(1, getLg(UINT32_C(2), 0)); in TEST()
197 EXPECT_EQ(3, getLg(UINT32_C(1), 3)); in TEST()
198 EXPECT_EQ(3, getLg(UINT32_C(7), 0)); in TEST()
199 EXPECT_EQ(3, getLg(UINT32_C(8), 0)); in TEST()
200 EXPECT_EQ(3, getLg(UINT32_C(9), 0)); in TEST()
201 EXPECT_EQ(3, getLg(UINT32_C(64), -3)); in TEST()
202 EXPECT_EQ(31, getLg((UINT32_MAX >> 1) + 2, 0)); in TEST()
203 EXPECT_EQ(32, getLg(UINT32_MAX, 0)); in TEST()
204 EXPECT_EQ(-1, getLg(UINT32_C(1), -1)); in TEST()
205 EXPECT_EQ(-1, getLg(UINT32_C(2), -2)); in TEST()
206 EXPECT_EQ(INT32_MIN, getLg(UINT32_C(0), -1)); in TEST()
207 EXPECT_EQ(INT32_MIN, getLg(UINT32_C(0), 0)); in TEST()
208 EXPECT_EQ(INT32_MIN, getLg(UINT32_C(0), 1)); in TEST()
210 EXPECT_EQ(0, getLg(UINT64_C(1), 0)); in TEST()
211 EXPECT_EQ(1, getLg(UINT64_C(1), 1)); in TEST()
212 EXPECT_EQ(1, getLg(UINT64_C(2), 0)); in TEST()
213 EXPECT_EQ(3, getLg(UINT64_C(1), 3)); in TEST()
214 EXPECT_EQ(3, getLg(UINT64_C(7), 0)); in TEST()
215 EXPECT_EQ(3, getLg(UINT64_C(8), 0)); in TEST()
216 EXPECT_EQ(3, getLg(UINT64_C(9), 0)); in TEST()
217 EXPECT_EQ(3, getLg(UINT64_C(64), -3)); in TEST()
218 EXPECT_EQ(63, getLg((UINT64_MAX >> 1) + 2, 0)); in TEST()
219 EXPECT_EQ(64, getLg(UINT64_MAX, 0)); in TEST()
220 EXPECT_EQ(-1, getLg(UINT64_C(1), -1)); in TEST()
221 EXPECT_EQ(-1, getLg(UINT64_C(2), -2)); in TEST()
222 EXPECT_EQ(INT32_MIN, getLg(UINT64_C(0), -1)); in TEST()
223 EXPECT_EQ(INT32_MIN, getLg(UINT64_C(0), 0)); in TEST()
224 EXPECT_EQ(INT32_MIN, getLg(UINT64_C(0), 1)); in TEST()