From 1518c30f1c90c2d0e5e06731e3dffe21353b34db Mon Sep 17 00:00:00 2001 From: lloyd Date: Sat, 15 Nov 2014 14:35:19 +0000 Subject: 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). --- src/scripts/comba.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/scripts') 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 " {" -- cgit v1.2.3