HomeSort by relevance Sort by last modified time
    Searched full:log2floor (Results 1 - 3 of 3) sorted by null

  /external/libchrome/base/
bits_unittest.cc 18 TEST(BitsTest, Log2Floor) {
19 EXPECT_EQ(-1, Log2Floor(0));
20 EXPECT_EQ(0, Log2Floor(1));
21 EXPECT_EQ(1, Log2Floor(2));
22 EXPECT_EQ(1, Log2Floor(3));
23 EXPECT_EQ(2, Log2Floor(4));
26 EXPECT_EQ(i, Log2Floor(value));
27 EXPECT_EQ(i, Log2Floor(value + 1));
28 EXPECT_EQ(i, Log2Floor(value + 2));
29 EXPECT_EQ(i - 1, Log2Floor(value - 1))
    [all...]
bits.h 19 inline int Log2Floor(uint32_t n) {
41 // Log2Floor returns -1 for 0, so the following works correctly for n=1.
42 return 1 + Log2Floor(n - 1);
  /external/deqp/framework/delibs/debase/
deInt32.h 379 int log2floor = deLog2Floor32(a); local
381 return log2floor;
383 return log2floor+1;

Completed in 2082 milliseconds