|
4 | 4 | stringify , convert , _trim_positive ,
|
5 | 5 | _alloc , _copy , _zeros ,
|
6 | 6 | _jz , _cmp , _eq ,
|
7 |
| - _add , _sub , _mul , _div , _powd , |
| 7 | + add , _sub , _mul , _idivmod , _powd , |
8 | 8 | _increment ,
|
9 | 9 | } from '@aureooms/js-integer-big-endian' ;
|
10 | 10 |
|
@@ -63,7 +63,7 @@ export class Integer {
|
63 | 63 |
|
64 | 64 | const c = _zeros( Math.max( a.length , b.length ) + 1 ) ;
|
65 | 65 |
|
66 |
| - _add( r , a , 0 , a.length , b , 0 , b.length , c , 0 , c.length ) ; |
| 66 | + add( r , a , 0 , a.length , b , 0 , b.length , c , 0 , c.length ) ; |
67 | 67 |
|
68 | 68 | return new Integer( r , result_is_negative , c ) ;
|
69 | 69 |
|
@@ -232,7 +232,7 @@ export class Integer {
|
232 | 232 | // Quotient
|
233 | 233 | const q = _zeros( D.length ) ;
|
234 | 234 |
|
235 |
| - _div( r , D , 0 , D.length , d , di , dj , q , 0 , q.length ) ; |
| 235 | + _idivmod( r , D , 0 , D.length , d , di , dj , q , 0 , q.length ) ; |
236 | 236 |
|
237 | 237 | const Q = new Integer( r , quotient_is_negative , q ) ; // quotient
|
238 | 238 | const R = new Integer( r , 0 , D ) ; // remainder
|
|
0 commit comments