mirror of
https://github.com/vale981/arb
synced 2025-03-06 09:51:39 -05:00
dlog test code fixes for 32-bit
This commit is contained in:
parent
b4c6206d98
commit
f7e88db0be
2 changed files with 5 additions and 1 deletions
|
@ -73,6 +73,10 @@ int main()
|
||||||
}
|
}
|
||||||
|
|
||||||
dlog_modpe_clear(modpe);
|
dlog_modpe_clear(modpe);
|
||||||
|
|
||||||
|
/* multiplication can overflow on 32-bit */
|
||||||
|
if ((double) pe * p > LIM)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ int main()
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
flint_randinit(state);
|
flint_randinit(state);
|
||||||
|
|
||||||
for (bits = 10; bits <= 35; bits += 5)
|
for (bits = 10; bits <= FLINT_MIN(35, FLINT_BITS); bits += 5)
|
||||||
{
|
{
|
||||||
|
|
||||||
for (nv = 10; nv <= 10000; nv *= 10)
|
for (nv = 10; nv <= 10000; nv *= 10)
|
||||||
|
|
Loading…
Add table
Reference in a new issue