* [gentoo-commits] repo/gentoo:master commit in: dev-libs/sleef/, dev-libs/sleef/files/
@ 2023-04-07 18:17 Alfredo Tupone
0 siblings, 0 replies; 3+ messages in thread
From: Alfredo Tupone @ 2023-04-07 18:17 UTC (permalink / raw
To: gentoo-commits
commit: 3e22aea7c14b8db064247f5e60af91c742b403fb
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 7 18:12:40 2023 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Apr 7 18:16:48 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e22aea7
dev-libs/sleef: fix for riscv
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
dev-libs/sleef/files/sleef-3.5.1-riscv.patch | 11 +++++++++++
dev-libs/sleef/sleef-3.5.1.ebuild | 1 +
2 files changed, 12 insertions(+)
diff --git a/dev-libs/sleef/files/sleef-3.5.1-riscv.patch b/dev-libs/sleef/files/sleef-3.5.1-riscv.patch
new file mode 100644
index 000000000000..bb5ad68416f3
--- /dev/null
+++ b/dev-libs/sleef/files/sleef-3.5.1-riscv.patch
@@ -0,0 +1,11 @@
+--- a/src/arch/helperpurec_scalar.h 2023-04-07 19:54:14.823254936 +0200
++++ b/src/arch/helperpurec_scalar.h 2023-04-07 19:54:29.684024763 +0200
+@@ -54,7 +54,7 @@
+ #define ENABLE_FMA_SP
+ //@#define ENABLE_FMA_SP
+
+-#if defined(__AVX2__) || defined(__aarch64__) || defined(__arm__) || defined(__powerpc64__) || defined(__zarch__)
++#if defined(__AVX2__) || defined(__aarch64__) || defined(__arm__) || defined(__powerpc64__) || defined(__zarch__) || defined(__riscv)
+ #ifndef FP_FAST_FMA
+ #define FP_FAST_FMA
+ //@#define FP_FAST_FMA
diff --git a/dev-libs/sleef/sleef-3.5.1.ebuild b/dev-libs/sleef/sleef-3.5.1.ebuild
index c35fcc270ed5..b25e3d68bb1b 100644
--- a/dev-libs/sleef/sleef-3.5.1.ebuild
+++ b/dev-libs/sleef/sleef-3.5.1.ebuild
@@ -22,6 +22,7 @@ BDEPEND=""
PATCHES=(
"${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-riscv.patch
)
src_configure() {
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/sleef/, dev-libs/sleef/files/
@ 2023-04-12 20:31 Alfredo Tupone
0 siblings, 0 replies; 3+ messages in thread
From: Alfredo Tupone @ 2023-04-12 20:31 UTC (permalink / raw
To: gentoo-commits
commit: 331fd2aa9bf90d6269896a8d38d6bb0984ea3638
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 12 20:29:56 2023 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Wed Apr 12 20:30:43 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=331fd2aa
dev-libs/sleef: disable failing test and support mpfr-4.2
Closes: https://bugs.gentoo.org/904232
Closes: https://bugs.gentoo.org/864961
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
dev-libs/sleef/files/sleef-3.5.1-mpfr42.patch | 30 +++++++++++++++++++++++++++
dev-libs/sleef/sleef-3.5.1-r1.ebuild | 13 +++++++++++-
2 files changed, 42 insertions(+), 1 deletion(-)
diff --git a/dev-libs/sleef/files/sleef-3.5.1-mpfr42.patch b/dev-libs/sleef/files/sleef-3.5.1-mpfr42.patch
new file mode 100644
index 000000000000..0ae5706974f2
--- /dev/null
+++ b/dev-libs/sleef/files/sleef-3.5.1-mpfr42.patch
@@ -0,0 +1,30 @@
+--- a/src/libm-tester/testerutil.h 2023-04-12 22:07:52.400469592 +0200
++++ b/src/libm-tester/testerutil.h 2023-04-12 22:08:03.404312574 +0200
+@@ -90,7 +90,5 @@
+ double countULPsp(float d, mpfr_t c);
+ double countULP2sp(float d, mpfr_t c);
+
+-void mpfr_sinpi(mpfr_t ret, mpfr_t arg, mpfr_rnd_t rnd);
+-void mpfr_cospi(mpfr_t ret, mpfr_t arg, mpfr_rnd_t rnd);
+ void mpfr_lgamma_nosign(mpfr_t ret, mpfr_t arg, mpfr_rnd_t rnd);
+ #endif
+--- a/src/libm-tester/testerutil.c 2023-04-12 22:07:55.045431845 +0200
++++ b/src/libm-tester/testerutil.c 2023-04-12 22:08:23.275029908 +0200
+@@ -289,7 +289,7 @@
+ }
+
+ //
+-
++#if 0
+ void mpfr_sinpi(mpfr_t ret, mpfr_t arg, mpfr_rnd_t rnd) {
+ mpfr_t frpi, frd;
+ mpfr_inits(frpi, frd, NULL);
+@@ -315,7 +315,7 @@
+
+ mpfr_clears(frpi, frd, NULL);
+ }
+-
++#endif
+ void mpfr_lgamma_nosign(mpfr_t ret, mpfr_t arg, mpfr_rnd_t rnd) {
+ int s;
+ mpfr_lgamma(ret, &s, arg, rnd);
diff --git a/dev-libs/sleef/sleef-3.5.1-r1.ebuild b/dev-libs/sleef/sleef-3.5.1-r1.ebuild
index 5a8a35abfeb7..f2ba71fa3929 100644
--- a/dev-libs/sleef/sleef-3.5.1-r1.ebuild
+++ b/dev-libs/sleef/sleef-3.5.1-r1.ebuild
@@ -18,11 +18,14 @@ RESTRICT="!test? ( test )"
DEPEND=""
RDEPEND="${DEPEND}"
-BDEPEND=""
+BDEPEND="
+ test? ( >=dev-libs/mpfr-4.2 )
+"
PATCHES=(
"${FILESDIR}"/${P}-gentoo.patch
"${FILESDIR}"/${P}-riscv.patch
+ "${FILESDIR}"/${P}-mpfr42.patch
)
src_configure() {
@@ -34,3 +37,11 @@ src_configure() {
cmake_src_configure
}
+
+src_test() {
+
+ local myctestargs=(
+ -E "iut(y)?purec(fma)?_scalar"
+ )
+ cmake_src_test
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/sleef/, dev-libs/sleef/files/
@ 2024-09-09 16:49 Alfredo Tupone
0 siblings, 0 replies; 3+ messages in thread
From: Alfredo Tupone @ 2024-09-09 16:49 UTC (permalink / raw
To: gentoo-commits
commit: a8754edb45dc26c67e8fc99eea3a0b9463668730
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 9 16:48:25 2024 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Sep 9 16:49:22 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8754edb
dev-libs/sleef: musl porting
Closes: https://bugs.gentoo.org/939347
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
dev-libs/sleef/files/sleef-3.6.1-musl.patch | 11 +++++++++++
dev-libs/sleef/sleef-3.6.1-r1.ebuild | 2 ++
2 files changed, 13 insertions(+)
diff --git a/dev-libs/sleef/files/sleef-3.6.1-musl.patch b/dev-libs/sleef/files/sleef-3.6.1-musl.patch
new file mode 100644
index 000000000000..9fc5ca865b89
--- /dev/null
+++ b/dev-libs/sleef/files/sleef-3.6.1-musl.patch
@@ -0,0 +1,11 @@
+--- a/src/libm-tester/tester2simdsp.c 2024-09-09 18:40:10.340986358 +0200
++++ b/src/libm-tester/tester2simdsp.c 2024-09-09 18:40:43.240620974 +0200
+@@ -892,7 +892,7 @@
+ 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/dev-libs/sleef/sleef-3.6.1-r1.ebuild b/dev-libs/sleef/sleef-3.6.1-r1.ebuild
index 11911f2e2f68..528aaaa29e8b 100644
--- a/dev-libs/sleef/sleef-3.6.1-r1.ebuild
+++ b/dev-libs/sleef/sleef-3.6.1-r1.ebuild
@@ -20,6 +20,8 @@ BDEPEND="
test? ( >=dev-libs/mpfr-4.2 )
"
+PATCHES=( "${FILESDIR}"/${P}-musl.patch )
+
src_configure() {
local mycmakeargs=(
-DSLEEF_DISABLE_FFTW=ON
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-09 16:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-09 16:49 [gentoo-commits] repo/gentoo:master commit in: dev-libs/sleef/, dev-libs/sleef/files/ Alfredo Tupone
-- strict thread matches above, loose matches on Subject: below --
2023-04-12 20:31 Alfredo Tupone
2023-04-07 18:17 Alfredo Tupone
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox