mirror of https://github.com/hashcat/hashcat
Fix uint4 rotate in scrypt based kernels for CUDA
This commit is contained in:
parent
be8f29ca39
commit
ce20a5ab6b
|
@ -36,7 +36,7 @@ inline __device__ uint4 operator ^= ( uint4 &a, const uint4 b) {
|
||||||
|
|
||||||
inline __device__ uint4 rotate (const uint4 a, const int n)
|
inline __device__ uint4 rotate (const uint4 a, const int n)
|
||||||
{
|
{
|
||||||
return ((a >> n) | ((a >> (32 - n))));
|
return ((a << n) | ((a >> (32 - n))));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue