Module bits

Module bits 

Source
Expand description

Bit packing and pointer alignment utilities that make it easier to fit additional state into an Atom<T>

Structs§

Align8
A wrapper around an instance of T that is aligned on an eight byte boundary. This allows FlagPtr to steal the bottom three bits of pointers to instances of T without worrying about T’s alignment requirements.
FlagPtr
A packed pointer type that steals some bits to make room for a 3-bit flag
FlagU32
Bottom bit is the flag; you get 31 bits for val.
FlagU64
Bottom bit is the flag; you get 63 bits for val.