aboutsummaryrefslogtreecommitdiffstats
path: root/src/bigint
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-29 01:40:40 +0000
committerlloyd <[email protected]>2008-09-29 01:40:40 +0000
commit8ed6f15b2ed9dfb60c0450eaae9f71ec9610cea0 (patch)
treec4fe9b498320d405c6ee4711861cef6bb54f70a4 /src/bigint
parent6e9b91edbe15b581e3ca1a244213c61140eec936 (diff)
Move x86-64 asm bswap impl to utils, as bswap_amd64.h
Diffstat (limited to 'src/bigint')
-rw-r--r--src/bigint/mp_amd64/bswap.h36
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