remove more debug stuff from s_udiv
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19832 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -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) | static mp_result s_udiv(mp_int a, mp_int b) | ||||||
| { | { | ||||||
|   mpz_t     q, r, t; |   mpz_t     q, r, t; | ||||||
|   mpz_t     ac, bc; |  | ||||||
|   mp_size   ua, ub, qpos = 0; |   mp_size   ua, ub, qpos = 0; | ||||||
|   mp_digit *da, btop; |   mp_digit *da, btop; | ||||||
|   mp_result res = MP_OK; |   mp_result res = MP_OK; | ||||||
|   int       k, skip = 0; |   int       k, skip = 0; | ||||||
|  |  | ||||||
|   mp_int_init(&ac); |  | ||||||
|   mp_int_init(&bc); |  | ||||||
|  |  | ||||||
|   /* Force signs to positive */ |   /* Force signs to positive */ | ||||||
|   MP_SIGN(a) = MP_ZPOS; |   MP_SIGN(a) = MP_ZPOS; | ||||||
|   MP_SIGN(b) = 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(&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_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); |   da = MP_DIGITS(a); | ||||||
|   r.digits = da + ua - 1;  /* The contents of r are shared with a */ |   r.digits = da + ua - 1;  /* The contents of r are shared with a */ | ||||||
|   r.used   = 1; |   r.used   = 1; | ||||||
| @@ -3070,8 +3063,6 @@ static mp_result s_udiv(mp_int a, mp_int b) | |||||||
|   mp_int_clear(&t); |   mp_int_clear(&t); | ||||||
|  CLEANUP: |  CLEANUP: | ||||||
|   mp_int_clear(&q); |   mp_int_clear(&q); | ||||||
|   mp_int_clear(&ac); |  | ||||||
|   mp_int_clear(&bc); |  | ||||||
|   return res; |   return res; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand