eina: handle more compiler strangeness for bswap.
authorCedric Bail <cedric.bail@samsung.com>
Fri, 4 Oct 2013 03:49:02 +0000 (12:49 +0900)
committerCedric Bail <cedric.bail@samsung.com>
Fri, 4 Oct 2013 03:49:02 +0000 (12:49 +0900)
commitfe25608edd6fc531b5c865dd511cd438bea2e897
tree647483785a7532896b48f1884e122194ab69f91a
parentd52f825de60cf8d168aa6899253b6edb862d135b
eina: handle more compiler strangeness for bswap.

So current order is :
- __builtin_bswap*() for compiler that provide it
- _byteswap_*() for MSVC
- bswap_*() for older Linux and some BSD
- own C code when everything else fall appart.

The reason for this order is that the builtin will always generate
the best assembly possible. On my system bswap_*() are not changing
in all version to the best solution as they are almost equivalent to
the C macro.
configure.ac
src/lib/eina/eina_config.h.in
src/lib/eina/eina_inline_cpu.x