mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 16:18:09 +00:00
Fix algorithms based on 64 bit datatypes for older NV cards
This commit is contained in:
parent
f7b915775e
commit
b9ad26fa67
@ -282,6 +282,7 @@ static inline u32x rotl32 (const u32x a, const u32 n)
|
|||||||
return rotate (a, n);
|
return rotate (a, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CUDA_ARCH >= 350
|
||||||
static inline u64 rotr64 (const u64 a, const u32 n)
|
static inline u64 rotr64 (const u64 a, const u32 n)
|
||||||
{
|
{
|
||||||
u32 il;
|
u32 il;
|
||||||
@ -309,6 +310,12 @@ static inline u64 rotr64 (const u64 a, const u32 n)
|
|||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
static inline u64 rotr64 (const u64 a, const u32 n)
|
||||||
|
{
|
||||||
|
return rotate (a, (u64) 64 - n);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static inline u64 rotl64 (const u64 a, const u32 n)
|
static inline u64 rotl64 (const u64 a, const u32 n)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user