From d6de90fb181b8b8d0c6760d15be6835ead035e5b Mon Sep 17 00:00:00 2001 From: wiire-a Date: Sat, 6 Jan 2018 20:35:07 +0100 Subject: [PATCH] Fixed unused variable warning in tomsfastmath --- src/crypto/tfm/fp_mul.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/crypto/tfm/fp_mul.c b/src/crypto/tfm/fp_mul.c index e97c6cf..5967787 100644 --- a/src/crypto/tfm/fp_mul.c +++ b/src/crypto/tfm/fp_mul.c @@ -13,7 +13,8 @@ void fp_mul(fp_int *A, fp_int *B, fp_int *C) { int y, old_used; -#if FP_SIZE >= 48 +#if FP_SIZE >= 48 && (defined(TFM_MUL24) || defined(TFM_MUL28) || \ + defined(TFM_MUL32) || defined(TFM_MUL48) || defined(TFM_MUL64)) int yy; #endif @@ -26,7 +27,8 @@ void fp_mul(fp_int *A, fp_int *B, fp_int *C) } y = MAX(A->used, B->used); -#if FP_SIZE >= 48 +#if FP_SIZE >= 48 && (defined(TFM_MUL24) || defined(TFM_MUL28) || \ + defined(TFM_MUL32) || defined(TFM_MUL48) || defined(TFM_MUL64)) yy = MIN(A->used, B->used); #endif /* pick a comba (unrolled 4/8/16/32 x or rolled) based on the size