Skip to content

Commit

Permalink
fix ROTL64 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausT committed Apr 12, 2016
1 parent d0b3eb8 commit 01bb282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cuda_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ uint64_t ROTL64(const uint64_t x, const int offset)
#else
/* host */
#if defined _MSC_VER && !defined __CUDA_ARCH__
#define ROTL64(x, n) _rotr64(x, n)
#define ROTL64(x, n) _rotl64(x, n)
#else
#define ROTL64(x, n) (((x) << (n)) | ((x) >> (64 - (n))))
#endif
Expand Down

0 comments on commit 01bb282

Please sign in to comment.