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

Function Align8Ptr

libs/coding/succinct_mapper.hpp:25–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23{
24template <typename T>
25static T * Align8Ptr(T * ptr)
26{
27 uint64_t const value = (reinterpret_cast<uint64_t>(ptr) + 0x7) & 0xfffffffffffffff8;
28 return reinterpret_cast<T *>(value);
29}
30
31inline uint32_t ToAlign8(uint64_t written)
32{

Callers 4

operator()Method · 0.85
MapVisitorClass · 0.85
operator()Method · 0.85
ReverseMapVisitorClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected