Fix uint4 rotate in scrypt based kernels for CUDA

This commit is contained in:
Jens Steube 2019-05-09 16:55:48 +02:00
parent be8f29ca39
commit ce20a5ab6b
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ inline __device__ uint4 operator ^= ( uint4 &a, const uint4 b) {
inline __device__ uint4 rotate (const uint4 a, const int n)
{
return ((a >> n) | ((a >> (32 - n))));
return ((a << n) | ((a >> (32 - n))));
}
#endif