pre_read fixes
[fio.git] / crc / sha256.c
index 8ec2943294e48ac2a3e9e22892a0723fa05b4f8e..0091d4477284dca5deca9c3e603c4e292ddac2b2 100644 (file)
  */
 #include <string.h>
 #include <inttypes.h>
-#include <byteswap.h>
-#include <endian.h>
 
+#include "../lib/bswap.h"
 #include "sha256.h"
 
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-#define        __be32_to_cpu(x)        __bswap_32(x)
-#else
-#define __be32_to_cpu(x)       (x)
-#endif
-
 #define SHA256_DIGEST_SIZE     32
 #define SHA256_HMAC_BLOCK_SIZE 64