On 6/21/20 2:28 PM, Emilio G. Cota wrote:
>> -if (info->r < resize_threshold) {
>> +if (info->r <= resize_threshold) {
>> size_t size = info->resize_down ? resize_min : resize_max;
>> bool resized;
>
> This works, but only because info->r cannot be 0 since xorshift never
Cc'ing Philippe, who authored the fix for this in May as I mention below.
Emilio
On Sun, Jun 21, 2020 at 17:28:25 -0400, Emilio G. Cota wrote:
> On Sat, Jun 20, 2020 at 14:45:51 -0700, Richard Henderson wrote:
> > Use <= comparisons vs the threshold, so that threshold UINT64_MAX
>
On Sat, Jun 20, 2020 at 14:45:51 -0700, Richard Henderson wrote:
> Use <= comparisons vs the threshold, so that threshold UINT64_MAX
> is always true, corresponding to rate 1.0 being unity. Simplify
> do_threshold scaling to 2**64, with a special case for 1.0.
>
> Cc: Emilio G. Cota
> Signed-off
Use <= comparisons vs the threshold, so that threshold UINT64_MAX
is always true, corresponding to rate 1.0 being unity. Simplify
do_threshold scaling to 2**64, with a special case for 1.0.
Cc: Emilio G. Cota
Signed-off-by: Richard Henderson
---
tests/qht-bench.c | 15 +++
1 file c