]> git.proxmox.com Git - mirror_qemu.git/commit - bsd-user/elfload.c
bsd-user: elfload: simplify bswap a bit.
authorWarner Losh <imp@bsdimp.com>
Tue, 3 Aug 2021 04:59:12 +0000 (22:59 -0600)
committerWarner Losh <imp@bsdimp.com>
Fri, 10 Sep 2021 20:13:06 +0000 (14:13 -0600)
commitb62f790cfb2621ed1d4bd6ef6661fc68bab1e1ed
tree247435ab5153712f6e8bfee82022e540ed4bdcc1
parentd8fcdad2d663e3d7d0d87ab428f6ac960b5990b9
bsd-user: elfload: simplify bswap a bit.

Reduce the number of ifdefs by always calling the swapping routine, but
making them empty when swapping isn't needed.

Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
bsd-user/elfload.c