@@ -5063,28 +5063,28 @@ _karatsuba_rec(mpd_uint_t *c, const mpd_uint_t *a, const mpd_uint_t *b,
50635063 return ;
50645064 }
50655065
5066- m = (la + 1 )/2 ; // ceil(la/2)
5066+ m = (la + 1 )/2 ; /* ceil(la/2) */
50675067
50685068 /* lb <= m < la */
50695069 if (lb <= m ) {
50705070
50715071 /* lb can now be larger than la-m */
50725072 if (lb > la - m ) {
5073- lt = lb + lb + 1 ; // space needed for result array
5074- mpd_uint_zero (w , lt ); // clear result array
5075- _karatsuba_rec (w , b , a + m , w + lt , lb , la - m ); // b*ah
5073+ lt = lb + lb + 1 ; /* space needed for result array */
5074+ mpd_uint_zero (w , lt ); /* clear result array */
5075+ _karatsuba_rec (w , b , a + m , w + lt , lb , la - m ); /* b*ah */
50765076 }
50775077 else {
5078- lt = (la - m ) + (la - m ) + 1 ; // space needed for result array
5079- mpd_uint_zero (w , lt ); // clear result array
5080- _karatsuba_rec (w , a + m , b , w + lt , la - m , lb ); // ah*b
5078+ lt = (la - m ) + (la - m ) + 1 ; /* space needed for result array */
5079+ mpd_uint_zero (w , lt ); /* clear result array */
5080+ _karatsuba_rec (w , a + m , b , w + lt , la - m , lb ); /* ah*b */
50815081 }
5082- _mpd_baseaddto (c + m , w , (la - m )+ lb ); // add ah*b*B**m
5082+ _mpd_baseaddto (c + m , w , (la - m )+ lb ); /* add ah*b*B**m */
50835083
5084- lt = m + m + 1 ; // space needed for the result array
5085- mpd_uint_zero (w , lt ); // clear result array
5086- _karatsuba_rec (w , a , b , w + lt , m , lb ); // al*b
5087- _mpd_baseaddto (c , w , m + lb ); // add al*b
5084+ lt = m + m + 1 ; /* space needed for the result array */
5085+ mpd_uint_zero (w , lt ); /* clear result array */
5086+ _karatsuba_rec (w , a , b , w + lt , m , lb ); /* al*b */
5087+ _mpd_baseaddto (c , w , m + lb ); /* add al*b */
50885088
50895089 return ;
50905090 }
@@ -5360,34 +5360,34 @@ _karatsuba_rec_fnt(mpd_uint_t *c, const mpd_uint_t *a, const mpd_uint_t *b,
53605360 return 1 ;
53615361 }
53625362
5363- m = (la + 1 )/2 ; // ceil(la/2)
5363+ m = (la + 1 )/2 ; /* ceil(la/2) */
53645364
53655365 /* lb <= m < la */
53665366 if (lb <= m ) {
53675367
53685368 /* lb can now be larger than la-m */
53695369 if (lb > la - m ) {
5370- lt = lb + lb + 1 ; // space needed for result array
5371- mpd_uint_zero (w , lt ); // clear result array
5372- if (!_karatsuba_rec_fnt (w , b , a + m , w + lt , lb , la - m )) { // b*ah
5370+ lt = lb + lb + 1 ; /* space needed for result array */
5371+ mpd_uint_zero (w , lt ); /* clear result array */
5372+ if (!_karatsuba_rec_fnt (w , b , a + m , w + lt , lb , la - m )) { /* b*ah */
53735373 return 0 ; /* GCOV_UNLIKELY */
53745374 }
53755375 }
53765376 else {
5377- lt = (la - m ) + (la - m ) + 1 ; // space needed for result array
5378- mpd_uint_zero (w , lt ); // clear result array
5379- if (!_karatsuba_rec_fnt (w , a + m , b , w + lt , la - m , lb )) { // ah*b
5377+ lt = (la - m ) + (la - m ) + 1 ; /* space needed for result array */
5378+ mpd_uint_zero (w , lt ); /* clear result array */
5379+ if (!_karatsuba_rec_fnt (w , a + m , b , w + lt , la - m , lb )) { /* ah*b */
53805380 return 0 ; /* GCOV_UNLIKELY */
53815381 }
53825382 }
5383- _mpd_baseaddto (c + m , w , (la - m )+ lb ); // add ah*b*B**m
5383+ _mpd_baseaddto (c + m , w , (la - m )+ lb ); /* add ah*b*B**m */
53845384
5385- lt = m + m + 1 ; // space needed for the result array
5386- mpd_uint_zero (w , lt ); // clear result array
5387- if (!_karatsuba_rec_fnt (w , a , b , w + lt , m , lb )) { // al*b
5385+ lt = m + m + 1 ; /* space needed for the result array */
5386+ mpd_uint_zero (w , lt ); /* clear result array */
5387+ if (!_karatsuba_rec_fnt (w , a , b , w + lt , m , lb )) { /* al*b */
53885388 return 0 ; /* GCOV_UNLIKELY */
53895389 }
5390- _mpd_baseaddto (c , w , m + lb ); // add al*b
5390+ _mpd_baseaddto (c , w , m + lb ); /* add al*b */
53915391
53925392 return 1 ;
53935393 }
0 commit comments