mirror of https://github.com/YosysHQ/abc.git
Convert the other divide to a multiply
This commit is contained in:
parent
cd711089d7
commit
ad8f8a2aab
|
|
@ -60,7 +60,7 @@ static void printlits(lit* begin, lit* end)
|
||||||
static inline double drand(double* seed) {
|
static inline double drand(double* seed) {
|
||||||
int q;
|
int q;
|
||||||
*seed *= 1389796;
|
*seed *= 1389796;
|
||||||
q = (int)(*seed / 2147483647);
|
q = (int)(*seed * 4.6566128752457969e-10); // 1.0/2147483647.0;
|
||||||
*seed -= (double)q * 2147483647;
|
*seed -= (double)q * 2147483647;
|
||||||
return *seed * 4.6566128752457969e-10; // 1.0/2147483647.0
|
return *seed * 4.6566128752457969e-10; // 1.0/2147483647.0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue