jaulib v1.4.1
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
test_int_math01.cpp File Reference
#include <thread>
#include <cassert>
#include <cinttypes>
#include <cstring>
#include <jau/cpp_lang_util.hpp>
#include <jau/test/catch2_ext.hpp>
#include <jau/int_math.hpp>
Include dependency graph for test_int_math01.cpp:

Go to the source code of this file.

Functions

static constexpr size_t log2_byteshift2 (const size_t bytesize) noexcept
 
 TEST_CASE ("Int Math Test 00", "[sign][arithmetic][math]")
 
 TEST_CASE ("Int Math Test 01", "[round][align][arithmetic][math]")
 
 TEST_CASE ("Int Math Test 02", "[abs][arithmetic][math]")
 
 TEST_CASE ("Int Math Test 03a", "[min][max][clip][arithmetic][math]")
 
 TEST_CASE ("Int Math Test 03b", "[ct_min][ct_max][clip2][arithmetic][math]")
 
 TEST_CASE ("Int Math Test 10", "[bits][arithmetic][math]")
 
 TEST_CASE ("Int Math Test 20", "[add][sub][overflow][arithmetic][math]")
 
 TEST_CASE ("Int Math Test 21", "[mul][overflow][arithmetic][math]")
 
 TEST_CASE ("Int Math Test 22", "[log2_byteshift][arithmetic][math]")
 

Function Documentation

◆ TEST_CASE() [1/9]

TEST_CASE ( "Int Math Test 00" ,
"" [sign][arithmetic][math] )

Definition at line 37 of file test_int_math01.cpp.

◆ TEST_CASE() [2/9]

TEST_CASE ( "Int Math Test 01" ,
"" [round][align][arithmetic][math] )

Definition at line 51 of file test_int_math01.cpp.

◆ TEST_CASE() [3/9]

TEST_CASE ( "Int Math Test 02" ,
"" [abs][arithmetic][math] )

Definition at line 75 of file test_int_math01.cpp.

◆ TEST_CASE() [4/9]

TEST_CASE ( "Int Math Test 03a" ,
"" [min][max][clip][arithmetic][math] )

Definition at line 119 of file test_int_math01.cpp.

◆ TEST_CASE() [5/9]

TEST_CASE ( "Int Math Test 03b" ,
"" [ct_min][ct_max][clip2][arithmetic][math] )

Definition at line 133 of file test_int_math01.cpp.

◆ TEST_CASE() [6/9]

TEST_CASE ( "Int Math Test 10" ,
"" [bits][arithmetic][math] )

Definition at line 148 of file test_int_math01.cpp.

◆ TEST_CASE() [7/9]

TEST_CASE ( "Int Math Test 20" ,
"" [add][sub][overflow][arithmetic][math] )

Definition at line 199 of file test_int_math01.cpp.

◆ TEST_CASE() [8/9]

TEST_CASE ( "Int Math Test 21" ,
"" [mul][overflow][arithmetic][math] )

Definition at line 278 of file test_int_math01.cpp.

◆ log2_byteshift2()

static constexpr size_t log2_byteshift2 ( const size_t bytesize)
staticconstexprnoexcept

Definition at line 313 of file test_int_math01.cpp.

Here is the caller graph for this function:

◆ TEST_CASE() [9/9]

TEST_CASE ( "Int Math Test 22" ,
"" [log2_byteshift][arithmetic][math] )

Definition at line 321 of file test_int_math01.cpp.