Date: Mon, 25 Jan 2021 12:59:43 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r562567 - head/science/py-dlib/files Message-ID: <202101251259.10PCxhaI064229@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Mon Jan 25 12:59:42 2021 New Revision: 562567 URL: https://svnweb.freebsd.org/changeset/ports/562567 Log: science/py-dlib: fix build on powerpc64le Same issue as in dlib-cpp. Added: head/science/py-dlib/files/ head/science/py-dlib/files/patch-dlib_simd_simd4f.h - copied unchanged from r562327, head/science/dlib-cpp/files/patch-dlib_simd_simd4f.h Copied: head/science/py-dlib/files/patch-dlib_simd_simd4f.h (from r562327, head/science/dlib-cpp/files/patch-dlib_simd_simd4f.h) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/py-dlib/files/patch-dlib_simd_simd4f.h Mon Jan 25 12:59:42 2021 (r562567, copy of r562327, head/science/dlib-cpp/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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101251259.10PCxhaI064229>