diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-05-04 15:32:55 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-05-04 15:32:55 +0000 |
commit | db8faa64808fbaf1641a192078d3efd8fef77454 (patch) | |
tree | c8630e88e17d93dfb1fd25b8a770871df37ff3f1 /misc.h | |
parent | 2e2c395021dff780ca2041914e0bb745491cb24e (diff) | |
download | cryptopp-db8faa64808fbaf1641a192078d3efd8fef77454.tar.gz |
change PutBlock to default to non-aligned access
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@336 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -980,7 +980,7 @@ private: const byte *m_block; }; -template <class T, class B, bool A=true> +template <class T, class B, bool A=false> class PutBlock { public: @@ -1002,12 +1002,12 @@ private: byte *m_block; }; -template <class T, class B, bool A=true> +template <class T, class B, bool GA=true, bool PA=false> struct BlockGetAndPut { // function needed because of C++ grammatical ambiguity between expression-statements and declarations - static inline GetBlock<T, B, A> Get(const void *block) {return GetBlock<T, B, A>(block);} - typedef PutBlock<T, B, A> Put; + static inline GetBlock<T, B, GA> Get(const void *block) {return GetBlock<T, B, GA>(block);} + typedef PutBlock<T, B, PA> Put; }; template <class T> |