Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refac: prepare circle stark #493

Merged
merged 10 commits into from
Jul 30, 2024
8 changes: 4 additions & 4 deletions tachyon/math/base/semigroups.h
fakedev9999 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -320,25 +320,25 @@ class AdditiveSemigroup {
case 2:
return Double();
case 3:
return Double() * g;
return Double() + g;
case 4:
return Double().Double();
case 5: {
AddResult g4 = Double();
g4.DoubleInPlace();
return g4 * g;
return g4 + g;
}
case 6: {
AddResult g2 = Double();
AddResult g4 = g2;
g4.DoubleInPlace();
return g4 * g2;
return g4 + g2;
}
case 7: {
AddResult g2 = Double();
AddResult g4 = g2;
g4.DoubleInPlace();
return g4 * g2 * g;
return g4 + g2 + g;
}
default:
return DoScalarMul(BigInt<1>(scalar));
Expand Down