diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-12-03 14:11:47 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2014-12-20 01:41:00 +0100 |
commit | a31b75b766b87d0210ed174f587aee33ad639f9b (patch) | |
tree | fb8d188277a7fa47c433d9ace6593837e2954430 /src/network | |
parent | c70658d301e274c3aaa1fb6cebe2a5e56db12779 (diff) |
Use the GCC and Clang __builtin_bswap intrinsics in qbswap
Glibc will use the intrinsics for 32- and 64-bit, but didn't for 16-bit
(probably because GCC didn't document it until version 4.8), so this
commit will make us access the intrinsics directly the intrisincs for
all type sizes.
Additionally, this will get us access to the compiler intrisics even
without Glibc, such as when building against uclibc or Bionic.
Another benefit is that both Clang and ICC will use the MOVBE
instruction on Atom and Haswell architectures.
Change-Id: I39d1891f479887d719d69ebe4ac92ac9bfeda8af
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
Diffstat (limited to 'src/network')
0 files changed, 0 insertions, 0 deletions