X-Git-Url: http://git.rot13.org/?p=bcm963xx.git;a=blobdiff_plain;f=userapps%2Fopensource%2Fsshd%2Flibtommath%2Fbn_mp_div_2.c;h=577799717764d4526799dda0d10a30ad71885505;hp=1ade93cbe595e178a1c6de4b6e7f040dd4a92fd9;hb=57a096f051259ceaefd5977f30d269884e1dd248;hpb=9887430fc6b7c0f8eb8e81de2bfe3bba12d8d4a1 diff --git a/userapps/opensource/sshd/libtommath/bn_mp_div_2.c b/userapps/opensource/sshd/libtommath/bn_mp_div_2.c index 1ade93cb..57779971 100755 --- a/userapps/opensource/sshd/libtommath/bn_mp_div_2.c +++ b/userapps/opensource/sshd/libtommath/bn_mp_div_2.c @@ -1,9 +1,11 @@ +#include +#ifdef BN_MP_DIV_2_C /* LibTomMath, multiple-precision integer library -- Tom St Denis * - * LibTomMath is library that provides for multiple-precision + * LibTomMath is a library that provides multiple-precision * integer arithmetic as well as number theoretic functionality. * - * The library is designed directly after the MPI library by + * The library was designed directly after the MPI library by * Michael Fromberger but has been written from scratch with * additional optimizations in place. * @@ -12,11 +14,9 @@ * * Tom St Denis, tomstdenis@iahu.ca, http://math.libtomcrypt.org */ -#include /* b = a/2 */ -int -mp_div_2 (mp_int * a, mp_int * b) +int mp_div_2(mp_int * a, mp_int * b) { int x, res, oldused; @@ -61,3 +61,4 @@ mp_div_2 (mp_int * a, mp_int * b) mp_clamp (b); return MP_OKAY; } +#endif