openMSX
Functions
Math_test.cc File Reference
#include "catch.hpp"
#include "Math.hh"
Include dependency graph for Math_test.cc:

Go to the source code of this file.

Functions

 TEST_CASE ("Math::log2p1")
 
 TEST_CASE ("Math::ispow2")
 
 TEST_CASE ("Math::ceil2")
 
 TEST_CASE ("Math::clipIntToShort")
 
 TEST_CASE ("Math::clipIntToByte")
 
 TEST_CASE ("Math::reverseNBits")
 
 TEST_CASE ("Math::reverseByte")
 
 TEST_CASE ("Math::floodRight")
 
 TEST_CASE ("Math::countLeadingZeros")
 
 TEST_CASE ("Math::countTrailingZeros")
 
 TEST_CASE ("Math::findFirstSet")
 

Function Documentation

◆ TEST_CASE() [1/11]

TEST_CASE ( "Math::ceil2"  )

Definition at line 55 of file Math_test.cc.

References Math::ceil2(), and CHECK().

◆ TEST_CASE() [2/11]

TEST_CASE ( "Math::clipIntToByte"  )

Definition at line 105 of file Math_test.cc.

References CHECK(), and Math::clipIntToByte().

◆ TEST_CASE() [3/11]

TEST_CASE ( "Math::clipIntToShort"  )

Definition at line 86 of file Math_test.cc.

References CHECK(), and Math::clipIntToShort().

◆ TEST_CASE() [4/11]

TEST_CASE ( "Math::countLeadingZeros"  )

Definition at line 190 of file Math_test.cc.

References CHECK(), and Math::countLeadingZeros().

◆ TEST_CASE() [5/11]

TEST_CASE ( "Math::countTrailingZeros"  )

Definition at line 215 of file Math_test.cc.

References CHECK(), and Math::countTrailingZeros().

◆ TEST_CASE() [6/11]

TEST_CASE ( "Math::findFirstSet"  )

Definition at line 229 of file Math_test.cc.

References CHECK(), and Math::findFirstSet().

◆ TEST_CASE() [7/11]

TEST_CASE ( "Math::floodRight"  )

Definition at line 165 of file Math_test.cc.

References CHECK(), and Math::floodRight().

◆ TEST_CASE() [8/11]

TEST_CASE ( "Math::ispow2"  )

Definition at line 25 of file Math_test.cc.

References CHECK(), and Math::ispow2().

◆ TEST_CASE() [9/11]

TEST_CASE ( "Math::log2p1"  )

Definition at line 4 of file Math_test.cc.

References CHECK(), Math::log2p1(), and openmsx::x.

◆ TEST_CASE() [10/11]

TEST_CASE ( "Math::reverseByte"  )

Definition at line 150 of file Math_test.cc.

◆ TEST_CASE() [11/11]

TEST_CASE ( "Math::reverseNBits"  )

Definition at line 127 of file Math_test.cc.