aboutsummaryrefslogtreecommitdiffstats
path: root/src/mp_asm.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change the copyrights in all files in the Botan tree to directly reflectlloyd2008-04-101-1/+2
| | | | | | the actual copyright holders. For rationale, see my post to botan-devel on April 9, subject 'Changing license to directly reflect contributors' (http://www.randombit.net/pipermail/botan-devel/2008-April/000527.html)
* Alter bigint_madd2 and bigint_madd3 to take only 3 (4, resp) arguments,lloyd2008-03-091-2/+2
| | | | | | | with the last one being both one of the input values and the output carry register, since almost always they were in fact the same variable. Also update the x86 and x86-64 modules.
* Mass update of the copyright date. Honestly I don't know why I bother,lloyd2008-02-141-1/+1
| | | | | | | but might as well keep it up to date. And it's easier to do it once with a 'perl -pi' command than to update each file over time. Apologies to anyone looking at diffs.
* Bump copyright year to 2007lloyd2007-01-201-1/+1
|
* Move bigint_simple_mul into mp_mul.cpp, since that is the only place itlloyd2006-08-191-12/+0
| | | | | | was used. Make a variant of bigint_simple_mul, bigint_simple_sqr, for mp_sqr.cpp
* Move Montgomery reduction algorithm into mp_asm.cpplloyd2006-08-191-9/+25
| | | | | | | | | | Move the inner-most loop of Montgomery into bigint_mul_add_words, in mp_muladd.cpp Use bigint_mul_add_words for the inner loop of bigint_simple_multiply Move the compare/subtract at the end of the Montomgery algorithm into bigint_monty_redc
* Move bigint_monty_redc to its own file; profiling indicates that thislloyd2006-08-171-33/+0
| | | | | single function is using 30+% of the runtime during RSA operations, making it a strong candidate for implementation in assembly.
* Split Montgomery reduction into two functions, the core algorithm linkedlloyd2006-08-161-4/+1
| | | | | | as C (for replacing by asm later), and another that performs a subtract if needed (inside powm_mnt.cpp). That way an asm version of the Montgomery algorithm won't have to deal with calling other functions.
* Revert the last change; it turned out to require a bunch of changes to thelloyd2006-06-061-4/+4
| | | | | | assembly code in order to handle the argument aliasing correctly, and it seems I don't understand GCC's extended asm syntax well enough to figure out how to get it work in a way that isn't hideous.
* Remove one parameter from word_madd2 and word_madd3lloyd2006-06-061-4/+4
|
* Initial checkin1.5.6lloyd2006-05-181-0/+237