]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Move the malloc and free of scratch space out of the internal_mul
authorSimon Tatham <anakin@pobox.com>
Mon, 21 Feb 2011 19:47:28 +0000 (19:47 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 21 Feb 2011 19:47:28 +0000 (19:47 +0000)
commit77180221bd635d218898ed3672fd92ac758d203a
treec368d3213ccc3416f77abe263cc203272c2d2de1
parent7a0bd8247cbd65a9777737e91425d832e8b41c96
Move the malloc and free of scratch space out of the internal_mul
routines into their callers, where they'll be done once for a whole
modpow rather than many times within each multiply. Doesn't save much
time as far as I can see - perhaps a couple of percent, one second in
the minute it takes to run the new bignum test suite - but seems like
a sensible idea anyway on general principles.

[originally from svn r9103]
sshbn.c