std::copysign, std::copysignf, std::copysignl
From cppreference.com
| Defined in header <cmath>
|
||
float copysign ( float mag, float sgn );
double copysign ( double mag, double sgn );
long double copysign ( long double mag, long double sgn );
|
(1) | (until C++23) |
constexpr /*floating-point-type*/
copysign ( /*floating-point-type*/ mag,
/*floating-point-type*/ sgn );
|
(since C++23) | |
float copysignf( float mag, float sgn );
|
(2) | (since C++11) (constexpr since C++23) |
long double copysignl( long double mag, long double sgn );
|
(3) | (since C++11) (constexpr since C++23) |
| SIMD overload (since C++26) |