diff options
author | Niels Möller <nisse@lysator.liu.se> | 2012-03-31 21:23:19 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2012-03-31 21:23:19 +0200 |
commit | f13fd113b07c351e8024ec85fa339b64c31994cc (patch) | |
tree | f2ff8dd3febfeb346855af17772c4d0dbe093f3f /macros.h | |
parent | 60f3e6778c6b690ca627012f92df27b0eb0f32f3 (diff) | |
download | nettle-f13fd113b07c351e8024ec85fa339b64c31994cc.tar.gz |
New macro, ROTL32.
Diffstat (limited to 'macros.h')
-rw-r--r-- | macros.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 { \ |