Add faster ARM multiplication code using UMAAL (#69)

On ARM platforms that support UMAAL, this new code should speed up curve
operations by 15-20%. There is automatic detection of UMAAL support
using compiler macros, but if it doesn't work for a given platform,
#define uECC_ARM_USE_UMAAL to 1 or 0 as desired.
This commit is contained in:
Ken MacKay
2016-04-20 21:22:40 -07:00
parent b6c0cdbe7d
commit d671b1cc22
5 changed files with 2091 additions and 795 deletions
+3 -1
View File
@@ -23,7 +23,9 @@ platform. */
/* Optimization level; trade speed for code size.
Larger values produce code that is faster but larger.
Currently supported values are 0 - 3; 0 is unusably slow for most applications. */
Currently supported values are 0 - 4; 0 is unusably slow for most applications.
Optimization level 4 currently only has an effect ARM platforms where more than one
curve is enabled. */
#ifndef uECC_OPTIMIZATION_LEVEL
#define uECC_OPTIMIZATION_LEVEL 2
#endif