Lines Matching refs:DIG_BASE

139 #define DIG_BASE     1000000000  macro
140 #define DIG_MAX (DIG_BASE-1)
141 #define DIG_BASE2 ((dec2)DIG_BASE * (dec2)DIG_BASE)
179 if (((carry)= a >= DIG_BASE)) /* no division here! */ \
180 a-=DIG_BASE; \
188 if (((carry)= a >= DIG_BASE)) \
189 a-=DIG_BASE; \
190 if (unlikely(a >= DIG_BASE)) \
192 a-=DIG_BASE; \
203 a+=DIG_BASE; \
212 a+=DIG_BASE; \
215 a+=DIG_BASE; \
1089 for (intg1= 0; from != 0; intg1++, from/= DIG_BASE) in ull2dec()
1102 ulonglong y= x / DIG_BASE; in ull2dec()
1103 *--buf=(dec1)(x - y * DIG_BASE); in ull2dec()
1137 x=x*DIG_BASE + *buf++; in decimal2ulonglong()
1138 if (unlikely(y > ((ulonglong) ULLONG_MAX/DIG_BASE) || x < y)) in decimal2ulonglong()
1166 x=x*DIG_BASE - *buf++; in decimal2longlong()
1167 if (unlikely(y < (LLONG_MIN/DIG_BASE) || x > y)) in decimal2longlong()
1212 to->quot= ((longlong) from->buf[0]) * DIG_BASE + from->buf[1]; in decimal2lldiv_t()
1753 *(++buf1)=DIG_BASE; in decimal_round()
1791 if (*buf1 >= DIG_BASE) in decimal_round()
1794 *buf1-=DIG_BASE; in decimal_round()
2240 hi=(dec1)(p/DIG_BASE); in decimal_mul()
2241 lo=(dec1)(p-((dec2)hi)*DIG_BASE); in decimal_mul()
2448 norm_factor=DIG_BASE/(*start2+1); in do_div_mod()
2451 norm2+=(dec1)(norm_factor*start2[1]/DIG_BASE); in do_div_mod()
2467 x=start1[0]+((dec2)dcarry)*DIG_BASE; in do_div_mod()
2469 guess=(norm_factor*x+norm_factor*y/DIG_BASE)/norm2; in do_div_mod()
2470 if (unlikely(guess >= DIG_BASE)) in do_div_mod()
2471 guess=DIG_BASE-1; in do_div_mod()
2475 if (start2[1]*guess > (x-guess*start2[0])*DIG_BASE+y) in do_div_mod()
2477 if (unlikely(start2[1]*guess > (x-guess*start2[0])*DIG_BASE+y)) in do_div_mod()
2479 assert(start2[1]*guess <= (x-guess*start2[0])*DIG_BASE+y); in do_div_mod()
2490 hi=(dec1)(x/DIG_BASE); in do_div_mod()
2491 lo=(dec1)(x-((dec2)hi)*DIG_BASE); in do_div_mod()