#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>
Go to the source code of this file.
|
| 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]") |
| |
◆ TEST_CASE() [1/9]
| TEST_CASE |
( |
"Int Math Test 00" | , |
|
|
"" | [sign][arithmetic][math] ) |
◆ TEST_CASE() [2/9]
| TEST_CASE |
( |
"Int Math Test 01" | , |
|
|
"" | [round][align][arithmetic][math] ) |
◆ TEST_CASE() [3/9]
| TEST_CASE |
( |
"Int Math Test 02" | , |
|
|
"" | [abs][arithmetic][math] ) |
◆ TEST_CASE() [4/9]
| TEST_CASE |
( |
"Int Math Test 03a" | , |
|
|
"" | [min][max][clip][arithmetic][math] ) |
◆ TEST_CASE() [5/9]
| TEST_CASE |
( |
"Int Math Test 03b" | , |
|
|
"" | [ct_min][ct_max][clip2][arithmetic][math] ) |
◆ TEST_CASE() [6/9]
| TEST_CASE |
( |
"Int Math Test 10" | , |
|
|
"" | [bits][arithmetic][math] ) |
◆ TEST_CASE() [7/9]
| TEST_CASE |
( |
"Int Math Test 20" | , |
|
|
"" | [add][sub][overflow][arithmetic][math] ) |
◆ TEST_CASE() [8/9]
| TEST_CASE |
( |
"Int Math Test 21" | , |
|
|
"" | [mul][overflow][arithmetic][math] ) |
◆ log2_byteshift2()
| static constexpr size_t log2_byteshift2 |
( |
const size_t | bytesize | ) |
|
|
staticconstexprnoexcept |
◆ TEST_CASE() [9/9]
| TEST_CASE |
( |
"Int Math Test 22" | , |
|
|
"" | [log2_byteshift][arithmetic][math] ) |