[PATCH v9] seedrng: import SeedRNG utility for kernel RNG seed files
David Laight
David.Laight at ACULAB.COM
Fri Apr 29 16:20:43 UTC 2022
From: Denys Vlasenko
> Sent: 29 April 2022 17:17
>
> On Wed, Apr 27, 2022 at 6:55 PM Jason A. Donenfeld <Jason at zx2c4.com> wrote:
> > On Wed, Apr 27, 2022 at 06:15:50PM +0200, Denys Vlasenko wrote:
> > > Can we replace all [s]size_t's with ints/unsigneds? We do not expect
> > > random pools anywhere near 4 gigabytes...
> >
> > Probably that's fine. Is the advantage to tossing out consistent types
> > worth it though? Does this actually save space? Since [s]size_t is
> > usually the word size, won't codegen not really change much?
>
> For example, on x86-64, 32-bit insns are often shorter.
Provided you remember to use 'unsigned int' for array subscripts.
Otherwise you can get a lot of 'sign extend' instructions.
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
More information about the busybox
mailing list