armv6 introduced opcodes for reversing words in registers. we can
authordlg <dlg@openbsd.org>
Sun, 11 Jan 2015 11:18:36 +0000 (11:18 +0000)
committerdlg <dlg@openbsd.org>
Sun, 11 Jan 2015 11:18:36 +0000 (11:18 +0000)
commit1bc80b1c64ec5122d5a34b5207a5d65625e7e54d
tree1e8ce7d8a72d1b5c5e02d5ee5e160778e2bfc7db
parent1201598913ece82e4c43203b527fb248f590703a
armv6 introduced opcodes for reversing words in registers. we can
use these on armv7 as a backend for byteswapping things that endian.h
provide.

i dunno if its faster, but it makes smaller code. saves 30k on
GENERIC-OMAP.

ok jsing@ bmercer@ jsg@
sys/arch/arm/include/endian.h