Simple-Utility v2.3.1
Loading...
Searching...
No Matches
math.hpp File Reference
#include <cmath>
#include <concepts>
Include dependency graph for math.hpp:

Go to the source code of this file.

Classes

struct  sl::math::remquo_result< T >
 Result type for the remquo operation. More...
 
struct  sl::math::frexp_result< T >
 Result type for the frexp operation. More...
 
struct  sl::math::modf_result< T >
 Result type for the modf operation. More...
 

Namespaces

namespace  sl
 
namespace  sl::math
 

Macros

#define SL_CONSTEXPR_MATH
 

Functions

template<class T >
 sl::math::remquo_result (T, int) -> remquo_result< T >
 Manual deduction guide for the remquo_result type.
 
template<class T >
 sl::math::frexp_result (T, int) -> frexp_result< T >
 Manual deduction guide for the frexp_result type.
 

Variables

constexpr auto sl::math::remquo
 Computes the floating-point remainder of the division operation x/y. Additionally, the sign and at least the three of the last bits of x/y will be determined, sufficient to determine the octant of the result within a period.
 
constexpr auto sl::math::frexp
 Decomposes given floating point value into a normalized fraction and an integral power of two.
 
constexpr auto sl::math::modf
 Decomposes given floating point value into integral and fractional parts, each having the same type and sign as the original value.
 

Macro Definition Documentation

◆ SL_CONSTEXPR_MATH

#define SL_CONSTEXPR_MATH