diff --git a/cuda_helper.h b/cuda_helper.h index 8eb46f3ba2..a3e10197f1 100644 --- a/cuda_helper.h +++ b/cuda_helper.h @@ -519,8 +519,8 @@ __device__ __inline__ uint2 ROR2(const uint2 v, const int n) } else { - result.y = ((v.x >> (n - 32)) | (v.y << (32 - n))); - result.x = ((v.y >> (n - 32)) | (v.x << (32 - n))); + result.y = ((v.x >> (n - 32)) | (v.y << (64 - n))); + result.x = ((v.y >> (n - 32)) | (v.x << (64 - n))); } return result; }