summaryrefslogtreecommitdiff
path: root/macros.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2012-11-12 21:01:52 +0100
committerNiels Möller <nisse@lysator.liu.se>2012-11-12 21:01:52 +0100
commit8149d146d7558e0161175ecdeeefededc31bd776 (patch)
tree41e70a5a8970c37a536a454828a93831c9bccc73 /macros.h
parentd20990fd971a18fab36df5d578647b1d9559574b (diff)
downloadnettle-8149d146d7558e0161175ecdeeefededc31bd776.tar.gz
Moved ROTL64 macro to macros.h.
Diffstat (limited to 'macros.h')
-rw-r--r--macros.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/macros.h b/macros.h
index b2d4b02e..b2d6076f 100644
--- a/macros.h
+++ b/macros.h
@@ -119,7 +119,9 @@ do { \
(dst) += (blocksize), \
(src) += (blocksize)) )
-#define ROTL32(n,x) ((((x))<<(n)) | (((x))>>(32-(n))))
+#define ROTL32(n,x) (((x)<<(n)) | ((x)>>(32-(n))))
+
+#define ROTL64(n,x) (((x)<<(n)) | ((x)>>(64-(n))))
/* Requires that size >= 2 */
#define INCREMENT(size, ctr) \