History | View | Annotate | Download (8.9 kB)
bswap: fix compiler warning
The bswap functions use memcpy but the bswap.h header itself does not seem toinclude it in some configuration such as cross compiling for powerpc64on x86_64 machine.
The patch explicitly includes string.h.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>...
bswap: Fix width of swap in leul_to_cpu
The misnamed HOST_LONG_BITS is really HOST_POINTER_BITS. Here we'reexplicitly using an unsigned long, rather than uintptr_t, so it ismore correct to select the swap size via ULONG_MAX.
Acked-by: Andreas Färber <afaerber@suse.de>...
bswap: improve gluing
OpenBSD system compiler (gcc 4.2.1) has problems with concatenationof macro arguments in macro functions: CC aes.oIn file included from /src/qemu/include/qemu-common.h:126, from /src/qemu/aes.c:30:/src/qemu/include/qemu/bswap.h: In function 'leul_to_cpu':...
bswap: Rewrite cpu_to_<endian><type>u with {ld,st}<type>_<endian>_p
We've now optimized the ld/st versions; reuse that for the "legacy" versions. Always use inlines so that we get the type checking thatwe expect.
Signed-off-by: Richard Henderson <rth@twiddle.net>...
bswap: Rewrite all ld<type>_<endian>_p functions
Use the new host endian unaligned access functions instead ofopen coding byte-by-byte references. Remove assembly specialcases for i386 and ppc -- we've now exposed the operation tothe compiler sufficiently for these to be optimized automatically....
bswap: Add host endian unaligned access functions
Signed-off-by: Richard Henderson <rth@twiddle.net>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
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 removeunnecessary casts, making the code more readable....
fpu: move public header file to include/fpu
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
misc: move include files to include/qemu/