gem5  v20.1.0.0
Functions
intmath.test.cc File Reference
#include <gtest/gtest.h>
#include "base/intmath.hh"

Go to the source code of this file.

Functions

 TEST (IntmathTest, isPowerOf2)
 
 TEST (IntmathTest, power)
 
 TEST (IntmathTest, floorLog2)
 
 TEST (IntmathTest, ceilLog2)
 
 TEST (IntmathTest, divCeil)
 
 TEST (IntmathTest, roundUp)
 
 TEST (IntmathTest, roundDown)
 

Function Documentation

◆ TEST() [1/7]

TEST ( IntmathTest  ,
ceilLog2   
)

Definition at line 87 of file intmath.test.cc.

References ceilLog2(), and EXPECT_EQ.

◆ TEST() [2/7]

TEST ( IntmathTest  ,
divCeil   
)

Definition at line 100 of file intmath.test.cc.

References divCeil(), and EXPECT_EQ.

◆ TEST() [3/7]

TEST ( IntmathTest  ,
floorLog2   
)

Definition at line 51 of file intmath.test.cc.

References EXPECT_EQ, and floorLog2().

◆ TEST() [4/7]

TEST ( IntmathTest  ,
isPowerOf2   
)

Definition at line 33 of file intmath.test.cc.

References EXPECT_FALSE, EXPECT_TRUE, and isPowerOf2().

◆ TEST() [5/7]

TEST ( IntmathTest  ,
power   
)

Definition at line 44 of file intmath.test.cc.

References EXPECT_EQ, and power().

◆ TEST() [6/7]

TEST ( IntmathTest  ,
roundDown   
)

Definition at line 117 of file intmath.test.cc.

References EXPECT_EQ, and roundDown().

◆ TEST() [7/7]

TEST ( IntmathTest  ,
roundUp   
)

Definition at line 109 of file intmath.test.cc.

References EXPECT_EQ, and roundUp().


Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17