Skip to content

Commit

Permalink
Update ubigint.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Oct 29, 2023
1 parent 5d200dc commit 7a07ad8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions parts/header_file/files/elc/_files/bignum/bignum/ubigint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,17 +490,11 @@ class ubigint{
size_t i=0;
calc_type num=0;
while(i!=a.size()){
num+=calc_type(a[i])*calc_type(b);
*buf = base_type(num%base_type_mod);
num+=calc_type(a[i++])*calc_type(b);
*buf++ = base_type(num%base_type_mod);
num/=base_type_mod;

i++;
buf++;
}
if(num)
*buf = base_type(num);
else
*buf = base_type{0};
*buf = base_type(num);
}
static void muti_with_base(base_type*buf,data_view_type a,base_type b)noexcept{
if(!b){
Expand Down

0 comments on commit 7a07ad8

Please sign in to comment.