CNL  2.0.2 (development)
Compositional Numeric Library
extras.h File Reference

supplemental definitions related to the cnl::scaled_integer type; definitions that straddle two homes, e.g. scaled_integer and cmath, traits or limits; included from cnl/scaled_integer.h - do not include directly! More...

#include "../cmath/abs.h"
#include "../config.h"
#include "../num_traits/width.h"
#include "definition.h"
#include "to_chars.h"
#include <cmath>

Go to the source code of this file.

Namespaces

 cnl
 compositional numeric library
 

Functions

template<typename Rep , class Scale >
constexpr auto cnl::abs (scaled_integer< Rep, Scale > const &x) noexcept -> decltype(-x)
 absolute value More...
 

Detailed Description

supplemental definitions related to the cnl::scaled_integer type; definitions that straddle two homes, e.g. scaled_integer and cmath, traits or limits; included from cnl/scaled_integer.h - do not include directly!