diff options
author | weidai <weidai11@users.noreply.github.com> | 2007-04-16 00:21:07 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2007-04-16 00:21:07 +0000 |
commit | 5cad605559f973f2ce7d5ede1e6b67151f8e1d51 (patch) | |
tree | 6cc6caeba741b13cbc0cf5498d1c957f97451bf3 /words.h | |
parent | 199c7960213d94682913e72de0e3f6d04f575a8b (diff) | |
download | cryptopp-git-5cad605559f973f2ce7d5ede1e6b67151f8e1d51.tar.gz |
optimizations
Diffstat (limited to 'words.h')
-rw-r--r-- | words.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -20,8 +20,7 @@ inline void SetWords(word *r, word a, size_t n) inline void CopyWords(word *r, const word *a, size_t n) { - for (size_t i=0; i<n; i++) - r[i] = a[i]; + memcpy(r, a, n*WORD_SIZE); } inline void XorWords(word *r, const word *a, const word *b, size_t n) |