X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=crc%2Fsha512.c;h=0d44ace580dbe1795a000d68c987775c63b786ff;hp=1f9ebb434baf2707f909d33c63b48ae84ed06a64;hb=00fb3c8dcbb940338fea9f6cab689b4924266305;hpb=eef6eea1b935a67f1ae26b38e06a69d4410a12aa diff --git a/crc/sha512.c b/crc/sha512.c index 1f9ebb43..0d44ace5 100644 --- a/crc/sha512.c +++ b/crc/sha512.c @@ -13,17 +13,10 @@ #include #include -#include -#include +#include "../lib/bswap.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