summaryrefslogtreecommitdiff
path: root/macros.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2012-03-31 21:23:19 +0200
committerNiels Möller <nisse@lysator.liu.se>2012-03-31 21:23:19 +0200
commitf13fd113b07c351e8024ec85fa339b64c31994cc (patch)
treef2ff8dd3febfeb346855af17772c4d0dbe093f3f /macros.h
parent60f3e6778c6b690ca627012f92df27b0eb0f32f3 (diff)
downloadnettle-f13fd113b07c351e8024ec85fa339b64c31994cc.tar.gz
New macro, ROTL32.
Diffstat (limited to 'macros.h')
-rw-r--r--macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/macros.h b/macros.h
index 9a57b150..f12deab4 100644
--- a/macros.h
+++ b/macros.h
@@ -119,6 +119,8 @@ do { \
(dst) += (blocksize), \
(src) += (blocksize)) )
+#define ROTL32(n,x) ((((x))<<(n)) | (((x))>>(32-(n))))
+
/* Requires that size >= 2 */
#define INCREMENT(size, ctr) \
do { \