diff options
Diffstat (limited to 'botan/src/utils/rotate.h')
| -rw-r--r-- | botan/src/utils/rotate.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/botan/src/utils/rotate.h b/botan/src/utils/rotate.h deleted file mode 100644 index c8f8d4a..0000000 --- a/botan/src/utils/rotate.h +++ /dev/null @@ -1,30 +0,0 @@ -/* -* Word Rotation Operations -* (C) 1999-2008 Jack Lloyd -* -* Distributed under the terms of the Botan license -*/ - -#ifndef BOTAN_WORD_ROTATE_H__ -#define BOTAN_WORD_ROTATE_H__ - -#include <botan/types.h> - -namespace Botan { - -/* -* Word Rotation Functions -*/ -template<typename T> inline T rotate_left(T input, u32bit rot) - { - return static_cast<T>((input << rot) | (input >> (8*sizeof(T)-rot)));; - } - -template<typename T> inline T rotate_right(T input, u32bit rot) - { - return static_cast<T>((input >> rot) | (input << (8*sizeof(T)-rot))); - } - -} - -#endif |
