#include <AH/STL/cstdint>
#include <AH/STL/type_traits>
#include <AH/Settings/NamespaceSettings.hpp>
#include <AH/Settings/Warnings.hpp>
#include <stddef.h>
Go to the source code of this file.
Classes | |
struct | round_div_default< N, T > |
Divide by N using the default division operator, without explicit rounding This should be used for floating point types. More... | |
struct | round_div_unsigned_int< N, T > |
Divide an unsigned integer by N, rounding the result. More... | |
struct | round_div_signed_int< N, T > |
Divide a signed integer by N, rounding the result. More... | |
struct | round_div_int< N, T > |
Select the right rounding division operator, depending on whether T is a signed or unsigned integer. More... | |
struct | round_div_helper< N, T > |
Select the right rounding division operator, depending on whether T is an integer or not. More... | |
Functions | |
template<size_t N, class T > | |
T | round_div (T val) |
Divide a number by N and round the result. More... | |
T round_div | ( | T | val | ) |
Divide a number by N and round the result.
Uses different specializations for integers to implement efficient rounding.
Definition at line 57 of file Divide.hpp.