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_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::xsh_rr_mixin< xtype, itype >::output ( itype internal)
inlinestatic
96240 {
96241 constexpr bitcount_t bits = bitcount_t(sizeof(itype) * 8);
96242 constexpr bitcount_t xtypebits = bitcount_t(sizeof(xtype)*8);
96243 constexpr bitcount_t sparebits = bits - xtypebits;
96244 constexpr bitcount_t wantedopbits =
96245 xtypebits >= 128 ? 7
96246 : xtypebits >= 64 ? 6
96247 : xtypebits >= 32 ? 5
96248 : xtypebits >= 16 ? 4
96249 : 3;
96250 constexpr bitcount_t opbits =
96252 : sparebits;
96254 constexpr bitcount_t mask = (1 << opbits) - 1;
96255 constexpr bitcount_t topspare = opbits;
96257 constexpr bitcount_t xshift = (topspare + xtypebits)/2;
96259 : 0;
96261 internal ^= internal >> xshift;
96264 return result;
96265 }
Definition duckdb.cpp:96238

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