-
-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
snappy: Update to 1.2.1 version (#6116)
* snappy: update to 1.2.1 * snappy: switch the language standard for testing under windows to c++14 *MSVC does not support c++11, and an error will occur if clang is used to test. * snappy: fix build under arm-gnueabihf * snappy: update patch. * snappy: update patch. * snappy: apply patch to 1.2.0 * snappy: fix build under android ndk r27. * snappy: fix build.
- Loading branch information
1 parent
f5026b8
commit 738c3c8
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
packages/s/snappy/patches/1.2.1/update-neon-flag-aarch64.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From 32ded457c0b1fe78ceb8397632c416568d6714a0 Mon Sep 17 00:00:00 2001 | ||
From: Danila Kutenin <[email protected]> | ||
Date: Sat, 17 Aug 2024 19:03:10 -0700 | ||
Subject: [PATCH] Update CMakeLists NEON flag to reflect only AArch64 NEON | ||
optimizations | ||
|
||
--- | ||
CMakeLists.txt | 7 +++++-- | ||
1 file changed, 5 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 644df24..b1d072c 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -206,10 +206,13 @@ int main() { | ||
|
||
check_cxx_source_compiles(" | ||
#include <arm_neon.h> | ||
+#include <stdint.h> | ||
int main() { | ||
uint8_t val = 3, dup[8]; | ||
- uint8x16_t v = vld1q_dup_u8(&val); | ||
- vst1q_u8(dup, v); | ||
+ uint8x16_t v1 = vld1q_dup_u8(&val); | ||
+ uint8x16_t v2 = vqtbl1q_u8(v1, v1); | ||
+ vst1q_u8(dup, v1); | ||
+ vst1q_u8(dup, v2); | ||
return 0; | ||
}" SNAPPY_HAVE_NEON) | ||
|
||
-- | ||
2.47.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters