From nobody Mon Aug 07 07:07:17 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RK6nx53q1z4TxJN; Mon, 7 Aug 2023 07:07:17 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RK6nx4R69z4cX7; Mon, 7 Aug 2023 07:07:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691392037; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tUb1R/1ZcYK2QdEa6YuVEqAFVvfGvbnEpDktyhjoOBc=; b=K7//YRdDJRmjfDeZvoi07exStSs9G/N08zIovc5HusLwuunQWnBgG5J/M9MRUUi5NtvCNB X50a2fE44XyZiooDRtMLgfmjXbzNKi9mOzGOiZNV7oHKmSpnxBzIw9sL+fiqzjAcY4RSMd MDwpTs02oQEjWwf7SRlUxWKw+Y39QjopIx0nYO2eH52cZx9BvAtCrWYHP4P/t39oPRrDrG 7Wi9iADlo/xf0fDYeL/JYCFEzRtxVFnWoX5py5FCUjNr8B2iHRSe4q26UavakkCfuMZDyF 8GhNChFdXovjxwTrVD1quyInnDMhHmKlUlrQTr4aydQccBOkFr+0bDF79Z6ggg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691392037; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tUb1R/1ZcYK2QdEa6YuVEqAFVvfGvbnEpDktyhjoOBc=; b=QZLV6gwc0Z76RtBx4Qd5LzINWkQqUtbo7+fGtGohC7XpY2MeRKm9brGGEKlS1DkHKP9k0b GG5+5FhsgFP4daFv30HvsUYvl9MeCAy1NtMKCFQa96ch+ympzshyoL6/wQAL/YEkEf9R8y QBhVvrjjWbwYJZY5NSnqAG2fxzk3emQXjOvrnktJRn/OTp63t/2Tp20pSr9/LsWbnAUKZO K8fwltqlbcUZML8U93JfLNCtCrbdjTZVU676KBAZDDJ8egfPRVyeWNxbStroy7aodb7Qt7 mz5ELzxewx22H9QEzMFA9XIjbr3vS/K6BKi/hPYXLPjd2L5p8TTwDUtEbxWIlw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691392037; a=rsa-sha256; cv=none; b=izWOSPJQoOPI9jmS62Y74YzUZvahgvldpH8JdM3UZsD0wMnOvbnpHgCIzQP1+n5UoNfxLL mqIRErtWGOEwYjU+Qyg6mPtNiFETcQzQamtlyAhOtoKHIzDzUG1Cnlt3ObnwuxFU04JL6/ wGCXzxW7dEhSRbFWtHOBs54394jcGCN3OW5tkNPLZJh3XRghx57q8V2Xrl+Wd5VDvuKOQi m+xTlgIbDy7B7MRDJmhWH+nvVdrmr1LdVRt05Np4LmJ/O4dj9oez2w9ywqk8P/iMoflPxY Ecb++Q48pwog1K97+/hf49fArhJcotpJuxUk1L9JlIEYycXp1VacT0EU9ko5yQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RK6nx39rYzhwb; Mon, 7 Aug 2023 07:07:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37777Hwd095708; Mon, 7 Aug 2023 07:07:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37777Hnk095707; Mon, 7 Aug 2023 07:07:17 GMT (envelope-from git) Date: Mon, 7 Aug 2023 07:07:17 GMT Message-Id: <202308070707.37777Hnk095707@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: dbe826b8640b - main - security/nflib: Improve handling of SIMD instructions List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dbe826b8640bbd7dc2952f796e7d4b8be691c37a Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=dbe826b8640bbd7dc2952f796e7d4b8be691c37a commit dbe826b8640bbd7dc2952f796e7d4b8be691c37a Author: Daniel Engberg AuthorDate: 2023-08-07 07:06:41 +0000 Commit: Yuri Victorovich CommitDate: 2023-08-07 07:07:15 +0000 security/nflib: Improve handling of SIMD instructions PR: 272702 --- security/nflib/Makefile | 2 +- security/nflib/files/patch-include_nfl_arch.hpp | 19 +++++++++++++++++++ security/nflib/files/patch-include_nfl_ops.hpp | 23 +++++++++++++++++++++++ 3 files changed, 43 insertions(+), 1 deletion(-) diff --git a/security/nflib/Makefile b/security/nflib/Makefile index 7f69a0b25581..dcc7c0a1e0f6 100644 --- a/security/nflib/Makefile +++ b/security/nflib/Makefile @@ -2,7 +2,7 @@ PORTNAME= nflib DISTVERSIONPREFIX= v DISTVERSION= 1.0.0-23 DISTVERSIONSUFFIX= -g5cf40ed -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= security math MAINTAINER= yuri@FreeBSD.org diff --git a/security/nflib/files/patch-include_nfl_arch.hpp b/security/nflib/files/patch-include_nfl_arch.hpp new file mode 100644 index 000000000000..07f9c34daff6 --- /dev/null +++ b/security/nflib/files/patch-include_nfl_arch.hpp @@ -0,0 +1,19 @@ +--- include/nfl/arch.hpp.orig 2023-07-24 21:28:33 UTC ++++ include/nfl/arch.hpp +@@ -3,14 +3,10 @@ + + #include "nfl/arch/common.hpp" + +-#ifdef NFL_OPTIMIZED +- +-#if defined __AVX2__ && defined NTT_AVX2 ++#if defined __AVX2__ && defined __SSE4_2__ + #define CC_SIMD nfl::simd::avx2 +-#elif defined __SSE4_2__ && defined NTT_SSE ++#elif defined __SSE4_2__ && !defined __AVX2__ + #define CC_SIMD nfl::simd::sse +-#endif +- + #endif + + #ifndef CC_SIMD diff --git a/security/nflib/files/patch-include_nfl_ops.hpp b/security/nflib/files/patch-include_nfl_ops.hpp new file mode 100644 index 000000000000..958354773ca1 --- /dev/null +++ b/security/nflib/files/patch-include_nfl_ops.hpp @@ -0,0 +1,23 @@ +--- include/nfl/ops.hpp.orig 2023-07-24 21:30:23 UTC ++++ include/nfl/ops.hpp +@@ -281,18 +281,14 @@ struct _make_op, expr