mirror of
https://github.com/kmackay/micro-ecc.git
synced 2026-10-01 05:17:37 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user