Add UNLIKELY and LIKELY macros
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 28 Jan 2017 09:00:35 +0000 (11:00 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 4 Feb 2017 10:47:05 +0000 (12:47 +0200)
commit4b7451d3e8e7b87d8e407fbbd924ad5b13bd0f00
tree50f3d7860937c10a1862418d849d6ea8cd970fdf
parent37b537600f33fcf8e1c8dc2c658a142fbba44199
Add UNLIKELY and LIKELY macros

* src/g10lib.h (LIKELY, UNLIKELY): New.
(gcry_assert): Use LIKELY for assert check.
(fast_wipememory2_unaligned_head): Use UNLIKELY for unaligned
branching.
* cipher/bufhelp.h (buf_cpy, buf_xor, buf_xor_1, buf_xor_2dst)
(buf_xor_n_copy_2): Ditto.
--

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