mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-24 07:28:10 +00:00
Fix travis-ci error caused by missing __builtin_bswap16()
This commit is contained in:
parent
53d467abf8
commit
ec0f074f2d
@ -45,7 +45,10 @@ u64 rotr64 (const u64 a, const u64 n)
|
||||
|
||||
u16 byte_swap_16 (const u16 n)
|
||||
{
|
||||
#if defined (_MSC_VER)
|
||||
#if defined(__APPLE__)
|
||||
return (n & 0xff00) >> 8
|
||||
| (n & 0x00ff) << 8;
|
||||
#elif defined (_MSC_VER)
|
||||
return _byteswap_ushort (n);
|
||||
#elif defined (__clang__) || defined (__GNUC__)
|
||||
return __builtin_bswap16 (n);
|
||||
|
Loading…
Reference in New Issue
Block a user