From nobody Sat Jan 01 17:25:16 2022 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 0ACEC193CF4C; Sat, 1 Jan 2022 17:25: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 4JR8645XfSz3sS1; Sat, 1 Jan 2022 17:25:16 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 9E1A6228D2; Sat, 1 Jan 2022 17:25:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 201HPGKt002279; Sat, 1 Jan 2022 17:25:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 201HPG1A002278; Sat, 1 Jan 2022 17:25:16 GMT (envelope-from git) Date: Sat, 1 Jan 2022 17:25:16 GMT Message-Id: <202201011725.201HPG1A002278@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Johannes M Dieterich Subject: git: d5babb3b84b9 - main - math/sleef: add ARMv7 patch files 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: jmd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d5babb3b84b9d787f2549a4da906fa30f25037a4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641057916; 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=d9trwBh7d5iTKnzcKZ7PF1AgbQRlau4xjv3ppy8iGG4=; b=IKTNvawrKBzXOdmYBXO4n8z0uKTH7y/xtnV4Alwzj3DpfvRjy7MhWNnPtzARwsI8/L0TS9 exNriN38VHvPMS0WUtf8IJAy/57hLBNPH8TNFgMcmY+GZyvFZccSnP1xrabSiiXB7GYg+9 rQ5BBEPiaLoFlJyxWZZr46GdGkOmi/Hptk25ZzJpI1OQBVupy/5YGinN8kOFzkrSMAGji8 Kowh52aexKeuqdcvPIeah7z85UVMR7IIEBWi4obOrSJFDlSW4X5zVH7hC6odga7nuYxbTY iuyXUGuUpFFpofWClsOZd74KCB8urDVZlnOpT4SUxzoxgbubwAIr40e+jAO5JQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641057916; a=rsa-sha256; cv=none; b=tJAtAZWrC4Zoqj/Xp3Tmt4n7r6s7cqzjni0Eb3Mlccy/Ak5ETnT6gqB0j31lZD1z6Q/Zlh xIGjPKqnBbwPp3GwwIZvL7wqKXwmuZ7M30QM0uEtMrXPm7pkYcFik5yCBhqOgdNQtsJ8F2 FrZmfTnM+Nt7sbML86KLGVTpfIhQvSJ/syZEP7VQ+FdFDMGF16+PuJUjLbdoEN1ZAOH4qX InSTzyRYevbwQaNsEtBVFIYuKYa6/agi5e1YE/0vP/eCWzOH6OXp1gCS1Wo0H/lN1rbhTD KKymw6B+w991ke5ODQl4xT5z2hzUc10j02JneMD78mm7/mg9BUIHT455ApXNjw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jmd: URL: https://cgit.FreeBSD.org/ports/commit/?id=d5babb3b84b9d787f2549a4da906fa30f25037a4 commit d5babb3b84b9d787f2549a4da906fa30f25037a4 Author: Johannes M Dieterich AuthorDate: 2022-01-01 17:23:09 +0000 Commit: Johannes M Dieterich CommitDate: 2022-01-01 17:24:31 +0000 math/sleef: add ARMv7 patch files PR: 259922 --- math/sleef/Makefile | 2 +- .../sleef/files/patch-src_libm-tester_iutsimdmain.c | 21 +++++++++++++++++++++ .../files/patch-src_libm-tester_tester2simdsp.c | 11 +++++++++++ math/sleef/files/patch-src_libm-tester_testerutil.c | 11 +++++++++++ 4 files changed, 44 insertions(+), 1 deletion(-) diff --git a/math/sleef/Makefile b/math/sleef/Makefile index db3df4dec066..4b380b603f18 100644 --- a/math/sleef/Makefile +++ b/math/sleef/Makefile @@ -2,7 +2,7 @@ PORTNAME= sleef DISTVERSION= 3.5.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= math MAINTAINER= jmd@FreeBSD.org diff --git a/math/sleef/files/patch-src_libm-tester_iutsimdmain.c b/math/sleef/files/patch-src_libm-tester_iutsimdmain.c new file mode 100644 index 000000000000..4adba3c77702 --- /dev/null +++ b/math/sleef/files/patch-src_libm-tester_iutsimdmain.c @@ -0,0 +1,21 @@ +--- src/libm-tester/iutsimdmain.c.orig 2021-11-18 16:48:35 UTC ++++ src/libm-tester/iutsimdmain.c +@@ -9,16 +9,16 @@ + #include + #include + +-static jmp_buf sigjmp; +- + int do_test(int argc, char **argv); + int check_featureDP(double d); + int check_featureSP(float d); + + #if defined(_MSC_VER) || defined(__MINGW32__) || defined(__MINGW64__) ++static jmp_buf sigjmp; + #define SETJMP(x) setjmp(x) + #define LONGJMP longjmp + #else ++static sigjmp_buf sigjmp; + #define SETJMP(x) sigsetjmp(x, 1) + #define LONGJMP siglongjmp + #endif diff --git a/math/sleef/files/patch-src_libm-tester_tester2simdsp.c b/math/sleef/files/patch-src_libm-tester_tester2simdsp.c new file mode 100644 index 000000000000..888501278a4b --- /dev/null +++ b/math/sleef/files/patch-src_libm-tester_tester2simdsp.c @@ -0,0 +1,11 @@ +--- src/libm-tester/tester2simdsp.c.orig 2021-11-18 16:25:52 UTC ++++ src/libm-tester/tester2simdsp.c +@@ -828,7 +828,7 @@ int main(int argc,char **argv) + double u0 = countULPsp(t = vget(xacoshf(vd), e), frx); + + if ((fabs(d) < sqrt(FLT_MAX) && u0 > 1.0001) || +- (d >= sqrt(FLT_MAX) && !(u0 <= 1.0001 || (isinff(t) && t > 0))) || ++ (d >= sqrt(FLT_MAX) && !(u0 <= 1.0001 || (isinf(t) && t > 0))) || + (d <= -sqrt(FLT_MAX) && !isnan(t))) { + printf(ISANAME " acoshf arg=%.20g ulp=%.20g\n", d, u0); + fflush(stdout); ecnt++; diff --git a/math/sleef/files/patch-src_libm-tester_testerutil.c b/math/sleef/files/patch-src_libm-tester_testerutil.c new file mode 100644 index 000000000000..b06eab3f5e06 --- /dev/null +++ b/math/sleef/files/patch-src_libm-tester_testerutil.c @@ -0,0 +1,11 @@ +--- src/libm-tester/testerutil.c.orig 2021-11-18 16:26:40 UTC ++++ src/libm-tester/testerutil.c +@@ -45,7 +45,7 @@ int isMinusZero(double x) { return x == 0 && copysign( + double sign(double d) { return d < 0 ? -1 : 1; } + int xisnan(double x) { return x != x; } + +-int isnumberf(float x) { return !isinff(x) && !isnanf(x); } ++int isnumberf(float x) { return !isinf(x) && !isnanf(x); } + int isPlusZerof(float x) { return x == 0 && copysignf(1, x) == 1; } + int isMinusZerof(float x) { return x == 0 && copysignf(1, x) == -1; } + float signf(float d) { return d < 0 ? -1 : 1; }