diff options
author | lloyd <[email protected]> | 2014-11-15 14:35:19 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-11-15 14:35:19 +0000 |
commit | 1518c30f1c90c2d0e5e06731e3dffe21353b34db (patch) | |
tree | c2f819f2a2011a7af6052ede3b32638412b546d0 /src/scripts | |
parent | 17349a1fc49d604f8160f2077538fdf397b702c6 (diff) |
Add specialized reduction for P-521 along with 9x9 Comba routines.
Roughly 35-50% faster on my laptop (depending on if mlock is enabled,
the overhead in that allocator is becoming much more of a hotspot).
Diffstat (limited to 'src/scripts')
-rwxr-xr-x | src/scripts/comba.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/comba.py b/src/scripts/comba.py index 03cf2f2ed..4d3befa26 100755 --- a/src/scripts/comba.py +++ b/src/scripts/comba.py @@ -78,7 +78,7 @@ def main(args = None): print """/* * Comba Multiplication and Squaring -* (C) 1999-2007,2011 Jack Lloyd +* (C) 1999-2007,2011,2014 Jack Lloyd * * Distributed under the terms of the Botan license */ @@ -91,7 +91,7 @@ namespace Botan { extern "C" { """ - for n in [4,6,8,16]: + for n in [4,6,8,9,16]: print "/*\n* Comba %dx%d Squaring\n*/" % (n, n) print "void bigint_comba_sqr%d(word z[%d], const word x[%d])" % (n, 2*n, n) print " {" |