Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
uhugeint_t Struct Reference

Public Member Functions

DUCKDB_API uhugeint_t (uint64_t value)
constexpr uhugeint_t (uint64_t upper, uint64_t lower)
constexpr uhugeint_t (const uhugeint_t &rhs)=default
constexpr uhugeint_t (uhugeint_t &&rhs)=default
uhugeint_t & operator= (const uhugeint_t &rhs)=default
uhugeint_t & operator= (uhugeint_t &&rhs)=default
DUCKDB_API string ToString () const
DUCKDB_API bool operator== (const uhugeint_t &rhs) const
DUCKDB_API bool operator!= (const uhugeint_t &rhs) const
DUCKDB_API bool operator<= (const uhugeint_t &rhs) const
DUCKDB_API bool operator< (const uhugeint_t &rhs) const
DUCKDB_API bool operator> (const uhugeint_t &rhs) const
DUCKDB_API bool operator>= (const uhugeint_t &rhs) const
DUCKDB_API uhugeint_t operator+ (const uhugeint_t &rhs) const
DUCKDB_API uhugeint_t operator- (const uhugeint_t &rhs) const
DUCKDB_API uhugeint_t operator- () const
DUCKDB_API uhugeint_t operator* (const uhugeint_t &rhs) const
DUCKDB_API uhugeint_t operator/ (const uhugeint_t &rhs) const
DUCKDB_API uhugeint_t operator% (const uhugeint_t &rhs) const
DUCKDB_API uhugeint_t operator>> (const uhugeint_t &rhs) const
DUCKDB_API uhugeint_t operator<< (const uhugeint_t &rhs) const
DUCKDB_API uhugeint_t operator& (const uhugeint_t &rhs) const
DUCKDB_API uhugeint_t operator| (const uhugeint_t &rhs) const
DUCKDB_API uhugeint_t operator^ (const uhugeint_t &rhs) const
DUCKDB_API uhugeint_t operator~ () const
DUCKDB_API uhugeint_t & operator+= (const uhugeint_t &rhs)
DUCKDB_API uhugeint_t & operator-= (const uhugeint_t &rhs)
DUCKDB_API uhugeint_t & operator*= (const uhugeint_t &rhs)
DUCKDB_API uhugeint_t & operator/= (const uhugeint_t &rhs)
DUCKDB_API uhugeint_t & operator%= (const uhugeint_t &rhs)
DUCKDB_API uhugeint_t & operator>>= (const uhugeint_t &rhs)
DUCKDB_API uhugeint_t & operator<<= (const uhugeint_t &rhs)
DUCKDB_API uhugeint_t & operator&= (const uhugeint_t &rhs)
DUCKDB_API uhugeint_t & operator|= (const uhugeint_t &rhs)
DUCKDB_API uhugeint_t & operator^= (const uhugeint_t &rhs)
DUCKDB_API operator bool () const
DUCKDB_API bool operator! () const
DUCKDB_API operator uint8_t () const
DUCKDB_API operator uint16_t () const
DUCKDB_API operator uint32_t () const
DUCKDB_API operator uint64_t () const
DUCKDB_API operator int8_t () const
DUCKDB_API operator int16_t () const
DUCKDB_API operator int32_t () const
DUCKDB_API operator int64_t () const
DUCKDB_API operator hugeint_t () const

Public Attributes

uint64_t lower
uint64_t upper

Constructor & Destructor Documentation

◆ uhugeint_t() [1/2]

duckdb::uhugeint_t::uhugeint_t ( uint64_t value)
130655 {
130656 this->lower = value;
130657 this->upper = 0;
130658}

◆ uhugeint_t() [2/2]

duckdb::uhugeint_t::uhugeint_t ( uint64_t upper,
uint64_t lower )
inlineconstexpr
1266 : lower(lower), upper(upper) {
1267 }

Member Function Documentation

◆ ToString()

string duckdb::uhugeint_t::ToString ( ) const
130865 {
130866 return Uhugeint::ToString(*this);
130867}
static string ToString(uhugeint_t input)
Convert a uhugeint object to a string.
Definition duckdb.cpp:130182

◆ operator==()

bool duckdb::uhugeint_t::operator== ( const uhugeint_t & rhs) const
130660 {
130661 return Uhugeint::Equals(*this, rhs);
130662}

◆ operator!=()

bool duckdb::uhugeint_t::operator!= ( const uhugeint_t & rhs) const
130664 {
130665 return Uhugeint::NotEquals(*this, rhs);
130666}

◆ operator<=()

