This is an automated email from the ASF dual-hosted git repository.

changchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new e56ec1e183 [GLUTEN-8408][CH]fix compile failed for ARM (#8413)
e56ec1e183 is described below

commit e56ec1e1832f19c3add185c9e2cf1ecfd2789d03
Author: loudongfeng <[email protected]>
AuthorDate: Tue Jan 7 10:41:51 2025 +0800

    [GLUTEN-8408][CH]fix compile failed for ARM (#8413)
---
 .../local-engine/Functions/SparkFunctionDecimalBinaryOperator.h   | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/cpp-ch/local-engine/Functions/SparkFunctionDecimalBinaryOperator.h 
b/cpp-ch/local-engine/Functions/SparkFunctionDecimalBinaryOperator.h
index 7cebd58941..73feccf2dd 100644
--- a/cpp-ch/local-engine/Functions/SparkFunctionDecimalBinaryOperator.h
+++ b/cpp-ch/local-engine/Functions/SparkFunctionDecimalBinaryOperator.h
@@ -23,8 +23,16 @@
 
 using BitInt128 = signed _BitInt(128);
 using BitUInt128 = unsigned _BitInt(128);
+#if defined(__x86_64__)
 using BitInt256 = signed _BitInt(256);
 using BitUInt256 = unsigned _BitInt(256);
+#else
+// up to version 18, clang supports large _Bitint sizes on x86 and x86-64; 
+// but on arm and aarch64, they are currently only supported up to 128 bits.
+// 
https://stackoverflow.com/questions/78614816/why-am-i-getting-a-256-bit-arithmetic-error-unsigined-bitint-of-bit-sizes-gre
+ using BitInt256 = Int256;
+ using BitUInt256 = UInt256;
+#endif
 
 namespace local_engine
 {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to