From 79be8f00e2aa293669b8e22e1ef02d2d5c5f9e25 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 16 Jan 2023 17:57:56 +0000 Subject: gentoo auto-resync : 16:01:2023 - 17:57:56 --- .../pari/files/pari-2.15.2-ellsea.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sci-mathematics/pari/files/pari-2.15.2-ellsea.patch (limited to 'sci-mathematics/pari/files') diff --git a/sci-mathematics/pari/files/pari-2.15.2-ellsea.patch b/sci-mathematics/pari/files/pari-2.15.2-ellsea.patch new file mode 100644 index 000000000000..a5c19504ea87 --- /dev/null +++ b/sci-mathematics/pari/files/pari-2.15.2-ellsea.patch @@ -0,0 +1,22 @@ +# upstream bug https://pari.math.u-bordeaux.fr/cgi-bin/bugreport.cgi?bug=2441 +# will be fixed in 2.15.3 +diff --git a/src/basemath/ellsea.c b/src/basemath/ellsea.c +index a6871fa6a7..f1e725ea55 100644 +--- a/src/basemath/ellsea.c ++++ b/src/basemath/ellsea.c +@@ -1303,6 +1303,7 @@ find_trace_Elkies_power(GEN a4, GEN a6, ulong ell, long *pt_k, struct meqn *MEQN + lambda = tr ? find_eigen_value_oneroot(a4, a6, ell, tr, kpoly, T, p): + find_eigen_value_power(a4, a6, ell, 1, 1, kpoly, T, p); + if (DEBUGLEVEL>1) err_printf(" [%ld ms]", timer_delay(ti)); ++ if (lambda==ell) return NULL; + if (smallfact && smallfact%(long)ell!=0) + { + ulong pell = pellk%ell; +@@ -1317,6 +1318,7 @@ find_trace_Elkies_power(GEN a4, GEN a6, ulong ell, long *pt_k, struct meqn *MEQN + if (!tmp) { k = cnt-1; break; } + if (DEBUGLEVEL) err_printf(", %Ps", powuu(ell, cnt)); + lambda = find_eigen_value_power(a4, a6, ell, cnt, lambda, gel(tmp,3), T, p); ++ if (lambda == upowuu(ell, cnt)) { k = cnt-1; break; } + Eba4 = Eca4; + Eba6 = Eca6; + Eca4 = gel(tmp,1); -- cgit v1.2.3