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_rr_mixin< xtype, itype > Struct Template Reference

Public Types

typedef halfsize_trait< itype >::type htype

Static Public Member Functions

static itype output (itype internal)

Member Function Documentation

◆ output()

template<typename xtype, typename itype>
itype pcg_detail::xsl_rr_rr_mixin< xtype, itype >::output ( itype internal)
inlinestatic
96501 {
96502 constexpr bitcount_t htypebits = bitcount_t(sizeof(htype) * 8);
96503 constexpr bitcount_t bits = bitcount_t(sizeof(itype) * 8);
96504 constexpr bitcount_t sparebits = bits - htypebits;
96505 constexpr bitcount_t wantedopbits = htypebits >= 128 ? 7
96506 : htypebits >= 64 ? 6
96507 : htypebits >= 32 ? 5
96508 : htypebits >= 16 ? 4
96509 : 3;
96511 : sparebits;
96513 constexpr bitcount_t mask = (1 << opbits) - 1;
96514 constexpr bitcount_t topspare = sparebits;
96515 constexpr bitcount_t xshift = (topspare + htypebits) / 2;
96516
96517 bitcount_t rot =
96518 opbits ? bitcount_t(internal >> (bits - opbits)) & mask : 0;
96520 internal ^= internal >> xshift;
96521 htype lowbits = htype(internal);
96523 htype highbits = htype(internal >> topspare);
96527 return (itype(highbits) << topspare) ^ itype(lowbits);
96528 }
Definition duckdb.cpp:96497

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