Add an intermediate optimization level where only add/sub are "fast".

Also made uECC_SQUARE_FUNC separately controllable for now.
This commit is contained in:
Ken MacKay
2015-10-12 21:29:56 -07:00
parent 5d6644e23f
commit 2cc5e9211a
4 changed files with 423 additions and 437 deletions
+1 -11
View File
@@ -49,19 +49,9 @@ struct uECC_Curve_t {
#endif
};
#if (uECC_OPTIMIZATION_LEVEL > 0) && (uECC_OPTIMIZATION_LEVEL % 2 == 0)
#define uECC_SQUARE_FUNC 1
#else
#define uECC_SQUARE_FUNC 0
#endif
#if (uECC_PLATFORM == uECC_arm || uECC_PLATFORM == uECC_arm_thumb || \
uECC_PLATFORM == uECC_arm_thumb2)
#if (uECC_OPTIMIZATION_LEVEL > 2)
#include "asm_arm_mult_square.inc"
#include "asm_arm_fast.inc"
#endif
#include "asm_arm_small.inc"
#include "asm_arm.inc"
#endif
#if default_RNG_defined