Blender  V2.93
Functions
BLI_math_base_test.cc File Reference
#include "testing/testing.h"
#include "BLI_math.h"

Go to the source code of this file.

Functions

 TEST (math_base, CompareFFRelativeValid)
 
 TEST (math_base, CompareFFRelativeNormal)
 
 TEST (math_base, CompareFFRelativeZero)
 
 TEST (math_base, Log2FloorU)
 
 TEST (math_base, Log2CeilU)
 
 TEST (math_base, CeilPowerOf10)
 
 TEST (math_base, FloorPowerOf10)
 

Function Documentation

◆ TEST() [1/7]

TEST ( math_base  ,
CeilPowerOf10   
)

Definition at line 117 of file BLI_math_base_test.cc.

References ceil_power_of_10(), and EXPECT_EQ().

◆ TEST() [2/7]

TEST ( math_base  ,
CompareFFRelativeNormal   
)

Definition at line 16 of file BLI_math_base_test.cc.

References compare_ff_relative().

◆ TEST() [3/7]

TEST ( math_base  ,
CompareFFRelativeValid   
)

Definition at line 11 of file BLI_math_base_test.cc.

◆ TEST() [4/7]

TEST ( math_base  ,
CompareFFRelativeZero   
)

Definition at line 47 of file BLI_math_base_test.cc.

References compare_ff_relative().

◆ TEST() [5/7]

TEST ( math_base  ,
FloorPowerOf10   
)

Definition at line 126 of file BLI_math_base_test.cc.

References EXPECT_EQ(), and floor_power_of_10().

◆ TEST() [6/7]

TEST ( math_base  ,
Log2CeilU   
)

Definition at line 102 of file BLI_math_base_test.cc.

References EXPECT_EQ(), and log2_ceil_u().

◆ TEST() [7/7]

TEST ( math_base  ,
Log2FloorU   
)

Definition at line 87 of file BLI_math_base_test.cc.

References EXPECT_EQ(), and log2_floor_u().