Iros
 
Loading...
Searching...
No Matches
di::math::bigint::FixedOps< words > Struct Template Reference

#include <di/math/bigint/fixed_ops.h>

Static Public Member Functions

static constexpr auto word_index (usize bit) -> usize
 
static constexpr auto get_bit (Span< StorageType const, words > storage, usize bit) -> bool
 
static constexpr void set_bit (Span< StorageType, words > storage, usize bit, bool value)
 
static constexpr auto twos_complement_negative (Span< StorageType const, words > storage) -> bool
 
static constexpr auto compare (Span< StorageType const, words > lhs, Span< StorageType const, words > rhs) -> strong_ordering
 
static constexpr void shift_left_one (Span< StorageType, words > value)
 
static constexpr void add_one (Span< StorageType, words > value)
 
static constexpr void negate (Span< StorageType, words > value)
 
static constexpr void add (Span< StorageType, words > a, Span< StorageType const, words > b)
 
static constexpr void subtract (Span< StorageType, words > a, Span< StorageType const, words > b)
 
static constexpr void div_mod (Span< StorageType const, words > dividend, Span< StorageType const, words > divisor, Span< StorageType, words > quotient, Span< StorageType, words > remainder)
 

Member Function Documentation

◆ add()

template<usize words>
static constexpr void di::math::bigint::FixedOps< words >::add ( Span< StorageType, words > a,
Span< StorageType const, words > b )
inlinestaticconstexpr

◆ add_one()

template<usize words>
static constexpr void di::math::bigint::FixedOps< words >::add_one ( Span< StorageType, words > value)
inlinestaticconstexpr

◆ compare()

template<usize words>
static constexpr auto di::math::bigint::FixedOps< words >::compare ( Span< StorageType const, words > lhs,
Span< StorageType const, words > rhs ) -> strong_ordering
inlinestaticconstexpr

◆ div_mod()

template<usize words>
static constexpr void di::math::bigint::FixedOps< words >::div_mod ( Span< StorageType const, words > dividend,
Span< StorageType const, words > divisor,
Span< StorageType, words > quotient,
Span< StorageType, words > remainder )
inlinestaticconstexpr

◆ get_bit()

template<usize words>
static constexpr auto di::math::bigint::FixedOps< words >::get_bit ( Span< StorageType const, words > storage,
usize bit ) -> bool
inlinestaticconstexpr

◆ negate()

template<usize words>
static constexpr void di::math::bigint::FixedOps< words >::negate ( Span< StorageType, words > value)
inlinestaticconstexpr

◆ set_bit()

template<usize words>
static constexpr void di::math::bigint::FixedOps< words >::set_bit ( Span< StorageType, words > storage,
usize bit,
bool value )
inlinestaticconstexpr

◆ shift_left_one()

template<usize words>
static constexpr void di::math::bigint::FixedOps< words >::shift_left_one ( Span< StorageType, words > value)
inlinestaticconstexpr

◆ subtract()

template<usize words>
static constexpr void di::math::bigint::FixedOps< words >::subtract ( Span< StorageType, words > a,
Span< StorageType const, words > b )
inlinestaticconstexpr

◆ twos_complement_negative()

template<usize words>
static constexpr auto di::math::bigint::FixedOps< words >::twos_complement_negative ( Span< StorageType const, words > storage) -> bool
inlinestaticconstexpr

◆ word_index()

template<usize words>
static constexpr auto di::math::bigint::FixedOps< words >::word_index ( usize bit) -> usize
inlinestaticconstexpr

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