summaryrefslogtreecommitdiff
path: root/sci-mathematics/pari/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-01-16 17:57:56 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-01-16 17:57:56 +0000
commit79be8f00e2aa293669b8e22e1ef02d2d5c5f9e25 (patch)
treeee4847d4f20721d819ed71a1e94bb04ff1a8ee4a /sci-mathematics/pari/files
parent61f62e5edc868fc4ae3b92af397397ee5056578a (diff)
gentoo auto-resync : 16:01:2023 - 17:57:56
Diffstat (limited to 'sci-mathematics/pari/files')
-rw-r--r--sci-mathematics/pari/files/pari-2.15.2-ellsea.patch22
1 files changed, 22 insertions, 0 deletions
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);