From owner-svn-ports-head@freebsd.org Mon Jan 11 14:07:59 2021 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6638A4D9D76; Mon, 11 Jan 2021 14:07:59 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DDwXH1v53z3kkN; Mon, 11 Jan 2021 14:07:59 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 335C51BAE3; Mon, 11 Jan 2021 14:07:59 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 10BE7xaL026753; Mon, 11 Jan 2021 14:07:59 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 10BE7xnh026752; Mon, 11 Jan 2021 14:07:59 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <202101111407.10BE7xnh026752@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Mon, 11 Jan 2021 14:07:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r561216 - head/science/dlib-cpp/files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/science/dlib-cpp/files X-SVN-Commit-Revision: 561216 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2021 14:07:59 -0000 Author: pkubaj Date: Mon Jan 11 14:07:58 2021 New Revision: 561216 URL: https://svnweb.freebsd.org/changeset/ports/561216 Log: science/dlib-cpp: fix build on powerpc64le clang doesn't implement vec_rsqrt. Added: head/science/dlib-cpp/files/ head/science/dlib-cpp/files/patch-dlib_simd_simd4f.h (contents, props changed) Added: head/science/dlib-cpp/files/patch-dlib_simd_simd4f.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/dlib-cpp/files/patch-dlib_simd_simd4f.h Mon Jan 11 14:07:58 2021 (r561216) @@ -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