Skip to content

Commit

Permalink
Bug 1531244 - Use __buildint_bswap64 in GCC 4.3+, r=m_kato
Browse files Browse the repository at this point in the history
  • Loading branch information
martinthomson committed Apr 25, 2019
1 parent 88cb452 commit 29ee724
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/freebl/crypto_primitives.h
Expand Up @@ -40,7 +40,8 @@
#pragma intrinsic(_byteswap_uint64)
#define FREEBL_HTONLL(x) _byteswap_uint64(x)

#elif __has_builtin(__builtin_bswap64)
/* gcc doesn't have __has_builtin, but it does have __builtin_bswap64 */
#elif __has_builtin(__builtin_bswap64) || (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)))

#define FREEBL_HTONLL(x) __builtin_bswap64(x)

Expand Down

0 comments on commit 29ee724

Please sign in to comment.