summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-10-04 12:49:02 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-10-04 12:49:02 +0900
commitfe25608edd6fc531b5c865dd511cd438bea2e897 (patch)
tree647483785a7532896b48f1884e122194ab69f91a /configure.ac
parentd52f825de60cf8d168aa6899253b6edb862d135b (diff)
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.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 6ca409e..77972b8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -792,6 +792,10 @@ AC_DEFINE_IF([HAVE_DIRENT_H], [test "x${have_dirent}" = "xyes"],
792### Checks for structures 792### Checks for structures
793 793
794### Checks for compiler characteristics 794### Checks for compiler characteristics
795AC_CHECK_HEADER([byteswap.h], [have_byteswap="yes"], [have_byteswap="no"])
796
797EINA_CONFIG([HAVE_BYTESWAP_H], [test "x${have_byteswap}" = "xyes"])
798
795EFL_CHECK_GCC_BUILTIN([bswap16], [HAVE_BSWAP16]) 799EFL_CHECK_GCC_BUILTIN([bswap16], [HAVE_BSWAP16])
796EFL_CHECK_GCC_BUILTIN([bswap32], [HAVE_BSWAP32]) 800EFL_CHECK_GCC_BUILTIN([bswap32], [HAVE_BSWAP32])
797EFL_CHECK_GCC_BUILTIN([bswap64], [HAVE_BSWAP64]) 801EFL_CHECK_GCC_BUILTIN([bswap64], [HAVE_BSWAP64])