diff options
author | lloyd <[email protected]> | 2008-09-07 19:05:14 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-07 19:05:14 +0000 |
commit | 671f27d71b5587aa0e07516dd08a007aa53e4ea4 (patch) | |
tree | 3873b4720f278f7d849687bf964b68b42e632c11 /src/mp_karat.cpp | |
parent | d21ec372e108efecf704b51bb2080dcacce854d2 (diff) |
Remove bigint_mul_add_words. It was only used now in two callers,
bigint_simple_mul and bigint_simple_sqr. Examining these
functions made it clear inlining would be beneficial, so these two
functions have been moved from an anonymous namespace into mp_mulop.cpp
(to allow assembly versions).
Diffstat (limited to 'src/mp_karat.cpp')
-rw-r--r-- | src/mp_karat.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/mp_karat.cpp b/src/mp_karat.cpp index 38a700a88..770846b4e 100644 --- a/src/mp_karat.cpp +++ b/src/mp_karat.cpp @@ -12,29 +12,6 @@ namespace Botan { namespace { /************************************************* -* Simple O(N^2) Multiplication * -*************************************************/ -void bigint_simple_mul(word z[], const word x[], u32bit x_size, - const word y[], u32bit y_size) - { - clear_mem(z, x_size + y_size); - - for(u32bit j = 0; j != x_size; ++j) - z[j+y_size] = bigint_mul_add_words(z + j, y, y_size, x[j]); - } - -/************************************************* -* Simple O(N^2) Squaring * -*************************************************/ -void bigint_simple_sqr(word z[], const word x[], u32bit x_size) - { - clear_mem(z, 2*x_size); - - for(u32bit j = 0; j != x_size; ++j) - z[j+x_size] = bigint_mul_add_words(z + j, x, x_size, x[j]); - } - -/************************************************* * Karatsuba Multiplication Operation * *************************************************/ void karatsuba_mul(word z[], const word x[], const word y[], u32bit N, |