bwap: add qemu_bswap helper
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 14 Jan 2010 13:58:52 +0000 (15:58 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 14 Feb 2010 14:10:53 +0000 (16:10 +0200)
commit45b4413ef22d2ef31404b92809e9593ab9d3b09a
treeca1f43dec86460ebb9fac7231dfb738a93c9a62c
parent8dcc8079a8a81473ddfa150fd2bc70701ed4dafb
bwap: add qemu_bswap helper

add helper that can swap values of 4, 2, 1 bytes

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
bswap.h