mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Reduce global status constants
The constants: 9, 9/10, 10/9, 24, 360, 400 are used by func.c only, so there were moved from {q,z}math.{c,h} to func.c. The constants: 3, 4 are used by zrandom.c only, so there were moved from {q,z}math.{c,h} to zrandom.c.
This commit is contained in:
@@ -1092,6 +1092,15 @@
|
||||
STATIC RANDOM blum;
|
||||
|
||||
|
||||
/*
|
||||
* static constants 3 and 4 used by zsrandom4
|
||||
*/
|
||||
STATIC HALF _threeval_[] = { 3 };
|
||||
STATIC ZVALUE _three_ = { _threeval_, 1, 0 };
|
||||
STATIC HALF _fourval_[] = { 4 };
|
||||
STATIC ZVALUE _four_ = { _fourval_, 1, 0 };
|
||||
|
||||
|
||||
/*
|
||||
* Default Blum generator
|
||||
*
|
||||
|
Reference in New Issue
Block a user