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
pcg_detail::xsh_rs_mixin< xtype, itype > Struct Template Reference

Static Public Member Functions

static xtype output (itype internal)

Member Function Documentation

◆ output()

template<typename xtype, typename itype>
xtype pcg_detail::xsh_rs_mixin< xtype, itype >::output ( itype internal)
inlinestatic
96207 {
96208 constexpr bitcount_t bits = bitcount_t(sizeof(itype) * 8);
96209 constexpr bitcount_t xtypebits = bitcount_t(sizeof(xtype) * 8);
96210 constexpr bitcount_t sparebits = bits - xtypebits;
96211 constexpr bitcount_t opbits =
96212 sparebits-5 >= 64 ? 5
96213 : sparebits-4 >= 32 ? 4
96214 : sparebits-3 >= 16 ? 3
96215 : sparebits-2 >= 4 ? 2
96216 : sparebits-1 >= 1 ? 1
96217 : 0;
96218 constexpr bitcount_t mask = (1 << opbits) - 1;
96219 constexpr bitcount_t maxrandshift = mask;
96220 constexpr bitcount_t topspare = opbits;
96224 opbits ? bitcount_t(internal >> (bits - opbits)) & mask : 0;
96225 internal ^= internal >> xshift;
96227 return result;
96228 }
Definition duckdb.cpp:96205

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