bool duckdb::uhugeint_t::operator<= ( const uhugeint_t & rhs) const
130672 {
130673 return Uhugeint::LessThanEquals(*this, rhs);
130674}

◆ operator<()

bool duckdb::uhugeint_t::operator< ( const uhugeint_t & rhs) const
130668 {
130669 return Uhugeint::LessThan(*this, rhs);
130670}

◆ operator>()

bool duckdb::uhugeint_t::operator> ( const uhugeint_t & rhs) const
130676 {
130677 return Uhugeint::GreaterThan(*this, rhs);
130678}

◆ operator>=()

bool duckdb::uhugeint_t::operator>= ( const uhugeint_t & rhs) const
130680 {
130681 return Uhugeint::GreaterThanEquals(*this, rhs);
130682}

◆ operator+()

uhugeint_t duckdb::uhugeint_t::operator+ ( const uhugeint_t & rhs) const
130684 {
130685 return uhugeint_t(upper + rhs.upper + ((lower + rhs.lower) < lower), lower + rhs.lower);
130686}

◆ operator-() [1/2]

uhugeint_t duckdb::uhugeint_t::operator- ( const uhugeint_t & rhs) const
130688 {
130689 return uhugeint_t(upper - rhs.upper - ((lower - rhs.lower) > lower), lower - rhs.lower);
130690}

◆ operator-() [2/2]

uhugeint_t duckdb::uhugeint_t::operator- ( ) const
130706 {
130707 return Uhugeint::Negate<false>(*this);
130708}

◆ operator*()

uhugeint_t duckdb::uhugeint_t::operator* ( const uhugeint_t & rhs) const
130692 {
130693 uhugeint_t result = *this;
130694 result *= rhs;
130695 return result;
130696}

◆ operator/()

uhugeint_t duckdb::uhugeint_t::operator/ ( const uhugeint_t & rhs) const
130698 {
130699 return Uhugeint::Divide<false>(*this, rhs);
130700}

◆ operator%()

uhugeint_t duckdb::uhugeint_t::operator% ( const uhugeint_t & rhs) const
130702 {
130703 return Uhugeint::Modulo<false>(*this, rhs);
130704}

◆ operator>>()

uhugeint_t duckdb::uhugeint_t::operator>> ( const uhugeint_t & rhs) const
130710 {
130711 const uint64_t shift = rhs.lower;
130712 if (rhs.upper != 0 || shift >= 128) {
130713 return uhugeint_t(0);
130714 } else if (shift == 0) {
130715 return *this;
130716 } else if (shift == 64) {
130717 return uhugeint_t(0, upper);
130718 } else if (shift < 64) {
130719 return uhugeint_t(upper >> shift, (upper << (64 - shift)) + (lower >> shift));
130720 } else if ((128 > shift) && (shift > 64)) {
130721 return uhugeint_t(0, (upper >> (shift - 64)));
130722 }
130723 return uhugeint_t(0);
130724}
::uint64_t uint64_t

◆ operator<<()

uhugeint_t duckdb::uhugeint_t::operator<< ( const uhugeint_t & rhs) const
130726 {
130727 const uint64_t shift = rhs.lower;
130728 if (rhs.upper != 0 || shift >= 128) {
130729 return uhugeint_t(0);
130730 } else if (shift == 0) {
130731 return *this;
130732 } else if (shift == 64) {
130733 return uhugeint_t(lower, 0);
130734 } else if (shift < 64) {
130735 return uhugeint_t((upper << shift) + (lower >> (64 - shift)), lower << shift);
130736 } else if ((128 > shift) && (shift > 64)) {
130737 return uhugeint_t(lower << (shift - 64), 0);
130738 }
130739 return uhugeint_t(0);
130740}

◆ operator&()

uhugeint_t duckdb::uhugeint_t::operator& ( const uhugeint_t & rhs) const
130742 {
130743 uhugeint_t result;
130744 result.lower = lower & rhs.lower;
130745 result.upper = upper & rhs.upper;
130746 return result;
130747}

◆ operator|()

uhugeint_t duckdb::uhugeint_t::operator| ( const uhugeint_t & rhs) const
130749 {
130750 uhugeint_t result;
130751 result.lower = lower | rhs.lower;
130752 result.upper = upper | rhs.upper;
130753 return result;
130754}

◆ operator^()

uhugeint_t duckdb::uhugeint_t::operator^ ( const uhugeint_t & rhs) const
130756 {
130757 uhugeint_t result;
130758 result.lower = lower ^ rhs.lower;
130759 result.upper = upper ^ rhs.upper;
130760 return result;
130761}

