Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marcus Hoffmann
nettle
Commits
54def794
Commit
54def794
authored
Jun 17, 2001
by
Niels Möller
Browse files
* macros.h (FOR_BLOCKS): New macro, taken from lsh.
Rev: src/nettle/macros.h:1.2
parent
e09706b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
macros.h
View file @
54def794
...
...
@@ -55,5 +55,11 @@ do { \
(p)[0] = (i) & 0xff; \
} while(0)
/* Macro to make it easier to loop over several blocks. */
#define FOR_BLOCKS(length, dst, src, blocksize) \
assert( !((length) % (blocksize))); \
for (; (length); ((length) -= (blocksize), \
(dst) += (blocksize), \
(src) += (blocksize)) )
#endif
/* NETTLE_MACROS_H_INCLUDED */
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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