You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by la...@apache.org on 2023/01/16 04:27:11 UTC
[kudu] 01/02: Adds powerpc architecture so that build completes
This is an automated email from the ASF dual-hosted git repository.
laiyingchun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git
commit 6daf1709eb634b6dd2d5f661fc1d10fd87dc44ae
Author: harinreddy <hn...@us.ibm.com>
AuthorDate: Sun Sep 18 22:47:08 2022 -0500
Adds powerpc architecture so that build completes
has_popcnt_ = 1;
has_mmx_ = 1;
has_sse_ = 1;
has_sse2_ = 1;
has_sse3_ = 1;
has_ssse3_ = 1;
has_sse41_ = 1;
has_sse42_ = 1;
Changes to be committed:
modified: src/kudu/gutil/cpu.cc
Change-Id: I6f2e086d3dedbdf2f6e30080645f49344c2d635f
Reviewed-on: http://gerrit.cloudera.org:8080/19018
Tested-by: Alexey Serbin <al...@apache.org>
Reviewed-by: Alexey Serbin <al...@apache.org>
---
src/kudu/gutil/cpu.cc | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/kudu/gutil/cpu.cc b/src/kudu/gutil/cpu.cc
index 318d3975f..f47b28ae9 100644
--- a/src/kudu/gutil/cpu.cc
+++ b/src/kudu/gutil/cpu.cc
@@ -279,6 +279,15 @@ void CPU::Initialize() {
#elif defined(__aarch64__)
cpu_brand_.assign("ARM64");
has_broken_neon_ = false;
+#elif defined (__powerpc__)
+ has_popcnt_ = 1;
+ has_mmx_ = 1;
+ has_sse_ = 1;
+ has_sse2_ = 1;
+ has_sse3_ = 1;
+ has_ssse3_ = 1;
+ has_sse41_ = 1;
+ has_sse42_ = 1;
#else
#error unknown architecture
#endif