diff options
author | joerg <joerg> | 2012-11-01 19:42:01 +0000 |
---|---|---|
committer | joerg <joerg> | 2012-11-01 19:42:01 +0000 |
commit | a06e4831caf4a291d40698044402c82fb6948c17 (patch) | |
tree | 0a7477215b582f509346cd253812c3e0850e91fe /math/prng/patches/patch-src_dicg.c | |
parent | 2e5c0ec16e1b49c52ef500603fb6e736aeeebf55 (diff) | |
download | pkgsrc-a06e4831caf4a291d40698044402c82fb6948c17.tar.gz |
Fix inline misuse.
Diffstat (limited to 'math/prng/patches/patch-src_dicg.c')
-rw-r--r-- | math/prng/patches/patch-src_dicg.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/math/prng/patches/patch-src_dicg.c b/math/prng/patches/patch-src_dicg.c new file mode 100644 index 00000000000..51ca3835903 --- /dev/null +++ b/math/prng/patches/patch-src_dicg.c @@ -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); + } |