diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-03-17 19:01:33 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-03-17 19:01:33 +0800 |
commit | ba9de011e73403cadf820d25d085a69a2f3d8c04 (patch) | |
tree | aa017de448943c99959c4774e7bbbbcfd478e8dd | |
parent | 56811bbb125cd1f4f7351241c4615ec6042c90ef (diff) | |
download | dexon-mcl-ba9de011e73403cadf820d25d085a69a2f3d8c04.tar.gz dexon-mcl-ba9de011e73403cadf820d25d085a69a2f3d8c04.tar.zst dexon-mcl-ba9de011e73403cadf820d25d085a69a2f3d8c04.zip |
fix comment
-rw-r--r-- | include/mcl/util.hpp | 4 |
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(); |