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
duckdb::HugeIntPacker Struct Reference

Static Public Member Functions

static void Pack (const uhugeint_t *__restrict in, uint32_t *__restrict out, bitpacking_width_t width)
static void Unpack (const uint32_t *__restrict in, uhugeint_t *__restrict out, bitpacking_width_t width)

Member Function Documentation

◆ Pack()

void duckdb::HugeIntPacker::Pack ( const uhugeint_t *__restrict in,
uint32_t *__restrict out,
bitpacking_width_t width )
static
396226 {
396227 D_ASSERT(width <= 128);
396228 switch (width) {
396229 case 0:
396230 break;
396231 case 32:
396232 PackDelta32(in, out);
396233 break;
396234 case 64:
396235 PackDelta64(in, out);
396236 break;
396237 case 96:
396238 PackDelta96(in, out);
396239 break;
396240 case 128:
396241 PackDelta128(in, out);
396242 break;
396243 default:
396244 for (idx_t oindex = 0; oindex < BitpackingPrimitives::BITPACKING_ALGORITHM_GROUP_SIZE - 1; ++oindex) {
396245 PackSingle(in[oindex], out, width, (width * oindex) % BitpackingPrimitives::BITPACKING_ALGORITHM_GROUP_SIZE,
396246 (uhugeint_t(1) << width) - 1);
396247 }
396248 PackLast(in, out, width);
396249 }
396250}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

◆ Unpack()

void duckdb::HugeIntPacker::Unpack ( const uint32_t *__restrict in,
uhugeint_t *__restrict out,
bitpacking_width_t width )
static
396252 {
396253 D_ASSERT(width <= 128);
396254 switch (width) {
396255 case 0:
396256 UnpackDelta0(in, out);
396257 break;
396258 case 32:
396259 UnpackDelta32(in, out);
396260 break;
396261 case 64:
396262 UnpackDelta64(in, out);
396263 break;
396264 case 96:
396265 UnpackDelta96(in, out);
396266 break;
396267 case 128:
396268 UnpackDelta128(in, out);
396269 break;
396270 default:
396271 for (idx_t oindex = 0; oindex < BitpackingPrimitives::BITPACKING_ALGORITHM_GROUP_SIZE - 1; ++oindex) {
396272 UnpackSingle(in, out + oindex, width,
396273 (width * oindex) % BitpackingPrimitives::BITPACKING_ALGORITHM_GROUP_SIZE);
396274 }
396275 UnpackLast(in, out, width);
396276 }
396277}

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