#include <cmath>
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <iostream>
#include <limits>
#include <memory>
#include <utility>
#include <vector>
Go to the source code of this file.
|
| CMPINT | hetest::utils::Not (CMPINT cmp) |
| | Returns the logical negation of a binary operation. More...
|
| |
| uint128_t | hetest::utils::MultiplyUInt64 (uint64_t x, uint64_t y) |
| |
| uint64_t | hetest::utils::BarrettReduce128 (uint64_t input_hi, uint64_t input_lo, uint64_t modulus) |
| |
| uint64_t | hetest::utils::DivideUInt128UInt64Lo (uint64_t x1, uint64_t x0, uint64_t y) |
| |
| void | hetest::utils::MultiplyUInt64 (uint64_t x, uint64_t y, uint64_t *prod_hi, uint64_t *prod_lo) |
| |
| template<int BitShift> |
| uint64_t | hetest::utils::MultiplyUInt64Hi (uint64_t x, uint64_t y) |
| |
| uint64_t | hetest::utils::MSB (uint64_t input) |
| |
| bool | hetest::utils::Compare (CMPINT cmp, uint64_t lhs, uint64_t rhs) |
| |
| bool | hetest::utils::IsPowerOfTwo (uint64_t num) |
| |
| uint64_t | hetest::utils::Log2 (uint64_t x) |
| |
| uint64_t | hetest::utils::MaximumValue (uint64_t bits) |
| |
|
| __extension__ typedef __int128 | int128_t |
| |
__extension__ typedef unsigned
__int128 | uint128_t |
| |
| #define UTILS_CHECK |
( |
|
cond, |
|
|
|
expr |
|
) |
| {} |
| #define UTILS_CHECK_BOUNDS |
( |
|
... | ) |
{} |
| __extension__ typedef __int128 int128_t |
| __extension__ typedef unsigned __int128 uint128_t |