You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: montgomery_arithmetic/include/hurchalla/montgomery_arithmetic/detail/experimental/montgomery_pow_2kary/experimental_montgomery_pow_2kary.h
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -790,7 +790,7 @@ if HURCHALLA_CPP17_CONSTEXPR (CODE_SECTION == 0) {
790
790
SV sv = MFE::getSquaringValue(mf, result);
791
791
int i=0;
792
792
for (size_t k=1; i + static_cast<int>(TABLE_BITS) < shift;
793
-
i += TABLE_BITS, ++k) {
793
+
i += static_cast<int>(TABLE_BITS), ++k) {
794
794
HURCHALLA_REQUEST_UNROLL_LOOP for (size_t h=0; h<TABLE_BITS; ++h)
795
795
sv = MFE::squareSV(mf, sv);
796
796
size_t index = (tmp >> (k * TABLE_BITS)) & MASK;
@@ -806,7 +806,7 @@ if HURCHALLA_CPP17_CONSTEXPR (CODE_SECTION == 0) {
806
806
else {
807
807
int i=0;
808
808
for (size_t k=1; i + static_cast<int>(TABLE_BITS) < shift;
809
-
i += TABLE_BITS, ++k) {
809
+
i += static_cast<int>(TABLE_BITS), ++k) {
810
810
HURCHALLA_REQUEST_UNROLL_LOOP for (size_t h=0; h<TABLE_BITS; ++h)
811
811
result = mf.square(result);
812
812
size_t index = (tmp >> (k * TABLE_BITS)) & MASK;
@@ -1024,7 +1024,7 @@ if HURCHALLA_CPP17_CONSTEXPR (CODE_SECTION == 0) {
1024
1024
SV sv = MFE::getSquaringValue(mf, result);
1025
1025
int i=0;
1026
1026
for (size_t k=1; i + static_cast<int>(TABLE_BITS) < bits_remaining;
1027
-
i += TABLE_BITS, ++k) {
1027
+
i += static_cast<int>(TABLE_BITS), ++k) {
1028
1028
HURCHALLA_REQUEST_UNROLL_LOOP for (size_t h=0; h<TABLE_BITS; ++h)
1029
1029
sv = MFE::squareSV(mf, sv);
1030
1030
size_t index = (tmp >> (k * TABLE_BITS)) & MASK;
@@ -1040,7 +1040,7 @@ if HURCHALLA_CPP17_CONSTEXPR (CODE_SECTION == 0) {
1040
1040
else {
1041
1041
int i=0;
1042
1042
for (size_t k=1; i + static_cast<int>(TABLE_BITS) < bits_remaining;
1043
-
i += TABLE_BITS, ++k) {
1043
+
i += static_cast<int>(TABLE_BITS), ++k) {
1044
1044
HURCHALLA_REQUEST_UNROLL_LOOP for (size_t h=0; h<TABLE_BITS; ++h)
Copy file name to clipboardExpand all lines: montgomery_arithmetic/include/hurchalla/montgomery_arithmetic/detail/experimental/montgomery_pow_2kary/testbench_montgomery_pow_2kary.cpp
+48-53Lines changed: 48 additions & 53 deletions
Original file line number
Diff line number
Diff line change
@@ -1174,7 +1174,7 @@ bench_range(U min, U range, U& totalU, unsigned int max_modulus_bits_reduce, ST
1174
1174
#else
1175
1175
auto val = hurchalla::experimental::experimental_montgomery_pow_2kary::call<
1176
1176
MontType, U, USE_SLIDING_WINDOW_OPTIMIZATION, TABLE_BITS, CODE_SECTION,
0 commit comments