Code cleanup - constexpr for bitness ults

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2021-05-24 13:49:09 +00:00
committed by Compute-Runtime-Automation
parent 72a0621dc2
commit 7fdab76d96
19 changed files with 42 additions and 48 deletions

View File

@ -796,7 +796,7 @@ TEST(DrmMemoryManagerTest2, givenDrmMemoryManagerWhengetSystemSharedMemoryIsCall
TEST_F(DrmMemoryManagerTest, GivenBitnessWhenGettingMaxApplicationAddressThenCorrectValueIsReturned) {
uint64_t maxAddr = memoryManager->getMaxApplicationAddress();
if (is64bit) {
if constexpr (is64bit) {
EXPECT_EQ(maxAddr, MemoryConstants::max64BitAppAddress);
} else {
EXPECT_EQ(maxAddr, MemoryConstants::max32BitAppAddress);