1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-12-23 07:50:09 -08:00

Re-introduce arthur326's fix for ln speed.

This commit is contained in:
Danila Fedorin 2017-08-05 14:34:57 -07:00
parent 4bd52e514c
commit a7ed7b48cf

View File

@ -166,7 +166,7 @@ public class StandardPlugin extends Plugin {
} else { } else {
param = param.multiply(new NaiveNumber(2).promoteTo(param.getClass())); param = param.multiply(new NaiveNumber(2).promoteTo(param.getClass()));
powersOf2--; powersOf2--;
if (param.subtract(NaiveNumber.ONE.promoteTo(param.getClass())).signum() != 1) { if (param.subtract(NaiveNumber.ONE.promoteTo(param.getClass())).signum() != -1) {
break; break;
//No infinite loop for you. //No infinite loop for you.
} }