X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fcrypt.c;h=ad93dd8bf9c5393f81e748f5c4ad526e63da3f88;hb=21d88cde9cf17f177e506badeaf0e512290e09e0;hp=6eb87b41260511adfbabe77ab9fa1f8fbb3f7be5;hpb=9e9323bf556e20c6395071cf1bf07fbf72918c99;p=umurmur.git diff --git a/src/crypt.c b/src/crypt.c index 6eb87b4..ad93dd8 100644 --- a/src/crypt.c +++ b/src/crypt.c @@ -215,34 +215,6 @@ bool_t CryptState_decrypt(cryptState_t *cs, const unsigned char *source, unsigne return true; } -#if defined(__LP64__) -#define BLOCKSIZE 2 -#define SHIFTBITS 63 -typedef uint64_t subblock; - -#if CRYPT_BE -#define SWAPPED(x) (x) -#else -#ifdef __x86_64__ -#define SWAPPED(x) ({register uint64_t __out, __in = (x); __asm__("bswap %q0" : "=r"(__out) : "0"(__in)); __out;}) -#else -#include -#define SWAPPED(x) bswap_64(x) -#endif -#endif - -#else - -#define BLOCKSIZE 4 -#define SHIFTBITS 31 -typedef uint32_t subblock; -#define SWAPPED(x) htonl(x) - -#endif - -#define HIGHBIT (1<