Move the lib/ stuff around a bit
[fio.git] / crc / sha512.c
index 1f9ebb434baf2707f909d33c63b48ae84ed06a64..0d44ace580dbe1795a000d68c987775c63b786ff 100644 (file)
 
 #include <string.h>
 #include <inttypes.h>
 
 #include <string.h>
 #include <inttypes.h>
-#include <byteswap.h>
-#include <endian.h>
 
 
+#include "../lib/bswap.h"
 #include "sha512.h"
 
 #include "sha512.h"
 
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-#define        __be64_to_cpu(x)        __bswap_64(x)
-#else
-#define __be64_to_cpu(x)       (x)
-#endif
-
 #define SHA384_DIGEST_SIZE 48
 #define SHA512_DIGEST_SIZE 64
 #define SHA384_HMAC_BLOCK_SIZE 128
 #define SHA384_DIGEST_SIZE 48
 #define SHA512_DIGEST_SIZE 64
 #define SHA384_HMAC_BLOCK_SIZE 128