Skip to content

Commit

Permalink
[chore](ARM) Add some vectorization compatibility code on aarch64 (ap…
Browse files Browse the repository at this point in the history
…ache#18553)

update sse2noen to support more sse code on arm cpus
  • Loading branch information
yangzhg authored Apr 13, 2023
1 parent 6d91635 commit 4335c99
Show file tree
Hide file tree
Showing 24 changed files with 372 additions and 464 deletions.
8 changes: 1 addition & 7 deletions be/src/exprs/block_bloom_filter_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@
// https://github.com/apache/kudu/blob/master/src/kudu/util/block_bloom_filter.cc
// and modified by Doris

#ifdef __aarch64__
#include <sse2neon.h>
#else
#include <emmintrin.h>
#include <mm_malloc.h>
#endif

#include <butil/iobuf.h>

#include <algorithm>
Expand All @@ -36,6 +29,7 @@
#include <string>

#include "exprs/block_bloom_filter.hpp"
#include "util/sse_util.hpp"

namespace doris {

Expand Down
5 changes: 1 addition & 4 deletions be/src/runtime/jsonb_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@
#include "util/jsonb_error.h"
#include "util/jsonb_parser_simd.h"
#include "util/jsonb_utils.h"
#include "vec/common/string_ref.h"

#ifdef __SSE4_2__
#include "util/sse_util.hpp"
#endif
#include "vec/common/string_ref.h"

namespace doris {

Expand Down
7 changes: 1 addition & 6 deletions be/src/util/bit_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@
#include "common/compiler_util.h"
#include "gutil/bits.h"
#include "util/cpu_info.h"
#ifdef __aarch64__
#include <sse2neon.h>
#else
#include <emmintrin.h>
#include <immintrin.h>
#endif
#include "util/sse_util.hpp"

namespace doris {

Expand Down
Loading

0 comments on commit 4335c99

Please sign in to comment.