]> gitweb.factorcode.org Git - factor.git/commit
Revert "float_bits: cleaner way to cast between bits and float/double"
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 13 Feb 2022 20:56:04 +0000 (14:56 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 13 Feb 2022 20:57:07 +0000 (14:57 -0600)
commitd2a0c957b68ef2e3f033be057e11db37d400dbde
tree0632c7cdb86fac4ce79051b28d904f1ff19bb08a
parente030e1a62fbf273e353af1f15866f81e2db1284f
Revert "float_bits: cleaner way to cast between bits and float/double"

This reverts commit e030e1a62fbf273e353af1f15866f81e2db1284f.

Works but has warnings and is undefined behavior. Also doesn't fix
the issue with NAN: 123 setting the qnan bit.

Can safely use `bit_cast` with C++20 someday.
vm/float_bits.hpp