OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
Loading...
Searching...
No Matches
uint128_t Struct Reference

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_toperator|= (const uint128_t &rhs) noexcept
 Compound bitwise OR.
 
constexpr uint128_toperator&= (const uint128_t &rhs) noexcept
 Compound bitwise AND.
 
constexpr uint128_toperator^= (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.
 

Detailed Description

128-bit integer

Definition at line 205 of file SimWheelTypes.hpp.

Member Function Documentation

◆ bit()

bool uint128_t::bit ( uint8_t n) const
inlineconstexprnoexcept

Check bit.

Parameters
nBit index
Returns
true if the bit is set
false if the bit is not set

Definition at line 225 of file SimWheelTypes.hpp.

◆ bitmap()

static constexpr uint128_t uint128_t::bitmap ( uint8_t n)
inlinestaticconstexprnoexcept

Get the bitmap that represents a number.

Parameters
nNumber
Returns
constexpr uint128_t Bitmap

Definition at line 305 of file SimWheelTypes.hpp.

◆ neg()

static constexpr uint128_t uint128_t::neg ( )
inlinestaticconstexprnoexcept

Get the bitwise negation of zero.

Returns
constexpr uint128_t Bitwise zero negation

Definition at line 326 of file SimWheelTypes.hpp.

◆ operator bool()

uint128_t::operator bool ( )
inlineexplicitconstexpr

Non-zero check.

Definition at line 213 of file SimWheelTypes.hpp.

◆ operator&=()

uint128_t & uint128_t::operator&= ( const uint128_t & rhs)
inlineconstexprnoexcept

Compound bitwise AND.

Parameters
rhsRight operand
Returns
constexpr uint128_t& Reference to this instance

Definition at line 279 of file SimWheelTypes.hpp.

◆ operator^=()

uint128_t & uint128_t::operator^= ( const uint128_t & rhs)
inlineconstexprnoexcept

Compound bitwise XOR.

Parameters
rhsRight operand
Returns
constexpr uint128_t& Reference to this instance

Definition at line 292 of file SimWheelTypes.hpp.

◆ operator|=()

uint128_t & uint128_t::operator|= ( const uint128_t & rhs)
inlineconstexprnoexcept

Compound bitwise OR.

Parameters
rhsRight operand
Returns
constexpr uint128_t& Reference to this instance

Definition at line 266 of file SimWheelTypes.hpp.

◆ set_bit()

void uint128_t::set_bit ( uint8_t n,
bool value = true )
inlineconstexprnoexcept

Set or clear a single bit.

Parameters
nBit index
valueTrue to set, false to clear

Definition at line 241 of file SimWheelTypes.hpp.

Member Data Documentation

◆ high

uint64_t uint128_t::high {0ULL}

Most significant unsigned long long.

Definition at line 210 of file SimWheelTypes.hpp.

◆ low

uint64_t uint128_t::low {0ULL}

Least significant unsigned long long.

Definition at line 208 of file SimWheelTypes.hpp.


The documentation for this struct was generated from the following file: