fix indentation (part 1)

This commit is contained in:
Francois Perrad 2015-10-25 16:09:26 +01:00 committed by Steffen Jaeckel
parent 6d43d42f17
commit 614da3deec
4 changed files with 9 additions and 9 deletions

View File

@ -78,7 +78,7 @@ int fast_s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs)
/* make next carry */ /* make next carry */
_W = _W >> ((mp_word)DIGIT_BIT); _W = _W >> ((mp_word)DIGIT_BIT);
} }
/* setup dest */ /* setup dest */
olduse = c->used; olduse = c->used;

View File

@ -69,9 +69,9 @@ int mp_expt_d_ex (mp_int * a, mp_digit b, mp_int * c, int fast)
/* shift to next bit */ /* shift to next bit */
b <<= 1; b <<= 1;
} }
} /* if ... else */ } /* if ... else */
mp_clear (&g); mp_clear (&g);
return MP_OKAY; return MP_OKAY;
} }
#endif #endif

View File

@ -37,12 +37,12 @@ int mp_read_unsigned_bin (mp_int * a, const unsigned char *b, int c)
} }
#ifndef MP_8BIT #ifndef MP_8BIT
a->dp[0] |= *b++; a->dp[0] |= *b++;
a->used += 1; a->used += 1;
#else #else
a->dp[0] = (*b & MP_MASK); a->dp[0] = (*b & MP_MASK);
a->dp[1] |= ((*b++ >> 7U) & 1); a->dp[1] |= ((*b++ >> 7U) & 1);
a->used += 2; a->used += 2;
#endif #endif
} }
mp_clamp (a); mp_clamp (a);

View File

@ -29,7 +29,7 @@ mp_sqr (mp_int * a, mp_int * b)
} else } else
#endif #endif
#ifdef BN_MP_KARATSUBA_SQR_C #ifdef BN_MP_KARATSUBA_SQR_C
if (a->used >= KARATSUBA_SQR_CUTOFF) { if (a->used >= KARATSUBA_SQR_CUTOFF) {
res = mp_karatsuba_sqr (a, b); res = mp_karatsuba_sqr (a, b);
} else } else
#endif #endif