Jlm
Functions
MathTests.cpp File Reference
#include <gtest/gtest.h>
#include <jlm/util/Math.hpp>
Include dependency graph for MathTests.cpp:

Go to the source code of this file.

Functions

 TEST (MathTests, TestLog2Floor)
 
 TEST (MathTests, TestRoundUpToPowerOf2)
 
 TEST (MathTests, TestRoundUpToMultipleOf)
 
 TEST (MathTests, TestBitsRequiredToRepresent)
 
 TEST (MathTests, TestBitWidthOfEnum)
 

Function Documentation

◆ TEST() [1/5]

TEST ( MathTests  ,
TestBitsRequiredToRepresent   
)

Definition at line 97 of file MathTests.cpp.

◆ TEST() [2/5]

TEST ( MathTests  ,
TestBitWidthOfEnum   
)

Definition at line 118 of file MathTests.cpp.

◆ TEST() [3/5]

TEST ( MathTests  ,
TestLog2Floor   
)

Definition at line 12 of file MathTests.cpp.

◆ TEST() [4/5]

TEST ( MathTests  ,
TestRoundUpToMultipleOf   
)

Definition at line 61 of file MathTests.cpp.

◆ TEST() [5/5]

TEST ( MathTests  ,
TestRoundUpToPowerOf2   
)

Definition at line 45 of file MathTests.cpp.