Thread (7 messages) 7 messages, 5 authors, 2021-03-24

Re: [PATCH net-next] net: ipa: avoid 64-bit modulus

From: Alex Elder <hidden>
Date: 2021-03-24 17:33:31
Also in: lkml

On 3/24/21 12:12 PM, David Laight wrote:
I think 'count' is also required to be a power of 2.
so you could have checked 'addr & (size - 1)'.
It is required to be, and that is checked elsewhere
(in gsi_channel_data_valid()).  And yes, size would
therefore be a power-of-2, and so your clever test
would be a simple test.

I'll take that into account when I implement the
fix.  Thanks for the suggestion.

					-Alex
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help