Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Namespaces | Functions
int_math.hpp File Reference
#include <cstdint>
#include <cmath>
#include <jau/int_types.hpp>
Include dependency graph for int_math.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 jau
 

Functions

template<typename T >
constexpr snsize_t jau::sign (const T x) noexcept
 Returns the value of the sign function. More...
 
template<typename T >
constexpr T jau::invert_sign (const T x) noexcept
 Safely inverts the sign of an integral number. More...
 
template<typename T >
constexpr T jau::abs (const T x) noexcept
 Returns the absolute value of an integral number. More...
 
template<typename T >
constexpr nsize_t jau::digits10 (const T x, const snsize_t x_sign, const bool sign_is_digit=true) noexcept
 Returns the number of decimal digits of the given integral value number using std::log10<T>(). More...
 
template<typename T >
constexpr nsize_t jau::digits10 (const T x, const bool sign_is_digit=true) noexcept
 Returns the number of decimal digits of the given integral value number using std::log10<T>(). More...