[PATCH v2 1/2] bufhelp: use one-byte aligned type for unaligned memory accesses

Jussi Kivilinna jussi.kivilinna at iki.fi
Wed Mar 11 18:14:06 CET 2015


On 11.03.2015 19:04, Jussi Kivilinna wrote:
> * cipher/bufhelp.h (BUFHELP_FAST_UNALIGNED_ACCESS): Enable only when
> HAVE_GCC_ATTRIBUTE_PACKED and HAVE_GCC_ATTRIBUTE_ALIGNED are defined.
> (bufhelp_int_t): New type.
> (buf_cpy, buf_xor, buf_xor_1, buf_xor_2dst, buf_xor_n_copy_2): Use
> 'bufhelp_int_t'.

Ah, missing changelog for buf_(get|put)_(le|be)(32|64).

-Jussi

> * configure.ac (gcry_cv_gcc_attribute_packed): New.
> --
> 
> Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
> ---
>  cipher/bufhelp.h |  147 +++++++++++++++++++++++++++++++++---------------------
>  configure.ac     |   18 +++++++
>  2 files changed, 108 insertions(+), 57 deletions(-)
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 648 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20150311/e319b0fb/attachment.sig>


More information about the Gcrypt-devel mailing list