NDEVR
API Documentation
MagicDiv< D >

Precomputes a magic multiplier for fast compile-time division by the constant D, avoiding expensive runtime division instructions. More...

Static Public Attributes

static constexpr unsigned __int128 high_bit = (unsigned __int128)1 << 64
 High bit used for computing the magic constant.
static constexpr uint08 m = uint08((high_bit + (D - 1)) / D)
 Magic multiplier for GCC/Clang 128-bit integer path.

Detailed Description

template<uint08 D>
struct MagicDiv< D >

Precomputes a magic multiplier for fast compile-time division by the constant D, avoiding expensive runtime division instructions.


Definition at line 453 of file MemoryManager.h.


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