diff options
| author | Richard Henderson | 2020-06-26 22:09:50 +0200 |
|---|---|---|
| committer | Alex Bennée | 2020-07-11 16:53:00 +0200 |
| commit | 78441c04ca4356e40620bbd24dffffdee3978a22 (patch) | |
| tree | 19f776f50ff859bf6e521b28278e1088d09606b1 /docs/devel | |
| parent | tests/qht-bench: Adjust testing rate by -1 (diff) | |
| download | qemu-78441c04ca4356e40620bbd24dffffdee3978a22.tar.gz qemu-78441c04ca4356e40620bbd24dffffdee3978a22.tar.xz qemu-78441c04ca4356e40620bbd24dffffdee3978a22.zip | |
tests/qht-bench: Adjust threshold computation
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 eliminated 1.0, mutiplying by 2**64 produces
a better distribution of input values to the output values.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200626200950.1015121-3-richard.henderson@linaro.org>
Diffstat (limited to 'docs/devel')
0 files changed, 0 insertions, 0 deletions
