montgomery reduce: change #ifdef

as INNERMUL8 is only defined where it is available, simply check if it's
defined and don't check again for the arch
This commit is contained in:
Steffen Jaeckel 2014-07-20 16:08:35 +02:00
parent 06ef0be491
commit 72fe8e48ba

View File

@ -509,7 +509,7 @@ void fp_montgomery_reduce(fp_int *a, fp_int *m, fp_digit mp)
_c = c + x; _c = c + x;
tmpm = m->dp; tmpm = m->dp;
y = 0; y = 0;
#if (defined(TFM_SSE2) || defined(TFM_X86_64)) #if defined(INNERMUL8)
for (; y < (pa & ~7); y += 8) { for (; y < (pa & ~7); y += 8) {
INNERMUL8; INNERMUL8;
_c += 8; _c += 8;