Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nettle
nettle
Commits
89165e57
Commit
89165e57
authored
May 20, 2013
by
Niels Möller
Browse files
Expanded comment.
parent
982961a5
Changes
1
Show whitespace changes
Inline
Side-by-side
macros.h
View file @
89165e57
...
@@ -142,7 +142,8 @@ do { \
...
@@ -142,7 +142,8 @@ do { \
(src) += (blocksize)) )
(src) += (blocksize)) )
/* The masking of the right shift is needed to allow n == 0 (using
/* The masking of the right shift is needed to allow n == 0 (using
just 32 - n and 64 - n results in undefined behaviour). */
just 32 - n and 64 - n results in undefined behaviour). Most uses
of these macros use a constant and non-zero rotation count. */
#define ROTL32(n,x) (((x)<<(n)) | ((x)>>((-(n)&31))))
#define ROTL32(n,x) (((x)<<(n)) | ((x)>>((-(n)&31))))
#define ROTL64(n,x) (((x)<<(n)) | ((x)>>((-(n))&63)))
#define ROTL64(n,x) (((x)<<(n)) | ((x)>>((-(n))&63)))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment