bit_cast is constexpr.
On Thu, 18 Aug 2022, 03:25 Proton via Boost,
On Aug 17, 2022, at 4:11 PM, Gero Peterhoff via Boost < boost@lists.boost.org> wrote:
Hi, I just see that boost::math::ccmath::copysign doesn't work. https://godbolt.org/z/9af1ME9fT
cu Gero
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Gero,
The typical implementation of copysign and signbit involve type-punning which is not allowed in constexpr contexts. An example can be found here: https://android.googlesource.com/platform/bionic.git/+/brillo-m7-dev/libm/si.... Due to this limitation we do not provide support for signed zero or analyzing the sign of NAN.
Matt
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost