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::rxs_m_xs_mixin Struct Reference

Static Public Member Functions

static xtype output (itype internal)
static itype unoutput (itype internal)

Member Function Documentation

◆ output()

xtype pcg_detail::rxs_m_xs_mixin::output ( itype internal)
inlinestatic
96341 {
96342 constexpr bitcount_t xtypebits = bitcount_t(sizeof(xtype) * 8);
96343 constexpr bitcount_t bits = bitcount_t(sizeof(itype) * 8);
96344 constexpr bitcount_t opbits = xtypebits >= 128 ? 6
96345 : xtypebits >= 64 ? 5
96346 : xtypebits >= 32 ? 4
96347 : xtypebits >= 16 ? 3
96348 : 2;
96349 constexpr bitcount_t shift = bits - xtypebits;
96350 constexpr bitcount_t mask = (1 << opbits) - 1;
96351 bitcount_t rshift =
96352 opbits ? bitcount_t(internal >> (bits - opbits)) & mask : 0;
96353 internal ^= internal >> (opbits + rshift);
96354 internal *= mcg_multiplier<itype>::multiplier();
96355 xtype result = internal >> shift;
96356 result ^= result >> ((2U*xtypebits+2U)/3U);
96357 return result;
96358 }
void rshift(InputArray src, Scalar_< int > val, OutputArray dst, Stream &stream=Stream::Null())
GMat mask(const GMat &src, const GMat &mask)

◆ unoutput()

itype pcg_detail::rxs_m_xs_mixin::unoutput ( itype internal)
inlinestatic
96361 {
96362 constexpr bitcount_t bits = bitcount_t(sizeof(itype) * 8);
96363 constexpr bitcount_t opbits = bits >= 128 ? 6
96364 : bits >= 64 ? 5
96365 : bits >= 32 ? 4
96366 : bits >= 16 ? 3
96367 : 2;
96368 constexpr bitcount_t mask = (1 << opbits) - 1;
96369
96370 internal = unxorshift(internal, bits, (2U*bits+2U)/3U);
96371
96372 internal *= mcg_unmultiplier<itype>::unmultiplier();
96373
96374 bitcount_t rshift = opbits ? (internal >> (bits - opbits)) & mask : 0;
96375 internal = unxorshift(internal, bits, opbits + rshift);
96376
96377 return internal;
96378 }

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