From e1c79d4865079e6a048d2419c866db6825b26644 Mon Sep 17 00:00:00 2001 From: tickduan <417921451@qq.com> Date: Thu, 8 Jul 2021 18:50:48 +0800 Subject: [PATCH] fixed x64 move --- deps/SZ/sz/src/ByteToolkit.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/deps/SZ/sz/src/ByteToolkit.c b/deps/SZ/sz/src/ByteToolkit.c index 519f4a4424..f7d31309a5 100644 --- a/deps/SZ/sz/src/ByteToolkit.c +++ b/deps/SZ/sz/src/ByteToolkit.c @@ -97,16 +97,15 @@ inline long bytesToLong_bigEndian(unsigned char* b) { inline void longToBytes_bigEndian(unsigned char *b, unsigned long num) { - // arm32 -#ifdef _TD_ARM_32 - memset(b, 0, 4); -#else // x64 arm64 +// arm32 +#if defined(_TD_LINUX_64) || defined(_TD_MIPS_64) || defined(_TD_ARM_64) || defined(_TD_DARWIN_64) b[0] = (unsigned char)(num>>56); b[1] = (unsigned char)(num>>48); b[2] = (unsigned char)(num>>40); b[3] = (unsigned char)(num>>32); +#else + memset(b, 0, 4); #endif - b[4] = (unsigned char)(num>>24); b[5] = (unsigned char)(num>>16); b[6] = (unsigned char)(num>>8); -- GitLab