Searched refs:IntLog2Floor (Results 1 – 4 of 4) sorted by relevance
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/ |
D | fastmath_test.cc | 31 using absl::random_internal::IntLog2Floor; in TEST() 33 EXPECT_EQ(0, IntLog2Floor(0)); // boundary. return 0. in TEST() 34 EXPECT_EQ(0, IntLog2Floor(1)); in TEST() 35 EXPECT_EQ(1, IntLog2Floor(2)); in TEST() 36 EXPECT_EQ(63, IntLog2Floor(~kZero)); in TEST() 41 EXPECT_LT(IntLog2Floor(~kZero), static_cast<int>(std::log2(~kZero))); in TEST() 45 EXPECT_EQ(i, IntLog2Floor(i_pow_2)); in TEST() 51 EXPECT_EQ(i, IntLog2Floor(y)); in TEST()
|
D | fastmath.h | 36 inline int IntLog2Floor(uint64_t n) { in IntLog2Floor() function
|
/third_party/abseil-cpp/absl/random/internal/ |
D | fastmath_test.cc | 44 using absl::random_internal::IntLog2Floor; in TEST() 46 EXPECT_EQ(0, IntLog2Floor(0)); // boundary. return 0. in TEST() 47 EXPECT_EQ(0, IntLog2Floor(1)); in TEST() 48 EXPECT_EQ(1, IntLog2Floor(2)); in TEST() 49 EXPECT_EQ(63, IntLog2Floor(~kZero)); in TEST() 54 EXPECT_LT(IntLog2Floor(~kZero), static_cast<int>(std::log2(~kZero))); in TEST() 58 EXPECT_EQ(i, IntLog2Floor(i_pow_2)); in TEST() 64 EXPECT_EQ(i, IntLog2Floor(y)); in TEST()
|
D | fastmath.h | 41 inline int IntLog2Floor(uint64_t n) { in IntLog2Floor() function
|