![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
128-bit integer More...
#include <SimWheelTypes.hpp>
Public Member Functions | |
| constexpr | operator bool () |
| Non-zero check. | |
| constexpr bool | bit (uint8_t n) const noexcept |
| Check bit. | |
| constexpr void | set_bit (uint8_t n, bool value=true) noexcept |
| Set or clear a single bit. | |
| constexpr uint128_t & | operator|= (const uint128_t &rhs) noexcept |
| Compound bitwise OR. | |
| constexpr uint128_t & | operator&= (const uint128_t &rhs) noexcept |
| Compound bitwise AND. | |
| constexpr uint128_t & | operator^= (const uint128_t &rhs) noexcept |
| Compound bitwise XOR. | |
Static Public Member Functions | |
| static constexpr uint128_t | bitmap (uint8_t n) noexcept |
| Get the bitmap that represents a number. | |
| static constexpr uint128_t | neg () noexcept |
| Get the bitwise negation of zero. | |
Public Attributes | |
| uint64_t | low {0ULL} |
| Least significant unsigned long long. | |
| uint64_t | high {0ULL} |
| Most significant unsigned long long. | |
128-bit integer
Definition at line 205 of file SimWheelTypes.hpp.
|
inlineconstexprnoexcept |
Check bit.
| n | Bit index |
Definition at line 225 of file SimWheelTypes.hpp.
|
inlinestaticconstexprnoexcept |
Get the bitmap that represents a number.
| n | Number |
Definition at line 305 of file SimWheelTypes.hpp.
|
inlinestaticconstexprnoexcept |
Get the bitwise negation of zero.
Definition at line 326 of file SimWheelTypes.hpp.
|
inlineexplicitconstexpr |
Non-zero check.
Definition at line 213 of file SimWheelTypes.hpp.
Compound bitwise AND.
| rhs | Right operand |
Definition at line 279 of file SimWheelTypes.hpp.
Compound bitwise XOR.
| rhs | Right operand |
Definition at line 292 of file SimWheelTypes.hpp.
Compound bitwise OR.
| rhs | Right operand |
Definition at line 266 of file SimWheelTypes.hpp.
|
inlineconstexprnoexcept |
Set or clear a single bit.
| n | Bit index |
| value | True to set, false to clear |
Definition at line 241 of file SimWheelTypes.hpp.
| uint64_t uint128_t::high {0ULL} |
Most significant unsigned long long.
Definition at line 210 of file SimWheelTypes.hpp.
| uint64_t uint128_t::low {0ULL} |
Least significant unsigned long long.
Definition at line 208 of file SimWheelTypes.hpp.