commit | 686feb0e93184c9d2aeaa263c07cf2c62064a906 | [log] [tgz] |
---|---|---|
author | Cameron Gutman <aicommander@gmail.com> | Mon Jan 04 19:51:56 2021 -0600 |
committer | Cameron Gutman <aicommander@gmail.com> | Mon Jan 04 19:51:56 2021 -0600 |
tree | 263de0d8a4e14419e63ad5c2e844cd0cd01e2c58 | |
parent | 7630a795fc2d39ca52bd3f866f94ed5b0a49c4e4 [diff] |
Use Clang/GCC builtins for SDL byteswapping functions __builtin_bswap32/64 were introduced in GCC 4.3. __builtin_bswap16 was not available on x86 until GCC 4.8 due to a bug. __builtin_bswap32/64 were introduced in Clang 2.6. __builtin_bswap16 was introduced in Clang 3.2.