A C++ template library for embedded applications
Designed and maintained by
Aster Consulting Ltd

Constants

A set of compile time constants.

log

template <const size_t N, const size_t BASE> struct log;
Defines the member value as the log of N to base BASE.
Set to the integer below the ideal floating point value.

log2

template <const size_t N> struct log2;
Defines the member value as the log of N to base 2
Set to the integer below the ideal floating point value.

log10

template <const size_t N> struct log10;
Defines the member value as the log of N to base 10
Set to the integer below the ideal floating point value.

power

template <const size_t N, const size_t POWER> struct power;
Defines the member value as N raised to the power POWER.

sqrt

template <const size_t N, const size_t I = 1> struct sqrt;
Defines the member value as the largest integer that, when squared, is at less than or equal to N.

factorial

template <const size_t N> struct factorial;
Defines the member value as the Nth factorial.

fibbonacci

template <const size_t N> struct fibbonacci;
Defines the member value as the Nth in the Fibbonacci sequence
log.h / power.h / sqrt.h / factorial.h / fibbonacci.h