Take sign. See also:** Documentation for [std::copysign](https://en.cppreference.com/w/cpp/numeric/math/copysign). \param x value to change sign for \param y value to take sign from \return value equal to \a x in magnitude and to \a y in sign
| 4340 | /// \param y value to take sign from |
| 4341 | /// \return value equal to \a x in magnitude and to \a y in sign |
| 4342 | inline HALF_CONSTEXPR half copysign(half x, half y) { return half(detail::binary, x.data_^((x.data_^y.data_)&0x8000)); } |
| 4343 | |
| 4344 | /// \} |
| 4345 | /// \anchor classification |