[PATCH] Use memset for short constant length wipememory2

Jacob Bachmeyer jcb62281 at gmail.com
Sun Mar 28 04:05:20 CEST 2021


Jussi Kivilinna wrote:
> Use of memset allows better code generation by compiler -
> for example, use of vector registers for memory clearing.
>   


Are you sure that this is a good idea?  The comment indicates that the 
original purpose of not using memset was to ensure that a compiler 
cannot optimize the call away.


-- Jacob



More information about the Gcrypt-devel mailing list