Niels Dekker b11f817bcf Avoid undefined behavior by union type punning in float_to_bfloat16_rtne
Use `numext::as_uint`, instead of union based type punning, to avoid undefined behavior.
See also C++ Core Guidelines: "Don't use a union for type punning"
https://github.com/isocpp/CppCoreGuidelines/blob/v0.8/CppCoreGuidelines.md#c183-dont-use-a-union-for-type-punning

`numext::as_uint` was suggested by David Tellenbach
2020-07-14 19:55:20 +02:00
..
2018-11-09 11:35:48 +01:00
2017-02-28 14:00:15 -08:00
2018-03-11 10:01:44 -04:00
2018-06-07 15:45:24 +02:00
2019-01-17 18:27:49 +01:00