Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
Divide.hpp File Reference
#include <AH/STL/cstdint>
#include <AH/STL/type_traits>
#include <AH/Settings/NamespaceSettings.hpp>
#include <stddef.h>
+ Include dependency graph for Divide.hpp:

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...
 

Namespaces

namespace  AH
 PrintStream library
 

Functions

template<size_t N, class T >
T round_div (T val)
 Divide a number by N and round the result.