add fallback for missing __builtin_bswapXX()
commit657ea654866b18a368b220bba272b17369b78fe4
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Mon, 19 Jun 2017 20:47:24 +0000 (19 22:47 +0200)
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Wed, 21 Jun 2017 09:28:40 +0000 (21 11:28 +0200)
tree501c1985a94b8912bad8dcf752d304629b1cce34
parent852801f8b966407544326cd1c485f9bc7681a2e6
add fallback for missing __builtin_bswapXX()

Older version of GCC (or clang) or some other compilers
doesn't support the __builtin_bswap{16,32,64)().

Provides a fallback for them.

Note: this patch allow the testsuite to run successfully on openbsd
      (its installed compiler is based on GCC 4.2).

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
builtin.c
compat/bswap.h [new file with mode: 0644]