qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Daniel P . Berrangé
Subject: Re: [PATCH 03/17] crypto: Assume blocksize is a power of 2
Date: Mon, 17 Aug 2020 17:51:23 +0100
User-agent: Mutt/1.14.5 (2020-06-23)

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 <richard.henderson@linaro.org>
> ---
>  crypto/cipher-builtin.c | 4 ++--
>  crypto/cipher-gcrypt.c  | 5 +++--
>  crypto/cipher-nettle.c  | 5 +++--
>  crypto/cipher.c         | 1 +
>  4 files changed, 9 insertions(+), 6 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




reply via email to

[Prev in Thread] Current Thread [Next in Thread]