From ebfb2c5e1f344e5c6e549b9dedaa49b0749a4a24 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 4 Oct 2009 22:57:12 +0300 Subject: Use a tuklib module for integer handling. This replaces bswap.h and integer.h. The tuklib module uses on GNU, on *BSDs and on Solaris, which may contain optimized code like inline assembly. --- src/liblzma/check/crc64_fast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/liblzma/check/crc64_fast.c') diff --git a/src/liblzma/check/crc64_fast.c b/src/liblzma/check/crc64_fast.c index 25557264..e42fc3dc 100644 --- a/src/liblzma/check/crc64_fast.c +++ b/src/liblzma/check/crc64_fast.c @@ -32,7 +32,7 @@ lzma_crc64(const uint8_t *buf, size_t size, uint64_t crc) crc = ~crc; #ifdef WORDS_BIGENDIAN - crc = bswap_64(crc); + crc = bswap64(crc); #endif if (size > 4) { @@ -64,7 +64,7 @@ lzma_crc64(const uint8_t *buf, size_t size, uint64_t crc) crc = lzma_crc64_table[0][*buf++ ^ A1(crc)] ^ S8(crc); #ifdef WORDS_BIGENDIAN - crc = bswap_64(crc); + crc = bswap64(crc); #endif return ~crc; -- cgit v1.2.3