remove return value from HOST_c2l/l2c macros
authorbcook <bcook@openbsd.org>
Mon, 18 Aug 2014 19:11:48 +0000 (19:11 +0000)
committerbcook <bcook@openbsd.org>
Mon, 18 Aug 2014 19:11:48 +0000 (19:11 +0000)
commitca2cdccc63d8b67ecd9ac0a8eeb58b6326d70abf
tree4c74fb1c3fb3d180b3430f4ac3c6f4ce50214e0c
parentf3fcf042f8e9be492878aea885d116bc50380b42
remove return value from HOST_c2l/l2c macros

These macros and asm inlines simulate a function returning a value, but
nothing ever uses this return value. Remove the pseudo-returns and
(void) casts discarding the unused values.

This, maybe unsurprisingly, speeds things up a bit. It also removes the
GCC 4.9 warnings about unused values.

ok miod@ deraadt@
16 files changed:
lib/libcrypto/md32_common.h
lib/libcrypto/md4/md4_dgst.c
lib/libcrypto/md4/md4_locl.h
lib/libcrypto/md5/md5_locl.h
lib/libcrypto/ripemd/rmd_dgst.c
lib/libcrypto/ripemd/rmd_locl.h
lib/libcrypto/sha/sha256.c
lib/libcrypto/sha/sha_locl.h
lib/libssl/src/crypto/md32_common.h
lib/libssl/src/crypto/md4/md4_dgst.c
lib/libssl/src/crypto/md4/md4_locl.h
lib/libssl/src/crypto/md5/md5_locl.h
lib/libssl/src/crypto/ripemd/rmd_dgst.c
lib/libssl/src/crypto/ripemd/rmd_locl.h
lib/libssl/src/crypto/sha/sha256.c
lib/libssl/src/crypto/sha/sha_locl.h