From e617970842966d6a479ee13c1cea4fb5a0724eef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 11 Jan 2007 03:59:34 +0000 Subject: [PATCH] remove more debug stuff from s_udiv git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19832 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/des/imath/imath.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/des/imath/imath.c b/lib/des/imath/imath.c index e4da3d311..46b3bf635 100755 --- a/lib/des/imath/imath.c +++ b/lib/des/imath/imath.c @@ -2981,15 +2981,11 @@ static mp_result s_embar(mp_int a, mp_int b, mp_int m, mp_int mu, mp_int c) static mp_result s_udiv(mp_int a, mp_int b) { mpz_t q, r, t; - mpz_t ac, bc; mp_size ua, ub, qpos = 0; mp_digit *da, btop; mp_result res = MP_OK; int k, skip = 0; - mp_int_init(&ac); - mp_int_init(&bc); - /* Force signs to positive */ MP_SIGN(a) = MP_ZPOS; MP_SIGN(b) = MP_ZPOS; @@ -3001,9 +2997,6 @@ static mp_result s_udiv(mp_int a, mp_int b) if((res = mp_int_init_size(&q, ua + 1)) != MP_OK) return res; if((res = mp_int_init_size(&t, ua + 1)) != MP_OK) goto CLEANUP; - if((res = mp_int_init_copy(&ac, a)) != MP_OK) goto CLEANUP; - if((res = mp_int_init_copy(&bc, b)) != MP_OK) goto CLEANUP; - da = MP_DIGITS(a); r.digits = da + ua - 1; /* The contents of r are shared with a */ r.used = 1; @@ -3070,8 +3063,6 @@ static mp_result s_udiv(mp_int a, mp_int b) mp_int_clear(&t); CLEANUP: mp_int_clear(&q); - mp_int_clear(&ac); - mp_int_clear(&bc); return res; }