diff --git a/0001-Bracket-the-arm-vector-part-of-crc32-with-the-arm-ma.patch b/0001-Bracket-the-arm-vector-part-of-crc32-with-the-arm-ma.patch new file mode 100644 index 0000000000000000000000000000000000000000..03c2fefc3d998593f76b712c03580c5f3f39e306 --- /dev/null +++ b/0001-Bracket-the-arm-vector-part-of-crc32-with-the-arm-ma.patch @@ -0,0 +1,32 @@ +From 2f36f4e7dac938211ecb93cfc2b79a99ad69129f Mon Sep 17 00:00:00 2001 +From: Huang Yang +Date: Fri, 1 Apr 2022 10:08:29 +0800 +Subject: [PATCH] Bracket the arm vector part of crc32 with the arm macro + +--- + crc32.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/crc32.c b/crc32.c +index 79ebdbd..0fb7b13 100644 +--- a/crc32.c ++++ b/crc32.c +@@ -197,6 +197,7 @@ const z_crc_t FAR * ZEXPORT get_crc_table() + return (const z_crc_t FAR *)crc_table; + } + ++#ifdef __aarch64__ + ulg crc32_neon(crc, buf, len) + unsigned long crc; + const unsigned char FAR *buf; +@@ -237,6 +238,7 @@ ulg crc32_neon(crc, buf, len) + + return (crc_result ^ 0xffffffffL); + } ++#endif + + /* ========================================================================= */ + #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8) +-- +2.30.GIT +