Skip to content

Commit

Permalink
Update CMakeLists NEON flag to reflect only AArch64 NEON optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
danilak-G committed Aug 18, 2024
1 parent fcf1982 commit 32ded45
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 32ded45

Please sign in to comment.