Added compile time checks to skip vli_square() and muladd() functions when they are not used

This commit is contained in:
Evgeni Margolis
2015-07-08 20:14:05 -07:00
parent 73db5bf87b
commit 85d858cb09
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -623,7 +623,7 @@ static uECC_word_t vli_sub(uECC_word_t *result, const uECC_word_t *left, const u
}
#endif
#if (!asm_mult || !asm_square || uECC_CURVE == uECC_secp256k1)
#if (!asm_mult || (uECC_SQUARE_FUNC && !asm_square) || uECC_CURVE == uECC_secp256k1)
static void muladd(uECC_word_t a,
uECC_word_t b,
uECC_word_t *r0,