From ba01f6dba3cf1858ed64bc7f1abee744ffd313ec Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 10 May 2018 19:06:19 -0400 Subject: CommonFuncs: Convert ROUND_UP_POW2 macro to a function Also move it to MathUtils where it belongs with the rest of the power-of-two functions. This gets rid of pollution of the current scope of any translation unit with b macros that aren't intended to be used directly. --- Source/UnitTests/Common/CommonFuncsTest.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'Source/UnitTests/Common/CommonFuncsTest.cpp') diff --git a/Source/UnitTests/Common/CommonFuncsTest.cpp b/Source/UnitTests/Common/CommonFuncsTest.cpp index 8808290771..6582eef1cc 100644 --- a/Source/UnitTests/Common/CommonFuncsTest.cpp +++ b/Source/UnitTests/Common/CommonFuncsTest.cpp @@ -18,14 +18,6 @@ TEST(CommonFuncs, ArraySizeFunction) (void)test2; } -TEST(CommonFuncs, RoundUpPow2Macro) -{ - EXPECT_EQ(4, ROUND_UP_POW2(3)); - EXPECT_EQ(4, ROUND_UP_POW2(4)); - EXPECT_EQ(8, ROUND_UP_POW2(6)); - EXPECT_EQ(0x40000000, ROUND_UP_POW2(0x23456789)); -} - TEST(CommonFuncs, CrashMacro) { EXPECT_DEATH({ Crash(); }, ""); -- cgit v1.2.3