Re: [PATCH 03/17] crypto: Assume blocksize is a power of 2

2020-08-17 Thread Daniel P . Berrangé
On Wed, Aug 12, 2020 at 08:25:23PM -0700, Richard Henderson wrote: > The check in the encode/decode path using full division has a > noticeable amount of overhead. By asserting the blocksize is > a power of 2, we can reduce this check to a mask. > > Signed-off-by: Richard Henderson > --- > cryp

[PATCH 03/17] crypto: Assume blocksize is a power of 2

2020-08-12 Thread Richard Henderson
The check in the encode/decode path using full division has a noticeable amount of overhead. By asserting the blocksize is a power of 2, we can reduce this check to a mask. Signed-off-by: Richard Henderson --- crypto/cipher-builtin.c | 4 ++-- crypto/cipher-gcrypt.c | 5 +++-- crypto/cipher-ne