News for hackers. Stuff that matters.
Re:High Performance Correctly Rounded Math Libraries for 32-... by thxg on Friday August 27, 2021 @03:28AM (#28325240)
Code using "long double" on x86_64 will compile to x87 instructions (at least with GCC on Linux).

This can be triggered unintentionally. For example, string-to-double conversions in Boost use long doubles.

(I have been bitten by that when using valgrind: Valgrind emulates x87 80-bit registers using 64-bit doubles. As a result, some Boost-using code will have a different behavior under valgrind.)

There are no comments on this comment yet.