diff options
author | François Bissey <frp.bissey@gmail.com> | 2020-10-27 13:32:14 +1300 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-01-22 04:28:24 +0000 |
commit | cafe8af137d1a9e2bfa62e9ebfb20df5cb6e2831 (patch) | |
tree | 2009b299cb9bc632cc5e689293b531678ac7540d /sci-mathematics/gmp-ecm/files | |
parent | dev-python/plotly: version bump to 4.14.3 (diff) | |
download | gentoo-cafe8af137d1a9e2bfa62e9ebfb20df5cb6e2831.tar.gz gentoo-cafe8af137d1a9e2bfa62e9ebfb20df5cb6e2831.tar.bz2 gentoo-cafe8af137d1a9e2bfa62e9ebfb20df5cb6e2831.zip |
sci-mathematics/gmp-ecm: fix #732032, #750716 and update HOME and SRC_URI
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Closes: https://bugs.gentoo.org/732032
Closes: https://bugs.gentoo.org/750716
Signed-off-by: François René Pierre Bissey <frp.bissey@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/18044
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-mathematics/gmp-ecm/files')
-rw-r--r-- | sci-mathematics/gmp-ecm/files/gmp-ecm-7.0.4-openmp.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sci-mathematics/gmp-ecm/files/gmp-ecm-7.0.4-openmp.patch b/sci-mathematics/gmp-ecm/files/gmp-ecm-7.0.4-openmp.patch new file mode 100644 index 000000000000..e382bf4ed28b --- /dev/null +++ b/sci-mathematics/gmp-ecm/files/gmp-ecm-7.0.4-openmp.patch @@ -0,0 +1,25 @@ +# fix for https://bugs.gentoo.org/732032 merged upstream +diff --git a/pm1fs2.c b/pm1fs2.c +index 4471bf6..89f8077 100644 +--- a/pm1fs2.c ++++ b/pm1fs2.c +@@ -1562,17 +1562,16 @@ list_scale_V (listz_t R, const listz_t F, const mpres_t Q, + #pragma omp parallel if (deg > 1000) + { + mpmod_t modulus_local; +- long i; /* OpenMP insists on signed loop iteration var :( */ + + mpmod_init_set (modulus_local, modulus); + + #pragma omp for +- for (i = 0; (unsigned long) i <= 2 * deg - 2; i++) ++ for (i = 0; i <= 2 * deg - 2; i++) + mpres_mul_z_to_z (H[i], Vt, H[i], modulus_local); + mpmod_clear (modulus_local); + } + #else +- for (i = 0; (unsigned long) i <= 2 * deg - 2; i++) ++ for (i = 0; i <= 2 * deg - 2; i++) + mpres_mul_z_to_z (H[i], Vt, H[i], modulus); + #endif + |