bswap: Don't rely on HOST_LONG_BITS

This is not always defined in all places qemu/bswap.h is used.
If we include qemu-common.h to get it, we create an include loop.
This resolves a build problem on any big-endian host like ppc64.

Signed-off-by: Richard Henderson <rth@twiddle.net>
configure: Fix build with XFree

Signed-off-by: Richard Henderson <rth@twiddle.net>
target-i386: Use movcond to implement shift flags.

With this being all straight-line code, it can get deleted
when the cc variables die.

Signed-off-by: Richard Henderson <rth@twiddle.net>
target-i386: Use movcond to implement rotate flags.

With this being all straight-line code, it can get deleted
when the cc variables die.

Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg-ppc64: Implement rotates

Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg-ppc64: Implement bswap16 and bswap32

Largely copied from the ppc32 port.

Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg-ppc64: Implement bswap64

Signed-off-by: Richard Henderson <rth@twiddle.net>