aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2018-10-11 05:58:41 +0800
committerjbeich <jbeich@FreeBSD.org>2018-10-11 05:58:41 +0800
commit1f7d10be2415e956d64edf8ec30afe2715b8cbdd (patch)
tree6d799515ba458c2dc9c161051c7585b52f414d53
parentdfff3f5a928b0fb9ea7dba8ee279368bb5b6181a (diff)
downloadfreebsd-ports-gnome-1f7d10be2415e956d64edf8ec30afe2715b8cbdd.tar.gz
freebsd-ports-gnome-1f7d10be2415e956d64edf8ec30afe2715b8cbdd.tar.zst
freebsd-ports-gnome-1f7d10be2415e956d64edf8ec30afe2715b8cbdd.zip
devel/qt5-core: unbreak on armv7 after r479286
global/qfloat16.cpp:149:31: error: use of undeclared identifier 'vcvt_f16_f32' vst1_f16(out_f16 + i, vcvt_f16_f32(vld1q_f32(in + i))); ^ global/qfloat16.cpp:159:28: error: use of undeclared identifier 'vcvt_f32_f16' vst1q_f32(out + i, vcvt_f32_f16(vld1_f16(in_f16 + i))); ^ PR: 231293 Approved by: maintainer timeout (1 month)
-rw-r--r--devel/qt5-core/files/patch-src_corelib_global_qfloat16.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/qt5-core/files/patch-src_corelib_global_qfloat16.cpp b/devel/qt5-core/files/patch-src_corelib_global_qfloat16.cpp
new file mode 100644
index 000000000000..152d0af1422f
--- /dev/null
+++ b/devel/qt5-core/files/patch-src_corelib_global_qfloat16.cpp
@@ -0,0 +1,18 @@
+global/qfloat16.cpp:149:31: error: use of undeclared identifier 'vcvt_f16_f32'
+ vst1_f16(out_f16 + i, vcvt_f16_f32(vld1q_f32(in + i)));
+ ^
+global/qfloat16.cpp:159:28: error: use of undeclared identifier 'vcvt_f32_f16'
+ vst1q_f32(out + i, vcvt_f32_f16(vld1_f16(in_f16 + i)));
+ ^
+
+--- src/corelib/global/qfloat16.cpp.orig 2018-06-15 07:29:31 UTC
++++ src/corelib/global/qfloat16.cpp
+@@ -135,7 +135,7 @@ f16cextern void qFloatFromFloat16_fast(float *out, con
+ #undef f16cextern
+ }
+
+-#elif defined(__ARM_FP16_FORMAT_IEEE) && defined(__ARM_NEON__)
++#elif defined(__ARM_FP16_FORMAT_IEEE) && defined(__ARM_NEON__) && (__ARM_FP & 2)
+ static inline bool hasFastF16()
+ {
+ return true;