wipememory: use one-byte aligned type for unaligned memory accesses
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 21 Mar 2015 11:01:38 +0000 (13:01 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 21 Mar 2015 11:01:38 +0000 (13:01 +0200)
commita06fbc0d1e98eb1218eff55ad2f37d471e4f33b2
tree98fc36154e9a5916fb4ba4bd867083f4a9478292
parent92fa5f16d69707e302c0f85b2e5e80af8dc037f1
wipememory: use one-byte aligned type for unaligned memory accesses

* src/g10lib.h (fast_wipememory2_unaligned_head): Enable unaligned
access only when HAVE_GCC_ATTRIBUTE_PACKED and
HAVE_GCC_ATTRIBUTE_ALIGNED defined.
(fast_wipememory_t): New.
(fast_wipememory2): Use 'fast_wipememory_t'.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
src/g10lib.h