Search String: Display: Description: Sort:

Results:

References: [ +subject:/^(?:^\s*(re|sv|fwd|fw)[\[\]\d]*[:>-]+\s*)*\[PATCH\s+v1\s+3\/5\]\s+treewide\:\s+use\s+get_random_u32\(\)\s+when\s+possible\s*$/: 5 ]

Total 5 documents matching your query.

1. Re: [PATCH v1 3/5] treewide: use get_random_u32() when possible (score: 1)
Author: Joe Perches <joe@xxxxxxxxxxx>
Date: Wed, 12 Oct 2022 18:37:11 -0700
True, more or less. It's more a question for the reader. True. Right. True, it's effectively the same as the upper 29 bits are random anyway and the bottom 3 bits are always set. Likely. And it was a
/html/lvs-devel/2022-10/msg00016.html (19,027 bytes)

2. RE: [PATCH v1 3/5] treewide: use get_random_u32() when possible (score: 1)
Author: David Laight <David.Laight@xxxxxxxxxx>
Date: Wed, 12 Oct 2022 21:29:02 +0000
That makes no difference - the compiler will generate the same code. The real question is WTF is the code doing? The '& ~7u' clears the bottom 3 bits. The '- 1' then sets the bottom 3 bits and decrem
/html/lvs-devel/2022-10/msg00015.html (18,419 bytes)

3. Re: [PATCH v1 3/5] treewide: use get_random_u32() when possible (score: 1)
Author: Joe Perches <joe@xxxxxxxxxxx>
Date: Wed, 12 Oct 2022 12:16:53 -0700
[] [] trivia: There are somewhat odd size mismatches here. I had to think a tiny bit if random() returned a value from 0 to 7 and was promoted to a 64 bit value then truncated to 32 bit. Perhaps thes
/html/lvs-devel/2022-10/msg00014.html (14,100 bytes)

4. Re: [PATCH v1 3/5] treewide: use get_random_u32() when possible (score: 1)
Author: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Date: Thu, 6 Oct 2022 16:20:31 +0300
... Shouldn't the two first 7s to be 3s? ... We have some 24-bit APIs (and 48-bit) already in kernel, why not to have get_random_u24() ? -- With Best Regards, Andy Shevchenko
/html/lvs-devel/2022-10/msg00006.html (13,218 bytes)

5. Re: [PATCH v1 3/5] treewide: use get_random_u32() when possible (score: 1)
Author: Jason Gunthorpe <jgg@xxxxxxxx>
Date: Thu, 6 Oct 2022 10:15:35 -0300
vs just asking directly for a 24 bit number? Jason
/html/lvs-devel/2022-10/msg00005.html (13,262 bytes)


This search system is powered by Namazu