diff options
author | Zeev Suraski <zeev@php.net> | 2001-08-11 17:03:37 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-08-11 17:03:37 +0000 |
commit | c0404f46311e5b519dc51697e181bb39ca8d09d2 (patch) | |
tree | 291959f75d7b2a3f3e171830ed6eea76b5d98b4d /ext/standard/lcg.c | |
parent | f6f6c4d7e63d2eaf4ece7aee66f46a013b29bffa (diff) | |
download | php-git-c0404f46311e5b519dc51697e181bb39ca8d09d2.tar.gz |
Whitespace
Diffstat (limited to 'ext/standard/lcg.c')
-rw-r--r-- | ext/standard/lcg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/lcg.c b/ext/standard/lcg.c index 6363cf1a12..7ae45a0ef0 100644 --- a/ext/standard/lcg.c +++ b/ext/standard/lcg.c @@ -38,21 +38,21 @@ static int php_lcg_initialized = 0; #endif /* - * combinedLCG() returns a pseudo random number in the range of (0,1). + * combinedLCG() returns a pseudo random number in the range of (0, 1). * The function combines two CGs with periods of * 2^31 - 85 and 2^31 - 249. The period of this function * is equal to the product of both primes. */ -#define MODMULT(a,b,c,m,s) q = s/a;s=b*(s-a*q)-c*q;if(s<0)s+=m +#define MODMULT(a, b, c, m, s) q = s/a;s=b*(s-a*q)-c*q;if(s<0)s+=m double php_combined_lcg(TSRMLS_D) { php_int32 q; php_int32 z; - MODMULT(53668,40014,12211,2147483563L, LCG(s1)); - MODMULT(52774,40692,3791, 2147483399L, LCG(s2)); + MODMULT(53668, 40014, 12211, 2147483563L, LCG(s1)); + MODMULT(52774, 40692, 3791, 2147483399L, LCG(s2)); z = LCG(s1) - LCG(s2); if(z < 1) { |