125
135
#define DIG_MASK 100000000
126
136
#define DIG_BASE 1000000000
127
137
#define DIG_MAX (DIG_BASE-1)
129
138
#define ROUND_UP(X) (((X)+DIG_PER_DEC1-1)/DIG_PER_DEC1)
130
139
static const dec1 powers10[DIG_PER_DEC1+1]={
131
140
1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000};