Use memset() not inline code. Compilers are smarter now.
Reviewed-by: Richard Levitte <levitte@openssl.org>
rp = r->d;
/* clear the top words of T */
rp = r->d;
/* clear the top words of T */
-# if 1
- for (i = r->top; i < max; i++) /* memset? XXX */
- rp[i] = 0;
-# else
memset(&(rp[r->top]), 0, (max - r->top) * sizeof(BN_ULONG));
memset(&(rp[r->top]), 0, (max - r->top) * sizeof(BN_ULONG));
r->top = max;
n0 = mont->n0[0];
r->top = max;
n0 = mont->n0[0];