Skip to content

Commit 716e0fd

Browse files
committed
fix unused result of function bug in experimental 2^k-ary pow
1 parent 6b51975 commit 716e0fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

montgomery_arithmetic/include/hurchalla/montgomery_arithmetic/detail/experimental/montgomery_pow_2kary/experimental_montgomery_pow_2kary.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ if HURCHALLA_CPP17_CONSTEXPR (CODE_SECTION == 0) {
494494
SV sv = MFE::getSquaringValue(mf, result);
495495
if HURCHALLA_CPP17_CONSTEXPR (USE_SLIDING_WINDOW_OPTIMIZATION) {
496496
while (shift > NUMBITS_MASKBIG && (static_cast<size_t>(branchless_shift_right(n, shift-1)) & 1u) == 0) {
497-
MFE::squareSV(mf, sv);
497+
sv = MFE::squareSV(mf, sv);
498498
--shift;
499499
}
500500
}

0 commit comments

Comments
 (0)