mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 10:36:38 -04:00
This updates sleef to latest upstream commit 85440a5e87dae36ca1b891de14bc83b441ae7c43 which fixes a bunch of things including AVX2 detection. DFT library is now disabled by default because it has issues indicated by issue reports in upstream repo. There are also some issues with unit tests and/or library itself which may results in bugs however unit tests works fine on 13.2-RELEASE amd64 at least. Import patch from Debian to fix build of unit tests References: https://github.com/shibatch/sleef/issues/439 https://salsa.debian.org/science-team/sleef/-/blob/master/debian/patches/disable-duplicate-mpfr-funcs.patch PR: 266784 Reviewed by: jmd (maintainer)
35 lines
947 B
C
35 lines
947 B
C
--- src/libm-tester/testerutil.c.orig 2021-04-05 11:53:56 UTC
|
|
+++ src/libm-tester/testerutil.c
|
|
@@ -289,32 +289,6 @@ double countULP2sp(float d, mpfr_t c0) {
|
|
|
|
//
|
|
|
|
-void mpfr_sinpi(mpfr_t ret, mpfr_t arg, mpfr_rnd_t rnd) {
|
|
- mpfr_t frpi, frd;
|
|
- mpfr_inits(frpi, frd, NULL);
|
|
-
|
|
- mpfr_const_pi(frpi, GMP_RNDN);
|
|
- mpfr_set_d(frd, 1.0, GMP_RNDN);
|
|
- mpfr_mul(frpi, frpi, frd, GMP_RNDN);
|
|
- mpfr_mul(frd, frpi, arg, GMP_RNDN);
|
|
- mpfr_sin(ret, frd, GMP_RNDN);
|
|
-
|
|
- mpfr_clears(frpi, frd, NULL);
|
|
-}
|
|
-
|
|
-void mpfr_cospi(mpfr_t ret, mpfr_t arg, mpfr_rnd_t rnd) {
|
|
- mpfr_t frpi, frd;
|
|
- mpfr_inits(frpi, frd, NULL);
|
|
-
|
|
- mpfr_const_pi(frpi, GMP_RNDN);
|
|
- mpfr_set_d(frd, 1.0, GMP_RNDN);
|
|
- mpfr_mul(frpi, frpi, frd, GMP_RNDN);
|
|
- mpfr_mul(frd, frpi, arg, GMP_RNDN);
|
|
- mpfr_cos(ret, frd, GMP_RNDN);
|
|
-
|
|
- mpfr_clears(frpi, frd, NULL);
|
|
-}
|
|
-
|
|
void mpfr_lgamma_nosign(mpfr_t ret, mpfr_t arg, mpfr_rnd_t rnd) {
|
|
int s;
|
|
mpfr_lgamma(ret, &s, arg, rnd);
|