(no title)
Findecanor | 8 days ago
Attempting to get consistent results from floating-point code is another rabbit hole. GCC and clang have various flags for "fast math" which can enable different optimisations that reduce precision.
Before SSE, fp on x86 was done by the "x87" FPU which always had 80-bit precision, even if the type in the source code was 32 or 64 bits — and it used to be accepted to sometimes get more precision than asked for. Java got its "strictfp" mode mainly because of x87.
measurablefunc|8 days ago
¹https://cppreference.com/w/cpp/language/multithread.html
Findecanor|8 days ago
wakawaka28|7 days ago