MCPcopy Create free account
hub / github.com/comaps/comaps / BitwiseSplit

Function BitwiseSplit

libs/base/bits.hpp:80–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80constexpr void BitwiseSplit(uint64_t v, uint32_t & x, uint32_t & y)
81{
82 uint64_t unshuffle = PerfectUnshuffle(v);
83 x = static_cast<uint32_t>(unshuffle);
84 y = static_cast<uint32_t>(unshuffle >> 32);
85}
86
87// Returns 1 if bit is set and 0 otherwise.
88inline uint8_t GetBit(void const * p, uint32_t offset)

Callers 4

DecodePointDeltaFromUintFunction · 0.85
Uint64ToPointUObsoleteFunction · 0.85
XYMethod · 0.85

Calls 1

PerfectUnshuffleFunction · 0.85

Tested by

no test coverage detected