proxygen
|
#include <algorithm>
#include <random>
#include <vector>
#include <folly/Random.h>
#include <folly/lang/Bits.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Functions | |
TEST (Bits, FindFirstSet) | |
TEST (Bits, FindLastSet) | |
TEST (Bits, nextPowTwoClz) | |
TEST (Bits, prevPowTwoClz) | |
TEST (Bits, isPowTwo) | |
TEST (Bits, popcount) | |
TEST (Bits, Endian_swap_uint) | |
TEST (Bits, Endian_swap_real) | |
uint64_t | reverse_simple (uint64_t v) |
TEST (Bits, BitReverse) | |
TEST (Bits, PartialLoadUnaligned) | |
TEST | ( | Bits | , |
FindFirstSet | |||
) |
Definition at line 70 of file BitsTest.cpp.
TEST | ( | Bits | , |
FindLastSet | |||
) |
Definition at line 84 of file BitsTest.cpp.
TEST | ( | Bits | , |
nextPowTwoClz | |||
) |
TEST | ( | Bits | , |
prevPowTwoClz | |||
) |
TEST | ( | Bits | , |
isPowTwo | |||
) |
Definition at line 144 of file BitsTest.cpp.
References EXPECT_FALSE, EXPECT_TRUE, and folly::isPowTwo().
TEST | ( | Bits | , |
popcount | |||
) |
Definition at line 166 of file BitsTest.cpp.
References EXPECT_EQ, folly::popcount(), uint32_t, and uint64_t.
TEST | ( | Bits | , |
Endian_swap_uint | |||
) |
Definition at line 173 of file BitsTest.cpp.
References EXPECT_EQ, folly::Endian::swap(), uint16_t, uint32_t, uint64_t, and uint8_t.
TEST | ( | Bits | , |
Endian_swap_real | |||
) |
Definition at line 181 of file BitsTest.cpp.
References EXPECT_EQ, EXPECT_NE, f, rng, and folly::Endian::swap().
TEST | ( | Bits | , |
BitReverse | |||
) |
Definition at line 202 of file BitsTest.cpp.
References b, folly::bitReverse(), EXPECT_EQ, i, folly::Random::rand32(), folly::Random::rand64(), reverse_simple(), uint32_t, and uint64_t.
TEST | ( | Bits | , |
PartialLoadUnaligned | |||
) |
Definition at line 213 of file BitsTest.cpp.
References EXPECT_EQ, folly::Random::rand32(), and uint64_t.