DxLibEx
copysign.hpp File Reference
#include "dxlibex/config/defines.h"
#include <cmath>
#include "dxlibex/math/isnan.hpp"
#include <type_traits>
#include <limits>
#include "dxlibex/type_traits/float_promote.hpp"
Include dependency graph for copysign.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 dxle
 
 dxle::math
 
 dxle::math::detail
 

Functions

template<typename FloatType >
DXLE_CONSTEXPR bool dxle::math::detail::broken_signbit (FloatType x) DXLE_NOEXCEPT_OR_NOTHROW
 
template<typename FloatType , enable_if_t< std::is_floating_point< FloatType >::value, std::nullptr_t > = nullptr>
DXLE_CONSTEXPR FloatType dxle::math::copysign (FloatType x, FloatType y) DXLE_NOEXCEPT_OR_NOTHROW
 
template<typename ArithmeticType1 , typename ArithmeticType2 , enable_if_t< std::is_arithmetic< ArithmeticType1 >::value &&std::is_arithmetic< ArithmeticType2 >::value, std::nullptr_t > = nullptr>
DXLE_CONSTEXPR dxle::float_promote_t< ArithmeticType1, ArithmeticType2 > dxle::math::copysign (ArithmeticType1 x, ArithmeticType2 y) DXLE_NOEXCEPT_OR_NOTHROW