summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiyong.min <jiyong.min@samsung.com>2023-03-16 11:02:18 +0900
committerjiyong.min <jiyong.min@samsung.com>2023-03-16 11:02:18 +0900
commitae1ce76157ef384fb87e38813b28215308e18190 (patch)
treea533984968137761c2c8544d4d63f0ee661645e2
parent78d6de6b0e1aa2e38fad89da122edd3d6314c407 (diff)
downloadlibjxl-sandbox/risc-v.tar.gz
libjxl-sandbox/risc-v.tar.bz2
libjxl-sandbox/risc-v.zip
Fix build errorsandbox/risc-v
-rw-r--r--third_party/highway/hwy/base.h2
-rw-r--r--third_party/highway/hwy/ops/arm_neon-inl.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/third_party/highway/hwy/base.h b/third_party/highway/hwy/base.h
index c87fa96..284c9ec 100644
--- a/third_party/highway/hwy/base.h
+++ b/third_party/highway/hwy/base.h
@@ -255,7 +255,7 @@ static constexpr HWY_MAYBE_UNUSED size_t kMaxVectorSize = 16;
// ACLE (https://gcc.gnu.org/onlinedocs/gcc/Half-Precision.html):
// always supported on aarch64, for v7 only if -mfp16-format is given.
-#if ((HWY_ARCH_ARM_A64 || (__ARM_FP & 2)) && HWY_COMPILER_GCC)
+#if ((HWY_ARCH_ARM_A64 || (__ARM_FP & 2)) && HWY_COMPILER_GCC) && (!__TIZEN__)
using float16_t = __fp16;
// C11 extension ISO/IEC TS 18661-3:2015 but not supported on all targets.
// Required for Clang RVV if the float16 extension is used.
diff --git a/third_party/highway/hwy/ops/arm_neon-inl.h b/third_party/highway/hwy/ops/arm_neon-inl.h
index 87edbcf..ebb43ac 100644
--- a/third_party/highway/hwy/ops/arm_neon-inl.h
+++ b/third_party/highway/hwy/ops/arm_neon-inl.h
@@ -3028,7 +3028,7 @@ HWY_API Vec128<int64_t, N> PromoteTo(Simd<int64_t, N, 0> /* tag */,
return Vec128<int64_t, N>(vget_low_s64(vmovl_s32(v.raw)));
}
-#if __ARM_FP & 2
+#if (__ARM_FP & 2) && !(__TIZEN__)
HWY_API Vec128<float> PromoteTo(Full128<float> /* tag */,
const Vec128<float16_t, 4> v) {
@@ -3157,7 +3157,7 @@ HWY_API Vec128<int8_t, N> DemoteTo(Simd<int8_t, N, 0> /* tag */,
return Vec128<int8_t, N>(vqmovn_s16(vcombine_s16(v.raw, v.raw)));
}
-#if __ARM_FP & 2
+#if (__ARM_FP & 2) && !(__TIZEN__)
HWY_API Vec128<float16_t, 4> DemoteTo(Full64<float16_t> /* tag */,
const Vec128<float> v) {