big: Add internal_int_montgomery_calc_normalization.
This commit is contained in:
1 parent
893cc013b5
commit
33df335ec9
2 files changed
+19
-25
No files matched your search
@@ -1548,7 +1548,8 @@ _private_int_log :: proc(a: ^Int, base: DIGIT, allocator := context.allocator) -
|
||||
which uses the comba method to quickly calculate the columns of the reduction.
|
||||
Based on Algorithm 14.32 on pp.601 of HAC.
|
||||
*/
|
||||
_private_montgomery_reduce_comba :: proc(x, n: ^Int, rho: DIGIT) -> (err: Error) {
|
||||
_private_montgomery_reduce_comba :: proc(x, n: ^Int, rho: DIGIT, allocator := context.allocator) -> (err: Error) {
|
||||
context.allocator = allocator;
|
||||
W: [_WARRAY]_WORD = ---;
|
||||
|
||||
if x.used > _WARRAY { return .Invalid_Argument; }
|
||||
|
||||
Reference in new issue
Block a user