summaryrefslogtreecommitdiff
path: root/sci-mathematics/prng
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-05-22 07:31:18 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-05-22 07:31:18 +0100
commit908778078736bd36f7a60a2d576d415cb8e000fa (patch)
treec6a4796c48b608c14dc7e9674cdbd38f905e3c15 /sci-mathematics/prng
parent185fa19bbf68a4d4dca534d2b46729207a177f16 (diff)
gentoo resync : 22.05.2021
Diffstat (limited to 'sci-mathematics/prng')
-rw-r--r--sci-mathematics/prng/Manifest4
-rw-r--r--sci-mathematics/prng/files/prng-3.0.2-fix-all-c99-inline-semantics.patch404
-rw-r--r--sci-mathematics/prng/files/prng-3.0.2-fix-c99-inline-semantics.patch146
-rw-r--r--sci-mathematics/prng/prng-3.0.2-r3.ebuild (renamed from sci-mathematics/prng/prng-3.0.2-r2.ebuild)6
4 files changed, 409 insertions, 151 deletions
diff --git a/sci-mathematics/prng/Manifest b/sci-mathematics/prng/Manifest
index 65d39aba209a..cb2ed7c761ac 100644
--- a/sci-mathematics/prng/Manifest
+++ b/sci-mathematics/prng/Manifest
@@ -1,5 +1,5 @@
-AUX prng-3.0.2-fix-c99-inline-semantics.patch 3473 BLAKE2B b0a8ea02d13edf7e2918a92d58bf9852e5fd0a7b02a75da3ecb453b0717d037abb9d1d84c0d1bd88c7670290adbf5556b7947a31a96b28ddfae6d35375ad3058 SHA512 bcd545ddd2c8682c533ea5b1d4b97db4cdb44d85644fe2de4da43857cad9b19dbb726ecc50adc082a6f54cd3c3bd78048ee7eb3ac1c333d26272bf4d694f3872
+AUX prng-3.0.2-fix-all-c99-inline-semantics.patch 11925 BLAKE2B a95a1041afe001dc3a8531ae5e273402437e4fb3a377653c2ed42daa81f8c6d24a647c3991bea99c23d82686cd72230e6134087c4c80ce97a0d04f558292f2bc SHA512 4073da901ba7c9ab5b9102f6d19ea4853113badd9d0604967ffd4c8d9ad531b3edc0071380dd96bc917b1bc173c4204522ceb42c9b896f6e0a3b68552b7ab484
AUX prng-3.0.2-shared.patch 1049 BLAKE2B 7d9abc870911e53168104a31ad9ecaa6f98cb602ca7010698c37d745fe56d11833f147e547fc87533f4894183239cc593fbe6ed5e52f03000c2f630eb8534719 SHA512 bac71da41ab908b6682d3705434d33f37d7cbb240c87a3fc349b6461d5dc86a90010028be3b0331aa58dc3ddad31efe89986ca24966071092d6845f4c6c80864
DIST prng-3.0.2.tar.gz 497047 BLAKE2B 8df71dbf8cfe5ba384a1700830b41f947198e51262904a04796968287ca54f21f96ba34af2c0bc93393851ff3c153d24744a5d843501e0f29387282a64a03c24 SHA512 16addfedd16f1caf7489356770c15bde17d8ec5c66dca9fbaa52e50f850f2ab81a1af9d522bb6028ba5e279490beaf6c72060494e8a5367a7453a417a619367f
-EBUILD prng-3.0.2-r2.ebuild 851 BLAKE2B ef88f552195609ea6cdd5d6a00f837ce3a432f981b5b4a20e6960e7b5939a49c6e4e6b03ac996733dbdbec0a2f62900772765cbfac819ecfd431630f469c64d1 SHA512 6008aa8c24f2669846724f854c015a4f7a95bcc357ffc9fb38c4ba3d524a40b58a7a7f2f36b2a5a1d38df424e3538bf05359af2a082dc45a8d58843d1cac7c4d
+EBUILD prng-3.0.2-r3.ebuild 855 BLAKE2B 8f57ae8944a7c4b0e795c15296b02820386fa132e11b36a5d653ef299c8664ec9e24a498fb6cf3ad88ad3424832516b2fc26f9b97f670d79a6d4a722761be820 SHA512 d767bf8f86aed846bcc7204b093bb208eed8fcb9c7771886998438b25ed563cb68d328a57306d5dbfbc3a93f44592d6be21a364412456e18a7b76f07f047905a
MISC metadata.xml 673 BLAKE2B 43ee427739a3c80cf2c2ca75a85179b16e86268d535b2f422dfa78ce73b0c9a2579f47ed46bd63ae7a1c09351bcfb8090d7a4ab56f56ae4ba563b1578a2fbb9a SHA512 ba4a5b40a842b31a09e01481bd39f781d7d89d0ff304a51af8c463aeaaa7d8abeee251755672d542dae4fe71c6fecebf3e8f4da53ddca4f608fb1fcc034e002a
diff --git a/sci-mathematics/prng/files/prng-3.0.2-fix-all-c99-inline-semantics.patch b/sci-mathematics/prng/files/prng-3.0.2-fix-all-c99-inline-semantics.patch
new file mode 100644
index 000000000000..e62817043767
--- /dev/null
+++ b/sci-mathematics/prng/files/prng-3.0.2-fix-all-c99-inline-semantics.patch
@@ -0,0 +1,404 @@
+diff '--color=auto' -Naurd prng-3.0.2.orig/src/anti.c prng-3.0.2/src/anti.c
+--- prng-3.0.2.orig/src/anti.c 2001-11-06 22:31:36.000000000 +0300
++++ prng-3.0.2/src/anti.c 2021-05-19 00:41:03.400665843 +0300
+@@ -82,7 +82,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline double prng_anti_get_next(struct prng *gen)
++double prng_anti_get_next(struct prng *gen)
+ {
+ return (1. - prng_get_next(gen->data.anti_data.prng));
+ }
+@@ -114,7 +114,7 @@
+ *
+ */
+ /*
+-inline prng_num prng_anti_get_next_int(struct prng *gen)
++prng_num prng_anti_get_next_int(struct prng *gen)
+ ... undefined !!!
+ */
+
+diff '--color=auto' -Naurd prng-3.0.2.orig/src/compound.c prng-3.0.2/src/compound.c
+--- prng-3.0.2.orig/src/compound.c 2001-11-06 22:34:51.000000000 +0300
++++ prng-3.0.2/src/compound.c 2021-05-19 00:41:03.395665825 +0300
+@@ -105,7 +105,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline double prng_compound_get_next(struct prng *gen)
++double prng_compound_get_next(struct prng *gen)
+ {
+ int i;
+ double sum = 0.0;
+diff '--color=auto' -Naurd prng-3.0.2.orig/src/cons.c prng-3.0.2/src/cons.c
+--- prng-3.0.2.orig/src/cons.c 2001-11-06 22:35:29.000000000 +0300
++++ prng-3.0.2/src/cons.c 2021-05-19 00:41:03.392665813 +0300
+@@ -89,7 +89,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline double prng_con_get_next(struct prng *gen)
++double prng_con_get_next(struct prng *gen)
+ {
+ return(prng_get_next(gen->data.con_data.prng));
+ }
+@@ -119,7 +119,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline prng_num prng_con_get_next_int(struct prng *gen)
++prng_num prng_con_get_next_int(struct prng *gen)
+ {
+ return(prng_get_next_int(gen->data.con_data.prng));
+ }
+diff '--color=auto' -Naurd prng-3.0.2.orig/src/dicg.c prng-3.0.2/src/dicg.c
+--- prng-3.0.2.orig/src/dicg.c 2001-11-06 22:35:50.000000000 +0300
++++ prng-3.0.2/src/dicg.c 2021-05-19 00:41:03.398665836 +0300
+@@ -441,7 +441,7 @@
+ * Algorithm by Karin Schaber and Otmar Lendl.
+ *
+ */
+-inline prng_num prng_dicg_multiply(int k,prng_num c, prng_num d)
++prng_num prng_dicg_multiply(int k,prng_num c, prng_num d)
+ {
+ int i;
+ struct mtable *t;
+@@ -593,7 +593,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline prng_num prng_dicg_get_next_int(struct prng *gen) /* DUMMY !!!!*/
++prng_num prng_dicg_get_next_int(struct prng *gen) /* DUMMY !!!!*/
+ {
+ s_prng_num inv, current, prod;
+
+@@ -619,7 +619,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline double prng_dicg_get_next(struct prng *gen)
++double prng_dicg_get_next(struct prng *gen)
+ {
+ return(prng_dicg_get_next_int(gen) * gen->data.dicg_data.inv_p);
+ }
+diff '--color=auto' -Naurd prng-3.0.2.orig/src/eicg.c prng-3.0.2/src/eicg.c
+--- prng-3.0.2.orig/src/eicg.c 2001-11-06 22:36:04.000000000 +0300
++++ prng-3.0.2/src/eicg.c 2021-05-19 00:41:03.405665862 +0300
+@@ -120,7 +120,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline prng_num prng_eicg_get_next_int(struct prng *gen)
++prng_num prng_eicg_get_next_int(struct prng *gen)
+ {
+ prng_num old;
+
+@@ -138,7 +138,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline double prng_eicg_get_next(struct prng *gen)
++double prng_eicg_get_next(struct prng *gen)
+ {
+ return(prng_eicg_get_next_int(gen) * gen->data.eicg_data.inv_p);
+ }
+diff '--color=auto' -Naurd prng-3.0.2.orig/src/external.c prng-3.0.2/src/external.c
+--- prng-3.0.2.orig/src/external.c 2001-11-06 22:36:35.000000000 +0300
++++ prng-3.0.2/src/external.c 2021-05-19 00:41:03.391665810 +0300
+@@ -139,7 +139,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline prng_num prng_tt800_get_next_int(struct prng *gen)
++prng_num prng_tt800_get_next_int(struct prng *gen)
+ {
+ unsigned int y;
+ struct tt800_state *g;
+@@ -189,7 +189,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline double prng_tt800_get_next(struct prng *gen)
++double prng_tt800_get_next(struct prng *gen)
+ {
+ return(prng_tt800_get_next_int(gen) * TT800_INV_MOD);
+ }
+@@ -223,7 +223,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline prng_num prng_ctg_get_next_int(struct prng *gen)
++prng_num prng_ctg_get_next_int(struct prng *gen)
+ {
+ unsigned int b;
+ struct ctg_state *g;
+@@ -247,7 +247,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline double prng_ctg_get_next(struct prng *gen)
++double prng_ctg_get_next(struct prng *gen)
+ {
+ return(prng_ctg_get_next_int(gen) * 2.3283064365e-10);
+ }
+@@ -285,7 +285,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline prng_num prng_mrg_get_next_int(struct prng *gen)
++prng_num prng_mrg_get_next_int(struct prng *gen)
+ {
+ int h,p1,p5;
+ struct mrg_state *g;
+@@ -312,7 +312,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline double prng_mrg_get_next(struct prng *gen)
++double prng_mrg_get_next(struct prng *gen)
+ {
+ return(prng_mrg_get_next_int(gen) * 4.656612873077393e-10);
+ }
+@@ -350,7 +350,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline prng_num prng_cmrg_get_next_int(struct prng *gen)
++prng_num prng_cmrg_get_next_int(struct prng *gen)
+ {
+ int h, p12, p13, p21, p23;
+ struct cmrg_state *g;
+@@ -385,7 +385,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline double prng_cmrg_get_next(struct prng *gen)
++double prng_cmrg_get_next(struct prng *gen)
+ {
+ return(prng_cmrg_get_next_int(gen) * 4.656612873077393e-10);
+ }
+diff '--color=auto' -Naurd prng-3.0.2.orig/src/file.c prng-3.0.2/src/file.c
+--- prng-3.0.2.orig/src/file.c 2001-11-06 22:36:54.000000000 +0300
++++ prng-3.0.2/src/file.c 2021-05-19 00:41:03.404665858 +0300
+@@ -88,7 +88,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline double prng_afile_get_next(struct prng *gen)
++double prng_afile_get_next(struct prng *gen)
+ {
+ double d;
+ char line[64];
+@@ -135,7 +135,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline double prng_bfile_get_next(struct prng *gen)
++double prng_bfile_get_next(struct prng *gen)
+ {
+ prng_num n;
+
+diff '--color=auto' -Naurd prng-3.0.2.orig/src/icg.c prng-3.0.2/src/icg.c
+--- prng-3.0.2.orig/src/icg.c 2001-11-06 22:37:07.000000000 +0300
++++ prng-3.0.2/src/icg.c 2021-05-19 00:41:03.407665870 +0300
+@@ -110,7 +110,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline prng_num prng_icg_get_next_int(struct prng *gen)
++prng_num prng_icg_get_next_int(struct prng *gen)
+ {
+ s_prng_num inv, current, prod;
+
+@@ -135,7 +135,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline double prng_icg_get_next(struct prng *gen)
++double prng_icg_get_next(struct prng *gen)
+ {
+ return(prng_icg_get_next_int(gen) * gen->data.icg_data.inv_p);
+ }
+diff '--color=auto' -Naurd prng-3.0.2.orig/src/lcg.c prng-3.0.2/src/lcg.c
+--- prng-3.0.2.orig/src/lcg.c 2001-11-06 22:37:29.000000000 +0300
++++ prng-3.0.2/src/lcg.c 2021-05-19 00:41:03.394665821 +0300
+@@ -111,7 +111,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline prng_num prng_lcg_get_next_int(struct prng *gen)
++prng_num prng_lcg_get_next_int(struct prng *gen)
+ {
+ s_prng_num ax, current;
+
+@@ -130,7 +130,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline double prng_lcg_get_next(struct prng *gen)
++double prng_lcg_get_next(struct prng *gen)
+ {
+ return(prng_lcg_get_next_int(gen) * gen->data.lcg_data.inv_p);
+ }
+diff '--color=auto' -Naurd prng-3.0.2.orig/src/meicg.c prng-3.0.2/src/meicg.c
+--- prng-3.0.2.orig/src/meicg.c 2001-11-06 22:37:40.000000000 +0300
++++ prng-3.0.2/src/meicg.c 2021-05-19 00:41:03.396665828 +0300
+@@ -106,7 +106,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline prng_num prng_meicg_get_next_int(struct prng *gen)
++prng_num prng_meicg_get_next_int(struct prng *gen)
+ {
+ s_prng_num an, sum, inv, n;
+
+@@ -144,7 +144,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline double prng_meicg_get_next(struct prng *gen)
++double prng_meicg_get_next(struct prng *gen)
+ {
+ return(prng_meicg_get_next_int(gen) * gen->data.meicg_data.inv_p);
+ }
+diff '--color=auto' -Naurd prng-3.0.2.orig/src/mt19937.c prng-3.0.2/src/mt19937.c
+--- prng-3.0.2.orig/src/mt19937.c 2001-11-06 22:38:08.000000000 +0300
++++ prng-3.0.2/src/mt19937.c 2021-05-19 00:45:22.720661481 +0300
+@@ -137,7 +137,7 @@
+ * seed: used for initializing array
+ *
+ */
+-inline void prng_mt19937_seed( struct prng *gen, prng_num seed )
++void prng_mt19937_seed( struct prng *gen, prng_num seed )
+ {
+ int i;
+
+@@ -172,7 +172,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline prng_num prng_mt19937_get_next_int(struct prng *gen)
++prng_num prng_mt19937_get_next_int(struct prng *gen)
+ {
+ #define MT gen->data.mt19937_data.mt
+ #define MTI gen->data.mt19937_data.mti
+@@ -220,7 +220,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline double prng_mt19937_get_next(struct prng *gen)
++double prng_mt19937_get_next(struct prng *gen)
+ {
+ /* reals: [0,1)-interval */
+ /* multiply with 1. / 2^32 */
+diff '--color=auto' -Naurd prng-3.0.2.orig/src/prng.h prng-3.0.2/src/prng.h
+--- prng-3.0.2.orig/src/prng.h 2001-11-06 23:04:41.000000000 +0300
++++ prng-3.0.2/src/prng.h 2021-05-19 00:40:49.381612020 +0300
+@@ -406,7 +406,7 @@
+ /* INLINE fnk def. for mult_mod, I don't know if this works for non-GCC */
+
+ #ifdef __GNUC__
+-extern __inline__ prng_num mult_mod(prng_num s,struct mult_mod_struct *mm)
++static inline prng_num mult_mod(prng_num s,struct mult_mod_struct *mm)
+ {
+ s_prng_num s_tmp;
+
+diff '--color=auto' -Naurd prng-3.0.2.orig/src/qcg.c prng-3.0.2/src/qcg.c
+--- prng-3.0.2.orig/src/qcg.c 2001-11-06 22:39:13.000000000 +0300
++++ prng-3.0.2/src/qcg.c 2021-05-19 00:41:03.403665855 +0300
+@@ -107,7 +107,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline prng_num prng_qcg_get_next_int(struct prng *gen)
++prng_num prng_qcg_get_next_int(struct prng *gen)
+ {
+ s_prng_num current, sum, square, q_term, l_term;
+
+@@ -150,7 +150,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline double prng_qcg_get_next(struct prng *gen)
++double prng_qcg_get_next(struct prng *gen)
+ {
+ return(prng_qcg_get_next_int(gen) * gen->data.qcg_data.inv_p);
+ }
+diff '--color=auto' -Naurd prng-3.0.2.orig/src/sub.c prng-3.0.2/src/sub.c
+--- prng-3.0.2.orig/src/sub.c 2001-11-06 22:39:06.000000000 +0300
++++ prng-3.0.2/src/sub.c 2021-05-19 00:41:03.402665851 +0300
+@@ -89,7 +89,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline double prng_sub_get_next(struct prng *gen)
++double prng_sub_get_next(struct prng *gen)
+ {
+ prng_num j;
+ double tmp;
+@@ -127,7 +127,7 @@
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline prng_num prng_sub_get_next_int(struct prng *gen)
++prng_num prng_sub_get_next_int(struct prng *gen)
+ {
+ prng_num j,tmp;
+
+diff '--color=auto' -Naurd prng-3.0.2.orig/src/support.c prng-3.0.2/src/support.c
+--- prng-3.0.2.orig/src/support.c 2001-11-06 23:03:26.000000000 +0300
++++ prng-3.0.2/src/support.c 2021-05-19 00:40:49.381612020 +0300
+@@ -449,52 +449,6 @@
+ }
+ }
+
+-#ifndef __cplusplus
+-/*
+- * Modular Multiplication. Uses the precalculated values from mult_mod_setup.
+- *
+- *
+- * Input:
+- * s An prng_num.
+- * mm pointer to a struct mult_mod_struct initialized
+- * by mult_mod_setup.
+- *
+- * Output:
+- * (mm->a*s) mod mm->p
+- *
+- */
+-prng_num mult_mod(prng_num s,struct mult_mod_struct *mm)
+-{
+-s_prng_num s_tmp;
+-
+-switch(mm->algorithm)
+- {
+- case PRNG_MM_ZERO: return(0);
+- break;
+- case PRNG_MM_ONE: return(s);
+- break;
+- case PRNG_MM_SIMPLE: return((s * mm->a) % mm->p );
+- break;
+- case PRNG_MM_SCHRAGE:
+- s_tmp = mm->a * ( s % mm->q ) -
+- mm->r * ( s / mm->q );
+- if (s_tmp < 0) s_tmp += mm->p;
+- return(s_tmp);
+- break;
+- case PRNG_MM_DECOMP: return(mult_mod_generic(s,mm->a,mm->p));
+- break;
+-#ifdef HAVE_LONGLONG
+- case PRNG_MM_LL: return(mult_mod_ll(s,mm->a,mm->p));
+- break;
+-#endif
+- case PRNG_MM_POW2: return((s*mm->a) & mm->mask);
+- break;
+- }
+-/* not reached */
+-return(0);
+-}
+-#endif
+-
+
+ /*
+ * Modular Multiplication: Decomposition method (from L'Ecuyer & Cote)
diff --git a/sci-mathematics/prng/files/prng-3.0.2-fix-c99-inline-semantics.patch b/sci-mathematics/prng/files/prng-3.0.2-fix-c99-inline-semantics.patch
deleted file mode 100644
index c84a288d47dd..000000000000
--- a/sci-mathematics/prng/files/prng-3.0.2-fix-c99-inline-semantics.patch
+++ /dev/null
@@ -1,146 +0,0 @@
-Use portable 'static inline' semantics that work in GNU89 and C99
-See also: http://www.greenend.org.uk/rjk/tech/inline.html
-
---- a/src/dicg.c
-+++ b/src/dicg.c
-@@ -441,7 +441,7 @@
- * Algorithm by Karin Schaber and Otmar Lendl.
- *
- */
--inline prng_num prng_dicg_multiply(int k,prng_num c, prng_num d)
-+prng_num prng_dicg_multiply(int k,prng_num c, prng_num d)
- {
- int i;
- struct mtable *t;
---- a/src/external.c
-+++ b/src/external.c
-@@ -139,7 +139,7 @@
- * gen: Pointer to a struct prng.
- *
- */
--inline prng_num prng_tt800_get_next_int(struct prng *gen)
-+prng_num prng_tt800_get_next_int(struct prng *gen)
- {
- unsigned int y;
- struct tt800_state *g;
---- a/src/icg.c
-+++ b/src/icg.c
-@@ -110,7 +110,7 @@
- * gen: Pointer to a struct prng.
- *
- */
--inline prng_num prng_icg_get_next_int(struct prng *gen)
-+prng_num prng_icg_get_next_int(struct prng *gen)
- {
- s_prng_num inv, current, prod;
-
---- a/src/lcg.c
-+++ b/src/lcg.c
-@@ -111,7 +111,7 @@
- * gen: Pointer to a struct prng.
- *
- */
--inline prng_num prng_lcg_get_next_int(struct prng *gen)
-+prng_num prng_lcg_get_next_int(struct prng *gen)
- {
- s_prng_num ax, current;
-
---- a/src/meicg.c
-+++ b/src/meicg.c
-@@ -106,7 +106,7 @@
- * gen: Pointer to a struct prng.
- *
- */
--inline prng_num prng_meicg_get_next_int(struct prng *gen)
-+prng_num prng_meicg_get_next_int(struct prng *gen)
- {
- s_prng_num an, sum, inv, n;
-
---- a/src/mt19937.c
-+++ b/src/mt19937.c
-@@ -172,7 +172,7 @@
- * gen: Pointer to a struct prng.
- *
- */
--inline prng_num prng_mt19937_get_next_int(struct prng *gen)
-+prng_num prng_mt19937_get_next_int(struct prng *gen)
- {
- #define MT gen->data.mt19937_data.mt
- #define MTI gen->data.mt19937_data.mti
---- a/src/prng.h
-+++ b/src/prng.h
-@@ -406,7 +406,7 @@
- /* INLINE fnk def. for mult_mod, I don't know if this works for non-GCC */
-
- #ifdef __GNUC__
--extern __inline__ prng_num mult_mod(prng_num s,struct mult_mod_struct *mm)
-+static inline prng_num mult_mod(prng_num s,struct mult_mod_struct *mm)
- {
- s_prng_num s_tmp;
-
---- a/src/qcg.c
-+++ b/src/qcg.c
-@@ -107,7 +107,7 @@
- * gen: Pointer to a struct prng.
- *
- */
--inline prng_num prng_qcg_get_next_int(struct prng *gen)
-+prng_num prng_qcg_get_next_int(struct prng *gen)
- {
- s_prng_num current, sum, square, q_term, l_term;
-
---- a/src/support.c
-+++ b/src/support.c
-@@ -449,52 +449,6 @@
- }
- }
-
--#ifndef __cplusplus
--/*
-- * Modular Multiplication. Uses the precalculated values from mult_mod_setup.
-- *
-- *
-- * Input:
-- * s An prng_num.
-- * mm pointer to a struct mult_mod_struct initialized
-- * by mult_mod_setup.
-- *
-- * Output:
-- * (mm->a*s) mod mm->p
-- *
-- */
--prng_num mult_mod(prng_num s,struct mult_mod_struct *mm)
--{
--s_prng_num s_tmp;
--
--switch(mm->algorithm)
-- {
-- case PRNG_MM_ZERO: return(0);
-- break;
-- case PRNG_MM_ONE: return(s);
-- break;
-- case PRNG_MM_SIMPLE: return((s * mm->a) % mm->p );
-- break;
-- case PRNG_MM_SCHRAGE:
-- s_tmp = mm->a * ( s % mm->q ) -
-- mm->r * ( s / mm->q );
-- if (s_tmp < 0) s_tmp += mm->p;
-- return(s_tmp);
-- break;
-- case PRNG_MM_DECOMP: return(mult_mod_generic(s,mm->a,mm->p));
-- break;
--#ifdef HAVE_LONGLONG
-- case PRNG_MM_LL: return(mult_mod_ll(s,mm->a,mm->p));
-- break;
--#endif
-- case PRNG_MM_POW2: return((s*mm->a) & mm->mask);
-- break;
-- }
--/* not reached */
--return(0);
--}
--#endif
--
-
- /*
- * Modular Multiplication: Decomposition method (from L'Ecuyer & Cote)
diff --git a/sci-mathematics/prng/prng-3.0.2-r2.ebuild b/sci-mathematics/prng/prng-3.0.2-r3.ebuild
index 83b0901cdd8a..676b10eb389a 100644
--- a/sci-mathematics/prng/prng-3.0.2-r2.ebuild
+++ b/sci-mathematics/prng/prng-3.0.2-r3.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
inherit autotools
@@ -16,7 +16,7 @@ IUSE="doc examples static-libs"
PATCHES=(
"${FILESDIR}"/${PN}-3.0.2-shared.patch
- "${FILESDIR}"/${PN}-3.0.2-fix-c99-inline-semantics.patch
+ "${FILESDIR}"/${PN}-3.0.2-fix-all-c99-inline-semantics.patch
)
src_prepare() {