FixMath
Functions
FixMathPrivate Namespace Reference

Functions

template<typename T >
constexpr T shiftR (T x, int8_t bits)
 
constexpr int8_t sBitsToBytes (int8_t N)
 
constexpr int8_t uBitsToBytes (int8_t N)
 
template<typename T >
constexpr T FM_max (T N1, T N2)
 
template<typename T >
constexpr T FM_min (T N1, T N2)
 
constexpr uint64_t sFullRange (int8_t N)
 
constexpr uint64_t uFullRange (int8_t N)
 
constexpr uint64_t rangeAdd (byte NF, byte _NF, uint64_t RANGE, uint64_t _RANGE)
 
constexpr uint64_t rangeShift (int8_t N, int8_t SH, uint64_t RANGE)
 
void static_autotests ()
 

Detailed Description

constexpr functions used internally.

This file implements a few compile-time checks to verify the implementation is correct.