diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-04-23 14:48:15 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-04-23 14:48:15 -0300 |
| commit | 0ddc0f47bd2a03678e1afbc384550aecb55a318f (patch) | |
| tree | b441f7e68329c59aa3f44bb4967f404b5319dbe4 /lmathlib.c | |
| parent | cac075a1221f373053196dbb24bdcff4609b8241 (diff) | |
| download | lua-0ddc0f47bd2a03678e1afbc384550aecb55a318f.tar.gz lua-0ddc0f47bd2a03678e1afbc384550aecb55a318f.tar.bz2 lua-0ddc0f47bd2a03678e1afbc384550aecb55a318f.zip | |
Several details about 5.4.0 rc1
Corrected several small details: added 'const', adjusts in tabs x
spaces, removed unused #includes and #defines, misspellings, etc.
Diffstat (limited to 'lmathlib.c')
| -rw-r--r-- | lmathlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -328,7 +328,7 @@ static Rand64 nextrand (Rand64 *state) { | |||
| 328 | */ | 328 | */ |
| 329 | 329 | ||
| 330 | /* must throw out the extra (64 - FIGS) bits */ | 330 | /* must throw out the extra (64 - FIGS) bits */ |
| 331 | #define shift64_FIG (64 - FIGS) | 331 | #define shift64_FIG (64 - FIGS) |
| 332 | 332 | ||
| 333 | /* to scale to [0, 1), multiply by scaleFIG = 2^(-FIGS) */ | 333 | /* to scale to [0, 1), multiply by scaleFIG = 2^(-FIGS) */ |
| 334 | #define scaleFIG (l_mathop(0.5) / ((Rand64)1 << (FIGS - 1))) | 334 | #define scaleFIG (l_mathop(0.5) / ((Rand64)1 << (FIGS - 1))) |
