mirror of
https://github.com/hashcat/hashcat
synced 2024-12-27 05:13:45 +01:00
Help some compiler with 64 bit constants
This commit is contained in:
parent
cf4cee2f2f
commit
3a5544a554
@ -812,14 +812,14 @@ DECLSPEC u64 hc_swap64_S (const u64 v)
|
|||||||
#ifdef USE_SWIZZLE
|
#ifdef USE_SWIZZLE
|
||||||
r = as_ulong (as_uchar8 (v).s76543210);
|
r = as_ulong (as_uchar8 (v).s76543210);
|
||||||
#else
|
#else
|
||||||
r = ((v & 0xff00000000000000ULL) >> 56)
|
r = ((v & (u64) 0xff00000000000000ULL) >> 56)
|
||||||
| ((v & 0x00ff000000000000ULL) >> 40)
|
| ((v & (u64) 0x00ff000000000000ULL) >> 40)
|
||||||
| ((v & 0x0000ff0000000000ULL) >> 24)
|
| ((v & (u64) 0x0000ff0000000000ULL) >> 24)
|
||||||
| ((v & 0x000000ff00000000ULL) >> 8)
|
| ((v & (u64) 0x000000ff00000000ULL) >> 8)
|
||||||
| ((v & 0x00000000ff000000ULL) << 8)
|
| ((v & (u64) 0x00000000ff000000ULL) << 8)
|
||||||
| ((v & 0x0000000000ff0000ULL) << 24)
|
| ((v & (u64) 0x0000000000ff0000ULL) << 24)
|
||||||
| ((v & 0x000000000000ff00ULL) << 40)
|
| ((v & (u64) 0x000000000000ff00ULL) << 40)
|
||||||
| ((v & 0x00000000000000ffULL) << 56);
|
| ((v & (u64) 0x00000000000000ffULL) << 56);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -153,9 +153,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef IS_OPENCL
|
#ifdef IS_OPENCL
|
||||||
#define USE_BITSELECT
|
//#define USE_BITSELECT
|
||||||
#define USE_ROTATE
|
//#define USE_ROTATE
|
||||||
#define USE_SWIZZLE
|
//#define USE_SWIZZLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user