Am 09.10.2017 um 23:58 schrieb Richard Henderson:
> On 10/07/2017 08:55 AM, Stefan Weil wrote:
>> +        char *addr = memset_args->addr;
>> +        uint64_t numpages = memset_args->numpages;
>> +        uint64_t hpagesize = memset_args->hpagesize;
>> +        unsigned i;
> 
> Match numpages properly while you're at it?
> 
> 
> r~

Do you mean using uint64_t for the loop variable i?

Sure. I only hesitated to do that because it is so huge.
A 64 bit loop variable looks strange, and the loop would
take some time if it really uses that range. :-)
Feel free to change that if you apply the patch.

Or did you think of using size_t for numpages?
The current code uses both size_t and uint64_t
which could be cleaned as well, maybe even replacing
both by uint32_t (or do we expect more pages?).

Stefan

Reply via email to