mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
science/py-dlib: fix build on powerpc64le
Same issue as in dlib-cpp.
This commit is contained in:
parent
4b027237bd
commit
d5a4408305
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=562567
14
science/py-dlib/files/patch-dlib_simd_simd4f.h
Normal file
14
science/py-dlib/files/patch-dlib_simd_simd4f.h
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user