diff options
Diffstat (limited to 'src/bigint')
-rw-r--r-- | src/bigint/mp_amd64/bswap.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/bigint/mp_amd64/bswap.h b/src/bigint/mp_amd64/bswap.h deleted file mode 100644 index 3c77b460c..000000000 --- a/src/bigint/mp_amd64/bswap.h +++ /dev/null @@ -1,36 +0,0 @@ -/************************************************* -* Byte Swapping Operations Header File * -* (C) 1999-2008 Jack Lloyd * -*************************************************/ - -#ifndef BOTAN_BSWAP_H__ -#define BOTAN_BSWAP_H__ - -#include <botan/types.h> -#include <botan/rotate.h> - -namespace Botan { - -/************************************************* -* Byte Swapping Functions * -*************************************************/ -inline u16bit reverse_bytes(u16bit input) - { - return rotate_left(input, 8); - } - -inline u32bit reverse_bytes(u32bit input) - { - asm("bswapl %0" : "=r" (input) : "0" (input)); - return input; - } - -inline u64bit reverse_bytes(u64bit input) - { - asm("bswapq %0" : "=r" (input) : "0" (input)); - return input; - } - -} - -#endif |