Re: [PATCH v2 2/2] tests/qht-bench: Adjust threshold computation

2020-06-26 Thread Philippe Mathieu-Daudé
On 6/26/20 10:09 PM, Richard Henderson wrote: > In 06c4cc3660b3, we split the multiplication in two parts to avoid > a clang warning. But because double still rounds to 53 bits, this > does not provide additional precision beyond multiplication by > nextafter(0x1p64, 0), the largest representable

[PATCH v2 2/2] tests/qht-bench: Adjust threshold computation

2020-06-26 Thread Richard Henderson
In 06c4cc3660b3, we split the multiplication in two parts to avoid a clang warning. But because double still rounds to 53 bits, this does not provide additional precision beyond multiplication by nextafter(0x1p64, 0), the largest representable value smaller than 2**64. However, since we have elim