Home
last modified time | relevance | path

Searched refs:IntLog2Floor (Results 1 - 2 of 2) sorted by relevance

/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
H A Dfastmath_test.cc31 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()
40 // and the result of std::log2(x) > IntLog2Floor(x). 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()
66 // and the result of std::log2(x) > IntLog2Floor( in TEST()
[all...]
H A Dfastmath.h36 inline int IntLog2Floor(uint64_t n) { in IntLog2Floor() function

Completed in 1 milliseconds