summaryrefslogtreecommitdiffstats
path: root/liblzma/check/crc64_fast.c
diff options
context:
space:
mode:
authorliblzma upstream <xz-devel@tukaani.org>2020-03-17 14:27:42 (GMT)
committerBrad King <brad.king@kitware.com>2021-04-22 19:39:31 (GMT)
commitee909a8e8b785b68c6a14fd52cc12b1841051a7d (patch)
treec2f9481b2b46ef33120fa295a2ffb7caf0c41c63 /liblzma/check/crc64_fast.c
parent352b8fa70d18ff1664cd8b22f42cf980a976ae4d (diff)
downloadCMake-ee909a8e8b785b68c6a14fd52cc12b1841051a7d.zip
CMake-ee909a8e8b785b68c6a14fd52cc12b1841051a7d.tar.gz
CMake-ee909a8e8b785b68c6a14fd52cc12b1841051a7d.tar.bz2
liblzma 2020-03-17 (2327a461)
Code extracted from: https://git.tukaani.org/xz.git at commit 2327a461e1afce862c22269b80d3517801103c1b (v5.2.5).
Diffstat (limited to 'liblzma/check/crc64_fast.c')
-rw-r--r--liblzma/check/crc64_fast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liblzma/check/crc64_fast.c b/liblzma/check/crc64_fast.c
index 52af29e..8af54cd 100644
--- a/liblzma/check/crc64_fast.c
+++ b/liblzma/check/crc64_fast.c
@@ -47,9 +47,9 @@ lzma_crc64(const uint8_t *buf, size_t size, uint64_t crc)
while (buf < limit) {
#ifdef WORDS_BIGENDIAN
const uint32_t tmp = (crc >> 32)
- ^ *(const uint32_t *)(buf);
+ ^ aligned_read32ne(buf);
#else
- const uint32_t tmp = crc ^ *(const uint32_t *)(buf);
+ const uint32_t tmp = crc ^ aligned_read32ne(buf);
#endif
buf += 4;