cxxomfort
rel.20210622
Simple backports for C++ - http://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
Implements some static (compile-time) math functions for C++. More...
Classes | |
struct | static_sign_s< i > |
Sign of a intmax_t . More... | |
struct | static_sign_u< i > |
Sign of a uintmax_t . More... | |
struct | static_abs< T, u > |
Defines the member value with one of the values [-u, 0, +u] depending on the sign of u . More... | |
struct | static_abs_s< i > |
Absolute value of a intmax_t . More... | |
struct | static_abs_u< i > |
Absolute value of a uintmax_t . More... | |
struct | static_clamp< T, t, m, M > |
Defines the member value which is t, constrained to the range [m,M] . More... | |
struct | static_minmax2< T, t0, t1 > |
Defines the member values Tmin , Tmax with the minimum or maximum value between t0 and t1 . More... | |
struct | midpoint< Int, a, b > |
Defines the member value , with value of type Int that is the numeric value at the middle between a and b. More... | |
struct | static_intlog< N, Ba > |
Provides the member value with the value of the logarithm of N in base Ba . More... | |
Namespaces | |
cxxomfort | |
Namespace of the cxxomfort library. | |
cxxomfort::st_math | |
Namespace for compile-time static (template based) arithmetic operations. | |
Implements some static (compile-time) math functions for C++.