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::xsl_rr_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::xsl_rr_mixin< xtype, itype >::output ( itype internal)
inlinestatic
96455 {
96456 constexpr bitcount_t xtypebits = bitcount_t(sizeof(xtype) * 8);
96457 constexpr bitcount_t bits = bitcount_t(sizeof(itype) * 8);
96458 constexpr bitcount_t sparebits = bits - xtypebits;
96459 constexpr bitcount_t wantedopbits = xtypebits >= 128 ? 7
96460 : xtypebits >= 64 ? 6
96461 : xtypebits >= 32 ? 5
96462 : xtypebits >= 16 ? 4
96463 : 3;
96465 : sparebits;
96467 constexpr bitcount_t mask = (1 << opbits) - 1;
96468 constexpr bitcount_t topspare = sparebits;
96470 constexpr bitcount_t xshift = (topspare + xtypebits) / 2;
96471
96472 bitcount_t rot =
96473 opbits ? bitcount_t(internal >> (bits - opbits)) & mask : 0;
96475 internal ^= internal >> xshift;
96478 return result;
96479 }
Definition duckdb.cpp:96453

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