mirror of
https://github.com/pseXperiments/icicle.git
synced 2026-01-09 15:37:58 -05:00
perf: projective scalar multiplication use dbl() rather than + (#530)
This commit is contained in:
@@ -175,7 +175,7 @@ public:
|
||||
UNROLL
|
||||
#endif
|
||||
for (int i = 0; i < SCALAR_FF::NBITS; i++) {
|
||||
if (i > 0) { res = res + res; }
|
||||
if (i > 0) { res = dbl(res); }
|
||||
if (scalar.get_scalar_digit(SCALAR_FF::NBITS - i - 1, 1)) { res = res + point; }
|
||||
}
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user