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
internal::accumulator Struct Reference

Public Member Functions

 operator uint32_t () const
void operator+= (uint64_t n)
void operator>>= (int shift)

Public Attributes

uint64_t lower
uint64_t upper

Constructor & Destructor Documentation

◆ accumulator()

internal::accumulator::accumulator ( )
inline
449360: lower(0), upper(0) {}

Member Function Documentation

◆ operator uint32_t()

internal::accumulator::operator uint32_t ( ) const
inlineexplicit
449361{ return static_cast<uint32_t>(lower); }
::uint32_t uint32_t

◆ operator+=()

void internal::accumulator::operator+= ( uint64_t n)
inline
449363 {
449364 lower += n;
449365 if (lower < n) ++upper;
449366 }

◆ operator>>=()

void internal::accumulator::operator>>= ( int shift)
inline
449367 {
449368 assert(shift == 32);
449369 (void)shift;
449370 lower = (upper << 32) | (lower >> 32);
449371 upper >>= 32;
449372 }
#define assert(x)
Definition duckdb.cpp:486071

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