summaryrefslogtreecommitdiff
path: root/words.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2007-04-16 00:21:07 +0000
committerweidai <weidai11@users.noreply.github.com>2007-04-16 00:21:07 +0000
commit5cad605559f973f2ce7d5ede1e6b67151f8e1d51 (patch)
tree6cc6caeba741b13cbc0cf5498d1c957f97451bf3 /words.h
parent199c7960213d94682913e72de0e3f6d04f575a8b (diff)
downloadcryptopp-git-5cad605559f973f2ce7d5ede1e6b67151f8e1d51.tar.gz
optimizations
Diffstat (limited to 'words.h')
-rw-r--r--words.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/words.h b/words.h
index ad76f1d8..fc835591 100644
--- a/words.h
+++ b/words.h
@@ -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)