aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-03-17 19:01:33 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-03-17 19:01:33 +0800
commitba9de011e73403cadf820d25d085a69a2f3d8c04 (patch)
treeaa017de448943c99959c4774e7bbbbcfd478e8dd
parent56811bbb125cd1f4f7351241c4615ec6042c90ef (diff)
downloaddexon-mcl-ba9de011e73403cadf820d25d085a69a2f3d8c04.tar.gz
dexon-mcl-ba9de011e73403cadf820d25d085a69a2f3d8c04.tar.zst
dexon-mcl-ba9de011e73403cadf820d25d085a69a2f3d8c04.zip
fix comment
-rw-r--r--include/mcl/util.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mcl/util.hpp b/include/mcl/util.hpp
index 565fea1..0d6ed71 100644
--- a/include/mcl/util.hpp
+++ b/include/mcl/util.hpp
@@ -290,8 +290,8 @@ void powGenericCT(G& out, const G& x, const T *y, size_t n, void mul(G&, const G
n--;
}
if (n == 0) return;
- G tbl[4]; // tbl = { x, x^2, x^3 }
- tbl[0] = x; // discard
+ G tbl[4]; // tbl = { discard, x, x^2, x^3 }
+ tbl[0] = x;
tbl[1] = x;
mul(tbl[2], x, x); tbl[2].normalize();
mul(tbl[3], tbl[2], x); tbl[3].normalize();