diff options
author | David Benjamin <davidben@chromium.org> | 2014-11-01 01:26:08 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-11-03 23:52:10 +0300 |
commit | 8b1d900c5295eb35f14eaf825f51be2c4a9e03ad (patch) | |
tree | 6ed78b08055d60daae43b548fea711b44464cb1b /crypto/bn/generic.c | |
parent | bc786a95695bbd2071eb786208f5957c5c90016b (diff) |
Fix unused variables in bn/generic.c
bl and bh are never used by macros if either BN_UMULT_LOHI or
BN_UMULT_HIGH are defined.
Change-Id: I7fdd45014a6b78cc586b5223396e09bc213608a5
Reviewed-on: https://boringssl-review.googlesource.com/2105
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/bn/generic.c')
-rw-r--r-- | crypto/bn/generic.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crypto/bn/generic.c b/crypto/bn/generic.c index 52aad8e0..53b5ce15 100644 --- a/crypto/bn/generic.c +++ b/crypto/bn/generic.c @@ -822,9 +822,9 @@ BN_ULONG bn_sub_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, #endif /* !BN_LLONG */ void bn_mul_comba8(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b) { -#ifdef BN_LLONG +#if defined(BN_LLONG) BN_ULLONG t; -#else +#elif !defined(BN_UMULT_LOHI) && !defined(BN_UMULT_HIGH) BN_ULONG bl, bh; #endif BN_ULONG t1, t2; @@ -930,9 +930,9 @@ void bn_mul_comba8(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b) { } void bn_mul_comba4(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b) { -#ifdef BN_LLONG +#if defined(BN_LLONG) BN_ULLONG t; -#else +#elif !defined(BN_UMULT_LOHI) && !defined(BN_UMULT_HIGH) BN_ULONG bl, bh; #endif BN_ULONG t1, t2; @@ -974,9 +974,9 @@ void bn_mul_comba4(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b) { } void bn_sqr_comba8(BN_ULONG *r, const BN_ULONG *a) { -#ifdef BN_LLONG +#if defined(BN_LLONG) BN_ULLONG t, tt; -#else +#elif !defined(BN_UMULT_LOHI) && !defined(BN_UMULT_HIGH) BN_ULONG bl, bh; #endif BN_ULONG t1, t2; @@ -1054,9 +1054,9 @@ void bn_sqr_comba8(BN_ULONG *r, const BN_ULONG *a) { } void bn_sqr_comba4(BN_ULONG *r, const BN_ULONG *a) { -#ifdef BN_LLONG +#if defined(BN_LLONG) BN_ULLONG t, tt; -#else +#elif !defined(BN_UMULT_LOHI) && !defined(BN_UMULT_HIGH) BN_ULONG bl, bh; #endif BN_ULONG t1, t2; |