]> git.proxmox.com Git - qemu.git/commit
bswap: Tidy base definitions of bswapN
authorRichard Henderson <rth@twiddle.net>
Sat, 5 Jan 2013 00:39:27 +0000 (16:39 -0800)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 12 Jan 2013 12:23:26 +0000 (12:23 +0000)
commitcdfe2851c6c33c133bd90c2643cb0486c0f5b325
tree405bf23709e968853f6046e564a2e37b4e161276
parentfedb88bd32d331131d77a9b567d12e682fd102ac
bswap: Tidy base definitions of bswapN

Move the bswap_N -> bswapN wrappers inside CONFIG_BYTESWAP_H.

Change the ultimate fallback defintions from macros to inline functions.
The proper types recieved by the function arguments means we can remove
unnecessary casts, making the code more readable.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
include/qemu/bswap.h