◆ operator~()

uhugeint_t duckdb::uhugeint_t::operator~ ( ) const
130763 {
130764 uhugeint_t result;
130765 result.lower = ~lower;
130766 result.upper = ~upper;
130767 return result;
130768}

◆ operator+=()

uhugeint_t & duckdb::uhugeint_t::operator+= ( const uhugeint_t & rhs)
130770 {
130771 *this = *this + rhs;
130772 return *this;
130773}

◆ operator-=()

uhugeint_t & duckdb::uhugeint_t::operator-= ( const uhugeint_t & rhs)
130775 {
130776 *this = *this - rhs;
130777 return *this;
130778}

◆ operator*=()

uhugeint_t & duckdb::uhugeint_t::operator*= ( const uhugeint_t & rhs)
130780 {
130781 *this = Uhugeint::Multiply<false>(*this, rhs);
130782 return *this;
130783}

◆ operator/=()

uhugeint_t & duckdb::uhugeint_t::operator/= ( const uhugeint_t & rhs)
130785 {
130786 *this = Uhugeint::Divide<false>(*this, rhs);
130787 return *this;
130788}

◆ operator%=()

uhugeint_t & duckdb::uhugeint_t::operator%= ( const uhugeint_t & rhs)
130790 {
130791 *this = Uhugeint::Modulo<false>(*this, rhs);
130792 return *this;
130793}

◆ operator>>=()

uhugeint_t & duckdb::uhugeint_t::operator>>= ( const uhugeint_t & rhs)
130795 {
130796 *this = *this >> rhs;
130797 return *this;
130798}

◆ operator<<=()

uhugeint_t & duckdb::uhugeint_t::operator<<= ( const uhugeint_t & rhs)
130800 {
130801 *this = *this << rhs;
130802 return *this;
130803}

◆ operator&=()

uhugeint_t & duckdb::uhugeint_t::operator&= ( const uhugeint_t & rhs)
130805 {
130806 lower &= rhs.lower;
130807 upper &= rhs.upper;
130808 return *this;
130809}

◆ operator|=()

uhugeint_t & duckdb::uhugeint_t::operator|= ( const uhugeint_t & rhs)
130811 {
130812 lower |= rhs.lower;
130813 upper |= rhs.upper;
130814 return *this;
130815}

◆ operator^=()

uhugeint_t & duckdb::uhugeint_t::operator^= ( const uhugeint_t & rhs)
130817 {
130818 lower ^= rhs.lower;
130819 upper ^= rhs.upper;
130820 return *this;
130821}

◆ operator bool()

duckdb::uhugeint_t::operator bool ( ) const
explicit
130827 {
130828 return *this != 0;
130829}

◆ operator!()

bool duckdb::uhugeint_t::operator! ( ) const
130823 {
130824 return *this == 0;
130825}

◆ operator uint8_t()

duckdb::uhugeint_t::operator uint8_t ( ) const
explicit
130837 {
130838 return NarrowCast<uint8_t>(*this);
130839}

◆ operator uint16_t()

duckdb::uhugeint_t::operator uint16_t ( ) const
explicit
130840 {
130841 return NarrowCast<uint16_t>(*this);
130842}

◆ operator uint32_t()

duckdb::uhugeint_t::operator uint32_t ( ) const
explicit
130843 {
130844 return NarrowCast<uint32_t>(*this);
130845}

◆ operator uint64_t()

duckdb::uhugeint_t::operator uint64_t ( ) const
explicit
130846 {
130847 return NarrowCast<uint64_t>(*this);
130848}

◆ operator int8_t()

duckdb::uhugeint_t::operator int8_t ( ) const
explicit
130849 {
130850 return NarrowCast<int8_t>(*this);
130851}

◆ operator int16_t()

duckdb::uhugeint_t::operator int16_t ( ) const
explicit
130852 {
130853 return NarrowCast<int16_t>(*this);
130854}

◆ operator int32_t()

duckdb::uhugeint_t::operator int32_t ( ) const
explicit
130855 {
130856 return NarrowCast<int32_t>(*this);
130857}

◆ operator int64_t()

duckdb::uhugeint_t::operator int64_t ( ) const
explicit
130858 {
130859 return NarrowCast<int64_t>(*this);
130860}

◆ operator hugeint_t()

duckdb::uhugeint_t::operator hugeint_t ( ) const
130861 {
130862 return {static_cast<int64_t>(this->upper), this->lower};
130863}
::int64_t int64_t

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