Go to the documentation of this file.
29 #include <gtest/gtest.h>
83 EXPECT_DEATH_IF_SUPPORTED(
floorLog2(0),
"x > 0");
T roundDown(const T &val, const U &align)
This function is used to align addresses in memory.
std::enable_if< std::is_integral< T >::value, int >::type floorLog2(T x)
#define EXPECT_EQ(lhs, rhs)
A macro which verifies that lhs and rhs are equal to each other.
#define EXPECT_FALSE(expr)
A macro which verifies that expr evaluates to false.
T divCeil(const T &a, const U &b)
#define EXPECT_TRUE(expr)
A macro which verifies that expr evaluates to true.
TEST(IntmathTest, isPowerOf2)
T roundUp(const T &val, const U &align)
This function is used to align addresses in memory.
uint64_t power(uint32_t n, uint32_t e)
bool isPowerOf2(const T &n)
Generated on Wed Sep 30 2020 14:02:07 for gem5 by doxygen 1.8.17