pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math/prng Fix inline misuse.
details: https://anonhg.NetBSD.org/pkgsrc/rev/fc7812c86eae
branches: trunk
changeset: 610641:fc7812c86eae
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Nov 01 19:42:01 2012 +0000
description:
Fix inline misuse.
diffstat:
math/prng/distinfo | 17 +++++++-
math/prng/patches/patch-src_anti.c | 22 +++++++++
math/prng/patches/patch-src_compound.c | 13 +++++
math/prng/patches/patch-src_cons.c | 22 +++++++++
math/prng/patches/patch-src_dicg.c | 31 +++++++++++++
math/prng/patches/patch-src_eicg.c | 22 +++++++++
math/prng/patches/patch-src_external.c | 76 ++++++++++++++++++++++++++++++++++
math/prng/patches/patch-src_file.c | 22 +++++++++
math/prng/patches/patch-src_icg.c | 22 +++++++++
math/prng/patches/patch-src_lcg.c | 22 +++++++++
math/prng/patches/patch-src_meicg.c | 22 +++++++++
math/prng/patches/patch-src_mt19937.c | 31 +++++++++++++
math/prng/patches/patch-src_prng.h | 23 ++++++++++
math/prng/patches/patch-src_qcg.c | 22 +++++++++
math/prng/patches/patch-src_sub.c | 22 +++++++++
math/prng/patches/patch-src_support.c | 13 +++++
16 files changed, 401 insertions(+), 1 deletions(-)
diffs (truncated from 470 to 300 lines):
diff -r 88e841f2b9b6 -r fc7812c86eae math/prng/distinfo
--- a/math/prng/distinfo Thu Nov 01 19:40:08 2012 +0000
+++ b/math/prng/distinfo Thu Nov 01 19:42:01 2012 +0000
@@ -1,5 +1,20 @@
-$NetBSD: distinfo,v 1.1.1.1 2010/02/19 13:56:53 wiz Exp $
+$NetBSD: distinfo,v 1.2 2012/11/01 19:42:01 joerg Exp $
SHA1 (prng-3.0.2.tar.gz) = 02175da3f49a16bcf7eee70b53564f05941232d4
RMD160 (prng-3.0.2.tar.gz) = e7d885a74751e8d9c906279516a025a152d4c12e
Size (prng-3.0.2.tar.gz) = 497047 bytes
+SHA1 (patch-src_anti.c) = 9c59690cb330c618b45a8b661004a28da80f11b1
+SHA1 (patch-src_compound.c) = 4b2bf6f4a7e17edf9af7196904dec25172e68888
+SHA1 (patch-src_cons.c) = 96101503051eb6794c008ce9b46fc205726d6fcd
+SHA1 (patch-src_dicg.c) = 81fae8bbee6797bba7649b3ddac7f268127511e8
+SHA1 (patch-src_eicg.c) = 020993311c7d67c5a5bc3768f4cab97681b8d218
+SHA1 (patch-src_external.c) = 0ec01f81c6c6960ce1b75da0bbbaf274b578aff2
+SHA1 (patch-src_file.c) = 6e1379a28155ba7b084c2105233a5fd1acd553cc
+SHA1 (patch-src_icg.c) = 5af81ada3c1772f88b316b83fde4813cad907ce1
+SHA1 (patch-src_lcg.c) = 15aee3bb2ecc01697d3edc68d5824e27db22c4c3
+SHA1 (patch-src_meicg.c) = aa40178f4d02f923513de7c5bc155f25c7624bee
+SHA1 (patch-src_mt19937.c) = 1b97825840ad0fa797219f45c5256276eb9231f0
+SHA1 (patch-src_prng.h) = 2f719fcbb151c08b2731246688911a4b49f4baad
+SHA1 (patch-src_qcg.c) = 16d7f5dca829264c62ca7ca97f5c9ddc50186117
+SHA1 (patch-src_sub.c) = 0c01b28efdbf772c6345fbaa707a0514b625beca
+SHA1 (patch-src_support.c) = 78eb361b56f378cf390400bd5f48ff2fb5c751f5
diff -r 88e841f2b9b6 -r fc7812c86eae math/prng/patches/patch-src_anti.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/prng/patches/patch-src_anti.c Thu Nov 01 19:42:01 2012 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_anti.c,v 1.1 2012/11/01 19:42:01 joerg Exp $
+
+--- src/anti.c.orig 2012-10-30 20:00:10.000000000 +0000
++++ src/anti.c
+@@ -82,7 +82,7 @@ void prng_anti_reset(struct prng *gen)
+ * 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 @@ void prng_anti_get_array(struct prng *ge
+ *
+ */
+ /*
+-inline prng_num prng_anti_get_next_int(struct prng *gen)
++prng_num prng_anti_get_next_int(struct prng *gen)
+ ... undefined !!!
+ */
+
diff -r 88e841f2b9b6 -r fc7812c86eae math/prng/patches/patch-src_compound.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/prng/patches/patch-src_compound.c Thu Nov 01 19:42:01 2012 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_compound.c,v 1.1 2012/11/01 19:42:01 joerg Exp $
+
+--- src/compound.c.orig 2012-10-30 20:00:16.000000000 +0000
++++ src/compound.c
+@@ -105,7 +105,7 @@ void prng_compound_seed(struct prng *gen
+ * 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 -r 88e841f2b9b6 -r fc7812c86eae math/prng/patches/patch-src_cons.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/prng/patches/patch-src_cons.c Thu Nov 01 19:42:01 2012 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_cons.c,v 1.1 2012/11/01 19:42:01 joerg Exp $
+
+--- src/cons.c.orig 2012-10-30 20:00:14.000000000 +0000
++++ src/cons.c
+@@ -89,7 +89,7 @@ void prng_con_reset(struct prng *gen)
+ * 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 @@ void prng_con_get_array(struct prng *gen
+ * 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 -r 88e841f2b9b6 -r fc7812c86eae math/prng/patches/patch-src_dicg.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/prng/patches/patch-src_dicg.c Thu Nov 01 19:42:01 2012 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-src_dicg.c,v 1.1 2012/11/01 19:42:01 joerg Exp $
+
+--- src/dicg.c.orig 2012-10-30 20:00:40.000000000 +0000
++++ src/dicg.c
+@@ -441,7 +441,7 @@ t->pton[29] = 1073741823;
+ * 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 @@ void prng_dicg_seed(struct prng *gen,prn
+ * 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 @@ inline prng_num prng_dicg_get_next_int(s
+ * 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 -r 88e841f2b9b6 -r fc7812c86eae math/prng/patches/patch-src_eicg.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/prng/patches/patch-src_eicg.c Thu Nov 01 19:42:01 2012 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_eicg.c,v 1.1 2012/11/01 19:42:01 joerg Exp $
+
+--- src/eicg.c.orig 2012-10-30 20:00:38.000000000 +0000
++++ src/eicg.c
+@@ -120,7 +120,7 @@ void prng_eicg_seed(struct prng *gen,prn
+ * 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 @@ inline prng_num prng_eicg_get_next_int(s
+ * 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 -r 88e841f2b9b6 -r fc7812c86eae math/prng/patches/patch-src_external.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/prng/patches/patch-src_external.c Thu Nov 01 19:42:01 2012 +0000
@@ -0,0 +1,76 @@
+$NetBSD: patch-src_external.c,v 1.1 2012/11/01 19:42:01 joerg Exp $
+
+--- src/external.c.orig 2012-10-30 20:00:20.000000000 +0000
++++ src/external.c
+@@ -139,7 +139,7 @@ static unsigned int tt800_mag01[2]=
+ * 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 @@ return(y);
+ * 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 @@ struct ctg_state
+ * 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 @@ return(g->s1 ^ g->s2 ^ g->s3);
+ * 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 @@ struct mrg_state
+ * 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 @@ return(g->x1);
+ * 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 @@ struct cmrg_state
+ * 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 @@ else
+ * 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 -r 88e841f2b9b6 -r fc7812c86eae math/prng/patches/patch-src_file.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/prng/patches/patch-src_file.c Thu Nov 01 19:42:01 2012 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_file.c,v 1.1 2012/11/01 19:42:01 joerg Exp $
+
+--- src/file.c.orig 2012-10-30 20:00:18.000000000 +0000
++++ src/file.c
+@@ -88,7 +88,7 @@ void prng_file_reset(struct prng *gen)
+ * 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 @@ void prng_afile_get_array(struct prng *g
+ * 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 -r 88e841f2b9b6 -r fc7812c86eae math/prng/patches/patch-src_icg.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/prng/patches/patch-src_icg.c Thu Nov 01 19:42:01 2012 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_icg.c,v 1.1 2012/11/01 19:42:01 joerg Exp $
+
+--- src/icg.c.orig 2012-10-30 20:00:34.000000000 +0000
++++ src/icg.c
+@@ -110,7 +110,7 @@ void prng_icg_seed(struct prng *gen,prng
+ * 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 @@ inline prng_num prng_icg_get_next_int(st
+ * 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 -r 88e841f2b9b6 -r fc7812c86eae math/prng/patches/patch-src_lcg.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/prng/patches/patch-src_lcg.c Thu Nov 01 19:42:01 2012 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_lcg.c,v 1.1 2012/11/01 19:42:01 joerg Exp $
+
+--- src/lcg.c.orig 2012-10-30 20:00:32.000000000 +0000
++++ src/lcg.c
+@@ -111,7 +111,7 @@ void prng_lcg_seed(struct prng *gen,prng
+ * gen: Pointer to a struct prng.
+ *
+ */
+-inline prng_num prng_lcg_get_next_int(struct prng *gen)
Home |
Main Index |
Thread Index |
Old Index