aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-01-25 12:59:42 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-01-25 12:59:42 +0000
commitd5a440830595e62c5d3ac7e2a5976fc781b94107 (patch)
treec01ac8684c3df8815efc7c724203998098268295
parent4b027237bd4b753ac1eca2efd0baf8b8f8934798 (diff)
downloadports-d5a440830595e62c5d3ac7e2a5976fc781b94107.tar.gz
ports-d5a440830595e62c5d3ac7e2a5976fc781b94107.zip
Notes
-rw-r--r--science/py-dlib/files/patch-dlib_simd_simd4f.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/science/py-dlib/files/patch-dlib_simd_simd4f.h b/science/py-dlib/files/patch-dlib_simd_simd4f.h
new file mode 100644
index 000000000000..d95e9cd91c12
--- /dev/null
+++ b/science/py-dlib/files/patch-dlib_simd_simd4f.h
@@ -0,0 +1,14 @@
+--- dlib/simd/simd4f.h.orig 2021-01-11 12:18:36 UTC
++++ dlib/simd/simd4f.h
+@@ -524,6 +524,11 @@ namespace dlib
+
+ // ----------------------------------------------------------------------------------------
+
++#if defined(DLIB_HAVE_VSX) && !defined(vec_rsqrt)
++extern inline __vector float __attribute__((always_inline)) vec_rsqrt(const __vector float& a)
++ { return vec_div((__vector float){1, 1, 1, 1}, vec_sqrt(a)); }
++#endif
++
+ inline simd4f reciprocal_sqrt (const simd4f& item)
+ {
+ #ifdef DLIB_HAVE_SSE2