@dhis2/expression-parser 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1391 -1391
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1391 -1391
- package/KotlinBigInteger-bignum.js +1165 -1165
- package/KotlinBigInteger-bignum.js.map +1 -1
- package/KotlinBigInteger-bignum.mjs +1165 -1165
- package/KotlinBigInteger-bignum.mjs.map +1 -1
- package/README.md +1 -0
- package/expression-parser.d.mts +1 -0
- package/expression-parser.js +2063 -2021
- package/expression-parser.js.map +1 -1
- package/expression-parser.mjs +2063 -2021
- package/expression-parser.mjs.map +1 -1
- package/kotlin-js.js +12 -12
- package/kotlin-js.mjs +12 -12
- package/kotlin-kotlin-stdlib.js +548 -556
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +546 -554
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -129,43 +129,43 @@
|
|
|
129
129
|
//region block: pre-declaration
|
|
130
130
|
function parseString$default(string, base, $super) {
|
|
131
131
|
base = base === VOID ? 10 : base;
|
|
132
|
-
return $super === VOID ? this.
|
|
132
|
+
return $super === VOID ? this.tv(string, base) : $super.tv.call(this, string, base);
|
|
133
133
|
}
|
|
134
134
|
function tryFromFloat$default(float, exactRequired, $super) {
|
|
135
135
|
exactRequired = exactRequired === VOID ? false : exactRequired;
|
|
136
|
-
return $super === VOID ? this.
|
|
136
|
+
return $super === VOID ? this.wv(float, exactRequired) : $super.wv.call(this, float, exactRequired);
|
|
137
137
|
}
|
|
138
138
|
function tryFromDouble$default(double, exactRequired, $super) {
|
|
139
139
|
exactRequired = exactRequired === VOID ? false : exactRequired;
|
|
140
|
-
return $super === VOID ? this.
|
|
140
|
+
return $super === VOID ? this.yv(double, exactRequired) : $super.yv.call(this, double, exactRequired);
|
|
141
141
|
}
|
|
142
142
|
initMetadataForInterface(Creator, 'Creator');
|
|
143
143
|
function plus_0(other) {
|
|
144
|
-
return this.
|
|
144
|
+
return this.bw().dw(other);
|
|
145
145
|
}
|
|
146
146
|
function minus(other) {
|
|
147
|
-
return this.
|
|
147
|
+
return this.bw().fw(other);
|
|
148
148
|
}
|
|
149
149
|
function times(other) {
|
|
150
|
-
return this.
|
|
150
|
+
return this.bw().hw(other);
|
|
151
151
|
}
|
|
152
152
|
function div(other) {
|
|
153
|
-
return this.
|
|
153
|
+
return this.bw().jw(other);
|
|
154
154
|
}
|
|
155
155
|
function plus_1(int) {
|
|
156
|
-
return this.
|
|
156
|
+
return this.bw().dw(this.aw().vv(int));
|
|
157
157
|
}
|
|
158
158
|
function times_0(int) {
|
|
159
|
-
return this.
|
|
159
|
+
return this.bw().hw(this.aw().vv(int));
|
|
160
160
|
}
|
|
161
161
|
function minus_0(int) {
|
|
162
|
-
return this.
|
|
162
|
+
return this.bw().fw(this.aw().vv(int));
|
|
163
163
|
}
|
|
164
164
|
function div_0(int) {
|
|
165
|
-
return this.
|
|
165
|
+
return this.bw().jw(this.aw().vv(int));
|
|
166
166
|
}
|
|
167
167
|
function rem(int) {
|
|
168
|
-
return this.
|
|
168
|
+
return this.bw().ow(this.aw().vv(int));
|
|
169
169
|
}
|
|
170
170
|
initMetadataForInterface(CommonBigNumberOperations, 'CommonBigNumberOperations');
|
|
171
171
|
initMetadataForClass(SignificantDecider, 'SignificantDecider', VOID, Enum);
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
}
|
|
207
207
|
function roundOrDont($this, significand, exponent, decimalMode) {
|
|
208
208
|
var tmp;
|
|
209
|
-
if (decimalMode.
|
|
209
|
+
if (decimalMode.sw_1) {
|
|
210
210
|
tmp = new BigDecimal(significand, exponent);
|
|
211
211
|
} else {
|
|
212
212
|
tmp = roundSignificand($this, significand, exponent, decimalMode);
|
|
@@ -217,18 +217,18 @@
|
|
|
217
217
|
Enum.call(this, name, ordinal);
|
|
218
218
|
}
|
|
219
219
|
function determineDecider($this, discarded) {
|
|
220
|
-
var tmp = Companion_getInstance_1().
|
|
220
|
+
var tmp = Companion_getInstance_1().yw_1;
|
|
221
221
|
// Inline function 'kotlin.Long.minus' call
|
|
222
|
-
var this_0 = discarded.
|
|
222
|
+
var this_0 = discarded.ex();
|
|
223
223
|
var tmp$ret$0 = subtract(this_0, fromInt(1));
|
|
224
|
-
var scale = tmp.
|
|
225
|
-
var divrem = discarded.
|
|
226
|
-
var significant = divrem.
|
|
227
|
-
var rest = divrem.
|
|
224
|
+
var scale = tmp.fx(tmp$ret$0);
|
|
225
|
+
var divrem = discarded.gx(scale);
|
|
226
|
+
var significant = divrem.hx_1.jx().kx(true);
|
|
227
|
+
var rest = divrem.ix_1.jx();
|
|
228
228
|
var tmp_0;
|
|
229
229
|
if (significant === 5) {
|
|
230
230
|
var tmp_1;
|
|
231
|
-
if (rest.equals(Companion_getInstance_1().
|
|
231
|
+
if (rest.equals(Companion_getInstance_1().vw_1)) {
|
|
232
232
|
tmp_1 = SignificantDecider_FIVE_getInstance();
|
|
233
233
|
} else {
|
|
234
234
|
tmp_1 = SignificantDecider_MORE_THAN_FIVE_getInstance();
|
|
@@ -244,40 +244,40 @@
|
|
|
244
244
|
return tmp_0;
|
|
245
245
|
}
|
|
246
246
|
function roundDiscarded($this, significand, discarded, decimalMode) {
|
|
247
|
-
var toDiscard = subtract(significand.
|
|
247
|
+
var toDiscard = subtract(significand.ex(), decimalMode.pw_1);
|
|
248
248
|
var tmp;
|
|
249
249
|
if (compare(toDiscard, new Long(0, 0)) > 0) {
|
|
250
|
-
var additionallyDiscarded = significand.
|
|
251
|
-
tmp = new Pair(additionallyDiscarded.
|
|
250
|
+
var additionallyDiscarded = significand.gx(Companion_getInstance_1().yw_1.fx(toDiscard));
|
|
251
|
+
tmp = new Pair(additionallyDiscarded.hx_1, additionallyDiscarded.ix_1);
|
|
252
252
|
} else {
|
|
253
253
|
tmp = new Pair(significand, discarded);
|
|
254
254
|
}
|
|
255
255
|
var _destruct__k2r9zo = tmp;
|
|
256
|
-
var result = _destruct__k2r9zo.
|
|
257
|
-
var remainder = _destruct__k2r9zo.
|
|
256
|
+
var result = _destruct__k2r9zo.ub();
|
|
257
|
+
var remainder = _destruct__k2r9zo.vb();
|
|
258
258
|
var tmp_0;
|
|
259
|
-
if (significand.equals(Companion_getInstance_1().
|
|
260
|
-
tmp_0 = discarded.
|
|
259
|
+
if (significand.equals(Companion_getInstance_1().vw_1)) {
|
|
260
|
+
tmp_0 = discarded.bx_1;
|
|
261
261
|
} else {
|
|
262
|
-
tmp_0 = significand.
|
|
262
|
+
tmp_0 = significand.bx_1;
|
|
263
263
|
}
|
|
264
264
|
var sign = tmp_0;
|
|
265
|
-
if (!decimalMode.
|
|
266
|
-
if (remainder.
|
|
265
|
+
if (!decimalMode.qw_1.equals(RoundingMode_AWAY_FROM_ZERO_getInstance()) && !decimalMode.qw_1.equals(RoundingMode_TOWARDS_ZERO_getInstance())) {
|
|
266
|
+
if (remainder.lx()) {
|
|
267
267
|
return result;
|
|
268
268
|
}
|
|
269
269
|
} else {
|
|
270
|
-
if (remainder.
|
|
270
|
+
if (remainder.lx() && discarded.lx()) {
|
|
271
271
|
return result;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
var decider = determineDecider($this, remainder);
|
|
275
|
-
switch (decimalMode.
|
|
275
|
+
switch (decimalMode.qw_1.d2_1) {
|
|
276
276
|
case 2:
|
|
277
277
|
if (sign.equals(Sign_POSITIVE_getInstance())) {
|
|
278
|
-
result = result.ox();
|
|
279
|
-
} else {
|
|
280
278
|
result = result.nx();
|
|
279
|
+
} else {
|
|
280
|
+
result = result.mx();
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
break;
|
|
@@ -285,13 +285,13 @@
|
|
|
285
285
|
break;
|
|
286
286
|
case 1:
|
|
287
287
|
if (sign.equals(Sign_POSITIVE_getInstance())) {
|
|
288
|
-
result = result.
|
|
288
|
+
result = result.nx();
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
break;
|
|
292
292
|
case 0:
|
|
293
293
|
if (!sign.equals(Sign_POSITIVE_getInstance())) {
|
|
294
|
-
result = result.
|
|
294
|
+
result = result.mx();
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
break;
|
|
@@ -299,13 +299,13 @@
|
|
|
299
299
|
switch (sign.d2_1) {
|
|
300
300
|
case 0:
|
|
301
301
|
if (!decider.equals(SignificantDecider_LESS_THAN_FIVE_getInstance())) {
|
|
302
|
-
result = result.
|
|
302
|
+
result = result.nx();
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
break;
|
|
306
306
|
case 1:
|
|
307
307
|
if (!decider.equals(SignificantDecider_LESS_THAN_FIVE_getInstance())) {
|
|
308
|
-
result = result.
|
|
308
|
+
result = result.mx();
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
break;
|
|
@@ -321,13 +321,13 @@
|
|
|
321
321
|
switch (sign.d2_1) {
|
|
322
322
|
case 0:
|
|
323
323
|
if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
324
|
-
result = result.
|
|
324
|
+
result = result.nx();
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
break;
|
|
328
328
|
case 1:
|
|
329
329
|
if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
330
|
-
result = result.
|
|
330
|
+
result = result.mx();
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
break;
|
|
@@ -343,13 +343,13 @@
|
|
|
343
343
|
switch (sign.d2_1) {
|
|
344
344
|
case 0:
|
|
345
345
|
if (!decider.equals(SignificantDecider_LESS_THAN_FIVE_getInstance())) {
|
|
346
|
-
result = result.
|
|
346
|
+
result = result.nx();
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
break;
|
|
350
350
|
case 1:
|
|
351
351
|
if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
352
|
-
result = result.
|
|
352
|
+
result = result.mx();
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
break;
|
|
@@ -365,13 +365,13 @@
|
|
|
365
365
|
switch (sign.d2_1) {
|
|
366
366
|
case 0:
|
|
367
367
|
if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
368
|
-
result = result.
|
|
368
|
+
result = result.nx();
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
break;
|
|
372
372
|
case 1:
|
|
373
373
|
if (!decider.equals(SignificantDecider_LESS_THAN_FIVE_getInstance())) {
|
|
374
|
-
result = result.
|
|
374
|
+
result = result.mx();
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
break;
|
|
@@ -385,13 +385,13 @@
|
|
|
385
385
|
break;
|
|
386
386
|
case 9:
|
|
387
387
|
if (decider.equals(SignificantDecider_FIVE_getInstance())) {
|
|
388
|
-
if (significand.
|
|
388
|
+
if (significand.nw(2).jx().equals(Companion_getInstance_1().ww_1)) {
|
|
389
389
|
switch (sign.d2_1) {
|
|
390
390
|
case 0:
|
|
391
|
-
result = result.
|
|
391
|
+
result = result.nx();
|
|
392
392
|
break;
|
|
393
393
|
case 1:
|
|
394
|
-
result = result.
|
|
394
|
+
result = result.mx();
|
|
395
395
|
break;
|
|
396
396
|
case 2:
|
|
397
397
|
break;
|
|
@@ -402,23 +402,23 @@
|
|
|
402
402
|
}
|
|
403
403
|
} else if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
404
404
|
if (sign.equals(Sign_POSITIVE_getInstance())) {
|
|
405
|
-
result = result.
|
|
405
|
+
result = result.nx();
|
|
406
406
|
}
|
|
407
407
|
if (sign.equals(Sign_NEGATIVE_getInstance())) {
|
|
408
|
-
result = result.
|
|
408
|
+
result = result.mx();
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
|
|
412
412
|
break;
|
|
413
413
|
case 10:
|
|
414
414
|
if (decider.equals(SignificantDecider_FIVE_getInstance())) {
|
|
415
|
-
if (significand.
|
|
415
|
+
if (significand.nw(2).equals(Companion_getInstance_1().vw_1)) {
|
|
416
416
|
switch (sign.d2_1) {
|
|
417
417
|
case 0:
|
|
418
|
-
result = result.
|
|
418
|
+
result = result.nx();
|
|
419
419
|
break;
|
|
420
420
|
case 1:
|
|
421
|
-
result = result.
|
|
421
|
+
result = result.mx();
|
|
422
422
|
break;
|
|
423
423
|
case 2:
|
|
424
424
|
break;
|
|
@@ -429,10 +429,10 @@
|
|
|
429
429
|
}
|
|
430
430
|
} else if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
431
431
|
if (sign.equals(Sign_POSITIVE_getInstance())) {
|
|
432
|
-
result = result.
|
|
432
|
+
result = result.nx();
|
|
433
433
|
}
|
|
434
434
|
if (sign.equals(Sign_NEGATIVE_getInstance())) {
|
|
435
|
-
result = result.
|
|
435
|
+
result = result.mx();
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
|
|
@@ -446,34 +446,34 @@
|
|
|
446
446
|
return result;
|
|
447
447
|
}
|
|
448
448
|
function roundSignificand($this, significand, exponent, decimalMode) {
|
|
449
|
-
if (significand.
|
|
450
|
-
return new BigDecimal(Companion_getInstance_1().
|
|
449
|
+
if (significand.lx()) {
|
|
450
|
+
return new BigDecimal(Companion_getInstance_1().vw_1, exponent, decimalMode);
|
|
451
451
|
}
|
|
452
|
-
var significandDigits = significand.
|
|
452
|
+
var significandDigits = significand.ex();
|
|
453
453
|
var tmp;
|
|
454
|
-
if (decimalMode.
|
|
455
|
-
tmp = add(decimalMode.
|
|
454
|
+
if (decimalMode.tw_1) {
|
|
455
|
+
tmp = add(decimalMode.pw_1, decimalMode.rw_1);
|
|
456
456
|
} else {
|
|
457
|
-
tmp = decimalMode.
|
|
457
|
+
tmp = decimalMode.pw_1;
|
|
458
458
|
}
|
|
459
459
|
var desiredPrecision = tmp;
|
|
460
460
|
var tmp_0;
|
|
461
|
-
if (compare(desiredPrecision, significandDigits) > 0 && !decimalMode.
|
|
462
|
-
var extendedSignificand = significand.
|
|
461
|
+
if (compare(desiredPrecision, significandDigits) > 0 && !decimalMode.tw_1) {
|
|
462
|
+
var extendedSignificand = significand.gw(Companion_getInstance_1().yw_1.fx(subtract(desiredPrecision, significandDigits)));
|
|
463
463
|
tmp_0 = new BigDecimal(extendedSignificand, exponent, decimalMode);
|
|
464
464
|
} else if (compare(desiredPrecision, significandDigits) < 0) {
|
|
465
|
-
var divRem = significand.
|
|
466
|
-
var resolvedRemainder = divRem.
|
|
467
|
-
if (divRem.
|
|
468
|
-
return new BigDecimal(divRem.
|
|
465
|
+
var divRem = significand.gx(Companion_getInstance_1().yw_1.fx(subtract(significandDigits, desiredPrecision)));
|
|
466
|
+
var resolvedRemainder = divRem.ix_1;
|
|
467
|
+
if (divRem.ix_1.equals(Companion_getInstance_1().vw_1)) {
|
|
468
|
+
return new BigDecimal(divRem.hx_1, exponent, decimalMode);
|
|
469
469
|
}
|
|
470
470
|
var tmp_1;
|
|
471
|
-
if (equalsLong(significand.
|
|
472
|
-
var newSignificand = roundDiscarded($this, divRem.
|
|
473
|
-
var exponentModifier = subtract(newSignificand.
|
|
471
|
+
if (equalsLong(significand.ex(), add(divRem.hx_1.ex(), divRem.ix_1.ex()))) {
|
|
472
|
+
var newSignificand = roundDiscarded($this, divRem.hx_1, resolvedRemainder, decimalMode);
|
|
473
|
+
var exponentModifier = subtract(newSignificand.ex(), divRem.hx_1.ex());
|
|
474
474
|
tmp_1 = new BigDecimal(newSignificand, add(exponent, exponentModifier), decimalMode);
|
|
475
475
|
} else {
|
|
476
|
-
tmp_1 = $this.
|
|
476
|
+
tmp_1 = $this.zx(divRem.hx_1, exponent, decimalMode);
|
|
477
477
|
}
|
|
478
478
|
tmp_0 = tmp_1;
|
|
479
479
|
} else {
|
|
@@ -482,20 +482,20 @@
|
|
|
482
482
|
return tmp_0;
|
|
483
483
|
}
|
|
484
484
|
function applyScale($this, significand, exponent, decimalMode) {
|
|
485
|
-
if (!decimalMode.
|
|
485
|
+
if (!decimalMode.tw_1) {
|
|
486
486
|
return new BigDecimal(significand, exponent, decimalMode);
|
|
487
487
|
}
|
|
488
488
|
var tmp;
|
|
489
489
|
if (compare(exponent, new Long(0, 0)) >= 0) {
|
|
490
490
|
// Inline function 'kotlin.Long.plus' call
|
|
491
|
-
var this_0 = add(exponent, decimalMode.
|
|
491
|
+
var this_0 = add(exponent, decimalMode.rw_1);
|
|
492
492
|
var tmp$ret$0 = add(this_0, fromInt(1));
|
|
493
|
-
tmp = new DecimalMode(tmp$ret$0, decimalMode.
|
|
493
|
+
tmp = new DecimalMode(tmp$ret$0, decimalMode.qw_1);
|
|
494
494
|
} else if (compare(exponent, new Long(0, 0)) < 0) {
|
|
495
495
|
// Inline function 'kotlin.Long.plus' call
|
|
496
|
-
var this_1 = decimalMode.
|
|
496
|
+
var this_1 = decimalMode.rw_1;
|
|
497
497
|
var tmp$ret$1 = add(this_1, fromInt(1));
|
|
498
|
-
tmp = new DecimalMode(tmp$ret$1, decimalMode.
|
|
498
|
+
tmp = new DecimalMode(tmp$ret$1, decimalMode.qw_1);
|
|
499
499
|
} else {
|
|
500
500
|
throw RuntimeException_init_$Create$('Unexpected state');
|
|
501
501
|
}
|
|
@@ -505,12 +505,12 @@
|
|
|
505
505
|
tmp_0 = roundSignificand($this, significand, exponent, workMode);
|
|
506
506
|
} else {
|
|
507
507
|
var tmp_1;
|
|
508
|
-
if (decimalMode.
|
|
509
|
-
var temp = (new BigDecimal(significand, exponent)).
|
|
510
|
-
tmp_1 = roundSignificand($this, temp.
|
|
508
|
+
if (decimalMode.qw_1.equals(RoundingMode_ROUND_HALF_TO_EVEN_getInstance())) {
|
|
509
|
+
var temp = (new BigDecimal(significand, exponent)).kw(imul(significand.ay(), 2));
|
|
510
|
+
tmp_1 = roundSignificand($this, temp.cy_1, temp.dy_1, workMode).lw(imul(significand.ay(), 2));
|
|
511
511
|
} else {
|
|
512
|
-
var temp_0 = (new BigDecimal(significand, exponent)).
|
|
513
|
-
tmp_1 = roundSignificand($this, temp_0.
|
|
512
|
+
var temp_0 = (new BigDecimal(significand, exponent)).kw(significand.ay());
|
|
513
|
+
tmp_1 = roundSignificand($this, temp_0.cy_1, temp_0.dy_1, workMode).lw(significand.ay());
|
|
514
514
|
}
|
|
515
515
|
tmp_0 = tmp_1;
|
|
516
516
|
}
|
|
@@ -530,11 +530,11 @@
|
|
|
530
530
|
if (secondDecimalMode == null && !(firstDecimalMode == null)) {
|
|
531
531
|
return firstDecimalMode;
|
|
532
532
|
}
|
|
533
|
-
if (!ensureNotNull(firstDecimalMode).
|
|
534
|
-
throw ArithmeticException_init_$Create$('Different rounding modes! This: ' + firstDecimalMode.
|
|
533
|
+
if (!ensureNotNull(firstDecimalMode).qw_1.equals(ensureNotNull(secondDecimalMode).qw_1)) {
|
|
534
|
+
throw ArithmeticException_init_$Create$('Different rounding modes! This: ' + firstDecimalMode.qw_1.toString() + ' Other: ' + secondDecimalMode.qw_1.toString());
|
|
535
535
|
}
|
|
536
536
|
var tmp_0;
|
|
537
|
-
if (compare(firstDecimalMode.
|
|
537
|
+
if (compare(firstDecimalMode.pw_1, secondDecimalMode.pw_1) >= 0) {
|
|
538
538
|
tmp_0 = firstDecimalMode;
|
|
539
539
|
} else {
|
|
540
540
|
tmp_0 = secondDecimalMode;
|
|
@@ -570,31 +570,31 @@
|
|
|
570
570
|
}
|
|
571
571
|
function Companion() {
|
|
572
572
|
Companion_instance = this;
|
|
573
|
+
this.ox_1 = new BigDecimal(Companion_getInstance_1().vw_1);
|
|
573
574
|
this.px_1 = new BigDecimal(Companion_getInstance_1().ww_1);
|
|
574
575
|
this.qx_1 = new BigDecimal(Companion_getInstance_1().xw_1);
|
|
575
|
-
this.rx_1 = new BigDecimal(Companion_getInstance_1().yw_1);
|
|
576
|
-
this.sx_1 =
|
|
577
|
-
this.tx_1 = false;
|
|
576
|
+
this.rx_1 = new BigDecimal(Companion_getInstance_1().yw_1, new Long(1, 0));
|
|
577
|
+
this.sx_1 = false;
|
|
578
578
|
var tmp = this;
|
|
579
579
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
580
|
-
tmp.
|
|
581
|
-
this.
|
|
582
|
-
this.
|
|
580
|
+
tmp.tx_1 = new Float64Array([1.0, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18, 1.0E19, 1.0E20, 1.0E21, 1.0E22]);
|
|
581
|
+
this.ux_1 = this.jy(1.7976931348623157E308);
|
|
582
|
+
this.vx_1 = this.jy(4.9E-324);
|
|
583
583
|
var tmp_0 = this;
|
|
584
584
|
// Inline function 'kotlin.floatArrayOf' call
|
|
585
|
-
tmp_0.
|
|
586
|
-
this.
|
|
587
|
-
this.
|
|
585
|
+
tmp_0.wx_1 = new Float32Array([1.0, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, 1.0E7, 1.0E8, 1.0E9, 1.0E10]);
|
|
586
|
+
this.xx_1 = this.ky(3.4028235E38);
|
|
587
|
+
this.yx_1 = this.ky(1.4E-45);
|
|
588
588
|
}
|
|
589
|
-
protoOf(Companion).
|
|
589
|
+
protoOf(Companion).zx = function (significand, exponent, decimalMode) {
|
|
590
590
|
var tmp;
|
|
591
|
-
if (significand.
|
|
591
|
+
if (significand.bx_1.equals(Sign_POSITIVE_getInstance())) {
|
|
592
592
|
var tmp_0;
|
|
593
|
-
switch (decimalMode.
|
|
593
|
+
switch (decimalMode.qw_1.d2_1) {
|
|
594
594
|
case 1:
|
|
595
595
|
case 2:
|
|
596
|
-
var increasedSignificand = significand.
|
|
597
|
-
var exponentModifier = subtract(increasedSignificand.
|
|
596
|
+
var increasedSignificand = significand.nx();
|
|
597
|
+
var exponentModifier = subtract(increasedSignificand.ex(), significand.ex());
|
|
598
598
|
tmp_0 = new BigDecimal(increasedSignificand, add(exponent, exponentModifier), decimalMode);
|
|
599
599
|
break;
|
|
600
600
|
default:
|
|
@@ -602,13 +602,13 @@
|
|
|
602
602
|
break;
|
|
603
603
|
}
|
|
604
604
|
tmp = tmp_0;
|
|
605
|
-
} else if (significand.
|
|
605
|
+
} else if (significand.bx_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
606
606
|
var tmp_1;
|
|
607
|
-
switch (decimalMode.
|
|
607
|
+
switch (decimalMode.qw_1.d2_1) {
|
|
608
608
|
case 0:
|
|
609
609
|
case 2:
|
|
610
|
-
var increasedSignificand_0 = significand.
|
|
611
|
-
var exponentModifier_0 = subtract(increasedSignificand_0.
|
|
610
|
+
var increasedSignificand_0 = significand.mx();
|
|
611
|
+
var exponentModifier_0 = subtract(increasedSignificand_0.ex(), significand.ex());
|
|
612
612
|
tmp_1 = new BigDecimal(increasedSignificand_0, add(exponent, exponentModifier_0), decimalMode);
|
|
613
613
|
break;
|
|
614
614
|
default:
|
|
@@ -621,35 +621,35 @@
|
|
|
621
621
|
}
|
|
622
622
|
return tmp;
|
|
623
623
|
};
|
|
624
|
-
protoOf(Companion).
|
|
625
|
-
var bigint = Companion_getInstance_1().
|
|
624
|
+
protoOf(Companion).ly = function (long, decimalMode) {
|
|
625
|
+
var bigint = Companion_getInstance_1().my(long);
|
|
626
626
|
// Inline function 'kotlin.Long.minus' call
|
|
627
|
-
var this_0 = bigint.
|
|
627
|
+
var this_0 = bigint.ex();
|
|
628
628
|
var tmp$ret$0 = subtract(this_0, fromInt(1));
|
|
629
|
-
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).
|
|
629
|
+
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).ny(decimalMode);
|
|
630
630
|
};
|
|
631
|
-
protoOf(Companion).
|
|
632
|
-
var bigint = Companion_getInstance_1().
|
|
631
|
+
protoOf(Companion).oy = function (int, decimalMode) {
|
|
632
|
+
var bigint = Companion_getInstance_1().vv(int);
|
|
633
633
|
// Inline function 'kotlin.Long.minus' call
|
|
634
|
-
var this_0 = bigint.
|
|
634
|
+
var this_0 = bigint.ex();
|
|
635
635
|
var tmp$ret$0 = subtract(this_0, fromInt(1));
|
|
636
|
-
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).
|
|
636
|
+
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).ny(decimalMode);
|
|
637
637
|
};
|
|
638
|
-
protoOf(Companion).
|
|
639
|
-
var bigint = Companion_getInstance_1().
|
|
638
|
+
protoOf(Companion).py = function (short, decimalMode) {
|
|
639
|
+
var bigint = Companion_getInstance_1().qy(short);
|
|
640
640
|
// Inline function 'kotlin.Long.minus' call
|
|
641
|
-
var this_0 = bigint.
|
|
641
|
+
var this_0 = bigint.ex();
|
|
642
642
|
var tmp$ret$0 = subtract(this_0, fromInt(1));
|
|
643
|
-
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).
|
|
643
|
+
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).ny(decimalMode);
|
|
644
644
|
};
|
|
645
|
-
protoOf(Companion).
|
|
646
|
-
var bigint = Companion_getInstance_1().
|
|
645
|
+
protoOf(Companion).ry = function (byte, decimalMode) {
|
|
646
|
+
var bigint = Companion_getInstance_1().sy(byte);
|
|
647
647
|
// Inline function 'kotlin.Long.minus' call
|
|
648
|
-
var this_0 = bigint.
|
|
648
|
+
var this_0 = bigint.ex();
|
|
649
649
|
var tmp$ret$0 = subtract(this_0, fromInt(1));
|
|
650
|
-
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).
|
|
650
|
+
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).ny(decimalMode);
|
|
651
651
|
};
|
|
652
|
-
protoOf(Companion).
|
|
652
|
+
protoOf(Companion).ty = function (float, decimalMode) {
|
|
653
653
|
var floatString = float.toString();
|
|
654
654
|
var tmp;
|
|
655
655
|
if (contains(floatString, _Char___init__impl__6a9atx(46)) && !contains(floatString, _Char___init__impl__6a9atx(69), true)) {
|
|
@@ -669,17 +669,17 @@
|
|
|
669
669
|
while (0 <= inductionVariable);
|
|
670
670
|
tmp$ret$1 = '';
|
|
671
671
|
}
|
|
672
|
-
tmp = this.
|
|
672
|
+
tmp = this.uy(tmp$ret$1, decimalMode).ny(decimalMode);
|
|
673
673
|
} else {
|
|
674
|
-
tmp = this.
|
|
674
|
+
tmp = this.uy(floatString, decimalMode).ny(decimalMode);
|
|
675
675
|
}
|
|
676
676
|
return tmp;
|
|
677
677
|
};
|
|
678
|
-
protoOf(Companion).
|
|
678
|
+
protoOf(Companion).ky = function (float, decimalMode, $super) {
|
|
679
679
|
decimalMode = decimalMode === VOID ? null : decimalMode;
|
|
680
|
-
return $super === VOID ? this.
|
|
680
|
+
return $super === VOID ? this.ty(float, decimalMode) : $super.ty.call(this, float, decimalMode);
|
|
681
681
|
};
|
|
682
|
-
protoOf(Companion).
|
|
682
|
+
protoOf(Companion).vy = function (double, decimalMode) {
|
|
683
683
|
var doubleString = double.toString();
|
|
684
684
|
var tmp;
|
|
685
685
|
if (contains(doubleString, _Char___init__impl__6a9atx(46)) && !contains(doubleString, _Char___init__impl__6a9atx(69), true)) {
|
|
@@ -699,41 +699,41 @@
|
|
|
699
699
|
while (0 <= inductionVariable);
|
|
700
700
|
tmp$ret$1 = '';
|
|
701
701
|
}
|
|
702
|
-
tmp = this.
|
|
702
|
+
tmp = this.uy(tmp$ret$1, decimalMode).ny(decimalMode);
|
|
703
703
|
} else {
|
|
704
|
-
tmp = this.
|
|
704
|
+
tmp = this.uy(doubleString, decimalMode).ny(decimalMode).ny(decimalMode);
|
|
705
705
|
}
|
|
706
706
|
return tmp;
|
|
707
707
|
};
|
|
708
|
-
protoOf(Companion).
|
|
708
|
+
protoOf(Companion).jy = function (double, decimalMode, $super) {
|
|
709
709
|
decimalMode = decimalMode === VOID ? null : decimalMode;
|
|
710
|
-
return $super === VOID ? this.
|
|
710
|
+
return $super === VOID ? this.vy(double, decimalMode) : $super.vy.call(this, double, decimalMode);
|
|
711
711
|
};
|
|
712
|
-
protoOf(Companion).
|
|
713
|
-
return this.
|
|
712
|
+
protoOf(Companion).my = function (long) {
|
|
713
|
+
return this.ly(long, null);
|
|
714
714
|
};
|
|
715
|
-
protoOf(Companion).
|
|
716
|
-
return this.
|
|
715
|
+
protoOf(Companion).vv = function (int) {
|
|
716
|
+
return this.oy(int, null);
|
|
717
717
|
};
|
|
718
|
-
protoOf(Companion).
|
|
719
|
-
return this.
|
|
718
|
+
protoOf(Companion).qy = function (short) {
|
|
719
|
+
return this.py(short, null);
|
|
720
720
|
};
|
|
721
|
-
protoOf(Companion).
|
|
722
|
-
return this.
|
|
721
|
+
protoOf(Companion).sy = function (byte) {
|
|
722
|
+
return this.ry(byte, null);
|
|
723
723
|
};
|
|
724
|
-
protoOf(Companion).
|
|
725
|
-
return this.
|
|
724
|
+
protoOf(Companion).wv = function (float, exactRequired) {
|
|
725
|
+
return this.ty(float, null);
|
|
726
726
|
};
|
|
727
|
-
protoOf(Companion).
|
|
728
|
-
return this.
|
|
727
|
+
protoOf(Companion).yv = function (double, exactRequired) {
|
|
728
|
+
return this.vy(double, null);
|
|
729
729
|
};
|
|
730
|
-
protoOf(Companion).
|
|
731
|
-
return this.
|
|
730
|
+
protoOf(Companion).tv = function (string, base) {
|
|
731
|
+
return this.uy(string, null);
|
|
732
732
|
};
|
|
733
|
-
protoOf(Companion).
|
|
734
|
-
return this.
|
|
733
|
+
protoOf(Companion).wy = function (string) {
|
|
734
|
+
return this.xy(string);
|
|
735
735
|
};
|
|
736
|
-
protoOf(Companion).
|
|
736
|
+
protoOf(Companion).uy = function (floatingPointString, decimalMode) {
|
|
737
737
|
// Inline function 'kotlin.text.isEmpty' call
|
|
738
738
|
if (charSequenceLength(floatingPointString) === 0) {
|
|
739
739
|
throw ArithmeticException_init_$Create$('Empty string is not a valid decimal number');
|
|
@@ -841,12 +841,12 @@
|
|
|
841
841
|
}
|
|
842
842
|
var leftTruncated = substring(left, leftFirstNonZero, left.length);
|
|
843
843
|
var rightTruncated = substring(right, 0, rightLastNonZero + 1 | 0);
|
|
844
|
-
var significand = Companion_getInstance_1().
|
|
845
|
-
if (significand.equals(Companion_getInstance_1().
|
|
844
|
+
var significand = Companion_getInstance_1().tv(leftTruncated + rightTruncated, 10);
|
|
845
|
+
if (significand.equals(Companion_getInstance_1().vw_1)) {
|
|
846
846
|
sign = Sign_ZERO_getInstance();
|
|
847
847
|
}
|
|
848
848
|
if (sign.equals(Sign_NEGATIVE_getInstance())) {
|
|
849
|
-
significand = significand.
|
|
849
|
+
significand = significand.yy();
|
|
850
850
|
}
|
|
851
851
|
var tmp_6;
|
|
852
852
|
if (!(leftTruncated === '0')) {
|
|
@@ -857,7 +857,7 @@
|
|
|
857
857
|
tmp_6 = subtract(this_1, fromInt(1));
|
|
858
858
|
} else {
|
|
859
859
|
// Inline function 'kotlin.Long.minus' call
|
|
860
|
-
var this_2 = subtract(exponent, subtract(numberToLong(rightTruncated.length), significand.
|
|
860
|
+
var this_2 = subtract(exponent, subtract(numberToLong(rightTruncated.length), significand.ex()));
|
|
861
861
|
tmp_6 = subtract(this_2, fromInt(1));
|
|
862
862
|
}
|
|
863
863
|
var exponentModifiedByFloatingPointPosition = tmp_6;
|
|
@@ -934,7 +934,7 @@
|
|
|
934
934
|
}
|
|
935
935
|
var leftTruncated_0 = substring(left_0, leftFirstNonZero_0, left_0.length);
|
|
936
936
|
var rightTruncated_0 = substring(right_0, 0, rightLastNonZero_0 + 1 | 0);
|
|
937
|
-
var significand_0 = Companion_getInstance_1().
|
|
937
|
+
var significand_0 = Companion_getInstance_1().tv(leftTruncated_0 + rightTruncated_0, 10);
|
|
938
938
|
var tmp_10;
|
|
939
939
|
var tmp_11;
|
|
940
940
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
@@ -966,27 +966,27 @@
|
|
|
966
966
|
tmp_10 = imul(tmp$ret$15 + 1 | 0, -1);
|
|
967
967
|
}
|
|
968
968
|
var exponent_0 = tmp_10;
|
|
969
|
-
if (significand_0.equals(Companion_getInstance_1().
|
|
969
|
+
if (significand_0.equals(Companion_getInstance_1().vw_1)) {
|
|
970
970
|
sign_0 = Sign_ZERO_getInstance();
|
|
971
971
|
}
|
|
972
972
|
if (sign_0.equals(Sign_NEGATIVE_getInstance())) {
|
|
973
|
-
significand_0 = significand_0.
|
|
973
|
+
significand_0 = significand_0.yy();
|
|
974
974
|
}
|
|
975
975
|
return new BigDecimal(significand_0, fromInt(exponent_0), decimalMode);
|
|
976
976
|
} else
|
|
977
977
|
throw ArithmeticException_init_$Create$('Invalid (or unsupported) floating point number format: ' + floatingPointString);
|
|
978
978
|
} else {
|
|
979
|
-
var significand_1 = Companion_getInstance_1().
|
|
979
|
+
var significand_1 = Companion_getInstance_1().tv(floatingPointString, 10);
|
|
980
980
|
// Inline function 'kotlin.Long.minus' call
|
|
981
|
-
var this_3 = significand_1.
|
|
981
|
+
var this_3 = significand_1.ex();
|
|
982
982
|
var tmp$ret$16 = subtract(this_3, fromInt(1));
|
|
983
983
|
return new BigDecimal(significand_1, tmp$ret$16, decimalMode);
|
|
984
984
|
}
|
|
985
985
|
}
|
|
986
986
|
};
|
|
987
|
-
protoOf(Companion).
|
|
987
|
+
protoOf(Companion).xy = function (floatingPointString, decimalMode, $super) {
|
|
988
988
|
decimalMode = decimalMode === VOID ? null : decimalMode;
|
|
989
|
-
return $super === VOID ? this.
|
|
989
|
+
return $super === VOID ? this.uy(floatingPointString, decimalMode) : $super.uy.call(this, floatingPointString, decimalMode);
|
|
990
990
|
};
|
|
991
991
|
var Companion_instance;
|
|
992
992
|
function Companion_getInstance() {
|
|
@@ -995,51 +995,51 @@
|
|
|
995
995
|
return Companion_instance;
|
|
996
996
|
}
|
|
997
997
|
function removeTrailingZeroes($this, bigDecimal) {
|
|
998
|
-
if (bigDecimal.
|
|
998
|
+
if (bigDecimal.lx())
|
|
999
999
|
return $this;
|
|
1000
|
-
var significand = bigDecimal.
|
|
1001
|
-
var divisionResult = new QuotientAndRemainder(bigDecimal.
|
|
1000
|
+
var significand = bigDecimal.cy_1;
|
|
1001
|
+
var divisionResult = new QuotientAndRemainder(bigDecimal.cy_1, Companion_getInstance_1().vw_1);
|
|
1002
1002
|
do {
|
|
1003
|
-
divisionResult = divisionResult.
|
|
1004
|
-
if (divisionResult.
|
|
1005
|
-
significand = divisionResult.
|
|
1003
|
+
divisionResult = divisionResult.hx_1.gx(Companion_getInstance_1().yw_1);
|
|
1004
|
+
if (divisionResult.ix_1.equals(Companion_getInstance_1().vw_1)) {
|
|
1005
|
+
significand = divisionResult.hx_1;
|
|
1006
1006
|
}
|
|
1007
1007
|
}
|
|
1008
|
-
while (divisionResult.
|
|
1009
|
-
return new BigDecimal(significand, bigDecimal.
|
|
1008
|
+
while (divisionResult.ix_1.equals(Companion_getInstance_1().vw_1));
|
|
1009
|
+
return new BigDecimal(significand, bigDecimal.dy_1);
|
|
1010
1010
|
}
|
|
1011
1011
|
function ScaleOps(name, ordinal) {
|
|
1012
1012
|
Enum.call(this, name, ordinal);
|
|
1013
1013
|
}
|
|
1014
1014
|
function computeMode($this, other, op) {
|
|
1015
1015
|
var tmp;
|
|
1016
|
-
if ($this.
|
|
1017
|
-
tmp = Companion_getInstance_0().
|
|
1016
|
+
if ($this.ey_1 == null || $this.ey_1.sw_1 || other.ey_1 == null || other.ey_1.sw_1) {
|
|
1017
|
+
tmp = Companion_getInstance_0().zy_1;
|
|
1018
1018
|
} else {
|
|
1019
|
-
var tmp0 = $this.
|
|
1019
|
+
var tmp0 = $this.ey_1.pw_1;
|
|
1020
1020
|
// Inline function 'kotlin.math.max' call
|
|
1021
|
-
var b = other.
|
|
1021
|
+
var b = other.ey_1.pw_1;
|
|
1022
1022
|
var tmp_0 = compare(tmp0, b) >= 0 ? tmp0 : b;
|
|
1023
1023
|
var tmp_1;
|
|
1024
|
-
if ($this.
|
|
1024
|
+
if ($this.ey_1.tw_1 && other.ey_1.tw_1) {
|
|
1025
1025
|
var tmp_2;
|
|
1026
1026
|
switch (op.d2_1) {
|
|
1027
1027
|
case 0:
|
|
1028
|
-
var tmp0_0 = $this.
|
|
1028
|
+
var tmp0_0 = $this.ey_1.rw_1;
|
|
1029
1029
|
// Inline function 'kotlin.math.max' call
|
|
1030
1030
|
|
|
1031
|
-
var b_0 = other.
|
|
1031
|
+
var b_0 = other.ey_1.rw_1;
|
|
1032
1032
|
tmp_2 = compare(tmp0_0, b_0) >= 0 ? tmp0_0 : b_0;
|
|
1033
1033
|
break;
|
|
1034
1034
|
case 1:
|
|
1035
|
-
var tmp0_1 = $this.
|
|
1035
|
+
var tmp0_1 = $this.ey_1.rw_1;
|
|
1036
1036
|
// Inline function 'kotlin.math.min' call
|
|
1037
1037
|
|
|
1038
|
-
var b_1 = other.
|
|
1038
|
+
var b_1 = other.ey_1.rw_1;
|
|
1039
1039
|
tmp_2 = compare(tmp0_1, b_1) <= 0 ? tmp0_1 : b_1;
|
|
1040
1040
|
break;
|
|
1041
1041
|
case 2:
|
|
1042
|
-
tmp_2 = add($this.
|
|
1042
|
+
tmp_2 = add($this.ey_1.rw_1, other.ey_1.rw_1);
|
|
1043
1043
|
break;
|
|
1044
1044
|
default:
|
|
1045
1045
|
noWhenBranchMatchedException();
|
|
@@ -1049,68 +1049,68 @@
|
|
|
1049
1049
|
} else {
|
|
1050
1050
|
tmp_1 = new Long(-1, -1);
|
|
1051
1051
|
}
|
|
1052
|
-
tmp = new DecimalMode(tmp_0, $this.
|
|
1052
|
+
tmp = new DecimalMode(tmp_0, $this.ey_1.qw_1, tmp_1);
|
|
1053
1053
|
}
|
|
1054
1054
|
return tmp;
|
|
1055
1055
|
}
|
|
1056
1056
|
function getRidOfRadix($this, bigDecimal) {
|
|
1057
|
-
var precision = bigDecimal.
|
|
1057
|
+
var precision = bigDecimal.cy_1.ex();
|
|
1058
1058
|
// Inline function 'kotlin.Long.plus' call
|
|
1059
|
-
var this_0 = subtract(bigDecimal.
|
|
1059
|
+
var this_0 = subtract(bigDecimal.dy_1, precision);
|
|
1060
1060
|
var newExponent = add(this_0, fromInt(1));
|
|
1061
|
-
return new BigDecimal(bigDecimal.
|
|
1061
|
+
return new BigDecimal(bigDecimal.cy_1, newExponent);
|
|
1062
1062
|
}
|
|
1063
1063
|
function bringSignificandToSameExponent($this, first, second) {
|
|
1064
1064
|
var firstPrepared = getRidOfRadix($this, first);
|
|
1065
1065
|
var secondPrepared = getRidOfRadix($this, second);
|
|
1066
|
-
var firstPreparedExponent = firstPrepared.
|
|
1067
|
-
var secondPreparedExponent = secondPrepared.
|
|
1066
|
+
var firstPreparedExponent = firstPrepared.dy_1;
|
|
1067
|
+
var secondPreparedExponent = secondPrepared.dy_1;
|
|
1068
1068
|
var tmp;
|
|
1069
|
-
if (compare(first.
|
|
1069
|
+
if (compare(first.dy_1, second.dy_1) > 0) {
|
|
1070
1070
|
var moveFirstBy = subtract(firstPreparedExponent, secondPreparedExponent);
|
|
1071
1071
|
var tmp_0;
|
|
1072
1072
|
if (compare(moveFirstBy, new Long(0, 0)) >= 0) {
|
|
1073
|
-
var movedFirst = firstPrepared.
|
|
1074
|
-
return new Triple(movedFirst, second.
|
|
1073
|
+
var movedFirst = firstPrepared.cy_1.gw(toBigInteger(10).fx(moveFirstBy));
|
|
1074
|
+
return new Triple(movedFirst, second.cy_1, secondPreparedExponent);
|
|
1075
1075
|
} else {
|
|
1076
1076
|
var tmp_1 = toBigInteger(10);
|
|
1077
1077
|
// Inline function 'kotlin.Long.times' call
|
|
1078
1078
|
var tmp$ret$0 = multiply(moveFirstBy, fromInt(-1));
|
|
1079
|
-
var movedSecond = secondPrepared.
|
|
1080
|
-
tmp_0 = new Triple(first.
|
|
1079
|
+
var movedSecond = secondPrepared.cy_1.gw(tmp_1.fx(tmp$ret$0));
|
|
1080
|
+
tmp_0 = new Triple(first.cy_1, movedSecond, firstPreparedExponent);
|
|
1081
1081
|
}
|
|
1082
1082
|
tmp = tmp_0;
|
|
1083
|
-
} else if (compare(first.
|
|
1083
|
+
} else if (compare(first.dy_1, second.dy_1) < 0) {
|
|
1084
1084
|
var moveSecondBy = subtract(secondPreparedExponent, firstPreparedExponent);
|
|
1085
1085
|
var tmp_2;
|
|
1086
1086
|
if (compare(moveSecondBy, new Long(0, 0)) >= 0) {
|
|
1087
|
-
var movedSecond_0 = secondPrepared.
|
|
1088
|
-
tmp_2 = new Triple(first.
|
|
1087
|
+
var movedSecond_0 = secondPrepared.cy_1.gw(toBigInteger(10).fx(moveSecondBy));
|
|
1088
|
+
tmp_2 = new Triple(first.cy_1, movedSecond_0, firstPreparedExponent);
|
|
1089
1089
|
} else {
|
|
1090
1090
|
var tmp_3 = toBigInteger(10);
|
|
1091
1091
|
// Inline function 'kotlin.Long.times' call
|
|
1092
1092
|
var tmp$ret$1 = multiply(moveSecondBy, fromInt(-1));
|
|
1093
|
-
var movedFirst_0 = firstPrepared.
|
|
1094
|
-
tmp_2 = new Triple(movedFirst_0, second.
|
|
1093
|
+
var movedFirst_0 = firstPrepared.cy_1.gw(tmp_3.fx(tmp$ret$1));
|
|
1094
|
+
tmp_2 = new Triple(movedFirst_0, second.cy_1, firstPreparedExponent);
|
|
1095
1095
|
}
|
|
1096
1096
|
return tmp_2;
|
|
1097
|
-
} else if (equalsLong(first.
|
|
1097
|
+
} else if (equalsLong(first.dy_1, second.dy_1)) {
|
|
1098
1098
|
var delta = subtract(firstPreparedExponent, secondPreparedExponent);
|
|
1099
1099
|
var tmp_4;
|
|
1100
1100
|
if (compare(delta, new Long(0, 0)) > 0) {
|
|
1101
|
-
var movedFirst_1 = first.
|
|
1102
|
-
tmp_4 = new Triple(movedFirst_1, second.
|
|
1101
|
+
var movedFirst_1 = first.cy_1.gw(toBigInteger(10).fx(delta));
|
|
1102
|
+
tmp_4 = new Triple(movedFirst_1, second.cy_1, firstPreparedExponent);
|
|
1103
1103
|
} else {
|
|
1104
1104
|
if (compare(delta, new Long(0, 0)) < 0) {
|
|
1105
1105
|
var tmp_5 = toBigInteger(10);
|
|
1106
1106
|
// Inline function 'kotlin.Long.times' call
|
|
1107
1107
|
var tmp$ret$2 = multiply(delta, fromInt(-1));
|
|
1108
|
-
var movedSecond_1 = second.
|
|
1109
|
-
tmp_4 = new Triple(first.
|
|
1108
|
+
var movedSecond_1 = second.cy_1.gw(tmp_5.fx(tmp$ret$2));
|
|
1109
|
+
tmp_4 = new Triple(first.cy_1, movedSecond_1, firstPreparedExponent);
|
|
1110
1110
|
} else {
|
|
1111
1111
|
// Inline function 'kotlin.Long.compareTo' call
|
|
1112
1112
|
if (delta.n2(fromInt(0)) === 0) {
|
|
1113
|
-
tmp_4 = new Triple(first.
|
|
1113
|
+
tmp_4 = new Triple(first.cy_1, second.cy_1, firstPreparedExponent);
|
|
1114
1114
|
} else {
|
|
1115
1115
|
throw RuntimeException_init_$Create$('Invalid delta: ' + delta.toString());
|
|
1116
1116
|
}
|
|
@@ -1118,7 +1118,7 @@
|
|
|
1118
1118
|
}
|
|
1119
1119
|
return tmp_4;
|
|
1120
1120
|
} else {
|
|
1121
|
-
throw RuntimeException_init_$Create$('Invalid comparison state BigInteger: ' + first.
|
|
1121
|
+
throw RuntimeException_init_$Create$('Invalid comparison state BigInteger: ' + first.dy_1.toString() + ', ' + second.dy_1.toString());
|
|
1122
1122
|
}
|
|
1123
1123
|
return tmp;
|
|
1124
1124
|
}
|
|
@@ -1126,11 +1126,11 @@
|
|
|
1126
1126
|
var double = numberToDouble(number);
|
|
1127
1127
|
var tmp;
|
|
1128
1128
|
if (double > toNumber(new Long(-1, 2147483647))) {
|
|
1129
|
-
tmp = $this.
|
|
1129
|
+
tmp = $this.bz(Companion_getInstance().wy(double.toString()));
|
|
1130
1130
|
} else if (double % 1 === 0.0) {
|
|
1131
|
-
tmp = $this.
|
|
1131
|
+
tmp = $this.bz(Companion_getInstance().my(numberToLong(number)));
|
|
1132
1132
|
} else {
|
|
1133
|
-
tmp = $this.
|
|
1133
|
+
tmp = $this.bz(toBigDecimal(numberToDouble(number)));
|
|
1134
1134
|
}
|
|
1135
1135
|
return tmp;
|
|
1136
1136
|
}
|
|
@@ -1193,85 +1193,85 @@
|
|
|
1193
1193
|
Companion_getInstance();
|
|
1194
1194
|
_exponent = _exponent === VOID ? new Long(0, 0) : _exponent;
|
|
1195
1195
|
_decimalMode = _decimalMode === VOID ? null : _decimalMode;
|
|
1196
|
-
if (!(_decimalMode == null) && _decimalMode.
|
|
1196
|
+
if (!(_decimalMode == null) && _decimalMode.tw_1) {
|
|
1197
1197
|
var wrk = applyScale(Companion_getInstance(), _significand, _exponent, _decimalMode);
|
|
1198
|
-
if (!wrk.
|
|
1198
|
+
if (!wrk.lx()) {
|
|
1199
|
+
this.cy_1 = wrk.cy_1;
|
|
1199
1200
|
this.dy_1 = wrk.dy_1;
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
this.
|
|
1203
|
-
this.fy_1 = _decimalMode.dz(newPrecision);
|
|
1201
|
+
var newPrecision = this.cy_1.ex();
|
|
1202
|
+
this.by_1 = newPrecision;
|
|
1203
|
+
this.ey_1 = _decimalMode.cz(newPrecision);
|
|
1204
1204
|
} else {
|
|
1205
|
-
this.
|
|
1206
|
-
this.
|
|
1207
|
-
this.
|
|
1208
|
-
this.
|
|
1205
|
+
this.cy_1 = wrk.cy_1;
|
|
1206
|
+
this.dy_1 = multiply(wrk.dy_1, add(_decimalMode.pw_1, _decimalMode.rw_1));
|
|
1207
|
+
this.by_1 = add(_decimalMode.pw_1, _decimalMode.rw_1);
|
|
1208
|
+
this.ey_1 = _decimalMode.cz(this.by_1);
|
|
1209
1209
|
}
|
|
1210
1210
|
} else {
|
|
1211
|
-
this.
|
|
1212
|
-
this.
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1211
|
+
this.cy_1 = _significand;
|
|
1212
|
+
this.by_1 = _significand.ex();
|
|
1213
|
+
this.dy_1 = _exponent;
|
|
1214
|
+
this.ey_1 = _decimalMode;
|
|
1215
1215
|
}
|
|
1216
1216
|
var tmp = this;
|
|
1217
|
-
var tmp0_safe_receiver = this.
|
|
1218
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1219
|
-
tmp.
|
|
1217
|
+
var tmp0_safe_receiver = this.ey_1;
|
|
1218
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pw_1;
|
|
1219
|
+
tmp.fy_1 = tmp0_elvis_lhs == null ? new Long(0, 0) : tmp0_elvis_lhs;
|
|
1220
1220
|
var tmp_0 = this;
|
|
1221
|
-
var tmp1_safe_receiver = this.
|
|
1222
|
-
var tmp0_elvis_lhs_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1223
|
-
tmp_0.
|
|
1221
|
+
var tmp1_safe_receiver = this.ey_1;
|
|
1222
|
+
var tmp0_elvis_lhs_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.qw_1;
|
|
1223
|
+
tmp_0.gy_1 = tmp0_elvis_lhs_0 == null ? RoundingMode_NONE_getInstance() : tmp0_elvis_lhs_0;
|
|
1224
1224
|
var tmp_1 = this;
|
|
1225
|
-
var tmp13_safe_receiver = this.
|
|
1226
|
-
var tmp0_elvis_lhs_1 = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.
|
|
1227
|
-
tmp_1.
|
|
1228
|
-
this.
|
|
1225
|
+
var tmp13_safe_receiver = this.ey_1;
|
|
1226
|
+
var tmp0_elvis_lhs_1 = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.rw_1;
|
|
1227
|
+
tmp_1.hy_1 = tmp0_elvis_lhs_1 == null ? new Long(-1, -1) : tmp0_elvis_lhs_1;
|
|
1228
|
+
this.iy_1 = compare(this.hy_1, new Long(0, 0)) >= 0;
|
|
1229
1229
|
}
|
|
1230
|
-
protoOf(BigDecimal).
|
|
1230
|
+
protoOf(BigDecimal).dz = function (scale) {
|
|
1231
1231
|
if (compare(scale, new Long(0, 0)) < 0)
|
|
1232
1232
|
throw ArithmeticException_init_$Create$('Negative Scale is unsupported.');
|
|
1233
1233
|
var tmp;
|
|
1234
|
-
if (this.
|
|
1234
|
+
if (this.ey_1 == null) {
|
|
1235
1235
|
var tmp_0;
|
|
1236
1236
|
if (equalsLong(scale, new Long(-1, -1))) {
|
|
1237
|
-
tmp_0 = Companion_getInstance_0().
|
|
1237
|
+
tmp_0 = Companion_getInstance_0().zy_1;
|
|
1238
1238
|
} else {
|
|
1239
1239
|
tmp_0 = new DecimalMode(new Long(0, 0), RoundingMode_ROUND_HALF_AWAY_FROM_ZERO_getInstance(), scale);
|
|
1240
1240
|
}
|
|
1241
1241
|
tmp = tmp_0;
|
|
1242
1242
|
} else {
|
|
1243
|
-
tmp = new DecimalMode(subtract(this.
|
|
1243
|
+
tmp = new DecimalMode(subtract(this.ey_1.pw_1, this.ey_1.rw_1), this.ey_1.qw_1, scale);
|
|
1244
1244
|
}
|
|
1245
1245
|
var mode = tmp;
|
|
1246
|
-
return new BigDecimal(this.
|
|
1246
|
+
return new BigDecimal(this.cy_1, this.dy_1, mode);
|
|
1247
1247
|
};
|
|
1248
|
-
protoOf(BigDecimal).
|
|
1248
|
+
protoOf(BigDecimal).aw = function () {
|
|
1249
1249
|
return Companion_getInstance();
|
|
1250
1250
|
};
|
|
1251
|
-
protoOf(BigDecimal).
|
|
1251
|
+
protoOf(BigDecimal).bw = function () {
|
|
1252
1252
|
return this;
|
|
1253
1253
|
};
|
|
1254
|
-
protoOf(BigDecimal).
|
|
1255
|
-
return this.
|
|
1254
|
+
protoOf(BigDecimal).ez = function (other) {
|
|
1255
|
+
return this.fz(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1256
1256
|
};
|
|
1257
|
-
protoOf(BigDecimal).
|
|
1258
|
-
return this.
|
|
1257
|
+
protoOf(BigDecimal).dw = function (other) {
|
|
1258
|
+
return this.ez(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1259
1259
|
};
|
|
1260
|
-
protoOf(BigDecimal).
|
|
1261
|
-
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.
|
|
1262
|
-
if (this.
|
|
1263
|
-
return roundOrDont(Companion_getInstance(), other.
|
|
1260
|
+
protoOf(BigDecimal).fz = function (other, decimalMode) {
|
|
1261
|
+
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.ey_1, other.ey_1, decimalMode);
|
|
1262
|
+
if (this.lx()) {
|
|
1263
|
+
return roundOrDont(Companion_getInstance(), other.cy_1, other.dy_1, resolvedDecimalMode);
|
|
1264
1264
|
}
|
|
1265
|
-
if (other.
|
|
1266
|
-
return roundOrDont(Companion_getInstance(), this.
|
|
1265
|
+
if (other.lx()) {
|
|
1266
|
+
return roundOrDont(Companion_getInstance(), this.cy_1, this.dy_1, resolvedDecimalMode);
|
|
1267
1267
|
}
|
|
1268
1268
|
var _destruct__k2r9zo = bringSignificandToSameExponent(this, this, other);
|
|
1269
|
-
var first = _destruct__k2r9zo.
|
|
1270
|
-
var second = _destruct__k2r9zo.
|
|
1271
|
-
var firstNumOfDigits = first.
|
|
1272
|
-
var secondNumOfDigits = second.
|
|
1273
|
-
var newSignificand = first.
|
|
1274
|
-
var newSignificandNumOfDigit = newSignificand.
|
|
1269
|
+
var first = _destruct__k2r9zo.ub();
|
|
1270
|
+
var second = _destruct__k2r9zo.vb();
|
|
1271
|
+
var firstNumOfDigits = first.ex();
|
|
1272
|
+
var secondNumOfDigits = second.ex();
|
|
1273
|
+
var newSignificand = first.cw(second);
|
|
1274
|
+
var newSignificandNumOfDigit = newSignificand.ex();
|
|
1275
1275
|
var tmp;
|
|
1276
1276
|
if (compare(firstNumOfDigits, secondNumOfDigits) > 0) {
|
|
1277
1277
|
tmp = firstNumOfDigits;
|
|
@@ -1280,40 +1280,40 @@
|
|
|
1280
1280
|
}
|
|
1281
1281
|
var largerOperand = tmp;
|
|
1282
1282
|
var carryDetected = subtract(newSignificandNumOfDigit, largerOperand);
|
|
1283
|
-
var tmp0 = this.
|
|
1283
|
+
var tmp0 = this.dy_1;
|
|
1284
1284
|
// Inline function 'kotlin.math.max' call
|
|
1285
|
-
var b = other.
|
|
1285
|
+
var b = other.dy_1;
|
|
1286
1286
|
var tmp$ret$0 = compare(tmp0, b) >= 0 ? tmp0 : b;
|
|
1287
1287
|
var newExponent = add(tmp$ret$0, carryDetected);
|
|
1288
1288
|
var tmp_0;
|
|
1289
|
-
if (resolvedDecimalMode.
|
|
1290
|
-
tmp_0 = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.
|
|
1289
|
+
if (resolvedDecimalMode.tw_1) {
|
|
1290
|
+
tmp_0 = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.cz(newSignificandNumOfDigit));
|
|
1291
1291
|
} else {
|
|
1292
1292
|
tmp_0 = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode);
|
|
1293
1293
|
}
|
|
1294
1294
|
return tmp_0;
|
|
1295
1295
|
};
|
|
1296
|
-
protoOf(BigDecimal).
|
|
1297
|
-
return this.
|
|
1296
|
+
protoOf(BigDecimal).gz = function (other) {
|
|
1297
|
+
return this.hz(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1298
1298
|
};
|
|
1299
|
-
protoOf(BigDecimal).
|
|
1300
|
-
return this.
|
|
1299
|
+
protoOf(BigDecimal).fw = function (other) {
|
|
1300
|
+
return this.gz(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1301
1301
|
};
|
|
1302
|
-
protoOf(BigDecimal).
|
|
1303
|
-
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.
|
|
1304
|
-
if (this.
|
|
1305
|
-
return roundOrDont(Companion_getInstance(), other.
|
|
1302
|
+
protoOf(BigDecimal).hz = function (other, decimalMode) {
|
|
1303
|
+
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.ey_1, other.ey_1, decimalMode);
|
|
1304
|
+
if (this.lx()) {
|
|
1305
|
+
return roundOrDont(Companion_getInstance(), other.cy_1.yy(), other.dy_1, resolvedDecimalMode);
|
|
1306
1306
|
}
|
|
1307
|
-
if (other.
|
|
1308
|
-
return roundOrDont(Companion_getInstance(), this.
|
|
1307
|
+
if (other.lx()) {
|
|
1308
|
+
return roundOrDont(Companion_getInstance(), this.cy_1, this.dy_1, resolvedDecimalMode);
|
|
1309
1309
|
}
|
|
1310
1310
|
var _destruct__k2r9zo = bringSignificandToSameExponent(this, this, other);
|
|
1311
|
-
var first = _destruct__k2r9zo.
|
|
1312
|
-
var second = _destruct__k2r9zo.
|
|
1313
|
-
var firstNumOfDigits = first.
|
|
1314
|
-
var secondNumOfDigits = second.
|
|
1315
|
-
var newSignificand = first.
|
|
1316
|
-
var newSignificandNumOfDigit = newSignificand.
|
|
1311
|
+
var first = _destruct__k2r9zo.ub();
|
|
1312
|
+
var second = _destruct__k2r9zo.vb();
|
|
1313
|
+
var firstNumOfDigits = first.ex();
|
|
1314
|
+
var secondNumOfDigits = second.ex();
|
|
1315
|
+
var newSignificand = first.ew(second);
|
|
1316
|
+
var newSignificandNumOfDigit = newSignificand.ex();
|
|
1317
1317
|
var tmp;
|
|
1318
1318
|
if (compare(firstNumOfDigits, secondNumOfDigits) > 0) {
|
|
1319
1319
|
tmp = firstNumOfDigits;
|
|
@@ -1322,173 +1322,173 @@
|
|
|
1322
1322
|
}
|
|
1323
1323
|
var largerOperand = tmp;
|
|
1324
1324
|
var borrowDetected = subtract(newSignificandNumOfDigit, largerOperand);
|
|
1325
|
-
var tmp0 = this.
|
|
1325
|
+
var tmp0 = this.dy_1;
|
|
1326
1326
|
// Inline function 'kotlin.math.max' call
|
|
1327
|
-
var b = other.
|
|
1327
|
+
var b = other.dy_1;
|
|
1328
1328
|
var tmp$ret$0 = compare(tmp0, b) >= 0 ? tmp0 : b;
|
|
1329
1329
|
var newExponent = add(tmp$ret$0, borrowDetected);
|
|
1330
|
-
if (this.
|
|
1331
|
-
return roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.
|
|
1330
|
+
if (this.iy_1) {
|
|
1331
|
+
return roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.cz(newSignificandNumOfDigit));
|
|
1332
1332
|
} else {
|
|
1333
1333
|
return roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode);
|
|
1334
1334
|
}
|
|
1335
1335
|
};
|
|
1336
|
-
protoOf(BigDecimal).
|
|
1337
|
-
return this.
|
|
1336
|
+
protoOf(BigDecimal).iz = function (other) {
|
|
1337
|
+
return this.jz(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1338
1338
|
};
|
|
1339
|
-
protoOf(BigDecimal).
|
|
1340
|
-
return this.
|
|
1339
|
+
protoOf(BigDecimal).hw = function (other) {
|
|
1340
|
+
return this.iz(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1341
1341
|
};
|
|
1342
|
-
protoOf(BigDecimal).
|
|
1343
|
-
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.
|
|
1344
|
-
var firstNumOfDigits = this.
|
|
1345
|
-
var secondNumOfDigits = other.
|
|
1346
|
-
var newSignificand = this.
|
|
1347
|
-
var newSignificandNumOfDigit = newSignificand.
|
|
1342
|
+
protoOf(BigDecimal).jz = function (other, decimalMode) {
|
|
1343
|
+
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.ey_1, other.ey_1, decimalMode);
|
|
1344
|
+
var firstNumOfDigits = this.cy_1.ex();
|
|
1345
|
+
var secondNumOfDigits = other.cy_1.ex();
|
|
1346
|
+
var newSignificand = this.cy_1.gw(other.cy_1);
|
|
1347
|
+
var newSignificandNumOfDigit = newSignificand.ex();
|
|
1348
1348
|
var moveExponent = subtract(newSignificandNumOfDigit, add(firstNumOfDigits, secondNumOfDigits));
|
|
1349
1349
|
// Inline function 'kotlin.Long.plus' call
|
|
1350
|
-
var this_0 = add(add(this.
|
|
1350
|
+
var this_0 = add(add(this.dy_1, other.dy_1), moveExponent);
|
|
1351
1351
|
var newExponent = add(this_0, fromInt(1));
|
|
1352
1352
|
var tmp;
|
|
1353
|
-
if (resolvedDecimalMode.
|
|
1354
|
-
tmp = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.
|
|
1353
|
+
if (resolvedDecimalMode.tw_1) {
|
|
1354
|
+
tmp = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.cz(newSignificandNumOfDigit));
|
|
1355
1355
|
} else {
|
|
1356
1356
|
tmp = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode);
|
|
1357
1357
|
}
|
|
1358
1358
|
return tmp;
|
|
1359
1359
|
};
|
|
1360
|
-
protoOf(BigDecimal).
|
|
1361
|
-
return this.
|
|
1360
|
+
protoOf(BigDecimal).kz = function (other) {
|
|
1361
|
+
return this.lz(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1362
1362
|
};
|
|
1363
|
-
protoOf(BigDecimal).
|
|
1364
|
-
return this.
|
|
1363
|
+
protoOf(BigDecimal).jw = function (other) {
|
|
1364
|
+
return this.kz(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1365
1365
|
};
|
|
1366
|
-
protoOf(BigDecimal).
|
|
1367
|
-
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.
|
|
1368
|
-
if (resolvedDecimalMode.
|
|
1369
|
-
var newExponent = subtract(this.
|
|
1366
|
+
protoOf(BigDecimal).lz = function (other, decimalMode) {
|
|
1367
|
+
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.ey_1, other.ey_1, decimalMode);
|
|
1368
|
+
if (resolvedDecimalMode.sw_1 && !resolvedDecimalMode.tw_1) {
|
|
1369
|
+
var newExponent = subtract(this.dy_1, other.dy_1);
|
|
1370
1370
|
// Inline function 'kotlin.Long.times' call
|
|
1371
|
-
var this_0 = other.
|
|
1371
|
+
var this_0 = other.by_1;
|
|
1372
1372
|
// Inline function 'kotlin.Long.plus' call
|
|
1373
1373
|
var this_1 = multiply(this_0, fromInt(2));
|
|
1374
1374
|
var power = add(this_1, fromInt(6));
|
|
1375
|
-
var thisPrepared = this.
|
|
1376
|
-
var divRem = thisPrepared.
|
|
1377
|
-
var result = divRem.
|
|
1375
|
+
var thisPrepared = this.cy_1.gw(Companion_getInstance_1().yw_1.fx(power));
|
|
1376
|
+
var divRem = thisPrepared.gx(other.cy_1);
|
|
1377
|
+
var result = divRem.hx_1;
|
|
1378
1378
|
// Inline function 'kotlin.Long.minus' call
|
|
1379
|
-
var this_2 = other.
|
|
1379
|
+
var this_2 = other.by_1;
|
|
1380
1380
|
var expectedDiff = subtract(this_2, fromInt(1));
|
|
1381
|
-
var exponentModifier = add(expectedDiff, subtract(result.
|
|
1382
|
-
if (!divRem.
|
|
1381
|
+
var exponentModifier = add(expectedDiff, subtract(result.ex(), thisPrepared.ex()));
|
|
1382
|
+
if (!divRem.ix_1.equals(Companion_getInstance_1().vw_1)) {
|
|
1383
1383
|
throw ArithmeticException_init_$Create$('Non-terminating result of division operation (i.e. 1/3 = 0.3333... library needs to know when to stop and how to round up at that point). Specify decimalPrecision inside your decimal mode.');
|
|
1384
1384
|
}
|
|
1385
1385
|
return new BigDecimal(result, add(newExponent, exponentModifier), resolvedDecimalMode);
|
|
1386
1386
|
} else {
|
|
1387
1387
|
// Inline function 'kotlin.Long.minus' call
|
|
1388
|
-
var this_3 = subtract(this.
|
|
1388
|
+
var this_3 = subtract(this.dy_1, other.dy_1);
|
|
1389
1389
|
var newExponent_0 = subtract(this_3, fromInt(1));
|
|
1390
|
-
var desiredPrecision = resolvedDecimalMode.
|
|
1391
|
-
var power_0 = add(subtract(desiredPrecision, this.
|
|
1390
|
+
var desiredPrecision = resolvedDecimalMode.pw_1;
|
|
1391
|
+
var power_0 = add(subtract(desiredPrecision, this.by_1), other.by_1);
|
|
1392
1392
|
var tmp;
|
|
1393
1393
|
if (compare(power_0, new Long(0, 0)) > 0) {
|
|
1394
|
-
tmp = this.
|
|
1394
|
+
tmp = this.cy_1.gw(toBigInteger(10).fx(power_0));
|
|
1395
1395
|
} else if (compare(power_0, new Long(0, 0)) < 0) {
|
|
1396
1396
|
var tmp_0 = toBigInteger(10);
|
|
1397
1397
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1398
1398
|
var tmp$ret$4 = abs(power_0);
|
|
1399
|
-
tmp = this.
|
|
1399
|
+
tmp = this.cy_1.iw(tmp_0.fx(tmp$ret$4));
|
|
1400
1400
|
} else {
|
|
1401
|
-
tmp = this.
|
|
1401
|
+
tmp = this.cy_1;
|
|
1402
1402
|
}
|
|
1403
1403
|
var thisPrepared_0 = tmp;
|
|
1404
|
-
var divRem_0 = thisPrepared_0.
|
|
1405
|
-
var result_0 = divRem_0.
|
|
1406
|
-
if (result_0.equals(Companion_getInstance_1().
|
|
1404
|
+
var divRem_0 = thisPrepared_0.gx(other.cy_1);
|
|
1405
|
+
var result_0 = divRem_0.hx_1;
|
|
1406
|
+
if (result_0.equals(Companion_getInstance_1().vw_1)) {
|
|
1407
1407
|
var _unary__edvuaz = newExponent_0;
|
|
1408
1408
|
newExponent_0 = subtract(_unary__edvuaz, get_ONE());
|
|
1409
1409
|
}
|
|
1410
|
-
var exponentModifier_0 = subtract(result_0.
|
|
1410
|
+
var exponentModifier_0 = subtract(result_0.ex(), resolvedDecimalMode.pw_1);
|
|
1411
1411
|
var tmp_1;
|
|
1412
|
-
if (this.
|
|
1413
|
-
tmp_1 = new BigDecimal(roundDiscarded(Companion_getInstance(), result_0, divRem_0.
|
|
1412
|
+
if (this.iy_1) {
|
|
1413
|
+
tmp_1 = new BigDecimal(roundDiscarded(Companion_getInstance(), result_0, divRem_0.ix_1, resolvedDecimalMode), add(newExponent_0, exponentModifier_0), resolvedDecimalMode.cz(result_0.ex()));
|
|
1414
1414
|
} else {
|
|
1415
|
-
tmp_1 = new BigDecimal(roundDiscarded(Companion_getInstance(), result_0, divRem_0.
|
|
1415
|
+
tmp_1 = new BigDecimal(roundDiscarded(Companion_getInstance(), result_0, divRem_0.ix_1, resolvedDecimalMode), add(newExponent_0, exponentModifier_0), resolvedDecimalMode);
|
|
1416
1416
|
}
|
|
1417
1417
|
return tmp_1;
|
|
1418
1418
|
}
|
|
1419
1419
|
};
|
|
1420
|
-
protoOf(BigDecimal).
|
|
1421
|
-
return this.
|
|
1420
|
+
protoOf(BigDecimal).mz = function (other) {
|
|
1421
|
+
return this.nz(other).tb_1;
|
|
1422
1422
|
};
|
|
1423
|
-
protoOf(BigDecimal).
|
|
1424
|
-
return this.
|
|
1423
|
+
protoOf(BigDecimal).ow = function (other) {
|
|
1424
|
+
return this.mz(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1425
1425
|
};
|
|
1426
|
-
protoOf(BigDecimal).
|
|
1427
|
-
if (compare(this.
|
|
1428
|
-
return new Pair(Companion_getInstance().
|
|
1426
|
+
protoOf(BigDecimal).nz = function (other) {
|
|
1427
|
+
if (compare(this.dy_1, new Long(0, 0)) < 0) {
|
|
1428
|
+
return new Pair(Companion_getInstance().ox_1, this);
|
|
1429
1429
|
}
|
|
1430
|
-
if (other.
|
|
1431
|
-
return new Pair(Companion_getInstance().
|
|
1430
|
+
if (other.jx().oz(this.jx()) > 0) {
|
|
1431
|
+
return new Pair(Companion_getInstance().ox_1, this);
|
|
1432
1432
|
}
|
|
1433
|
-
var tmp16_safe_receiver = this.
|
|
1433
|
+
var tmp16_safe_receiver = this.ey_1;
|
|
1434
1434
|
var tmp;
|
|
1435
1435
|
if (tmp16_safe_receiver == null) {
|
|
1436
1436
|
tmp = null;
|
|
1437
1437
|
} else {
|
|
1438
1438
|
// Inline function 'kotlin.Long.plus' call
|
|
1439
|
-
var this_0 = subtract(this.
|
|
1439
|
+
var this_0 = subtract(this.dy_1, other.dy_1);
|
|
1440
1440
|
var tmp$ret$0 = add(this_0, fromInt(1));
|
|
1441
|
-
tmp = tmp16_safe_receiver.
|
|
1441
|
+
tmp = tmp16_safe_receiver.cz(tmp$ret$0);
|
|
1442
1442
|
}
|
|
1443
1443
|
var tmp0_elvis_lhs = tmp;
|
|
1444
1444
|
var tmp_0;
|
|
1445
1445
|
if (tmp0_elvis_lhs == null) {
|
|
1446
1446
|
// Inline function 'kotlin.Long.plus' call
|
|
1447
|
-
var this_1 = subtract(this.
|
|
1447
|
+
var this_1 = subtract(this.dy_1, other.dy_1);
|
|
1448
1448
|
var tmp$ret$1 = add(this_1, fromInt(1));
|
|
1449
1449
|
tmp_0 = new DecimalMode(tmp$ret$1, RoundingMode_FLOOR_getInstance());
|
|
1450
1450
|
} else {
|
|
1451
1451
|
tmp_0 = tmp0_elvis_lhs;
|
|
1452
1452
|
}
|
|
1453
1453
|
var resolvedRoundingMode = tmp_0;
|
|
1454
|
-
var quotient = this.
|
|
1455
|
-
var quotientInfinitePrecision = quotient.
|
|
1456
|
-
var remainder = this.
|
|
1454
|
+
var quotient = this.lz(other, resolvedRoundingMode);
|
|
1455
|
+
var quotientInfinitePrecision = quotient.pz(VOID, VOID, Companion_getInstance_0().zy_1);
|
|
1456
|
+
var remainder = this.rz(quotientInfinitePrecision.qz(other));
|
|
1457
1457
|
return new Pair(quotient, remainder);
|
|
1458
1458
|
};
|
|
1459
|
-
protoOf(BigDecimal).
|
|
1460
|
-
return this.
|
|
1459
|
+
protoOf(BigDecimal).lx = function () {
|
|
1460
|
+
return this.cy_1.lx();
|
|
1461
1461
|
};
|
|
1462
|
-
protoOf(BigDecimal).
|
|
1462
|
+
protoOf(BigDecimal).sz = function (significand, exponent, decimalMode) {
|
|
1463
1463
|
return new BigDecimal(significand, exponent, decimalMode);
|
|
1464
1464
|
};
|
|
1465
|
-
protoOf(BigDecimal).
|
|
1466
|
-
significand = significand === VOID ? this.
|
|
1467
|
-
exponent = exponent === VOID ? this.
|
|
1468
|
-
decimalMode = decimalMode === VOID ? this.
|
|
1469
|
-
return $super === VOID ? this.
|
|
1465
|
+
protoOf(BigDecimal).pz = function (significand, exponent, decimalMode, $super) {
|
|
1466
|
+
significand = significand === VOID ? this.cy_1 : significand;
|
|
1467
|
+
exponent = exponent === VOID ? this.dy_1 : exponent;
|
|
1468
|
+
decimalMode = decimalMode === VOID ? this.ey_1 : decimalMode;
|
|
1469
|
+
return $super === VOID ? this.sz(significand, exponent, decimalMode) : $super.sz.call(this, significand, exponent, decimalMode);
|
|
1470
1470
|
};
|
|
1471
|
-
protoOf(BigDecimal).
|
|
1471
|
+
protoOf(BigDecimal).tz = function (places) {
|
|
1472
1472
|
if (equalsLong(places, new Long(0, 0))) {
|
|
1473
1473
|
return this;
|
|
1474
1474
|
}
|
|
1475
|
-
return this.
|
|
1475
|
+
return this.pz(VOID, add(this.dy_1, places));
|
|
1476
1476
|
};
|
|
1477
|
-
protoOf(BigDecimal).
|
|
1478
|
-
return this.
|
|
1477
|
+
protoOf(BigDecimal).uz = function (exponent) {
|
|
1478
|
+
return this.fx(fromInt(exponent));
|
|
1479
1479
|
};
|
|
1480
|
-
protoOf(BigDecimal).
|
|
1481
|
-
if (compare(this.
|
|
1480
|
+
protoOf(BigDecimal).vz = function () {
|
|
1481
|
+
if (compare(this.dy_1, new Long(0, 0)) < 0) {
|
|
1482
1482
|
var tmp;
|
|
1483
|
-
switch (this.
|
|
1483
|
+
switch (this.cy_1.bx_1.d2_1) {
|
|
1484
1484
|
case 0:
|
|
1485
|
-
tmp = Companion_getInstance().
|
|
1485
|
+
tmp = Companion_getInstance().ox_1;
|
|
1486
1486
|
break;
|
|
1487
1487
|
case 1:
|
|
1488
|
-
tmp = Companion_getInstance().
|
|
1488
|
+
tmp = Companion_getInstance().px_1.yy();
|
|
1489
1489
|
break;
|
|
1490
1490
|
case 2:
|
|
1491
|
-
tmp = Companion_getInstance().
|
|
1491
|
+
tmp = Companion_getInstance().ox_1;
|
|
1492
1492
|
break;
|
|
1493
1493
|
default:
|
|
1494
1494
|
noWhenBranchMatchedException();
|
|
@@ -1497,53 +1497,53 @@
|
|
|
1497
1497
|
return tmp;
|
|
1498
1498
|
}
|
|
1499
1499
|
// Inline function 'kotlin.Long.plus' call
|
|
1500
|
-
var this_0 = this.
|
|
1500
|
+
var this_0 = this.dy_1;
|
|
1501
1501
|
var tmp$ret$0 = add(this_0, fromInt(1));
|
|
1502
|
-
return this.
|
|
1502
|
+
return this.ny(new DecimalMode(tmp$ret$0, RoundingMode_FLOOR_getInstance()));
|
|
1503
1503
|
};
|
|
1504
|
-
protoOf(BigDecimal).
|
|
1505
|
-
if (compare(this.
|
|
1506
|
-
return Companion_getInstance_1().
|
|
1504
|
+
protoOf(BigDecimal).wz = function () {
|
|
1505
|
+
if (compare(this.dy_1, new Long(0, 0)) < 0) {
|
|
1506
|
+
return Companion_getInstance_1().vw_1;
|
|
1507
1507
|
}
|
|
1508
|
-
var precisionExponentDiff = subtract(this.
|
|
1508
|
+
var precisionExponentDiff = subtract(this.dy_1, this.by_1);
|
|
1509
1509
|
var tmp;
|
|
1510
1510
|
if (compare(precisionExponentDiff, new Long(0, 0)) > 0) {
|
|
1511
1511
|
var tmp_0 = toBigInteger(10);
|
|
1512
1512
|
// Inline function 'kotlin.Long.plus' call
|
|
1513
1513
|
var tmp$ret$0 = add(precisionExponentDiff, fromInt(1));
|
|
1514
|
-
tmp = this.
|
|
1514
|
+
tmp = this.cy_1.gw(tmp_0.fx(tmp$ret$0));
|
|
1515
1515
|
} else if (compare(precisionExponentDiff, new Long(0, 0)) < 0) {
|
|
1516
1516
|
var tmp_1 = toBigInteger(10);
|
|
1517
1517
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1518
1518
|
// Inline function 'kotlin.Long.minus' call
|
|
1519
1519
|
var this_0 = abs(precisionExponentDiff);
|
|
1520
1520
|
var tmp$ret$2 = subtract(this_0, fromInt(1));
|
|
1521
|
-
tmp = this.
|
|
1521
|
+
tmp = this.cy_1.iw(tmp_1.fx(tmp$ret$2));
|
|
1522
1522
|
} else {
|
|
1523
|
-
tmp = this.
|
|
1523
|
+
tmp = this.cy_1.dg(10);
|
|
1524
1524
|
}
|
|
1525
1525
|
return tmp;
|
|
1526
1526
|
};
|
|
1527
|
-
protoOf(BigDecimal).
|
|
1528
|
-
return this.
|
|
1529
|
-
};
|
|
1530
|
-
protoOf(BigDecimal).sz = function (other) {
|
|
1531
|
-
return this.iz(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1527
|
+
protoOf(BigDecimal).xz = function (other) {
|
|
1528
|
+
return this.nz(other);
|
|
1532
1529
|
};
|
|
1533
1530
|
protoOf(BigDecimal).rz = function (other) {
|
|
1534
|
-
return this.
|
|
1531
|
+
return this.hz(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1535
1532
|
};
|
|
1536
|
-
protoOf(BigDecimal).
|
|
1537
|
-
return this.
|
|
1533
|
+
protoOf(BigDecimal).qz = function (other) {
|
|
1534
|
+
return this.jz(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1535
|
+
};
|
|
1536
|
+
protoOf(BigDecimal).yz = function (other) {
|
|
1537
|
+
return this.lz(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1538
1538
|
};
|
|
1539
|
-
protoOf(BigDecimal).
|
|
1540
|
-
return new BigDecimal(this.
|
|
1539
|
+
protoOf(BigDecimal).jx = function () {
|
|
1540
|
+
return new BigDecimal(this.cy_1.jx(), this.dy_1, this.ey_1);
|
|
1541
1541
|
};
|
|
1542
|
-
protoOf(BigDecimal).
|
|
1543
|
-
return new BigDecimal(this.
|
|
1542
|
+
protoOf(BigDecimal).yy = function () {
|
|
1543
|
+
return new BigDecimal(this.cy_1.yy(), this.dy_1, this.ey_1);
|
|
1544
1544
|
};
|
|
1545
|
-
protoOf(BigDecimal).
|
|
1546
|
-
if (this.
|
|
1545
|
+
protoOf(BigDecimal).fx = function (exponent) {
|
|
1546
|
+
if (this.lx() && compare(exponent, new Long(0, 0)) < 0) {
|
|
1547
1547
|
throw ArithmeticException_init_$Create$('Negative exponentiation of zero is not defined.');
|
|
1548
1548
|
}
|
|
1549
1549
|
var result = this;
|
|
@@ -1556,7 +1556,7 @@
|
|
|
1556
1556
|
do {
|
|
1557
1557
|
var i = inductionVariable;
|
|
1558
1558
|
inductionVariable = add(inductionVariable, new Long(1, 0));
|
|
1559
|
-
result = result.
|
|
1559
|
+
result = result.qz(this);
|
|
1560
1560
|
}
|
|
1561
1561
|
while (compare(inductionVariable, last) < 0);
|
|
1562
1562
|
tmp = result;
|
|
@@ -1567,10 +1567,10 @@
|
|
|
1567
1567
|
do {
|
|
1568
1568
|
var i_0 = inductionVariable_0;
|
|
1569
1569
|
inductionVariable_0 = add(inductionVariable_0, new Long(1, 0));
|
|
1570
|
-
result = result.
|
|
1570
|
+
result = result.yz(this);
|
|
1571
1571
|
}
|
|
1572
1572
|
while (!equalsLong(i_0, new Long(-1, 2147483647)));
|
|
1573
|
-
result = result.
|
|
1573
|
+
result = result.yz(this);
|
|
1574
1574
|
} else {
|
|
1575
1575
|
var inductionVariable_1 = new Long(0, 0);
|
|
1576
1576
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
@@ -1579,57 +1579,57 @@
|
|
|
1579
1579
|
do {
|
|
1580
1580
|
var i_1 = inductionVariable_1;
|
|
1581
1581
|
inductionVariable_1 = add(inductionVariable_1, new Long(1, 0));
|
|
1582
|
-
result = result.
|
|
1582
|
+
result = result.yz(this);
|
|
1583
1583
|
}
|
|
1584
1584
|
while (!equalsLong(i_1, last_0));
|
|
1585
1585
|
}
|
|
1586
1586
|
tmp = result;
|
|
1587
1587
|
} else {
|
|
1588
|
-
tmp = Companion_getInstance().
|
|
1588
|
+
tmp = Companion_getInstance().px_1;
|
|
1589
1589
|
}
|
|
1590
1590
|
return tmp;
|
|
1591
1591
|
};
|
|
1592
|
-
protoOf(BigDecimal).
|
|
1593
|
-
var res = this.
|
|
1594
|
-
var isWholeNumber = res.
|
|
1592
|
+
protoOf(BigDecimal).zz = function () {
|
|
1593
|
+
var res = this.jx().xz(Companion_getInstance().px_1);
|
|
1594
|
+
var isWholeNumber = res.tb_1.lx();
|
|
1595
1595
|
return isWholeNumber;
|
|
1596
1596
|
};
|
|
1597
|
-
protoOf(BigDecimal).
|
|
1597
|
+
protoOf(BigDecimal).a10 = function (exactRequired) {
|
|
1598
1598
|
if (exactRequired) {
|
|
1599
1599
|
var exactPossible = true;
|
|
1600
|
-
if (compare(this.
|
|
1600
|
+
if (compare(this.dy_1, new Long(-324, -1)) < 0 || compare(this.dy_1, new Long(308, 0)) > 0) {
|
|
1601
1601
|
exactPossible = false;
|
|
1602
1602
|
}
|
|
1603
1603
|
var tmp;
|
|
1604
1604
|
// Inline function 'kotlin.Long.minus' call
|
|
1605
|
-
var this_0 = subtract(this.
|
|
1605
|
+
var this_0 = subtract(this.by_1, this.dy_1);
|
|
1606
1606
|
var tmp$ret$0 = subtract(this_0, fromInt(1));
|
|
1607
1607
|
if (compare(tmp$ret$0, new Long(0, 0)) > 0) {
|
|
1608
1608
|
var tmp_0;
|
|
1609
|
-
if (compare(this.
|
|
1610
|
-
var tmp_1 = Companion_getInstance_1().
|
|
1609
|
+
if (compare(this.dy_1, new Long(0, 0)) >= 0) {
|
|
1610
|
+
var tmp_1 = Companion_getInstance_1().yw_1;
|
|
1611
1611
|
// Inline function 'kotlin.Long.minus' call
|
|
1612
|
-
var this_1 = subtract(this.
|
|
1612
|
+
var this_1 = subtract(this.by_1, this.dy_1);
|
|
1613
1613
|
var tmp$ret$1 = subtract(this_1, fromInt(1));
|
|
1614
|
-
tmp_0 = this.
|
|
1614
|
+
tmp_0 = this.cy_1.iw(tmp_1.fx(tmp$ret$1));
|
|
1615
1615
|
} else {
|
|
1616
|
-
tmp_0 = Companion_getInstance_1().
|
|
1616
|
+
tmp_0 = Companion_getInstance_1().vw_1;
|
|
1617
1617
|
}
|
|
1618
1618
|
var integerPart = tmp_0;
|
|
1619
|
-
var integerPartBitLength = get_chosenArithmetic().
|
|
1620
|
-
var tmp_2 = Companion_getInstance_1().
|
|
1619
|
+
var integerPartBitLength = get_chosenArithmetic().c10(integerPart.ax_1);
|
|
1620
|
+
var tmp_2 = Companion_getInstance_1().yw_1;
|
|
1621
1621
|
// Inline function 'kotlin.Long.minus' call
|
|
1622
|
-
var this_2 = subtract(this.
|
|
1622
|
+
var this_2 = subtract(this.by_1, this.dy_1);
|
|
1623
1623
|
var tmp$ret$2 = subtract(this_2, fromInt(1));
|
|
1624
|
-
var fractionPart = this.
|
|
1624
|
+
var fractionPart = this.cy_1.gx(tmp_2.fx(tmp$ret$2)).ix_1;
|
|
1625
1625
|
var fractionConvertTemp = new BigDecimal(fractionPart, new Long(-1, -1));
|
|
1626
1626
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1627
1627
|
var bitList = ArrayList_init_$Create$();
|
|
1628
1628
|
var counter = 0;
|
|
1629
|
-
while (!fractionConvertTemp.equals(Companion_getInstance().
|
|
1630
|
-
var multiplied = fractionConvertTemp.
|
|
1629
|
+
while (!fractionConvertTemp.equals(Companion_getInstance().ox_1) && counter <= 53) {
|
|
1630
|
+
var multiplied = fractionConvertTemp.dg(2);
|
|
1631
1631
|
var tmp_3;
|
|
1632
|
-
if (multiplied.
|
|
1632
|
+
if (multiplied.oz(Companion_getInstance().px_1) >= 0) {
|
|
1633
1633
|
tmp_3 = 1;
|
|
1634
1634
|
} else {
|
|
1635
1635
|
tmp_3 = 0;
|
|
@@ -1638,7 +1638,7 @@
|
|
|
1638
1638
|
bitList.j(bit);
|
|
1639
1639
|
var tmp_4;
|
|
1640
1640
|
if (bit === 1) {
|
|
1641
|
-
tmp_4 = multiplied.
|
|
1641
|
+
tmp_4 = multiplied.xz(Companion_getInstance().px_1).tb_1;
|
|
1642
1642
|
} else {
|
|
1643
1643
|
tmp_4 = multiplied;
|
|
1644
1644
|
}
|
|
@@ -1648,8 +1648,8 @@
|
|
|
1648
1648
|
var bitSum = integerPartBitLength + bitList.q() | 0;
|
|
1649
1649
|
tmp = bitSum;
|
|
1650
1650
|
} else {
|
|
1651
|
-
var trailingZeroBits = get_chosenArithmetic().
|
|
1652
|
-
var bitSum_0 = get_chosenArithmetic().
|
|
1651
|
+
var trailingZeroBits = get_chosenArithmetic().b10(this.cy_1.ax_1);
|
|
1652
|
+
var bitSum_0 = get_chosenArithmetic().c10(this.cy_1.ax_1);
|
|
1653
1653
|
tmp = bitSum_0 - trailingZeroBits | 0;
|
|
1654
1654
|
}
|
|
1655
1655
|
var totalBits = tmp;
|
|
@@ -1661,68 +1661,68 @@
|
|
|
1661
1661
|
}
|
|
1662
1662
|
}
|
|
1663
1663
|
// Inline function 'kotlin.Long.minus' call
|
|
1664
|
-
var this_3 = this.
|
|
1664
|
+
var this_3 = this.by_1;
|
|
1665
1665
|
var tmp$ret$4 = subtract(this_3, fromInt(1));
|
|
1666
|
-
var divExponent = subtract(tmp$ret$4, this.
|
|
1667
|
-
var l = this.
|
|
1668
|
-
if (this.
|
|
1666
|
+
var divExponent = subtract(tmp$ret$4, this.dy_1);
|
|
1667
|
+
var l = this.cy_1.d10(exactRequired);
|
|
1668
|
+
if (this.cy_1.oz(new Long(-1, 2147483647)) > 0 || this.cy_1.oz(new Long(0, -2147483648)) < 0) {
|
|
1669
1669
|
return toDouble(this.toString());
|
|
1670
1670
|
}
|
|
1671
1671
|
var tmp_5;
|
|
1672
|
-
if (equalsLong(numberToLong(toNumber(l)), l) && compare(divExponent, new Long(0, 0)) >= 0 && compare(divExponent, fromInt(Companion_getInstance().
|
|
1672
|
+
if (equalsLong(numberToLong(toNumber(l)), l) && compare(divExponent, new Long(0, 0)) >= 0 && compare(divExponent, fromInt(Companion_getInstance().tx_1.length)) < 0) {
|
|
1673
1673
|
// Inline function 'kotlin.Long.div' call
|
|
1674
|
-
var other = Companion_getInstance().
|
|
1674
|
+
var other = Companion_getInstance().tx_1[convertToInt(divExponent)];
|
|
1675
1675
|
tmp_5 = toNumber(l) / other;
|
|
1676
1676
|
} else {
|
|
1677
1677
|
tmp_5 = toDouble(this.toString());
|
|
1678
1678
|
}
|
|
1679
1679
|
return tmp_5;
|
|
1680
1680
|
};
|
|
1681
|
-
protoOf(BigDecimal).
|
|
1681
|
+
protoOf(BigDecimal).ny = function (decimalMode) {
|
|
1682
1682
|
if (decimalMode == null) {
|
|
1683
1683
|
return this;
|
|
1684
1684
|
}
|
|
1685
|
-
return roundSignificand(Companion_getInstance(), this.
|
|
1685
|
+
return roundSignificand(Companion_getInstance(), this.cy_1, this.dy_1, decimalMode);
|
|
1686
1686
|
};
|
|
1687
|
-
protoOf(BigDecimal).
|
|
1687
|
+
protoOf(BigDecimal).bz = function (other) {
|
|
1688
1688
|
var tmp;
|
|
1689
|
-
if (equalsLong(this.
|
|
1690
|
-
tmp = this.
|
|
1689
|
+
if (equalsLong(this.dy_1, other.dy_1) && equalsLong(this.by_1, other.by_1)) {
|
|
1690
|
+
tmp = this.cy_1.e10(other.cy_1);
|
|
1691
1691
|
} else {
|
|
1692
1692
|
var _destruct__k2r9zo = bringSignificandToSameExponent(this, this, other);
|
|
1693
|
-
var preparedFirst = _destruct__k2r9zo.
|
|
1694
|
-
var preparedSecond = _destruct__k2r9zo.
|
|
1695
|
-
tmp = preparedFirst.
|
|
1693
|
+
var preparedFirst = _destruct__k2r9zo.ub();
|
|
1694
|
+
var preparedSecond = _destruct__k2r9zo.vb();
|
|
1695
|
+
tmp = preparedFirst.e10(preparedSecond);
|
|
1696
1696
|
}
|
|
1697
1697
|
return tmp;
|
|
1698
1698
|
};
|
|
1699
|
-
protoOf(BigDecimal).
|
|
1699
|
+
protoOf(BigDecimal).oz = function (other) {
|
|
1700
1700
|
if (isNumber(other)) {
|
|
1701
|
-
if (RuntimePlatform_instance.
|
|
1701
|
+
if (RuntimePlatform_instance.f10().equals(Platform_JS_getInstance()) || RuntimePlatform_instance.f10().equals(Platform_WASMJS_getInstance())) {
|
|
1702
1702
|
return javascriptNumberComparison(this, other);
|
|
1703
1703
|
}
|
|
1704
1704
|
}
|
|
1705
1705
|
var tmp;
|
|
1706
1706
|
if (other instanceof BigDecimal) {
|
|
1707
|
-
tmp = this.
|
|
1707
|
+
tmp = this.bz(other);
|
|
1708
1708
|
} else {
|
|
1709
1709
|
if (other instanceof Long) {
|
|
1710
|
-
tmp = this.
|
|
1710
|
+
tmp = this.bz(Companion_getInstance().my(other));
|
|
1711
1711
|
} else {
|
|
1712
1712
|
if (typeof other === 'number') {
|
|
1713
|
-
tmp = this.
|
|
1713
|
+
tmp = this.bz(Companion_getInstance().vv(other));
|
|
1714
1714
|
} else {
|
|
1715
1715
|
if (typeof other === 'number') {
|
|
1716
|
-
tmp = this.
|
|
1716
|
+
tmp = this.bz(Companion_getInstance().qy(other));
|
|
1717
1717
|
} else {
|
|
1718
1718
|
if (typeof other === 'number') {
|
|
1719
|
-
tmp = this.
|
|
1719
|
+
tmp = this.bz(Companion_getInstance().sy(other));
|
|
1720
1720
|
} else {
|
|
1721
1721
|
if (typeof other === 'number') {
|
|
1722
|
-
tmp = this.
|
|
1722
|
+
tmp = this.bz(Companion_getInstance().jy(other));
|
|
1723
1723
|
} else {
|
|
1724
1724
|
if (typeof other === 'number') {
|
|
1725
|
-
tmp = this.
|
|
1725
|
+
tmp = this.bz(Companion_getInstance().ky(other));
|
|
1726
1726
|
} else {
|
|
1727
1727
|
throw RuntimeException_init_$Create$('Invalid comparison type for BigDecimal: ' + getKClassFromExpression(other).g8());
|
|
1728
1728
|
}
|
|
@@ -1735,30 +1735,30 @@
|
|
|
1735
1735
|
return tmp;
|
|
1736
1736
|
};
|
|
1737
1737
|
protoOf(BigDecimal).d = function (other) {
|
|
1738
|
-
return this.
|
|
1738
|
+
return this.oz(!(other == null) ? other : THROW_CCE());
|
|
1739
1739
|
};
|
|
1740
1740
|
protoOf(BigDecimal).equals = function (other) {
|
|
1741
1741
|
var tmp;
|
|
1742
1742
|
if (other instanceof BigDecimal) {
|
|
1743
|
-
tmp = this.
|
|
1743
|
+
tmp = this.bz(other);
|
|
1744
1744
|
} else {
|
|
1745
1745
|
if (other instanceof Long) {
|
|
1746
|
-
tmp = this.
|
|
1746
|
+
tmp = this.bz(Companion_getInstance().my(other));
|
|
1747
1747
|
} else {
|
|
1748
1748
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1749
|
-
tmp = this.
|
|
1749
|
+
tmp = this.bz(Companion_getInstance().vv(other));
|
|
1750
1750
|
} else {
|
|
1751
1751
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1752
|
-
tmp = this.
|
|
1752
|
+
tmp = this.bz(Companion_getInstance().qy(other));
|
|
1753
1753
|
} else {
|
|
1754
1754
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1755
|
-
tmp = this.
|
|
1755
|
+
tmp = this.bz(Companion_getInstance().sy(other));
|
|
1756
1756
|
} else {
|
|
1757
1757
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1758
|
-
tmp = this.
|
|
1758
|
+
tmp = this.bz(Companion_getInstance().jy(other));
|
|
1759
1759
|
} else {
|
|
1760
1760
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1761
|
-
tmp = this.
|
|
1761
|
+
tmp = this.bz(Companion_getInstance().ky(other));
|
|
1762
1762
|
} else {
|
|
1763
1763
|
tmp = -1;
|
|
1764
1764
|
}
|
|
@@ -1772,25 +1772,25 @@
|
|
|
1772
1772
|
return comparison === 0;
|
|
1773
1773
|
};
|
|
1774
1774
|
protoOf(BigDecimal).hashCode = function () {
|
|
1775
|
-
if (this.
|
|
1775
|
+
if (this.lx()) {
|
|
1776
1776
|
return 0;
|
|
1777
1777
|
}
|
|
1778
|
-
return removeTrailingZeroes(this, this).
|
|
1778
|
+
return removeTrailingZeroes(this, this).cy_1.hashCode() + this.dy_1.hashCode() | 0;
|
|
1779
1779
|
};
|
|
1780
1780
|
protoOf(BigDecimal).toString = function () {
|
|
1781
|
-
if (Companion_getInstance().
|
|
1782
|
-
return this.
|
|
1781
|
+
if (Companion_getInstance().sx_1) {
|
|
1782
|
+
return this.g10();
|
|
1783
1783
|
}
|
|
1784
|
-
var significandString = this.
|
|
1784
|
+
var significandString = this.cy_1.h10(10);
|
|
1785
1785
|
var tmp;
|
|
1786
|
-
if (this.
|
|
1786
|
+
if (this.cy_1.oz(0) < 0) {
|
|
1787
1787
|
tmp = 2;
|
|
1788
1788
|
} else {
|
|
1789
1789
|
tmp = 1;
|
|
1790
1790
|
}
|
|
1791
1791
|
var modifier = tmp;
|
|
1792
1792
|
var tmp_0;
|
|
1793
|
-
var tmp0 = this.
|
|
1793
|
+
var tmp0 = this.cy_1.toString();
|
|
1794
1794
|
var tmp$ret$1;
|
|
1795
1795
|
$l$block: {
|
|
1796
1796
|
// Inline function 'kotlin.text.dropLastWhile' call
|
|
@@ -1814,62 +1814,62 @@
|
|
|
1814
1814
|
}
|
|
1815
1815
|
var expand = tmp_0;
|
|
1816
1816
|
var tmp_1;
|
|
1817
|
-
if (compare(this.
|
|
1818
|
-
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E+' + this.
|
|
1819
|
-
} else if (compare(this.
|
|
1820
|
-
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E' + this.
|
|
1821
|
-
} else if (equalsLong(this.
|
|
1817
|
+
if (compare(this.dy_1, new Long(0, 0)) > 0) {
|
|
1818
|
+
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E+' + this.dy_1.toString();
|
|
1819
|
+
} else if (compare(this.dy_1, new Long(0, 0)) < 0) {
|
|
1820
|
+
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E' + this.dy_1.toString();
|
|
1821
|
+
} else if (equalsLong(this.dy_1, new Long(0, 0))) {
|
|
1822
1822
|
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand;
|
|
1823
1823
|
} else {
|
|
1824
1824
|
throw RuntimeException_init_$Create$('Invalid state, please report a bug (Integer compareTo invalid)');
|
|
1825
1825
|
}
|
|
1826
1826
|
return tmp_1;
|
|
1827
1827
|
};
|
|
1828
|
-
protoOf(BigDecimal).
|
|
1829
|
-
if (this.
|
|
1828
|
+
protoOf(BigDecimal).g10 = function () {
|
|
1829
|
+
if (this.lx()) {
|
|
1830
1830
|
return '0';
|
|
1831
1831
|
}
|
|
1832
|
-
var digits = this.
|
|
1833
|
-
if (compare(this.
|
|
1832
|
+
var digits = this.cy_1.ex();
|
|
1833
|
+
if (compare(this.dy_1, new Long(2147483647, 0)) > 0) {
|
|
1834
1834
|
throw RuntimeException_init_$Create$('Invalid toStringExpanded request (exponent > Int.MAX_VALUE)');
|
|
1835
1835
|
}
|
|
1836
|
-
var significandString = this.
|
|
1836
|
+
var significandString = this.cy_1.i10(10);
|
|
1837
1837
|
var tmp;
|
|
1838
|
-
if (this.
|
|
1838
|
+
if (this.cy_1.bx_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
1839
1839
|
tmp = '-';
|
|
1840
1840
|
} else {
|
|
1841
1841
|
tmp = '';
|
|
1842
1842
|
}
|
|
1843
1843
|
var sign = tmp;
|
|
1844
1844
|
var tmp_0;
|
|
1845
|
-
if (compare(this.
|
|
1845
|
+
if (compare(this.dy_1, new Long(0, 0)) > 0) {
|
|
1846
1846
|
// Inline function 'kotlin.Long.plus' call
|
|
1847
|
-
var this_0 = subtract(this.
|
|
1847
|
+
var this_0 = subtract(this.dy_1, digits);
|
|
1848
1848
|
var diffBigInt = add(this_0, fromInt(1));
|
|
1849
1849
|
var tmp_1;
|
|
1850
1850
|
if (compare(diffBigInt, new Long(0, 0)) > 0) {
|
|
1851
|
-
var expandZeros = this.
|
|
1851
|
+
var expandZeros = this.j10(diffBigInt, _Char___init__impl__6a9atx(48));
|
|
1852
1852
|
tmp_1 = significandString + expandZeros;
|
|
1853
1853
|
} else {
|
|
1854
|
-
tmp_1 = placeADotInStringExpanded(this, significandString, (significandString.length - convertToInt(this.
|
|
1854
|
+
tmp_1 = placeADotInStringExpanded(this, significandString, (significandString.length - convertToInt(this.dy_1) | 0) - 1 | 0);
|
|
1855
1855
|
}
|
|
1856
1856
|
tmp_0 = tmp_1;
|
|
1857
|
-
} else if (compare(this.
|
|
1857
|
+
} else if (compare(this.dy_1, new Long(0, 0)) < 0) {
|
|
1858
1858
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1859
|
-
var this_1 = convertToInt(this.
|
|
1859
|
+
var this_1 = convertToInt(this.dy_1);
|
|
1860
1860
|
var diffInt = abs_0(this_1);
|
|
1861
1861
|
var tmp_2;
|
|
1862
1862
|
if (diffInt > 0) {
|
|
1863
1863
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1864
|
-
var this_2 = this.
|
|
1864
|
+
var this_2 = this.dy_1;
|
|
1865
1865
|
var tmp$ret$2 = abs(this_2);
|
|
1866
|
-
var expandZeros_0 = this.
|
|
1866
|
+
var expandZeros_0 = this.j10(tmp$ret$2, _Char___init__impl__6a9atx(48));
|
|
1867
1867
|
tmp_2 = placeADotInStringExpanded(this, expandZeros_0 + significandString, (diffInt + significandString.length | 0) - 1 | 0);
|
|
1868
1868
|
} else {
|
|
1869
1869
|
tmp_2 = placeADotInStringExpanded(this, significandString, significandString.length - 1 | 0);
|
|
1870
1870
|
}
|
|
1871
1871
|
tmp_0 = tmp_2;
|
|
1872
|
-
} else if (equalsLong(this.
|
|
1872
|
+
} else if (equalsLong(this.dy_1, new Long(0, 0))) {
|
|
1873
1873
|
if (equalsLong(digits, new Long(1, 0))) {
|
|
1874
1874
|
return sign + significandString;
|
|
1875
1875
|
}
|
|
@@ -1880,7 +1880,7 @@
|
|
|
1880
1880
|
var adjusted = tmp_0;
|
|
1881
1881
|
return sign + adjusted;
|
|
1882
1882
|
};
|
|
1883
|
-
protoOf(BigDecimal).
|
|
1883
|
+
protoOf(BigDecimal).j10 = function (_this__u8e3s4, char) {
|
|
1884
1884
|
if (compare(_this__u8e3s4, new Long(0, 0)) < 0) {
|
|
1885
1885
|
throw RuntimeException_init_$Create$('Char cannot be multiplied with negative number');
|
|
1886
1886
|
}
|
|
@@ -1896,13 +1896,13 @@
|
|
|
1896
1896
|
function toBigDecimal(_this__u8e3s4, exponentModifier, decimalMode) {
|
|
1897
1897
|
exponentModifier = exponentModifier === VOID ? null : exponentModifier;
|
|
1898
1898
|
decimalMode = decimalMode === VOID ? null : decimalMode;
|
|
1899
|
-
var tmp = Companion_getInstance().
|
|
1900
|
-
return tmp.
|
|
1899
|
+
var tmp = Companion_getInstance().vy(_this__u8e3s4, decimalMode);
|
|
1900
|
+
return tmp.tz(exponentModifier == null ? new Long(0, 0) : exponentModifier);
|
|
1901
1901
|
}
|
|
1902
1902
|
function Companion_0() {
|
|
1903
1903
|
Companion_instance_0 = this;
|
|
1904
|
-
this.
|
|
1905
|
-
this.
|
|
1904
|
+
this.zy_1 = new DecimalMode();
|
|
1905
|
+
this.az_1 = new DecimalMode(new Long(30, 0), RoundingMode_ROUND_HALF_AWAY_FROM_ZERO_getInstance(), new Long(2, 0));
|
|
1906
1906
|
}
|
|
1907
1907
|
var Companion_instance_0;
|
|
1908
1908
|
function Companion_getInstance_0() {
|
|
@@ -1915,40 +1915,40 @@
|
|
|
1915
1915
|
decimalPrecision = decimalPrecision === VOID ? new Long(0, 0) : decimalPrecision;
|
|
1916
1916
|
roundingMode = roundingMode === VOID ? RoundingMode_NONE_getInstance() : roundingMode;
|
|
1917
1917
|
scale = scale === VOID ? new Long(-1, -1) : scale;
|
|
1918
|
-
this.
|
|
1919
|
-
this.
|
|
1920
|
-
this.
|
|
1921
|
-
if (compare(this.
|
|
1918
|
+
this.pw_1 = decimalPrecision;
|
|
1919
|
+
this.qw_1 = roundingMode;
|
|
1920
|
+
this.rw_1 = scale;
|
|
1921
|
+
if (compare(this.pw_1, new Long(0, 0)) < 0) {
|
|
1922
1922
|
throw ArithmeticException_init_$Create$('Negative decimal precision is not allowed.');
|
|
1923
1923
|
}
|
|
1924
|
-
this.
|
|
1925
|
-
this.
|
|
1926
|
-
if (!this.
|
|
1924
|
+
this.sw_1 = equalsLong(this.pw_1, new Long(0, 0));
|
|
1925
|
+
this.tw_1 = compare(this.rw_1, new Long(0, 0)) >= 0;
|
|
1926
|
+
if (!this.tw_1 && equalsLong(this.pw_1, new Long(0, 0)) && !this.qw_1.equals(RoundingMode_NONE_getInstance())) {
|
|
1927
1927
|
throw ArithmeticException_init_$Create$('Rounding mode with 0 digits precision.');
|
|
1928
1928
|
}
|
|
1929
|
-
if (compare(this.
|
|
1929
|
+
if (compare(this.rw_1, new Long(-1, -1)) < 0) {
|
|
1930
1930
|
throw ArithmeticException_init_$Create$('Negative Scale is unsupported.');
|
|
1931
1931
|
}
|
|
1932
|
-
if (this.
|
|
1933
|
-
throw ArithmeticException_init_$Create$('Scale of ' + this.
|
|
1932
|
+
if (this.tw_1 && this.qw_1.equals(RoundingMode_NONE_getInstance())) {
|
|
1933
|
+
throw ArithmeticException_init_$Create$('Scale of ' + this.rw_1.toString() + ' digits to the right of the decimal requires a RoundingMode that is not NONE.');
|
|
1934
1934
|
}
|
|
1935
1935
|
}
|
|
1936
|
-
protoOf(DecimalMode).
|
|
1936
|
+
protoOf(DecimalMode).k10 = function (decimalPrecision, roundingMode, scale) {
|
|
1937
1937
|
return new DecimalMode(decimalPrecision, roundingMode, scale);
|
|
1938
1938
|
};
|
|
1939
|
-
protoOf(DecimalMode).
|
|
1940
|
-
decimalPrecision = decimalPrecision === VOID ? this.
|
|
1941
|
-
roundingMode = roundingMode === VOID ? this.
|
|
1942
|
-
scale = scale === VOID ? this.
|
|
1943
|
-
return $super === VOID ? this.
|
|
1939
|
+
protoOf(DecimalMode).cz = function (decimalPrecision, roundingMode, scale, $super) {
|
|
1940
|
+
decimalPrecision = decimalPrecision === VOID ? this.pw_1 : decimalPrecision;
|
|
1941
|
+
roundingMode = roundingMode === VOID ? this.qw_1 : roundingMode;
|
|
1942
|
+
scale = scale === VOID ? this.rw_1 : scale;
|
|
1943
|
+
return $super === VOID ? this.k10(decimalPrecision, roundingMode, scale) : $super.k10.call(this, decimalPrecision, roundingMode, scale);
|
|
1944
1944
|
};
|
|
1945
1945
|
protoOf(DecimalMode).toString = function () {
|
|
1946
|
-
return 'DecimalMode(decimalPrecision=' + this.
|
|
1946
|
+
return 'DecimalMode(decimalPrecision=' + this.pw_1.toString() + ', roundingMode=' + this.qw_1.toString() + ', scale=' + this.rw_1.toString() + ')';
|
|
1947
1947
|
};
|
|
1948
1948
|
protoOf(DecimalMode).hashCode = function () {
|
|
1949
|
-
var result = this.
|
|
1949
|
+
var result = this.pw_1.hashCode();
|
|
1950
|
+
result = imul(result, 31) + this.qw_1.hashCode() | 0;
|
|
1950
1951
|
result = imul(result, 31) + this.rw_1.hashCode() | 0;
|
|
1951
|
-
result = imul(result, 31) + this.sw_1.hashCode() | 0;
|
|
1952
1952
|
return result;
|
|
1953
1953
|
};
|
|
1954
1954
|
protoOf(DecimalMode).equals = function (other) {
|
|
@@ -1957,11 +1957,11 @@
|
|
|
1957
1957
|
if (!(other instanceof DecimalMode))
|
|
1958
1958
|
return false;
|
|
1959
1959
|
var tmp0_other_with_cast = other instanceof DecimalMode ? other : THROW_CCE();
|
|
1960
|
-
if (!equalsLong(this.
|
|
1960
|
+
if (!equalsLong(this.pw_1, tmp0_other_with_cast.pw_1))
|
|
1961
1961
|
return false;
|
|
1962
|
-
if (!this.
|
|
1962
|
+
if (!this.qw_1.equals(tmp0_other_with_cast.qw_1))
|
|
1963
1963
|
return false;
|
|
1964
|
-
if (!equalsLong(this.
|
|
1964
|
+
if (!equalsLong(this.rw_1, tmp0_other_with_cast.rw_1))
|
|
1965
1965
|
return false;
|
|
1966
1966
|
return true;
|
|
1967
1967
|
};
|
|
@@ -2021,7 +2021,7 @@
|
|
|
2021
2021
|
return RoundingMode_ROUND_HALF_TO_EVEN_instance;
|
|
2022
2022
|
}
|
|
2023
2023
|
function BigInteger_init_$Init$(long, $this) {
|
|
2024
|
-
var tmp = Companion_getInstance_1().
|
|
2024
|
+
var tmp = Companion_getInstance_1().uw_1.l10(long);
|
|
2025
2025
|
// Inline function 'com.ionspin.kotlin.bignum.integer.Companion.determinSignFromNumber' call
|
|
2026
2026
|
Companion_getInstance_1();
|
|
2027
2027
|
var tmp22_subject = getKClass(Long);
|
|
@@ -2065,7 +2065,7 @@
|
|
|
2065
2065
|
return BigInteger_init_$Init$(long, objectCreate(protoOf(BigInteger)));
|
|
2066
2066
|
}
|
|
2067
2067
|
function BigInteger_init_$Init$_0(int, $this) {
|
|
2068
|
-
var tmp = Companion_getInstance_1().
|
|
2068
|
+
var tmp = Companion_getInstance_1().uw_1.m10(int);
|
|
2069
2069
|
// Inline function 'com.ionspin.kotlin.bignum.integer.Companion.determinSignFromNumber' call
|
|
2070
2070
|
Companion_getInstance_1();
|
|
2071
2071
|
var tmp22_subject = PrimitiveClasses_getInstance().u8();
|
|
@@ -2109,7 +2109,7 @@
|
|
|
2109
2109
|
return BigInteger_init_$Init$_0(int, objectCreate(protoOf(BigInteger)));
|
|
2110
2110
|
}
|
|
2111
2111
|
function BigInteger_init_$Init$_1(short, $this) {
|
|
2112
|
-
var tmp = Companion_getInstance_1().
|
|
2112
|
+
var tmp = Companion_getInstance_1().uw_1.n10(short);
|
|
2113
2113
|
// Inline function 'com.ionspin.kotlin.bignum.integer.Companion.determinSignFromNumber' call
|
|
2114
2114
|
Companion_getInstance_1();
|
|
2115
2115
|
var tmp22_subject = PrimitiveClasses_getInstance().t8();
|
|
@@ -2153,7 +2153,7 @@
|
|
|
2153
2153
|
return BigInteger_init_$Init$_1(short, objectCreate(protoOf(BigInteger)));
|
|
2154
2154
|
}
|
|
2155
2155
|
function BigInteger_init_$Init$_2(byte, $this) {
|
|
2156
|
-
var tmp = Companion_getInstance_1().
|
|
2156
|
+
var tmp = Companion_getInstance_1().uw_1.o10(byte);
|
|
2157
2157
|
// Inline function 'com.ionspin.kotlin.bignum.integer.Companion.determinSignFromNumber' call
|
|
2158
2158
|
Companion_getInstance_1();
|
|
2159
2159
|
var tmp22_subject = PrimitiveClasses_getInstance().s8();
|
|
@@ -2198,27 +2198,27 @@
|
|
|
2198
2198
|
}
|
|
2199
2199
|
function Companion_1() {
|
|
2200
2200
|
Companion_instance_1 = this;
|
|
2201
|
-
this.
|
|
2202
|
-
this.
|
|
2203
|
-
this.
|
|
2204
|
-
this.
|
|
2205
|
-
this.
|
|
2201
|
+
this.uw_1 = get_chosenArithmetic();
|
|
2202
|
+
this.vw_1 = new BigInteger(this.uw_1.p10(), Sign_ZERO_getInstance());
|
|
2203
|
+
this.ww_1 = new BigInteger(this.uw_1.q10(), Sign_POSITIVE_getInstance());
|
|
2204
|
+
this.xw_1 = new BigInteger(this.uw_1.r10(), Sign_POSITIVE_getInstance());
|
|
2205
|
+
this.yw_1 = new BigInteger(this.uw_1.s10(), Sign_POSITIVE_getInstance());
|
|
2206
2206
|
var tmp = this;
|
|
2207
2207
|
// Inline function 'kotlin.math.log10' call
|
|
2208
|
-
tmp.
|
|
2208
|
+
tmp.zw_1 = log10(2.0);
|
|
2209
2209
|
}
|
|
2210
|
-
protoOf(Companion_1).
|
|
2210
|
+
protoOf(Companion_1).tv = function (string, base) {
|
|
2211
2211
|
if (base < 2 || base > 36) {
|
|
2212
2212
|
throw NumberFormatException_init_$Create$('Unsupported base: ' + base + '. Supported base range is from 2 to 36');
|
|
2213
2213
|
}
|
|
2214
2214
|
var decimal = contains(string, _Char___init__impl__6a9atx(46));
|
|
2215
2215
|
if (decimal) {
|
|
2216
|
-
var bigDecimal = Companion_getInstance().
|
|
2217
|
-
var isActuallyDecimal = bigDecimal.
|
|
2216
|
+
var bigDecimal = Companion_getInstance().wy(string);
|
|
2217
|
+
var isActuallyDecimal = bigDecimal.rz(bigDecimal.vz()).oz(0) > 0;
|
|
2218
2218
|
if (isActuallyDecimal) {
|
|
2219
2219
|
throw NumberFormatException_init_$Create$('Supplied string is decimal, which cannot be converted to BigInteger without precision loss.');
|
|
2220
2220
|
}
|
|
2221
|
-
return bigDecimal.
|
|
2221
|
+
return bigDecimal.wz();
|
|
2222
2222
|
}
|
|
2223
2223
|
var signed = charCodeAt(string, 0) === _Char___init__impl__6a9atx(45) || charCodeAt(string, 0) === _Char___init__impl__6a9atx(43);
|
|
2224
2224
|
var tmp;
|
|
@@ -2234,68 +2234,68 @@
|
|
|
2234
2234
|
}
|
|
2235
2235
|
var isNegative = tmp_0;
|
|
2236
2236
|
if (string.length === 2 && charCodeAt(string, 1) === _Char___init__impl__6a9atx(48)) {
|
|
2237
|
-
return this.
|
|
2237
|
+
return this.vw_1;
|
|
2238
2238
|
}
|
|
2239
|
-
tmp = new BigInteger(this.
|
|
2239
|
+
tmp = new BigInteger(this.uw_1.t10(substring(string, 1, string.length), base), isNegative);
|
|
2240
2240
|
} else {
|
|
2241
2241
|
if (string.length === 1 && charCodeAt(string, 0) === _Char___init__impl__6a9atx(48)) {
|
|
2242
|
-
return this.
|
|
2242
|
+
return this.vw_1;
|
|
2243
2243
|
}
|
|
2244
|
-
tmp = new BigInteger(this.
|
|
2244
|
+
tmp = new BigInteger(this.uw_1.t10(string, base), Sign_POSITIVE_getInstance());
|
|
2245
2245
|
}
|
|
2246
2246
|
return tmp;
|
|
2247
2247
|
};
|
|
2248
|
-
protoOf(Companion_1).
|
|
2249
|
-
return new BigInteger(this.
|
|
2248
|
+
protoOf(Companion_1).u10 = function (uLong) {
|
|
2249
|
+
return new BigInteger(this.uw_1.v10(uLong), Sign_POSITIVE_getInstance());
|
|
2250
2250
|
};
|
|
2251
|
-
protoOf(Companion_1).
|
|
2252
|
-
return new BigInteger(this.
|
|
2251
|
+
protoOf(Companion_1).w10 = function (uInt) {
|
|
2252
|
+
return new BigInteger(this.uw_1.x10(uInt), Sign_POSITIVE_getInstance());
|
|
2253
2253
|
};
|
|
2254
|
-
protoOf(Companion_1).
|
|
2255
|
-
return new BigInteger(this.
|
|
2254
|
+
protoOf(Companion_1).y10 = function (uShort) {
|
|
2255
|
+
return new BigInteger(this.uw_1.z10(uShort), Sign_POSITIVE_getInstance());
|
|
2256
2256
|
};
|
|
2257
|
-
protoOf(Companion_1).
|
|
2258
|
-
return new BigInteger(this.
|
|
2257
|
+
protoOf(Companion_1).a11 = function (uByte) {
|
|
2258
|
+
return new BigInteger(this.uw_1.b11(uByte), Sign_POSITIVE_getInstance());
|
|
2259
2259
|
};
|
|
2260
|
-
protoOf(Companion_1).
|
|
2260
|
+
protoOf(Companion_1).my = function (long) {
|
|
2261
2261
|
return BigInteger_init_$Create$(long);
|
|
2262
2262
|
};
|
|
2263
|
-
protoOf(Companion_1).
|
|
2263
|
+
protoOf(Companion_1).vv = function (int) {
|
|
2264
2264
|
return BigInteger_init_$Create$_0(int);
|
|
2265
2265
|
};
|
|
2266
|
-
protoOf(Companion_1).
|
|
2266
|
+
protoOf(Companion_1).qy = function (short) {
|
|
2267
2267
|
return BigInteger_init_$Create$_1(short);
|
|
2268
2268
|
};
|
|
2269
|
-
protoOf(Companion_1).
|
|
2269
|
+
protoOf(Companion_1).sy = function (byte) {
|
|
2270
2270
|
return BigInteger_init_$Create$_2(byte);
|
|
2271
2271
|
};
|
|
2272
|
-
protoOf(Companion_1).
|
|
2272
|
+
protoOf(Companion_1).wv = function (float, exactRequired) {
|
|
2273
2273
|
// Inline function 'kotlin.math.floor' call
|
|
2274
2274
|
var floatDecimalPart = float - Math.floor(float);
|
|
2275
2275
|
var tmp = Companion_getInstance();
|
|
2276
2276
|
// Inline function 'kotlin.math.floor' call
|
|
2277
2277
|
var tmp$ret$1 = Math.floor(float);
|
|
2278
|
-
var bigDecimal = tmp.
|
|
2278
|
+
var bigDecimal = tmp.ty(tmp$ret$1, null);
|
|
2279
2279
|
if (exactRequired) {
|
|
2280
2280
|
if (floatDecimalPart > 0) {
|
|
2281
2281
|
throw ArithmeticException_init_$Create$('Cant create BigInteger without precision loss, and exact value was required');
|
|
2282
2282
|
}
|
|
2283
2283
|
}
|
|
2284
|
-
return bigDecimal.
|
|
2284
|
+
return bigDecimal.wz();
|
|
2285
2285
|
};
|
|
2286
|
-
protoOf(Companion_1).
|
|
2286
|
+
protoOf(Companion_1).yv = function (double, exactRequired) {
|
|
2287
2287
|
// Inline function 'kotlin.math.floor' call
|
|
2288
2288
|
var doubleDecimalPart = double - Math.floor(double);
|
|
2289
2289
|
var tmp = Companion_getInstance();
|
|
2290
2290
|
// Inline function 'kotlin.math.floor' call
|
|
2291
2291
|
var tmp$ret$1 = Math.floor(double);
|
|
2292
|
-
var bigDecimal = tmp.
|
|
2292
|
+
var bigDecimal = tmp.vy(tmp$ret$1, null);
|
|
2293
2293
|
if (exactRequired) {
|
|
2294
2294
|
if (doubleDecimalPart > 0) {
|
|
2295
2295
|
throw ArithmeticException_init_$Create$('Cant create BigInteger without precision loss, and exact value was required');
|
|
2296
2296
|
}
|
|
2297
2297
|
}
|
|
2298
|
-
return bigDecimal.
|
|
2298
|
+
return bigDecimal.wz();
|
|
2299
2299
|
};
|
|
2300
2300
|
var Companion_instance_1;
|
|
2301
2301
|
function Companion_getInstance_1() {
|
|
@@ -2304,31 +2304,31 @@
|
|
|
2304
2304
|
return Companion_instance_1;
|
|
2305
2305
|
}
|
|
2306
2306
|
function isResultZero($this, resultMagnitude) {
|
|
2307
|
-
return Companion_getInstance_1().
|
|
2307
|
+
return Companion_getInstance_1().uw_1.c11(resultMagnitude, Companion_getInstance_1().uw_1.p10()) === 0;
|
|
2308
2308
|
}
|
|
2309
2309
|
function javascriptNumberComparison_0($this, number) {
|
|
2310
2310
|
var double = numberToDouble(number);
|
|
2311
2311
|
var tmp;
|
|
2312
2312
|
if (double > toNumber(new Long(-1, 2147483647))) {
|
|
2313
|
-
tmp = $this.
|
|
2313
|
+
tmp = $this.e10(Companion_getInstance_1().uv(double.toString()));
|
|
2314
2314
|
} else if (double % 1 === 0.0) {
|
|
2315
|
-
tmp = $this.
|
|
2315
|
+
tmp = $this.e10(Companion_getInstance_1().my(numberToLong(number)));
|
|
2316
2316
|
} else {
|
|
2317
2317
|
var tmp_0 = numberToDouble(number);
|
|
2318
|
-
tmp = $this.
|
|
2318
|
+
tmp = $this.d11(tmp_0, BigInteger$javascriptNumberComparison$lambda($this));
|
|
2319
2319
|
}
|
|
2320
2320
|
return tmp;
|
|
2321
2321
|
}
|
|
2322
2322
|
function QuotientAndRemainder(quotient, remainder) {
|
|
2323
|
-
this.
|
|
2324
|
-
this.
|
|
2323
|
+
this.hx_1 = quotient;
|
|
2324
|
+
this.ix_1 = remainder;
|
|
2325
2325
|
}
|
|
2326
2326
|
protoOf(QuotientAndRemainder).toString = function () {
|
|
2327
|
-
return 'QuotientAndRemainder(quotient=' + this.
|
|
2327
|
+
return 'QuotientAndRemainder(quotient=' + this.hx_1.toString() + ', remainder=' + this.ix_1.toString() + ')';
|
|
2328
2328
|
};
|
|
2329
2329
|
protoOf(QuotientAndRemainder).hashCode = function () {
|
|
2330
|
-
var result = this.
|
|
2331
|
-
result = imul(result, 31) + this.
|
|
2330
|
+
var result = this.hx_1.hashCode();
|
|
2331
|
+
result = imul(result, 31) + this.ix_1.hashCode() | 0;
|
|
2332
2332
|
return result;
|
|
2333
2333
|
};
|
|
2334
2334
|
protoOf(QuotientAndRemainder).equals = function (other) {
|
|
@@ -2337,25 +2337,25 @@
|
|
|
2337
2337
|
if (!(other instanceof QuotientAndRemainder))
|
|
2338
2338
|
return false;
|
|
2339
2339
|
var tmp0_other_with_cast = other instanceof QuotientAndRemainder ? other : THROW_CCE();
|
|
2340
|
-
if (!this.
|
|
2340
|
+
if (!this.hx_1.equals(tmp0_other_with_cast.hx_1))
|
|
2341
2341
|
return false;
|
|
2342
|
-
if (!this.
|
|
2342
|
+
if (!this.ix_1.equals(tmp0_other_with_cast.ix_1))
|
|
2343
2343
|
return false;
|
|
2344
2344
|
return true;
|
|
2345
2345
|
};
|
|
2346
2346
|
function BigInteger$compareTo$lambda(this$0) {
|
|
2347
2347
|
return function (it) {
|
|
2348
|
-
return this$0.
|
|
2348
|
+
return this$0.e10(it);
|
|
2349
2349
|
};
|
|
2350
2350
|
}
|
|
2351
2351
|
function BigInteger$compareTo$lambda_0(this$0) {
|
|
2352
2352
|
return function (it) {
|
|
2353
|
-
return this$0.
|
|
2353
|
+
return this$0.e10(it);
|
|
2354
2354
|
};
|
|
2355
2355
|
}
|
|
2356
2356
|
function BigInteger$javascriptNumberComparison$lambda(this$0) {
|
|
2357
2357
|
return function (it) {
|
|
2358
|
-
return this$0.
|
|
2358
|
+
return this$0.e10(it);
|
|
2359
2359
|
};
|
|
2360
2360
|
}
|
|
2361
2361
|
function BigInteger(wordArray, requestedSign) {
|
|
@@ -2367,81 +2367,81 @@
|
|
|
2367
2367
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2368
2368
|
}
|
|
2369
2369
|
}
|
|
2370
|
-
this.
|
|
2370
|
+
this.ax_1 = BigInteger63Arithmetic_getInstance().w11(wordArray);
|
|
2371
2371
|
var tmp = this;
|
|
2372
2372
|
var tmp_0;
|
|
2373
|
-
if (isResultZero(this, this.
|
|
2373
|
+
if (isResultZero(this, this.ax_1)) {
|
|
2374
2374
|
tmp_0 = Sign_ZERO_getInstance();
|
|
2375
2375
|
} else {
|
|
2376
2376
|
tmp_0 = requestedSign;
|
|
2377
2377
|
}
|
|
2378
|
-
tmp.
|
|
2379
|
-
this.
|
|
2380
|
-
this.
|
|
2378
|
+
tmp.bx_1 = tmp_0;
|
|
2379
|
+
this.cx_1 = _ULongArray___get_size__impl__ju6dtr(this.ax_1);
|
|
2380
|
+
this.dx_1 = null;
|
|
2381
2381
|
}
|
|
2382
|
-
protoOf(BigInteger).
|
|
2382
|
+
protoOf(BigInteger).aw = function () {
|
|
2383
2383
|
return Companion_getInstance_1();
|
|
2384
2384
|
};
|
|
2385
|
-
protoOf(BigInteger).
|
|
2385
|
+
protoOf(BigInteger).bw = function () {
|
|
2386
2386
|
return this;
|
|
2387
2387
|
};
|
|
2388
|
-
protoOf(BigInteger).
|
|
2389
|
-
var comparison = Companion_getInstance_1().
|
|
2388
|
+
protoOf(BigInteger).x11 = function (other) {
|
|
2389
|
+
var comparison = Companion_getInstance_1().uw_1.c11(this.ax_1, other.ax_1);
|
|
2390
2390
|
var tmp;
|
|
2391
|
-
if (other.
|
|
2392
|
-
return new BigInteger(Companion_getInstance_1().
|
|
2391
|
+
if (other.bx_1.equals(this.bx_1)) {
|
|
2392
|
+
return new BigInteger(Companion_getInstance_1().uw_1.z11(this.ax_1, other.ax_1), this.bx_1);
|
|
2393
2393
|
} else {
|
|
2394
2394
|
var tmp_0;
|
|
2395
2395
|
if (comparison > 0) {
|
|
2396
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2396
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().uw_1.y11(this.ax_1, other.ax_1), this.bx_1);
|
|
2397
2397
|
} else if (comparison < 0) {
|
|
2398
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2398
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().uw_1.y11(other.ax_1, this.ax_1), other.bx_1);
|
|
2399
2399
|
} else {
|
|
2400
|
-
tmp_0 = Companion_getInstance_1().
|
|
2400
|
+
tmp_0 = Companion_getInstance_1().vw_1;
|
|
2401
2401
|
}
|
|
2402
2402
|
tmp = tmp_0;
|
|
2403
2403
|
}
|
|
2404
2404
|
return tmp;
|
|
2405
2405
|
};
|
|
2406
|
-
protoOf(BigInteger).
|
|
2407
|
-
return this.
|
|
2406
|
+
protoOf(BigInteger).dw = function (other) {
|
|
2407
|
+
return this.x11(other instanceof BigInteger ? other : THROW_CCE());
|
|
2408
2408
|
};
|
|
2409
|
-
protoOf(BigInteger).
|
|
2410
|
-
if (this.
|
|
2411
|
-
return other.
|
|
2409
|
+
protoOf(BigInteger).a12 = function (other) {
|
|
2410
|
+
if (this.lx()) {
|
|
2411
|
+
return other.yy();
|
|
2412
2412
|
}
|
|
2413
|
-
if (other.
|
|
2413
|
+
if (other.lx()) {
|
|
2414
2414
|
return this;
|
|
2415
2415
|
}
|
|
2416
2416
|
var tmp;
|
|
2417
|
-
if (other.
|
|
2418
|
-
var comparison = Companion_getInstance_1().
|
|
2417
|
+
if (other.bx_1.equals(this.bx_1)) {
|
|
2418
|
+
var comparison = Companion_getInstance_1().uw_1.c11(this.ax_1, other.ax_1);
|
|
2419
2419
|
var tmp_0;
|
|
2420
2420
|
if (comparison > 0) {
|
|
2421
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2421
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().uw_1.y11(this.ax_1, other.ax_1), this.bx_1);
|
|
2422
2422
|
} else if (comparison < 0) {
|
|
2423
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2423
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().uw_1.y11(other.ax_1, this.ax_1), this.bx_1.d12());
|
|
2424
2424
|
} else {
|
|
2425
|
-
tmp_0 = Companion_getInstance_1().
|
|
2425
|
+
tmp_0 = Companion_getInstance_1().vw_1;
|
|
2426
2426
|
}
|
|
2427
2427
|
tmp = tmp_0;
|
|
2428
2428
|
} else {
|
|
2429
|
-
return new BigInteger(Companion_getInstance_1().
|
|
2429
|
+
return new BigInteger(Companion_getInstance_1().uw_1.z11(this.ax_1, other.ax_1), this.bx_1);
|
|
2430
2430
|
}
|
|
2431
2431
|
return tmp;
|
|
2432
2432
|
};
|
|
2433
|
-
protoOf(BigInteger).
|
|
2434
|
-
return this.
|
|
2433
|
+
protoOf(BigInteger).fw = function (other) {
|
|
2434
|
+
return this.a12(other instanceof BigInteger ? other : THROW_CCE());
|
|
2435
2435
|
};
|
|
2436
|
-
protoOf(BigInteger).
|
|
2437
|
-
if (this.
|
|
2438
|
-
return Companion_getInstance_1().
|
|
2436
|
+
protoOf(BigInteger).e12 = function (other) {
|
|
2437
|
+
if (this.lx() || other.lx()) {
|
|
2438
|
+
return Companion_getInstance_1().vw_1;
|
|
2439
2439
|
}
|
|
2440
|
-
if (other.equals(Companion_getInstance_1().
|
|
2440
|
+
if (other.equals(Companion_getInstance_1().ww_1)) {
|
|
2441
2441
|
return this;
|
|
2442
2442
|
}
|
|
2443
2443
|
var tmp;
|
|
2444
|
-
if (!this.
|
|
2444
|
+
if (!this.bx_1.equals(other.bx_1)) {
|
|
2445
2445
|
tmp = Sign_NEGATIVE_getInstance();
|
|
2446
2446
|
} else {
|
|
2447
2447
|
tmp = Sign_POSITIVE_getInstance();
|
|
@@ -2449,26 +2449,26 @@
|
|
|
2449
2449
|
var sign = tmp;
|
|
2450
2450
|
var tmp_0;
|
|
2451
2451
|
if (sign.equals(Sign_POSITIVE_getInstance())) {
|
|
2452
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2452
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().uw_1.f12(this.ax_1, other.ax_1), sign);
|
|
2453
2453
|
} else {
|
|
2454
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2454
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().uw_1.f12(this.ax_1, other.ax_1), sign);
|
|
2455
2455
|
}
|
|
2456
2456
|
return tmp_0;
|
|
2457
2457
|
};
|
|
2458
|
-
protoOf(BigInteger).
|
|
2459
|
-
return this.
|
|
2458
|
+
protoOf(BigInteger).hw = function (other) {
|
|
2459
|
+
return this.e12(other instanceof BigInteger ? other : THROW_CCE());
|
|
2460
2460
|
};
|
|
2461
|
-
protoOf(BigInteger).
|
|
2462
|
-
if (other.
|
|
2461
|
+
protoOf(BigInteger).g12 = function (other) {
|
|
2462
|
+
if (other.lx()) {
|
|
2463
2463
|
throw ArithmeticException_init_$Create$('Division by zero! ' + this.toString() + ' / ' + other.toString());
|
|
2464
2464
|
}
|
|
2465
|
-
var result = Companion_getInstance_1().
|
|
2465
|
+
var result = Companion_getInstance_1().uw_1.h12(this.ax_1, other.ax_1).sb_1.of_1;
|
|
2466
2466
|
var tmp;
|
|
2467
|
-
if (equals(result, Companion_getInstance_1().
|
|
2468
|
-
tmp = Companion_getInstance_1().
|
|
2467
|
+
if (equals(result, Companion_getInstance_1().uw_1.p10())) {
|
|
2468
|
+
tmp = Companion_getInstance_1().vw_1;
|
|
2469
2469
|
} else {
|
|
2470
2470
|
var tmp_0;
|
|
2471
|
-
if (!this.
|
|
2471
|
+
if (!this.bx_1.equals(other.bx_1)) {
|
|
2472
2472
|
tmp_0 = Sign_NEGATIVE_getInstance();
|
|
2473
2473
|
} else {
|
|
2474
2474
|
tmp_0 = Sign_POSITIVE_getInstance();
|
|
@@ -2478,100 +2478,100 @@
|
|
|
2478
2478
|
}
|
|
2479
2479
|
return tmp;
|
|
2480
2480
|
};
|
|
2481
|
-
protoOf(BigInteger).
|
|
2482
|
-
return this.
|
|
2481
|
+
protoOf(BigInteger).jw = function (other) {
|
|
2482
|
+
return this.g12(other instanceof BigInteger ? other : THROW_CCE());
|
|
2483
2483
|
};
|
|
2484
|
-
protoOf(BigInteger).
|
|
2485
|
-
if (other.
|
|
2484
|
+
protoOf(BigInteger).i12 = function (other) {
|
|
2485
|
+
if (other.lx()) {
|
|
2486
2486
|
throw ArithmeticException_init_$Create$('Division by zero! ' + this.toString() + ' / ' + other.toString());
|
|
2487
2487
|
}
|
|
2488
2488
|
var tmp;
|
|
2489
|
-
if (!this.
|
|
2489
|
+
if (!this.bx_1.equals(other.bx_1)) {
|
|
2490
2490
|
tmp = Sign_NEGATIVE_getInstance();
|
|
2491
2491
|
} else {
|
|
2492
2492
|
tmp = Sign_POSITIVE_getInstance();
|
|
2493
2493
|
}
|
|
2494
2494
|
var sign = tmp;
|
|
2495
|
-
var result = Companion_getInstance_1().
|
|
2496
|
-
if (equals(result, Companion_getInstance_1().
|
|
2495
|
+
var result = Companion_getInstance_1().uw_1.h12(this.ax_1, other.ax_1).tb_1.of_1;
|
|
2496
|
+
if (equals(result, Companion_getInstance_1().uw_1.p10())) {
|
|
2497
2497
|
sign = Sign_ZERO_getInstance();
|
|
2498
2498
|
}
|
|
2499
2499
|
return new BigInteger(result, sign);
|
|
2500
2500
|
};
|
|
2501
|
-
protoOf(BigInteger).
|
|
2502
|
-
return this.
|
|
2501
|
+
protoOf(BigInteger).ow = function (other) {
|
|
2502
|
+
return this.i12(other instanceof BigInteger ? other : THROW_CCE());
|
|
2503
2503
|
};
|
|
2504
|
-
protoOf(BigInteger).
|
|
2505
|
-
if (other.
|
|
2504
|
+
protoOf(BigInteger).j12 = function (other) {
|
|
2505
|
+
if (other.lx()) {
|
|
2506
2506
|
throw ArithmeticException_init_$Create$('Division by zero! ' + this.toString() + ' / ' + other.toString());
|
|
2507
2507
|
}
|
|
2508
2508
|
var tmp;
|
|
2509
|
-
if (!this.
|
|
2509
|
+
if (!this.bx_1.equals(other.bx_1)) {
|
|
2510
2510
|
tmp = Sign_NEGATIVE_getInstance();
|
|
2511
2511
|
} else {
|
|
2512
2512
|
tmp = Sign_POSITIVE_getInstance();
|
|
2513
2513
|
}
|
|
2514
2514
|
var sign = tmp;
|
|
2515
|
-
var result = Companion_getInstance_1().
|
|
2515
|
+
var result = Companion_getInstance_1().uw_1.h12(this.ax_1, other.ax_1);
|
|
2516
2516
|
var tmp_0;
|
|
2517
|
-
if (equals(result.
|
|
2518
|
-
tmp_0 = Companion_getInstance_1().
|
|
2517
|
+
if (equals(result.sb_1, new ULongArray(Companion_getInstance_1().uw_1.p10()))) {
|
|
2518
|
+
tmp_0 = Companion_getInstance_1().vw_1;
|
|
2519
2519
|
} else {
|
|
2520
|
-
tmp_0 = new BigInteger(result.
|
|
2520
|
+
tmp_0 = new BigInteger(result.sb_1.of_1, sign);
|
|
2521
2521
|
}
|
|
2522
2522
|
var quotient = tmp_0;
|
|
2523
2523
|
var tmp_1;
|
|
2524
|
-
if (equals(result.
|
|
2525
|
-
tmp_1 = Companion_getInstance_1().
|
|
2524
|
+
if (equals(result.tb_1, new ULongArray(Companion_getInstance_1().uw_1.p10()))) {
|
|
2525
|
+
tmp_1 = Companion_getInstance_1().vw_1;
|
|
2526
2526
|
} else {
|
|
2527
|
-
tmp_1 = new BigInteger(result.
|
|
2527
|
+
tmp_1 = new BigInteger(result.tb_1.of_1, this.bx_1);
|
|
2528
2528
|
}
|
|
2529
2529
|
var remainder = tmp_1;
|
|
2530
2530
|
return new Pair(quotient, remainder);
|
|
2531
2531
|
};
|
|
2532
|
-
protoOf(BigInteger).
|
|
2533
|
-
if (this.
|
|
2532
|
+
protoOf(BigInteger).e10 = function (other) {
|
|
2533
|
+
if (this.lx() && other.lx())
|
|
2534
2534
|
return 0;
|
|
2535
|
-
if (other.
|
|
2535
|
+
if (other.lx() && this.bx_1.equals(Sign_POSITIVE_getInstance()))
|
|
2536
2536
|
return 1;
|
|
2537
|
-
if (other.
|
|
2537
|
+
if (other.lx() && this.bx_1.equals(Sign_NEGATIVE_getInstance()))
|
|
2538
2538
|
return -1;
|
|
2539
|
-
if (this.
|
|
2539
|
+
if (this.lx() && other.bx_1.equals(Sign_POSITIVE_getInstance()))
|
|
2540
2540
|
return -1;
|
|
2541
|
-
if (this.
|
|
2541
|
+
if (this.lx() && other.bx_1.equals(Sign_NEGATIVE_getInstance()))
|
|
2542
2542
|
return 1;
|
|
2543
|
-
if (!this.
|
|
2544
|
-
return this.
|
|
2545
|
-
var result = Companion_getInstance_1().
|
|
2543
|
+
if (!this.bx_1.equals(other.bx_1))
|
|
2544
|
+
return this.bx_1.equals(Sign_POSITIVE_getInstance()) ? 1 : -1;
|
|
2545
|
+
var result = Companion_getInstance_1().uw_1.c11(this.ax_1, other.ax_1);
|
|
2546
2546
|
var tmp;
|
|
2547
|
-
if (this.
|
|
2547
|
+
if (this.bx_1.equals(Sign_NEGATIVE_getInstance()) && other.bx_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
2548
2548
|
tmp = imul(result, -1);
|
|
2549
2549
|
} else {
|
|
2550
2550
|
tmp = result;
|
|
2551
2551
|
}
|
|
2552
2552
|
return tmp;
|
|
2553
2553
|
};
|
|
2554
|
-
protoOf(BigInteger).
|
|
2555
|
-
return this.
|
|
2554
|
+
protoOf(BigInteger).lx = function () {
|
|
2555
|
+
return this.bx_1.equals(Sign_ZERO_getInstance()) || get_chosenArithmetic().c11(this.ax_1, get_chosenArithmetic().p10()) === 0;
|
|
2556
2556
|
};
|
|
2557
|
-
protoOf(BigInteger).
|
|
2558
|
-
return new BigInteger(this.
|
|
2557
|
+
protoOf(BigInteger).yy = function () {
|
|
2558
|
+
return new BigInteger(this.ax_1, this.bx_1.d12());
|
|
2559
2559
|
};
|
|
2560
|
-
protoOf(BigInteger).
|
|
2561
|
-
return new BigInteger(this.
|
|
2560
|
+
protoOf(BigInteger).jx = function () {
|
|
2561
|
+
return new BigInteger(this.ax_1, Sign_POSITIVE_getInstance());
|
|
2562
2562
|
};
|
|
2563
|
-
protoOf(BigInteger).
|
|
2563
|
+
protoOf(BigInteger).fx = function (exponent) {
|
|
2564
2564
|
if (compare(exponent, new Long(0, 0)) < 0) {
|
|
2565
2565
|
throw ArithmeticException_init_$Create$('Negative exponent not supported with BigInteger');
|
|
2566
2566
|
}
|
|
2567
2567
|
var tmp;
|
|
2568
|
-
if (this.
|
|
2568
|
+
if (this.lx()) {
|
|
2569
|
+
tmp = Companion_getInstance_1().vw_1;
|
|
2570
|
+
} else if (this.equals(Companion_getInstance_1().ww_1)) {
|
|
2569
2571
|
tmp = Companion_getInstance_1().ww_1;
|
|
2570
|
-
} else if (this.equals(Companion_getInstance_1().xw_1)) {
|
|
2571
|
-
tmp = Companion_getInstance_1().xw_1;
|
|
2572
2572
|
} else {
|
|
2573
2573
|
var tmp_0;
|
|
2574
|
-
if (this.
|
|
2574
|
+
if (this.bx_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
2575
2575
|
var tmp_1;
|
|
2576
2576
|
// Inline function 'kotlin.Long.rem' call
|
|
2577
2577
|
var tmp$ret$0 = modulo(exponent, fromInt(2));
|
|
@@ -2585,16 +2585,16 @@
|
|
|
2585
2585
|
tmp_0 = Sign_POSITIVE_getInstance();
|
|
2586
2586
|
}
|
|
2587
2587
|
var sign = tmp_0;
|
|
2588
|
-
tmp = new BigInteger(Companion_getInstance_1().
|
|
2588
|
+
tmp = new BigInteger(Companion_getInstance_1().uw_1.k12(this.ax_1, exponent), sign);
|
|
2589
2589
|
}
|
|
2590
2590
|
return tmp;
|
|
2591
2591
|
};
|
|
2592
|
-
protoOf(BigInteger).
|
|
2593
|
-
return this.
|
|
2592
|
+
protoOf(BigInteger).uz = function (exponent) {
|
|
2593
|
+
return this.fx(fromInt(exponent));
|
|
2594
2594
|
};
|
|
2595
|
-
protoOf(BigInteger).
|
|
2595
|
+
protoOf(BigInteger).ay = function () {
|
|
2596
2596
|
var tmp;
|
|
2597
|
-
switch (this.
|
|
2597
|
+
switch (this.bx_1.d2_1) {
|
|
2598
2598
|
case 0:
|
|
2599
2599
|
tmp = 1;
|
|
2600
2600
|
break;
|
|
@@ -2610,11 +2610,11 @@
|
|
|
2610
2610
|
}
|
|
2611
2611
|
return tmp;
|
|
2612
2612
|
};
|
|
2613
|
-
protoOf(BigInteger).
|
|
2614
|
-
if (this.
|
|
2613
|
+
protoOf(BigInteger).ex = function () {
|
|
2614
|
+
if (this.lx()) {
|
|
2615
2615
|
return new Long(1, 0);
|
|
2616
2616
|
}
|
|
2617
|
-
var powersOf10 = BigInteger63Arithmetic_getInstance().
|
|
2617
|
+
var powersOf10 = BigInteger63Arithmetic_getInstance().v11_1;
|
|
2618
2618
|
var tmp$ret$1;
|
|
2619
2619
|
$l$block: {
|
|
2620
2620
|
// Inline function 'kotlin.collections.indexOfFirst' call
|
|
@@ -2624,8 +2624,8 @@
|
|
|
2624
2624
|
do {
|
|
2625
2625
|
var index = inductionVariable;
|
|
2626
2626
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2627
|
-
var it = powersOf10[index].
|
|
2628
|
-
if (BigInteger63Arithmetic_getInstance().
|
|
2627
|
+
var it = powersOf10[index].of_1;
|
|
2628
|
+
if (BigInteger63Arithmetic_getInstance().l12(it, this.ax_1) > 0) {
|
|
2629
2629
|
tmp$ret$1 = index;
|
|
2630
2630
|
break $l$block;
|
|
2631
2631
|
}
|
|
@@ -2637,10 +2637,10 @@
|
|
|
2637
2637
|
if (!(quickSearch === -1)) {
|
|
2638
2638
|
return fromInt(quickSearch);
|
|
2639
2639
|
}
|
|
2640
|
-
var tmp = this.
|
|
2640
|
+
var tmp = this.iw(Companion_getInstance_1().yw_1.uz(powersOf10.length));
|
|
2641
2641
|
var counter = new Long(0, 0);
|
|
2642
|
-
while (!tmp.
|
|
2643
|
-
tmp = tmp.
|
|
2642
|
+
while (!tmp.lx()) {
|
|
2643
|
+
tmp = tmp.mw(10);
|
|
2644
2644
|
var _unary__edvuaz = counter;
|
|
2645
2645
|
counter = add(_unary__edvuaz, get_ONE());
|
|
2646
2646
|
}
|
|
@@ -2649,55 +2649,55 @@
|
|
|
2649
2649
|
var other = powersOf10.length;
|
|
2650
2650
|
return add(tmp0, fromInt(other));
|
|
2651
2651
|
};
|
|
2652
|
-
protoOf(BigInteger).
|
|
2653
|
-
return this.
|
|
2652
|
+
protoOf(BigInteger).mx = function () {
|
|
2653
|
+
return this.ew(Companion_getInstance_1().ww_1);
|
|
2654
2654
|
};
|
|
2655
|
-
protoOf(BigInteger).
|
|
2656
|
-
return this.
|
|
2655
|
+
protoOf(BigInteger).nx = function () {
|
|
2656
|
+
return this.cw(Companion_getInstance_1().ww_1);
|
|
2657
2657
|
};
|
|
2658
|
-
protoOf(BigInteger).
|
|
2659
|
-
var result = this.
|
|
2660
|
-
return new QuotientAndRemainder(result.
|
|
2658
|
+
protoOf(BigInteger).gx = function (other) {
|
|
2659
|
+
var result = this.j12(other);
|
|
2660
|
+
return new QuotientAndRemainder(result.sb_1, result.tb_1);
|
|
2661
2661
|
};
|
|
2662
|
-
protoOf(BigInteger).
|
|
2662
|
+
protoOf(BigInteger).oz = function (other) {
|
|
2663
2663
|
if (isNumber(other)) {
|
|
2664
|
-
if (RuntimePlatform_instance.
|
|
2664
|
+
if (RuntimePlatform_instance.f10().equals(Platform_JS_getInstance())) {
|
|
2665
2665
|
return javascriptNumberComparison_0(this, other);
|
|
2666
2666
|
}
|
|
2667
2667
|
}
|
|
2668
2668
|
var tmp;
|
|
2669
2669
|
if (other instanceof BigInteger) {
|
|
2670
|
-
tmp = this.
|
|
2670
|
+
tmp = this.e10(other);
|
|
2671
2671
|
} else {
|
|
2672
2672
|
if (other instanceof Long) {
|
|
2673
|
-
tmp = this.
|
|
2673
|
+
tmp = this.e10(Companion_getInstance_1().my(other));
|
|
2674
2674
|
} else {
|
|
2675
2675
|
if (typeof other === 'number') {
|
|
2676
|
-
tmp = this.
|
|
2676
|
+
tmp = this.e10(Companion_getInstance_1().vv(other));
|
|
2677
2677
|
} else {
|
|
2678
2678
|
if (typeof other === 'number') {
|
|
2679
|
-
tmp = this.
|
|
2679
|
+
tmp = this.e10(Companion_getInstance_1().qy(other));
|
|
2680
2680
|
} else {
|
|
2681
2681
|
if (typeof other === 'number') {
|
|
2682
|
-
tmp = this.
|
|
2682
|
+
tmp = this.e10(Companion_getInstance_1().sy(other));
|
|
2683
2683
|
} else {
|
|
2684
2684
|
if (other instanceof ULong) {
|
|
2685
|
-
tmp = this.
|
|
2685
|
+
tmp = this.e10(Companion_getInstance_1().u10(other.i1_1));
|
|
2686
2686
|
} else {
|
|
2687
2687
|
if (other instanceof UInt) {
|
|
2688
|
-
tmp = this.
|
|
2688
|
+
tmp = this.e10(Companion_getInstance_1().w10(other.ze_1));
|
|
2689
2689
|
} else {
|
|
2690
2690
|
if (other instanceof UShort) {
|
|
2691
|
-
tmp = this.
|
|
2691
|
+
tmp = this.e10(Companion_getInstance_1().y10(other.o12_1));
|
|
2692
2692
|
} else {
|
|
2693
2693
|
if (other instanceof UByte) {
|
|
2694
|
-
tmp = this.
|
|
2694
|
+
tmp = this.e10(Companion_getInstance_1().a11(other.n12_1));
|
|
2695
2695
|
} else {
|
|
2696
2696
|
if (typeof other === 'number') {
|
|
2697
|
-
tmp = this.
|
|
2697
|
+
tmp = this.d11(other, BigInteger$compareTo$lambda(this));
|
|
2698
2698
|
} else {
|
|
2699
2699
|
if (typeof other === 'number') {
|
|
2700
|
-
tmp = this.
|
|
2700
|
+
tmp = this.m12(other, BigInteger$compareTo$lambda_0(this));
|
|
2701
2701
|
} else {
|
|
2702
2702
|
throw RuntimeException_init_$Create$('Invalid comparison type for BigInteger: ' + toString(getKClassFromExpression(other)));
|
|
2703
2703
|
}
|
|
@@ -2714,15 +2714,15 @@
|
|
|
2714
2714
|
return tmp;
|
|
2715
2715
|
};
|
|
2716
2716
|
protoOf(BigInteger).d = function (other) {
|
|
2717
|
-
return this.
|
|
2717
|
+
return this.oz(!(other == null) ? other : THROW_CCE());
|
|
2718
2718
|
};
|
|
2719
|
-
protoOf(BigInteger).
|
|
2719
|
+
protoOf(BigInteger).d11 = function (float, comparisonBlock) {
|
|
2720
2720
|
// Inline function 'kotlin.math.floor' call
|
|
2721
2721
|
var withoutDecimalPart = Math.floor(float);
|
|
2722
2722
|
var hasDecimalPart = !(float % 1 === 0.0);
|
|
2723
2723
|
var tmp;
|
|
2724
2724
|
if (hasDecimalPart) {
|
|
2725
|
-
var comparisonResult = comparisonBlock(Companion_getInstance_1().
|
|
2725
|
+
var comparisonResult = comparisonBlock(Companion_getInstance_1().xv(withoutDecimalPart + 1));
|
|
2726
2726
|
var tmp_0;
|
|
2727
2727
|
if (comparisonResult === 0) {
|
|
2728
2728
|
tmp_0 = 1;
|
|
@@ -2731,17 +2731,17 @@
|
|
|
2731
2731
|
}
|
|
2732
2732
|
tmp = tmp_0;
|
|
2733
2733
|
} else {
|
|
2734
|
-
tmp = comparisonBlock(Companion_getInstance_1().
|
|
2734
|
+
tmp = comparisonBlock(Companion_getInstance_1().xv(withoutDecimalPart));
|
|
2735
2735
|
}
|
|
2736
2736
|
return tmp;
|
|
2737
2737
|
};
|
|
2738
|
-
protoOf(BigInteger).
|
|
2738
|
+
protoOf(BigInteger).m12 = function (double, comparisonBlock) {
|
|
2739
2739
|
// Inline function 'kotlin.math.floor' call
|
|
2740
2740
|
var withoutDecimalPart = Math.floor(double);
|
|
2741
2741
|
var hasDecimalPart = !(double % 1 === 0.0);
|
|
2742
2742
|
var tmp;
|
|
2743
2743
|
if (hasDecimalPart) {
|
|
2744
|
-
var comparisonResult = comparisonBlock(Companion_getInstance_1().
|
|
2744
|
+
var comparisonResult = comparisonBlock(Companion_getInstance_1().zv(withoutDecimalPart + 1));
|
|
2745
2745
|
var tmp_0;
|
|
2746
2746
|
if (comparisonResult === 0) {
|
|
2747
2747
|
tmp_0 = 1;
|
|
@@ -2750,38 +2750,38 @@
|
|
|
2750
2750
|
}
|
|
2751
2751
|
tmp = tmp_0;
|
|
2752
2752
|
} else {
|
|
2753
|
-
tmp = comparisonBlock(Companion_getInstance_1().
|
|
2753
|
+
tmp = comparisonBlock(Companion_getInstance_1().zv(withoutDecimalPart));
|
|
2754
2754
|
}
|
|
2755
2755
|
return tmp;
|
|
2756
2756
|
};
|
|
2757
2757
|
protoOf(BigInteger).equals = function (other) {
|
|
2758
2758
|
var tmp;
|
|
2759
2759
|
if (other instanceof BigInteger) {
|
|
2760
|
-
tmp = this.
|
|
2760
|
+
tmp = this.e10(other);
|
|
2761
2761
|
} else {
|
|
2762
2762
|
if (other instanceof Long) {
|
|
2763
|
-
tmp = this.
|
|
2763
|
+
tmp = this.e10(Companion_getInstance_1().my(other));
|
|
2764
2764
|
} else {
|
|
2765
2765
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
2766
|
-
tmp = this.
|
|
2766
|
+
tmp = this.e10(Companion_getInstance_1().vv(other));
|
|
2767
2767
|
} else {
|
|
2768
2768
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
2769
|
-
tmp = this.
|
|
2769
|
+
tmp = this.e10(Companion_getInstance_1().qy(other));
|
|
2770
2770
|
} else {
|
|
2771
2771
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
2772
|
-
tmp = this.
|
|
2772
|
+
tmp = this.e10(Companion_getInstance_1().sy(other));
|
|
2773
2773
|
} else {
|
|
2774
2774
|
if (other instanceof ULong) {
|
|
2775
|
-
tmp = this.
|
|
2775
|
+
tmp = this.e10(Companion_getInstance_1().u10(other.i1_1));
|
|
2776
2776
|
} else {
|
|
2777
2777
|
if (other instanceof UInt) {
|
|
2778
|
-
tmp = this.
|
|
2778
|
+
tmp = this.e10(Companion_getInstance_1().w10(other.ze_1));
|
|
2779
2779
|
} else {
|
|
2780
2780
|
if (other instanceof UShort) {
|
|
2781
|
-
tmp = this.
|
|
2781
|
+
tmp = this.e10(Companion_getInstance_1().y10(other.o12_1));
|
|
2782
2782
|
} else {
|
|
2783
2783
|
if (other instanceof UByte) {
|
|
2784
|
-
tmp = this.
|
|
2784
|
+
tmp = this.e10(Companion_getInstance_1().a11(other.n12_1));
|
|
2785
2785
|
} else {
|
|
2786
2786
|
tmp = -1;
|
|
2787
2787
|
}
|
|
@@ -2798,64 +2798,64 @@
|
|
|
2798
2798
|
};
|
|
2799
2799
|
protoOf(BigInteger).hashCode = function () {
|
|
2800
2800
|
// Inline function 'kotlin.collections.fold' call
|
|
2801
|
-
var this_0 = this.
|
|
2801
|
+
var this_0 = this.ax_1;
|
|
2802
2802
|
var accumulator = 0;
|
|
2803
2803
|
var _iterator__ex2g4s = ULongArray__iterator_impl_cq4d2h(this_0);
|
|
2804
2804
|
while (_iterator__ex2g4s.m()) {
|
|
2805
2805
|
var element = _iterator__ex2g4s.n().i1_1;
|
|
2806
2806
|
accumulator = accumulator + ULong__hashCode_impl_6hv2lb(element) | 0;
|
|
2807
2807
|
}
|
|
2808
|
-
return accumulator + this.
|
|
2808
|
+
return accumulator + this.bx_1.hashCode() | 0;
|
|
2809
2809
|
};
|
|
2810
2810
|
protoOf(BigInteger).toString = function () {
|
|
2811
|
-
return this.
|
|
2811
|
+
return this.h10(10);
|
|
2812
2812
|
};
|
|
2813
|
-
protoOf(BigInteger).
|
|
2813
|
+
protoOf(BigInteger).h10 = function (base) {
|
|
2814
2814
|
var tmp;
|
|
2815
|
-
if (this.
|
|
2815
|
+
if (this.bx_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
2816
2816
|
tmp = '-';
|
|
2817
2817
|
} else {
|
|
2818
2818
|
tmp = '';
|
|
2819
2819
|
}
|
|
2820
2820
|
var sign = tmp;
|
|
2821
|
-
return sign + this.
|
|
2821
|
+
return sign + this.i10(base);
|
|
2822
2822
|
};
|
|
2823
|
-
protoOf(BigInteger).
|
|
2824
|
-
return Companion_getInstance_1().
|
|
2823
|
+
protoOf(BigInteger).i10 = function (base) {
|
|
2824
|
+
return Companion_getInstance_1().uw_1.p12(this.ax_1, base);
|
|
2825
2825
|
};
|
|
2826
|
-
protoOf(BigInteger).
|
|
2827
|
-
if (exactRequired && (this.
|
|
2826
|
+
protoOf(BigInteger).kx = function (exactRequired) {
|
|
2827
|
+
if (exactRequired && (this.oz(2147483647) > 0 || this.oz(-2147483648) < 0)) {
|
|
2828
2828
|
throw ArithmeticException_init_$Create$('Cannot convert to int and provide exact value');
|
|
2829
2829
|
}
|
|
2830
2830
|
// Inline function 'kotlin.ULong.toInt' call
|
|
2831
|
-
var this_0 = ULongArray__get_impl_pr71q9(this.
|
|
2831
|
+
var this_0 = ULongArray__get_impl_pr71q9(this.ax_1, 0);
|
|
2832
2832
|
var tmp$ret$0 = convertToInt(_ULong___get_data__impl__fggpzb(this_0));
|
|
2833
|
-
return imul(tmp$ret$0, this.
|
|
2833
|
+
return imul(tmp$ret$0, this.ay());
|
|
2834
2834
|
};
|
|
2835
|
-
protoOf(BigInteger).
|
|
2836
|
-
if (exactRequired && (this.
|
|
2835
|
+
protoOf(BigInteger).d10 = function (exactRequired) {
|
|
2836
|
+
if (exactRequired && (this.oz(new Long(-1, 2147483647)) > 0 || this.oz(new Long(0, -2147483648)) < 0)) {
|
|
2837
2837
|
throw ArithmeticException_init_$Create$('Cannot convert to long and provide exact value');
|
|
2838
2838
|
}
|
|
2839
2839
|
var tmp;
|
|
2840
|
-
if (_ULongArray___get_size__impl__ju6dtr(this.
|
|
2840
|
+
if (_ULongArray___get_size__impl__ju6dtr(this.ax_1) > 1) {
|
|
2841
2841
|
// Inline function 'kotlin.ULong.shl' call
|
|
2842
|
-
var this_0 = ULongArray__get_impl_pr71q9(this.
|
|
2842
|
+
var this_0 = ULongArray__get_impl_pr71q9(this.ax_1, 1);
|
|
2843
2843
|
var firstBit = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_0), 63));
|
|
2844
2844
|
// Inline function 'kotlin.ULong.toLong' call
|
|
2845
|
-
var this_1 = ULongArray__get_impl_pr71q9(this.
|
|
2845
|
+
var this_1 = ULongArray__get_impl_pr71q9(this.ax_1, 0);
|
|
2846
2846
|
var tmp_0 = _ULong___get_data__impl__fggpzb(this_1);
|
|
2847
2847
|
// Inline function 'kotlin.ULong.toLong' call
|
|
2848
2848
|
var tmp$ret$2 = _ULong___get_data__impl__fggpzb(firstBit);
|
|
2849
2849
|
var tmp0 = bitwiseOr(tmp_0, tmp$ret$2);
|
|
2850
2850
|
// Inline function 'kotlin.Long.times' call
|
|
2851
|
-
var other = this.
|
|
2851
|
+
var other = this.ay();
|
|
2852
2852
|
tmp = multiply(tmp0, fromInt(other));
|
|
2853
2853
|
} else {
|
|
2854
2854
|
// Inline function 'kotlin.ULong.toLong' call
|
|
2855
|
-
var this_2 = ULongArray__get_impl_pr71q9(this.
|
|
2855
|
+
var this_2 = ULongArray__get_impl_pr71q9(this.ax_1, 0);
|
|
2856
2856
|
var tmp0_0 = _ULong___get_data__impl__fggpzb(this_2);
|
|
2857
2857
|
// Inline function 'kotlin.Long.times' call
|
|
2858
|
-
var other_0 = this.
|
|
2858
|
+
var other_0 = this.ay();
|
|
2859
2859
|
return multiply(tmp0_0, fromInt(other_0));
|
|
2860
2860
|
}
|
|
2861
2861
|
return tmp;
|
|
@@ -2875,7 +2875,7 @@
|
|
|
2875
2875
|
function Sign(name, ordinal) {
|
|
2876
2876
|
Enum.call(this, name, ordinal);
|
|
2877
2877
|
}
|
|
2878
|
-
protoOf(Sign).
|
|
2878
|
+
protoOf(Sign).d12 = function () {
|
|
2879
2879
|
var tmp;
|
|
2880
2880
|
switch (this.d2_1) {
|
|
2881
2881
|
case 0:
|
|
@@ -2906,7 +2906,7 @@
|
|
|
2906
2906
|
return Sign_ZERO_instance;
|
|
2907
2907
|
}
|
|
2908
2908
|
function toBigInteger(_this__u8e3s4) {
|
|
2909
|
-
return Companion_getInstance_1().
|
|
2909
|
+
return Companion_getInstance_1().vv(_this__u8e3s4);
|
|
2910
2910
|
}
|
|
2911
2911
|
function get_chosenArithmetic() {
|
|
2912
2912
|
_init_properties_Configuration_kt__48zwcc();
|
|
@@ -2946,20 +2946,23 @@
|
|
|
2946
2946
|
return Platform_WASMJS_instance;
|
|
2947
2947
|
}
|
|
2948
2948
|
function Sextuple(a, b, c, d, e, f) {
|
|
2949
|
-
this.
|
|
2950
|
-
this.
|
|
2951
|
-
this.
|
|
2952
|
-
this.
|
|
2953
|
-
this.
|
|
2954
|
-
this.
|
|
2949
|
+
this.q12_1 = a;
|
|
2950
|
+
this.r12_1 = b;
|
|
2951
|
+
this.s12_1 = c;
|
|
2952
|
+
this.t12_1 = d;
|
|
2953
|
+
this.u12_1 = e;
|
|
2954
|
+
this.v12_1 = f;
|
|
2955
2955
|
}
|
|
2956
|
+
protoOf(Sextuple).ub = function () {
|
|
2957
|
+
return this.q12_1;
|
|
2958
|
+
};
|
|
2956
2959
|
protoOf(Sextuple).vb = function () {
|
|
2957
2960
|
return this.r12_1;
|
|
2958
2961
|
};
|
|
2959
|
-
protoOf(Sextuple).
|
|
2962
|
+
protoOf(Sextuple).ue = function () {
|
|
2960
2963
|
return this.s12_1;
|
|
2961
2964
|
};
|
|
2962
|
-
protoOf(Sextuple).
|
|
2965
|
+
protoOf(Sextuple).w12 = function () {
|
|
2963
2966
|
return this.t12_1;
|
|
2964
2967
|
};
|
|
2965
2968
|
protoOf(Sextuple).x12 = function () {
|
|
@@ -2968,19 +2971,16 @@
|
|
|
2968
2971
|
protoOf(Sextuple).y12 = function () {
|
|
2969
2972
|
return this.v12_1;
|
|
2970
2973
|
};
|
|
2971
|
-
protoOf(Sextuple).z12 = function () {
|
|
2972
|
-
return this.w12_1;
|
|
2973
|
-
};
|
|
2974
2974
|
protoOf(Sextuple).toString = function () {
|
|
2975
|
-
return 'Sextuple(a=' + toString_0(this.
|
|
2975
|
+
return 'Sextuple(a=' + toString_0(this.q12_1) + ', b=' + toString_0(this.r12_1) + ', c=' + toString_0(this.s12_1) + ', d=' + toString_0(this.t12_1) + ', e=' + toString_0(this.u12_1) + ', f=' + toString_0(this.v12_1) + ')';
|
|
2976
2976
|
};
|
|
2977
2977
|
protoOf(Sextuple).hashCode = function () {
|
|
2978
|
-
var result = this.
|
|
2978
|
+
var result = this.q12_1 == null ? 0 : hashCode(this.q12_1);
|
|
2979
|
+
result = imul(result, 31) + (this.r12_1 == null ? 0 : hashCode(this.r12_1)) | 0;
|
|
2979
2980
|
result = imul(result, 31) + (this.s12_1 == null ? 0 : hashCode(this.s12_1)) | 0;
|
|
2980
2981
|
result = imul(result, 31) + (this.t12_1 == null ? 0 : hashCode(this.t12_1)) | 0;
|
|
2981
2982
|
result = imul(result, 31) + (this.u12_1 == null ? 0 : hashCode(this.u12_1)) | 0;
|
|
2982
2983
|
result = imul(result, 31) + (this.v12_1 == null ? 0 : hashCode(this.v12_1)) | 0;
|
|
2983
|
-
result = imul(result, 31) + (this.w12_1 == null ? 0 : hashCode(this.w12_1)) | 0;
|
|
2984
2984
|
return result;
|
|
2985
2985
|
};
|
|
2986
2986
|
protoOf(Sextuple).equals = function (other) {
|
|
@@ -2989,6 +2989,8 @@
|
|
|
2989
2989
|
if (!(other instanceof Sextuple))
|
|
2990
2990
|
return false;
|
|
2991
2991
|
var tmp0_other_with_cast = other instanceof Sextuple ? other : THROW_CCE();
|
|
2992
|
+
if (!equals(this.q12_1, tmp0_other_with_cast.q12_1))
|
|
2993
|
+
return false;
|
|
2992
2994
|
if (!equals(this.r12_1, tmp0_other_with_cast.r12_1))
|
|
2993
2995
|
return false;
|
|
2994
2996
|
if (!equals(this.s12_1, tmp0_other_with_cast.s12_1))
|
|
@@ -2999,36 +3001,34 @@
|
|
|
2999
3001
|
return false;
|
|
3000
3002
|
if (!equals(this.v12_1, tmp0_other_with_cast.v12_1))
|
|
3001
3003
|
return false;
|
|
3002
|
-
if (!equals(this.w12_1, tmp0_other_with_cast.w12_1))
|
|
3003
|
-
return false;
|
|
3004
3004
|
return true;
|
|
3005
3005
|
};
|
|
3006
3006
|
function Quadruple(a, b, c, d) {
|
|
3007
|
-
this.
|
|
3008
|
-
this.
|
|
3009
|
-
this.
|
|
3010
|
-
this.
|
|
3007
|
+
this.z12_1 = a;
|
|
3008
|
+
this.a13_1 = b;
|
|
3009
|
+
this.b13_1 = c;
|
|
3010
|
+
this.c13_1 = d;
|
|
3011
3011
|
}
|
|
3012
|
+
protoOf(Quadruple).ub = function () {
|
|
3013
|
+
return this.z12_1;
|
|
3014
|
+
};
|
|
3012
3015
|
protoOf(Quadruple).vb = function () {
|
|
3013
3016
|
return this.a13_1;
|
|
3014
3017
|
};
|
|
3015
|
-
protoOf(Quadruple).
|
|
3018
|
+
protoOf(Quadruple).ue = function () {
|
|
3016
3019
|
return this.b13_1;
|
|
3017
3020
|
};
|
|
3018
|
-
protoOf(Quadruple).
|
|
3021
|
+
protoOf(Quadruple).w12 = function () {
|
|
3019
3022
|
return this.c13_1;
|
|
3020
3023
|
};
|
|
3021
|
-
protoOf(Quadruple).x12 = function () {
|
|
3022
|
-
return this.d13_1;
|
|
3023
|
-
};
|
|
3024
3024
|
protoOf(Quadruple).toString = function () {
|
|
3025
|
-
return 'Quadruple(a=' + toString_0(this.
|
|
3025
|
+
return 'Quadruple(a=' + toString_0(this.z12_1) + ', b=' + toString_0(this.a13_1) + ', c=' + toString_0(this.b13_1) + ', d=' + toString_0(this.c13_1) + ')';
|
|
3026
3026
|
};
|
|
3027
3027
|
protoOf(Quadruple).hashCode = function () {
|
|
3028
|
-
var result = this.
|
|
3028
|
+
var result = this.z12_1 == null ? 0 : hashCode(this.z12_1);
|
|
3029
|
+
result = imul(result, 31) + (this.a13_1 == null ? 0 : hashCode(this.a13_1)) | 0;
|
|
3029
3030
|
result = imul(result, 31) + (this.b13_1 == null ? 0 : hashCode(this.b13_1)) | 0;
|
|
3030
3031
|
result = imul(result, 31) + (this.c13_1 == null ? 0 : hashCode(this.c13_1)) | 0;
|
|
3031
|
-
result = imul(result, 31) + (this.d13_1 == null ? 0 : hashCode(this.d13_1)) | 0;
|
|
3032
3032
|
return result;
|
|
3033
3033
|
};
|
|
3034
3034
|
protoOf(Quadruple).equals = function (other) {
|
|
@@ -3037,26 +3037,26 @@
|
|
|
3037
3037
|
if (!(other instanceof Quadruple))
|
|
3038
3038
|
return false;
|
|
3039
3039
|
var tmp0_other_with_cast = other instanceof Quadruple ? other : THROW_CCE();
|
|
3040
|
+
if (!equals(this.z12_1, tmp0_other_with_cast.z12_1))
|
|
3041
|
+
return false;
|
|
3040
3042
|
if (!equals(this.a13_1, tmp0_other_with_cast.a13_1))
|
|
3041
3043
|
return false;
|
|
3042
3044
|
if (!equals(this.b13_1, tmp0_other_with_cast.b13_1))
|
|
3043
3045
|
return false;
|
|
3044
3046
|
if (!equals(this.c13_1, tmp0_other_with_cast.c13_1))
|
|
3045
3047
|
return false;
|
|
3046
|
-
if (!equals(this.d13_1, tmp0_other_with_cast.d13_1))
|
|
3047
|
-
return false;
|
|
3048
3048
|
return true;
|
|
3049
3049
|
};
|
|
3050
3050
|
function SignedUIntArray(unsignedValue, sign) {
|
|
3051
|
-
this.
|
|
3052
|
-
this.
|
|
3051
|
+
this.d13_1 = unsignedValue;
|
|
3052
|
+
this.e13_1 = sign;
|
|
3053
3053
|
}
|
|
3054
3054
|
protoOf(SignedUIntArray).toString = function () {
|
|
3055
|
-
return 'SignedUIntArray(unsignedValue=' + UIntArray__toString_impl_3zy802(this.
|
|
3055
|
+
return 'SignedUIntArray(unsignedValue=' + UIntArray__toString_impl_3zy802(this.d13_1) + ', sign=' + this.e13_1 + ')';
|
|
3056
3056
|
};
|
|
3057
3057
|
protoOf(SignedUIntArray).hashCode = function () {
|
|
3058
|
-
var result = UIntArray__hashCode_impl_hr7ost(this.
|
|
3059
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3058
|
+
var result = UIntArray__hashCode_impl_hr7ost(this.d13_1);
|
|
3059
|
+
result = imul(result, 31) + getBooleanHashCode(this.e13_1) | 0;
|
|
3060
3060
|
return result;
|
|
3061
3061
|
};
|
|
3062
3062
|
protoOf(SignedUIntArray).equals = function (other) {
|
|
@@ -3065,9 +3065,9 @@
|
|
|
3065
3065
|
if (!(other instanceof SignedUIntArray))
|
|
3066
3066
|
return false;
|
|
3067
3067
|
var tmp0_other_with_cast = other instanceof SignedUIntArray ? other : THROW_CCE();
|
|
3068
|
-
if (!equals(this.
|
|
3068
|
+
if (!equals(this.d13_1, tmp0_other_with_cast.d13_1))
|
|
3069
3069
|
return false;
|
|
3070
|
-
if (!(this.
|
|
3070
|
+
if (!(this.e13_1 === tmp0_other_with_cast.e13_1))
|
|
3071
3071
|
return false;
|
|
3072
3072
|
return true;
|
|
3073
3073
|
};
|
|
@@ -3075,15 +3075,15 @@
|
|
|
3075
3075
|
BigInteger32Arithmetic_instance = this;
|
|
3076
3076
|
var tmp = this;
|
|
3077
3077
|
// Inline function 'kotlin.intArrayOf' call
|
|
3078
|
-
tmp.
|
|
3079
|
-
this.
|
|
3080
|
-
this.
|
|
3081
|
-
this.
|
|
3082
|
-
this.
|
|
3083
|
-
this.
|
|
3078
|
+
tmp.f13_1 = new Int32Array([]);
|
|
3079
|
+
this.g13_1 = _ULong___init__impl__c78o9k(new Long(-1, 0));
|
|
3080
|
+
this.h13_1 = _UInt___init__impl__l7qpdl(-1);
|
|
3081
|
+
this.i13_1 = _ULong___init__impl__c78o9k(new Long(0, 1));
|
|
3082
|
+
this.j13_1 = _ULong___init__impl__c78o9k(new Long(65535, 0));
|
|
3083
|
+
this.k13_1 = _UInt___init__impl__l7qpdl(-1);
|
|
3084
|
+
this.l13_1 = 32;
|
|
3084
3085
|
this.m13_1 = 32;
|
|
3085
|
-
this.n13_1 =
|
|
3086
|
-
this.o13_1 = _UIntArray___init__impl__ghjpc6(0);
|
|
3086
|
+
this.n13_1 = _UIntArray___init__impl__ghjpc6(0);
|
|
3087
3087
|
var tmp_0 = this;
|
|
3088
3088
|
// Inline function 'kotlin.UIntArray' call
|
|
3089
3089
|
var tmp_1 = 0;
|
|
@@ -3095,7 +3095,7 @@
|
|
|
3095
3095
|
tmp_2[tmp_3] = _UInt___get_data__impl__f0vqqw(this_0);
|
|
3096
3096
|
tmp_1 = tmp_1 + 1 | 0;
|
|
3097
3097
|
}
|
|
3098
|
-
tmp_0.
|
|
3098
|
+
tmp_0.o13_1 = _UIntArray___init__impl__ghjpc6_0(tmp_2);
|
|
3099
3099
|
var tmp_4 = this;
|
|
3100
3100
|
// Inline function 'kotlin.UIntArray' call
|
|
3101
3101
|
var tmp_5 = 0;
|
|
@@ -3107,7 +3107,7 @@
|
|
|
3107
3107
|
tmp_6[tmp_7] = _UInt___get_data__impl__f0vqqw(this_1);
|
|
3108
3108
|
tmp_5 = tmp_5 + 1 | 0;
|
|
3109
3109
|
}
|
|
3110
|
-
tmp_4.
|
|
3110
|
+
tmp_4.p13_1 = _UIntArray___init__impl__ghjpc6_0(tmp_6);
|
|
3111
3111
|
var tmp_8 = this;
|
|
3112
3112
|
// Inline function 'kotlin.UIntArray' call
|
|
3113
3113
|
var tmp_9 = 0;
|
|
@@ -3119,15 +3119,15 @@
|
|
|
3119
3119
|
tmp_10[tmp_11] = _UInt___get_data__impl__f0vqqw(this_2);
|
|
3120
3120
|
tmp_9 = tmp_9 + 1 | 0;
|
|
3121
3121
|
}
|
|
3122
|
-
tmp_8.
|
|
3123
|
-
this.
|
|
3124
|
-
this.
|
|
3125
|
-
this.
|
|
3122
|
+
tmp_8.q13_1 = _UIntArray___init__impl__ghjpc6_0(tmp_10);
|
|
3123
|
+
this.r13_1 = 60;
|
|
3124
|
+
this.s13_1 = 15000;
|
|
3125
|
+
this.t13_1 = new SignedUIntArray(this.p13_1, true);
|
|
3126
3126
|
}
|
|
3127
|
-
protoOf(BigInteger32Arithmetic).
|
|
3127
|
+
protoOf(BigInteger32Arithmetic).u13 = function (value) {
|
|
3128
3128
|
var x = value;
|
|
3129
3129
|
var y;
|
|
3130
|
-
var n = this.
|
|
3130
|
+
var n = this.l13_1;
|
|
3131
3131
|
// Inline function 'kotlin.UInt.shr' call
|
|
3132
3132
|
var this_0 = x;
|
|
3133
3133
|
y = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_0) >>> 16 | 0);
|
|
@@ -3167,17 +3167,17 @@
|
|
|
3167
3167
|
var this_5 = x;
|
|
3168
3168
|
return tmp - _UInt___get_data__impl__f0vqqw(this_5) | 0;
|
|
3169
3169
|
};
|
|
3170
|
-
protoOf(BigInteger32Arithmetic).
|
|
3170
|
+
protoOf(BigInteger32Arithmetic).v13 = function (value) {
|
|
3171
3171
|
if (UIntArray__isEmpty_impl_vd8j4n(value)) {
|
|
3172
3172
|
return 0;
|
|
3173
3173
|
}
|
|
3174
3174
|
var mostSignificant = UIntArray__get_impl_gp5kza(value, _UIntArray___get_size__impl__r6l8ci(value) - 1 | 0);
|
|
3175
|
-
return this.
|
|
3175
|
+
return this.w13(mostSignificant) + imul(_UIntArray___get_size__impl__r6l8ci(value) - 1 | 0, this.l13_1) | 0;
|
|
3176
3176
|
};
|
|
3177
|
-
protoOf(BigInteger32Arithmetic).
|
|
3178
|
-
return this.
|
|
3177
|
+
protoOf(BigInteger32Arithmetic).w13 = function (value) {
|
|
3178
|
+
return this.l13_1 - this.u13(value) | 0;
|
|
3179
3179
|
};
|
|
3180
|
-
protoOf(BigInteger32Arithmetic).
|
|
3180
|
+
protoOf(BigInteger32Arithmetic).x13 = function (bigInteger) {
|
|
3181
3181
|
// Inline function 'kotlin.collections.indexOfLast' call
|
|
3182
3182
|
var tmp0 = _UIntArray___get_storage__impl__92a0v0(bigInteger);
|
|
3183
3183
|
var tmp$ret$3;
|
|
@@ -3200,12 +3200,12 @@
|
|
|
3200
3200
|
}
|
|
3201
3201
|
var firstEmpty = tmp$ret$3 + 1 | 0;
|
|
3202
3202
|
if (firstEmpty === -1 || firstEmpty === 0) {
|
|
3203
|
-
return this.
|
|
3203
|
+
return this.n13_1;
|
|
3204
3204
|
}
|
|
3205
3205
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
3206
3206
|
return _UIntArray___init__impl__ghjpc6_0(copyOfRange(_UIntArray___get_storage__impl__92a0v0(bigInteger), 0, firstEmpty));
|
|
3207
3207
|
};
|
|
3208
|
-
protoOf(BigInteger32Arithmetic).
|
|
3208
|
+
protoOf(BigInteger32Arithmetic).y13 = function (bigInteger) {
|
|
3209
3209
|
var lastNonEmptyIndex = _UIntArray___get_size__impl__r6l8ci(bigInteger) - 1 | 0;
|
|
3210
3210
|
if (lastNonEmptyIndex <= 0) {
|
|
3211
3211
|
return 0;
|
|
@@ -3220,14 +3220,14 @@
|
|
|
3220
3220
|
}
|
|
3221
3221
|
return (_UIntArray___get_size__impl__r6l8ci(bigInteger) - lastNonEmptyIndex | 0) - 1 | 0;
|
|
3222
3222
|
};
|
|
3223
|
-
protoOf(BigInteger32Arithmetic).
|
|
3223
|
+
protoOf(BigInteger32Arithmetic).z13 = function (operand, places) {
|
|
3224
3224
|
if (UIntArray__isEmpty_impl_vd8j4n(operand) || places === 0) {
|
|
3225
3225
|
return operand;
|
|
3226
3226
|
}
|
|
3227
3227
|
var originalSize = _UIntArray___get_size__impl__r6l8ci(operand);
|
|
3228
|
-
var leadingZeros = this.
|
|
3229
|
-
var shiftWords = places / this.
|
|
3230
|
-
var shiftBits = places % this.
|
|
3228
|
+
var leadingZeros = this.u13(UIntArray__get_impl_gp5kza(operand, _UIntArray___get_size__impl__r6l8ci(operand) - 1 | 0));
|
|
3229
|
+
var shiftWords = places / this.l13_1 | 0;
|
|
3230
|
+
var shiftBits = places % this.l13_1 | 0;
|
|
3231
3231
|
var tmp;
|
|
3232
3232
|
if (shiftBits > leadingZeros) {
|
|
3233
3233
|
tmp = shiftWords + 1 | 0;
|
|
@@ -3271,7 +3271,7 @@
|
|
|
3271
3271
|
var tmp0 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_2) << shiftBits);
|
|
3272
3272
|
var tmp0_0 = UIntArray__get_impl_gp5kza(operand, (tmp_7 - shiftWords | 0) - 1 | 0);
|
|
3273
3273
|
// Inline function 'kotlin.UInt.shr' call
|
|
3274
|
-
var bitCount = BigInteger32Arithmetic_getInstance().
|
|
3274
|
+
var bitCount = BigInteger32Arithmetic_getInstance().l13_1 - shiftBits | 0;
|
|
3275
3275
|
// Inline function 'kotlin.UInt.or' call
|
|
3276
3276
|
var other = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_0) >>> bitCount | 0);
|
|
3277
3277
|
tmp_8 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0) | _UInt___get_data__impl__f0vqqw(other));
|
|
@@ -3279,7 +3279,7 @@
|
|
|
3279
3279
|
if (tmp_7 === ((originalSize + wordsNeeded | 0) - 1 | 0)) {
|
|
3280
3280
|
var tmp0_1 = UIntArray__get_impl_gp5kza(operand, tmp_7 - wordsNeeded | 0);
|
|
3281
3281
|
// Inline function 'kotlin.UInt.shr' call
|
|
3282
|
-
var bitCount_0 = BigInteger32Arithmetic_getInstance().
|
|
3282
|
+
var bitCount_0 = BigInteger32Arithmetic_getInstance().l13_1 - shiftBits | 0;
|
|
3283
3283
|
tmp_8 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_1) >>> bitCount_0 | 0);
|
|
3284
3284
|
} else {
|
|
3285
3285
|
throw RuntimeException_init_$Create$('Invalid case ' + tmp_7);
|
|
@@ -3294,14 +3294,14 @@
|
|
|
3294
3294
|
}
|
|
3295
3295
|
return _UIntArray___init__impl__ghjpc6_0(tmp_6);
|
|
3296
3296
|
};
|
|
3297
|
-
protoOf(BigInteger32Arithmetic).
|
|
3297
|
+
protoOf(BigInteger32Arithmetic).a14 = function (operand, places) {
|
|
3298
3298
|
if (UIntArray__isEmpty_impl_vd8j4n(operand) || places === 0) {
|
|
3299
3299
|
return operand;
|
|
3300
3300
|
}
|
|
3301
|
-
var shiftBits = places % this.
|
|
3302
|
-
var wordsToDiscard = places / this.
|
|
3301
|
+
var shiftBits = places % this.l13_1 | 0;
|
|
3302
|
+
var wordsToDiscard = places / this.l13_1 | 0;
|
|
3303
3303
|
if (wordsToDiscard >= _UIntArray___get_size__impl__r6l8ci(operand)) {
|
|
3304
|
-
return this.
|
|
3304
|
+
return this.n13_1;
|
|
3305
3305
|
}
|
|
3306
3306
|
if (shiftBits === 0) {
|
|
3307
3307
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
@@ -3328,7 +3328,7 @@
|
|
|
3328
3328
|
var tmp0 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_1) >>> shiftBits | 0);
|
|
3329
3329
|
var tmp0_0 = UIntArray__get_impl_gp5kza(operand, (tmp_2 + wordsToDiscard | 0) + 1 | 0);
|
|
3330
3330
|
// Inline function 'kotlin.UInt.shl' call
|
|
3331
|
-
var bitCount = BigInteger32Arithmetic_getInstance().
|
|
3331
|
+
var bitCount = BigInteger32Arithmetic_getInstance().l13_1 - shiftBits | 0;
|
|
3332
3332
|
// Inline function 'kotlin.UInt.or' call
|
|
3333
3333
|
var other = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_0) << bitCount);
|
|
3334
3334
|
tmp_3 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0) | _UInt___get_data__impl__f0vqqw(other));
|
|
@@ -3345,22 +3345,22 @@
|
|
|
3345
3345
|
tmp = tmp + 1 | 0;
|
|
3346
3346
|
}
|
|
3347
3347
|
var result = _UIntArray___init__impl__ghjpc6_0(tmp_1);
|
|
3348
|
-
return this.
|
|
3348
|
+
return this.x13(result);
|
|
3349
3349
|
};
|
|
3350
|
-
protoOf(BigInteger32Arithmetic).
|
|
3350
|
+
protoOf(BigInteger32Arithmetic).b14 = function (dividend, divisor) {
|
|
3351
3351
|
var divisorSize = _UIntArray___get_size__impl__r6l8ci(divisor);
|
|
3352
|
-
var normalizationShift = this.
|
|
3353
|
-
var divisorNormalized = this.
|
|
3354
|
-
var dividendNormalized = this.
|
|
3352
|
+
var normalizationShift = this.u13(UIntArray__get_impl_gp5kza(divisor, divisorSize - 1 | 0));
|
|
3353
|
+
var divisorNormalized = this.c14(divisor, normalizationShift);
|
|
3354
|
+
var dividendNormalized = this.c14(dividend, normalizationShift);
|
|
3355
3355
|
return new Triple(new UIntArray(dividendNormalized), new UIntArray(divisorNormalized), normalizationShift);
|
|
3356
3356
|
};
|
|
3357
|
-
protoOf(BigInteger32Arithmetic).
|
|
3358
|
-
var remainder = this.
|
|
3357
|
+
protoOf(BigInteger32Arithmetic).d14 = function (remainderNormalized, normalizationShift) {
|
|
3358
|
+
var remainder = this.e14(remainderNormalized, normalizationShift);
|
|
3359
3359
|
return remainder;
|
|
3360
3360
|
};
|
|
3361
|
-
protoOf(BigInteger32Arithmetic).
|
|
3362
|
-
var firstStart = _UIntArray___get_size__impl__r6l8ci(first) - this.
|
|
3363
|
-
var secondStart = _UIntArray___get_size__impl__r6l8ci(second) - this.
|
|
3361
|
+
protoOf(BigInteger32Arithmetic).f14 = function (first, second) {
|
|
3362
|
+
var firstStart = _UIntArray___get_size__impl__r6l8ci(first) - this.y13(first) | 0;
|
|
3363
|
+
var secondStart = _UIntArray___get_size__impl__r6l8ci(second) - this.y13(second) | 0;
|
|
3364
3364
|
if (firstStart > secondStart) {
|
|
3365
3365
|
return 1;
|
|
3366
3366
|
}
|
|
@@ -3398,7 +3398,7 @@
|
|
|
3398
3398
|
return -1;
|
|
3399
3399
|
}
|
|
3400
3400
|
};
|
|
3401
|
-
protoOf(BigInteger32Arithmetic).
|
|
3401
|
+
protoOf(BigInteger32Arithmetic).g14 = function (first, second) {
|
|
3402
3402
|
if (_UIntArray___get_size__impl__r6l8ci(first) === 1 && UIntArray__get_impl_gp5kza(first, 0) === _UInt___init__impl__l7qpdl(0))
|
|
3403
3403
|
return second;
|
|
3404
3404
|
if (_UIntArray___get_size__impl__r6l8ci(second) === 1 && UIntArray__get_impl_gp5kza(second, 0) === _UInt___init__impl__l7qpdl(0))
|
|
@@ -3410,10 +3410,10 @@
|
|
|
3410
3410
|
tmp = new Quadruple(_UIntArray___get_size__impl__r6l8ci(second), _UIntArray___get_size__impl__r6l8ci(first), new UIntArray(second), new UIntArray(first));
|
|
3411
3411
|
}
|
|
3412
3412
|
var _destruct__k2r9zo = tmp;
|
|
3413
|
-
var maxLength = _destruct__k2r9zo.
|
|
3414
|
-
var minLength = _destruct__k2r9zo.
|
|
3415
|
-
var largerData = _destruct__k2r9zo.
|
|
3416
|
-
var smallerData = _destruct__k2r9zo.
|
|
3413
|
+
var maxLength = _destruct__k2r9zo.ub();
|
|
3414
|
+
var minLength = _destruct__k2r9zo.vb();
|
|
3415
|
+
var largerData = _destruct__k2r9zo.ue().ef_1;
|
|
3416
|
+
var smallerData = _destruct__k2r9zo.w12().ef_1;
|
|
3417
3417
|
// Inline function 'kotlin.UIntArray' call
|
|
3418
3418
|
var tmp_0 = 0;
|
|
3419
3419
|
var tmp_1 = maxLength + 1 | 0;
|
|
@@ -3453,7 +3453,7 @@
|
|
|
3453
3453
|
var tmp_4 = i;
|
|
3454
3454
|
var tmp0_1 = sum;
|
|
3455
3455
|
// Inline function 'kotlin.ULong.and' call
|
|
3456
|
-
var other_1 = this.
|
|
3456
|
+
var other_1 = this.g13_1;
|
|
3457
3457
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3458
3458
|
var this_3 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_1), _ULong___get_data__impl__fggpzb(other_1)));
|
|
3459
3459
|
// Inline function 'kotlin.toUInt' call
|
|
@@ -3462,7 +3462,7 @@
|
|
|
3462
3462
|
UIntArray__set_impl_7f2zu2(result, tmp_4, tmp$ret$16);
|
|
3463
3463
|
var tmp0_2 = sum;
|
|
3464
3464
|
// Inline function 'kotlin.ULong.shr' call
|
|
3465
|
-
var bitCount = this.
|
|
3465
|
+
var bitCount = this.l13_1;
|
|
3466
3466
|
sum = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_2), bitCount));
|
|
3467
3467
|
i = i + 1 | 0;
|
|
3468
3468
|
}
|
|
@@ -3505,7 +3505,7 @@
|
|
|
3505
3505
|
var tmp_6 = i;
|
|
3506
3506
|
var tmp0_4 = sum;
|
|
3507
3507
|
// Inline function 'kotlin.ULong.and' call
|
|
3508
|
-
var other_3 = this.
|
|
3508
|
+
var other_3 = this.g13_1;
|
|
3509
3509
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3510
3510
|
var this_8 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_4), _ULong___get_data__impl__fggpzb(other_3)));
|
|
3511
3511
|
// Inline function 'kotlin.toUInt' call
|
|
@@ -3514,15 +3514,15 @@
|
|
|
3514
3514
|
UIntArray__set_impl_7f2zu2(result, tmp_6, tmp$ret$28);
|
|
3515
3515
|
var tmp0_5 = sum;
|
|
3516
3516
|
// Inline function 'kotlin.ULong.shr' call
|
|
3517
|
-
var bitCount_0 = this.
|
|
3517
|
+
var bitCount_0 = this.l13_1;
|
|
3518
3518
|
sum = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_5), bitCount_0));
|
|
3519
3519
|
i = i + 1 | 0;
|
|
3520
3520
|
}
|
|
3521
3521
|
};
|
|
3522
|
-
protoOf(BigInteger32Arithmetic).
|
|
3523
|
-
var firstWithoutLeadingZeroes = this.
|
|
3524
|
-
var secondWithoutLeadingZeroes = this.
|
|
3525
|
-
var firstIsLarger = this.
|
|
3522
|
+
protoOf(BigInteger32Arithmetic).h14 = function (first, second) {
|
|
3523
|
+
var firstWithoutLeadingZeroes = this.x13(first);
|
|
3524
|
+
var secondWithoutLeadingZeroes = this.x13(second);
|
|
3525
|
+
var firstIsLarger = this.f14(firstWithoutLeadingZeroes, secondWithoutLeadingZeroes) === 1;
|
|
3526
3526
|
var tmp;
|
|
3527
3527
|
if (firstIsLarger) {
|
|
3528
3528
|
tmp = new Quadruple(_UIntArray___get_size__impl__r6l8ci(firstWithoutLeadingZeroes), _UIntArray___get_size__impl__r6l8ci(secondWithoutLeadingZeroes), new UIntArray(firstWithoutLeadingZeroes), new UIntArray(secondWithoutLeadingZeroes));
|
|
@@ -3530,10 +3530,10 @@
|
|
|
3530
3530
|
tmp = new Quadruple(_UIntArray___get_size__impl__r6l8ci(secondWithoutLeadingZeroes), _UIntArray___get_size__impl__r6l8ci(firstWithoutLeadingZeroes), new UIntArray(secondWithoutLeadingZeroes), new UIntArray(firstWithoutLeadingZeroes));
|
|
3531
3531
|
}
|
|
3532
3532
|
var _destruct__k2r9zo = tmp;
|
|
3533
|
-
var largerLength = _destruct__k2r9zo.
|
|
3534
|
-
var smallerLength = _destruct__k2r9zo.
|
|
3535
|
-
var largerData = _destruct__k2r9zo.
|
|
3536
|
-
var smallerData = _destruct__k2r9zo.
|
|
3533
|
+
var largerLength = _destruct__k2r9zo.ub();
|
|
3534
|
+
var smallerLength = _destruct__k2r9zo.vb();
|
|
3535
|
+
var largerData = _destruct__k2r9zo.ue().ef_1;
|
|
3536
|
+
var smallerData = _destruct__k2r9zo.w12().ef_1;
|
|
3537
3537
|
// Inline function 'kotlin.UIntArray' call
|
|
3538
3538
|
var tmp_0 = 0;
|
|
3539
3539
|
var tmp_1 = largerLength + 1 | 0;
|
|
@@ -3584,10 +3584,10 @@
|
|
|
3584
3584
|
UIntArray__set_impl_7f2zu2(result, tmp_4, tmp$ret$14);
|
|
3585
3585
|
var tmp0_1 = diff;
|
|
3586
3586
|
// Inline function 'kotlin.ULong.and' call
|
|
3587
|
-
var other_1 = this.
|
|
3587
|
+
var other_1 = this.i13_1;
|
|
3588
3588
|
var tmp0_2 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_1), _ULong___get_data__impl__fggpzb(other_1)));
|
|
3589
3589
|
// Inline function 'kotlin.ULong.shr' call
|
|
3590
|
-
var bitCount = this.
|
|
3590
|
+
var bitCount = this.m13_1;
|
|
3591
3591
|
diff = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_2), bitCount));
|
|
3592
3592
|
i = i + 1 | 0;
|
|
3593
3593
|
}
|
|
@@ -3610,15 +3610,15 @@
|
|
|
3610
3610
|
var this_7 = _ULong___get_data__impl__fggpzb(this_6);
|
|
3611
3611
|
var tmp0_4 = _UInt___init__impl__l7qpdl(convertToInt(this_7));
|
|
3612
3612
|
// Inline function 'kotlin.UInt.and' call
|
|
3613
|
-
var other_3 = this.
|
|
3613
|
+
var other_3 = this.h13_1;
|
|
3614
3614
|
var tmp$ret$24 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_4) & _UInt___get_data__impl__f0vqqw(other_3));
|
|
3615
3615
|
UIntArray__set_impl_7f2zu2(result, tmp_5, tmp$ret$24);
|
|
3616
3616
|
var tmp0_5 = diff;
|
|
3617
3617
|
// Inline function 'kotlin.ULong.and' call
|
|
3618
|
-
var other_4 = this.
|
|
3618
|
+
var other_4 = this.i13_1;
|
|
3619
3619
|
var tmp0_6 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_5), _ULong___get_data__impl__fggpzb(other_4)));
|
|
3620
3620
|
// Inline function 'kotlin.ULong.shr' call
|
|
3621
|
-
var bitCount_0 = this.
|
|
3621
|
+
var bitCount_0 = this.m13_1;
|
|
3622
3622
|
diff = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_6), bitCount_0));
|
|
3623
3623
|
i = i + 1 | 0;
|
|
3624
3624
|
}
|
|
@@ -3631,13 +3631,13 @@
|
|
|
3631
3631
|
var destination = ArrayList_init_$Create$();
|
|
3632
3632
|
var _iterator__ex2g4s = UIntArray__iterator_impl_tkdv7k(result);
|
|
3633
3633
|
while (_iterator__ex2g4s.m()) {
|
|
3634
|
-
var element = _iterator__ex2g4s.n().
|
|
3634
|
+
var element = _iterator__ex2g4s.n().ze_1;
|
|
3635
3635
|
if (element === _UInt___init__impl__l7qpdl(0)) {
|
|
3636
3636
|
destination.j(new UInt(element));
|
|
3637
3637
|
}
|
|
3638
3638
|
}
|
|
3639
3639
|
if (destination.o()) {
|
|
3640
|
-
return this.
|
|
3640
|
+
return this.n13_1;
|
|
3641
3641
|
}
|
|
3642
3642
|
// Inline function 'kotlin.collections.indexOfLast' call
|
|
3643
3643
|
var tmp0_7 = _UIntArray___get_storage__impl__92a0v0(result);
|
|
@@ -3663,7 +3663,7 @@
|
|
|
3663
3663
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
3664
3664
|
return _UIntArray___init__impl__ghjpc6_0(copyOfRange(_UIntArray___get_storage__impl__92a0v0(result), 0, firstEmpty));
|
|
3665
3665
|
};
|
|
3666
|
-
protoOf(BigInteger32Arithmetic).
|
|
3666
|
+
protoOf(BigInteger32Arithmetic).i14 = function (first, second) {
|
|
3667
3667
|
var result = _UIntArray___init__impl__ghjpc6(_UIntArray___get_size__impl__r6l8ci(first) + 1 | 0);
|
|
3668
3668
|
var product;
|
|
3669
3669
|
var sum;
|
|
@@ -3697,7 +3697,7 @@
|
|
|
3697
3697
|
var tmp$ret$8 = bitwiseAnd(fromInt(value_1), new Long(-1, 0));
|
|
3698
3698
|
var tmp0_0 = _ULong___init__impl__c78o9k(tmp$ret$8);
|
|
3699
3699
|
// Inline function 'kotlin.ULong.and' call
|
|
3700
|
-
var other_0 = this.
|
|
3700
|
+
var other_0 = this.g13_1;
|
|
3701
3701
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3702
3702
|
var this_2 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(product), _ULong___get_data__impl__fggpzb(other_0)));
|
|
3703
3703
|
// Inline function 'kotlin.toUInt' call
|
|
@@ -3714,7 +3714,7 @@
|
|
|
3714
3714
|
sum = _ULong___init__impl__c78o9k(add(_ULong___get_data__impl__fggpzb(tmp0_0), _ULong___get_data__impl__fggpzb(other_1)));
|
|
3715
3715
|
var tmp0_1 = sum;
|
|
3716
3716
|
// Inline function 'kotlin.ULong.and' call
|
|
3717
|
-
var other_2 = this.
|
|
3717
|
+
var other_2 = this.g13_1;
|
|
3718
3718
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3719
3719
|
var this_5 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_1), _ULong___get_data__impl__fggpzb(other_2)));
|
|
3720
3720
|
// Inline function 'kotlin.toUInt' call
|
|
@@ -3723,11 +3723,11 @@
|
|
|
3723
3723
|
UIntArray__set_impl_7f2zu2(result, i, tmp$ret$21);
|
|
3724
3724
|
var tmp0_2 = sum;
|
|
3725
3725
|
// Inline function 'kotlin.ULong.shr' call
|
|
3726
|
-
var bitCount = this.
|
|
3726
|
+
var bitCount = this.l13_1;
|
|
3727
3727
|
sum = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_2), bitCount));
|
|
3728
3728
|
var tmp = i + 1 | 0;
|
|
3729
3729
|
// Inline function 'kotlin.ULong.shr' call
|
|
3730
|
-
var bitCount_0 = this.
|
|
3730
|
+
var bitCount_0 = this.l13_1;
|
|
3731
3731
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3732
3732
|
var this_7 = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(product), bitCount_0));
|
|
3733
3733
|
// Inline function 'kotlin.toUInt' call
|
|
@@ -3743,14 +3743,14 @@
|
|
|
3743
3743
|
UIntArray__set_impl_7f2zu2(result, tmp, tmp$ret$28);
|
|
3744
3744
|
}
|
|
3745
3745
|
while (inductionVariable < last);
|
|
3746
|
-
return this.
|
|
3746
|
+
return this.x13(result);
|
|
3747
3747
|
};
|
|
3748
|
-
protoOf(BigInteger32Arithmetic).
|
|
3749
|
-
return this.
|
|
3748
|
+
protoOf(BigInteger32Arithmetic).j14 = function (first, second) {
|
|
3749
|
+
return this.k14(first, second);
|
|
3750
3750
|
};
|
|
3751
|
-
protoOf(BigInteger32Arithmetic).
|
|
3752
|
-
if (this.
|
|
3753
|
-
return new Pair(new UIntArray(this.
|
|
3751
|
+
protoOf(BigInteger32Arithmetic).k14 = function (unnormalizedDividend, unnormalizedDivisor) {
|
|
3752
|
+
if (this.l14(unnormalizedDivisor, unnormalizedDividend) > 0) {
|
|
3753
|
+
return new Pair(new UIntArray(this.n13_1), new UIntArray(unnormalizedDividend));
|
|
3754
3754
|
}
|
|
3755
3755
|
if (_UIntArray___get_size__impl__r6l8ci(unnormalizedDivisor) === 1 && _UIntArray___get_size__impl__r6l8ci(unnormalizedDividend) === 1) {
|
|
3756
3756
|
var tmp0 = UIntArray__get_impl_gp5kza(unnormalizedDividend, 0);
|
|
@@ -3759,36 +3759,36 @@
|
|
|
3759
3759
|
var tmp$ret$0 = uintDivide(tmp0, other);
|
|
3760
3760
|
// Inline function 'kotlin.uintArrayOf' call
|
|
3761
3761
|
var tmp$ret$1 = _UIntArray___init__impl__ghjpc6_0(new Int32Array([tmp$ret$0]));
|
|
3762
|
-
var tmp = this.
|
|
3762
|
+
var tmp = this.x13(tmp$ret$1);
|
|
3763
3763
|
var tmp0_0 = UIntArray__get_impl_gp5kza(unnormalizedDividend, 0);
|
|
3764
3764
|
// Inline function 'kotlin.UInt.rem' call
|
|
3765
3765
|
var other_0 = UIntArray__get_impl_gp5kza(unnormalizedDivisor, 0);
|
|
3766
3766
|
var tmp$ret$2 = uintRemainder(tmp0_0, other_0);
|
|
3767
3767
|
// Inline function 'kotlin.uintArrayOf' call
|
|
3768
3768
|
var tmp$ret$3 = _UIntArray___init__impl__ghjpc6_0(new Int32Array([tmp$ret$2]));
|
|
3769
|
-
return new Pair(new UIntArray(tmp), new UIntArray(this.
|
|
3769
|
+
return new Pair(new UIntArray(tmp), new UIntArray(this.x13(tmp$ret$3)));
|
|
3770
3770
|
}
|
|
3771
|
-
var bitPrecision = this.
|
|
3771
|
+
var bitPrecision = this.v13(unnormalizedDividend) - this.v13(unnormalizedDivisor) | 0;
|
|
3772
3772
|
if (bitPrecision === 0) {
|
|
3773
3773
|
// Inline function 'kotlin.uintArrayOf' call
|
|
3774
3774
|
var tmp$ret$4 = _UIntArray___init__impl__ghjpc6_0(new Int32Array([_UInt___init__impl__l7qpdl(1)]));
|
|
3775
|
-
return new Pair(new UIntArray(tmp$ret$4), new UIntArray(this.
|
|
3775
|
+
return new Pair(new UIntArray(tmp$ret$4), new UIntArray(this.m14(unnormalizedDividend, unnormalizedDivisor)));
|
|
3776
3776
|
}
|
|
3777
|
-
var _destruct__k2r9zo = this.
|
|
3778
|
-
var dividend = _destruct__k2r9zo.
|
|
3779
|
-
var divisor = _destruct__k2r9zo.
|
|
3780
|
-
var normalizationShift = _destruct__k2r9zo.
|
|
3777
|
+
var _destruct__k2r9zo = this.b14(unnormalizedDividend, unnormalizedDivisor);
|
|
3778
|
+
var dividend = _destruct__k2r9zo.ub().ef_1;
|
|
3779
|
+
var divisor = _destruct__k2r9zo.vb().ef_1;
|
|
3780
|
+
var normalizationShift = _destruct__k2r9zo.ue();
|
|
3781
3781
|
var dividendSize = _UIntArray___get_size__impl__r6l8ci(dividend);
|
|
3782
3782
|
var divisorSize = _UIntArray___get_size__impl__r6l8ci(divisor);
|
|
3783
3783
|
var wordPrecision = dividendSize - divisorSize | 0;
|
|
3784
3784
|
var qjhat;
|
|
3785
3785
|
var reconstructedQuotient;
|
|
3786
3786
|
var quotient = _UIntArray___init__impl__ghjpc6(wordPrecision);
|
|
3787
|
-
var divisorTimesBaseToPowerOfM = this.
|
|
3788
|
-
if (this.
|
|
3787
|
+
var divisorTimesBaseToPowerOfM = this.c14(divisor, imul(wordPrecision, this.l13_1));
|
|
3788
|
+
if (this.l14(dividend, divisorTimesBaseToPowerOfM) >= 0) {
|
|
3789
3789
|
quotient = _UIntArray___init__impl__ghjpc6(wordPrecision + 1 | 0);
|
|
3790
3790
|
UIntArray__set_impl_7f2zu2(quotient, wordPrecision, _UInt___init__impl__l7qpdl(1));
|
|
3791
|
-
dividend = this.
|
|
3791
|
+
dividend = this.m14(dividend, divisorTimesBaseToPowerOfM);
|
|
3792
3792
|
}
|
|
3793
3793
|
var inductionVariable = wordPrecision - 1 | 0;
|
|
3794
3794
|
if (0 <= inductionVariable)
|
|
@@ -3805,7 +3805,7 @@
|
|
|
3805
3805
|
var tmp$ret$5 = bitwiseAnd(fromInt(value), new Long(-1, 0));
|
|
3806
3806
|
var tmp0_1 = _ULong___init__impl__c78o9k(tmp$ret$5);
|
|
3807
3807
|
// Inline function 'kotlin.ULong.shl' call
|
|
3808
|
-
var bitCount = this.
|
|
3808
|
+
var bitCount = this.l13_1;
|
|
3809
3809
|
var tmp0_2 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(tmp0_1), bitCount));
|
|
3810
3810
|
// Inline function 'kotlin.ULong.plus' call
|
|
3811
3811
|
// Inline function 'kotlin.UInt.toULong' call
|
|
@@ -3848,7 +3848,7 @@
|
|
|
3848
3848
|
qjhat = tmp_0;
|
|
3849
3849
|
var tmp_2 = quotient;
|
|
3850
3850
|
var tmp_3;
|
|
3851
|
-
var tmp0_5 = this.
|
|
3851
|
+
var tmp0_5 = this.k13_1;
|
|
3852
3852
|
// Inline function 'kotlin.UInt.minus' call
|
|
3853
3853
|
var other_4 = _ULong___init__impl__c78o9k(new Long(1, 0));
|
|
3854
3854
|
// Inline function 'kotlin.UInt.toULong' call
|
|
@@ -3866,51 +3866,51 @@
|
|
|
3866
3866
|
var this_5 = _ULong___get_data__impl__fggpzb(qjhat);
|
|
3867
3867
|
tmp_3 = _UInt___init__impl__l7qpdl(convertToInt(this_5));
|
|
3868
3868
|
} else {
|
|
3869
|
-
var tmp0_6 = this.
|
|
3869
|
+
var tmp0_6 = this.k13_1;
|
|
3870
3870
|
// Inline function 'kotlin.UInt.minus' call
|
|
3871
3871
|
var other_6 = _UInt___init__impl__l7qpdl(1);
|
|
3872
3872
|
tmp_3 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_6) - _UInt___get_data__impl__f0vqqw(other_6) | 0);
|
|
3873
3873
|
}
|
|
3874
3874
|
UIntArray__set_impl_7f2zu2(tmp_2, j, tmp_3);
|
|
3875
|
-
reconstructedQuotient = this.
|
|
3876
|
-
while (this.
|
|
3875
|
+
reconstructedQuotient = this.c14(this.n14(divisor, UIntArray__get_impl_gp5kza(quotient, j)), imul(j, this.l13_1));
|
|
3876
|
+
while (this.l14(reconstructedQuotient, dividend) > 0) {
|
|
3877
3877
|
var tmp_4 = quotient;
|
|
3878
3878
|
var tmp0_7 = UIntArray__get_impl_gp5kza(quotient, j);
|
|
3879
3879
|
// Inline function 'kotlin.UInt.minus' call
|
|
3880
3880
|
var other_7 = _UInt___init__impl__l7qpdl(1);
|
|
3881
3881
|
var tmp$ret$32 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_7) - _UInt___get_data__impl__f0vqqw(other_7) | 0);
|
|
3882
3882
|
UIntArray__set_impl_7f2zu2(tmp_4, j, tmp$ret$32);
|
|
3883
|
-
reconstructedQuotient = this.
|
|
3883
|
+
reconstructedQuotient = this.c14(this.n14(divisor, UIntArray__get_impl_gp5kza(quotient, j)), imul(j, this.l13_1));
|
|
3884
3884
|
}
|
|
3885
|
-
dividend = this.
|
|
3885
|
+
dividend = this.m14(dividend, reconstructedQuotient);
|
|
3886
3886
|
}
|
|
3887
3887
|
while (0 <= inductionVariable);
|
|
3888
|
-
while (this.
|
|
3889
|
-
quotient = this.
|
|
3890
|
-
dividend = this.
|
|
3888
|
+
while (this.l14(dividend, divisor) >= 0) {
|
|
3889
|
+
quotient = this.o14(quotient, _UInt___init__impl__l7qpdl(1));
|
|
3890
|
+
dividend = this.m14(dividend, divisor);
|
|
3891
3891
|
}
|
|
3892
|
-
var denormRemainder = this.
|
|
3893
|
-
return new Pair(new UIntArray(this.
|
|
3892
|
+
var denormRemainder = this.d14(dividend, normalizationShift);
|
|
3893
|
+
return new Pair(new UIntArray(this.x13(quotient)), new UIntArray(denormRemainder));
|
|
3894
3894
|
};
|
|
3895
|
-
protoOf(BigInteger32Arithmetic).
|
|
3896
|
-
return this.
|
|
3895
|
+
protoOf(BigInteger32Arithmetic).c14 = function (_this__u8e3s4, places) {
|
|
3896
|
+
return this.z13(_this__u8e3s4, places);
|
|
3897
3897
|
};
|
|
3898
|
-
protoOf(BigInteger32Arithmetic).
|
|
3899
|
-
return this.
|
|
3898
|
+
protoOf(BigInteger32Arithmetic).e14 = function (_this__u8e3s4, places) {
|
|
3899
|
+
return this.a14(_this__u8e3s4, places);
|
|
3900
3900
|
};
|
|
3901
|
-
protoOf(BigInteger32Arithmetic).
|
|
3902
|
-
return this.
|
|
3901
|
+
protoOf(BigInteger32Arithmetic).m14 = function (_this__u8e3s4, other) {
|
|
3902
|
+
return this.h14(_this__u8e3s4, other);
|
|
3903
3903
|
};
|
|
3904
|
-
protoOf(BigInteger32Arithmetic).
|
|
3904
|
+
protoOf(BigInteger32Arithmetic).o14 = function (_this__u8e3s4, other) {
|
|
3905
3905
|
// Inline function 'kotlin.uintArrayOf' call
|
|
3906
3906
|
var tmp$ret$0 = _UIntArray___init__impl__ghjpc6_0(new Int32Array([other]));
|
|
3907
|
-
return this.
|
|
3907
|
+
return this.g14(_this__u8e3s4, tmp$ret$0);
|
|
3908
3908
|
};
|
|
3909
|
-
protoOf(BigInteger32Arithmetic).
|
|
3910
|
-
return this.
|
|
3909
|
+
protoOf(BigInteger32Arithmetic).n14 = function (_this__u8e3s4, other) {
|
|
3910
|
+
return this.i14(_this__u8e3s4, other);
|
|
3911
3911
|
};
|
|
3912
|
-
protoOf(BigInteger32Arithmetic).
|
|
3913
|
-
return this.
|
|
3912
|
+
protoOf(BigInteger32Arithmetic).l14 = function (_this__u8e3s4, other) {
|
|
3913
|
+
return this.f14(_this__u8e3s4, other);
|
|
3914
3914
|
};
|
|
3915
3915
|
var BigInteger32Arithmetic_instance;
|
|
3916
3916
|
function BigInteger32Arithmetic_getInstance() {
|
|
@@ -3920,18 +3920,18 @@
|
|
|
3920
3920
|
}
|
|
3921
3921
|
function multiplyWithCorrectedSize($this, first, second, firstCorrectedSize, secondCorrectedSize) {
|
|
3922
3922
|
if (isZero($this, first) || isZero($this, second)) {
|
|
3923
|
-
return $this.
|
|
3923
|
+
return $this.f11_1;
|
|
3924
3924
|
}
|
|
3925
3925
|
if ((firstCorrectedSize >= 120 || secondCorrectedSize >= 120) && (firstCorrectedSize <= 15000 || secondCorrectedSize < 15000)) {
|
|
3926
3926
|
return karatsubaMultiplyWithCorrectedSizes($this, first, second, firstCorrectedSize, secondCorrectedSize);
|
|
3927
3927
|
}
|
|
3928
3928
|
if (firstCorrectedSize >= 15000 && secondCorrectedSize >= 15000) {
|
|
3929
|
-
return $this.
|
|
3929
|
+
return $this.p14(first, second);
|
|
3930
3930
|
}
|
|
3931
3931
|
return basecaseMultiplyWithCorrectedSize($this, first, second, firstCorrectedSize, secondCorrectedSize);
|
|
3932
3932
|
}
|
|
3933
3933
|
function basecaseMultiplyWithCorrectedSize($this, first, second, firstCorrectedSizeStart, secondCorrectedSizeStart) {
|
|
3934
|
-
var resultArray = $this.
|
|
3934
|
+
var resultArray = $this.f11_1;
|
|
3935
3935
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
3936
3936
|
var index = 0;
|
|
3937
3937
|
var _iterator__ex2g4s = ULongArray__iterator_impl_cq4d2h(second);
|
|
@@ -3942,7 +3942,7 @@
|
|
|
3942
3942
|
if (_unary__edvuaz > secondCorrectedSizeStart) {
|
|
3943
3943
|
new ULongArray(resultArray);
|
|
3944
3944
|
} else {
|
|
3945
|
-
resultArray = BigInteger63Arithmetic_getInstance().
|
|
3945
|
+
resultArray = BigInteger63Arithmetic_getInstance().s14(resultArray, BigInteger63Arithmetic_getInstance().r14(BigInteger63Arithmetic_getInstance().q14(first, item), imul(_unary__edvuaz, BigInteger63Arithmetic_getInstance().k11_1)));
|
|
3946
3946
|
}
|
|
3947
3947
|
}
|
|
3948
3948
|
return resultArray;
|
|
@@ -3952,44 +3952,44 @@
|
|
|
3952
3952
|
var second = new SignedULongArray(secondUnsigned, true);
|
|
3953
3953
|
// Inline function 'kotlin.math.max' call
|
|
3954
3954
|
var halfLength = (Math.max(firstCorrectedSize, secondCorrectedSize) + 1 | 0) / 2 | 0;
|
|
3955
|
-
var mask = $this.
|
|
3956
|
-
var firstLower = $this.
|
|
3957
|
-
var firstHigher = $this.
|
|
3958
|
-
var secondLower = $this.
|
|
3959
|
-
var secondHigher = $this.
|
|
3960
|
-
var higherProduct = $this.
|
|
3961
|
-
var lowerProduct = $this.
|
|
3962
|
-
var middleProduct = $this.
|
|
3963
|
-
var result = $this.
|
|
3964
|
-
return result.
|
|
3955
|
+
var mask = $this.t14($this.r14($this.g11_1, imul(halfLength, $this.l11_1)), _ULong___init__impl__c78o9k(new Long(1, 0)));
|
|
3956
|
+
var firstLower = $this.u14(first, mask);
|
|
3957
|
+
var firstHigher = $this.v14(first, imul(halfLength, $this.l11_1));
|
|
3958
|
+
var secondLower = $this.u14(second, mask);
|
|
3959
|
+
var secondHigher = $this.v14(second, imul(halfLength, $this.l11_1));
|
|
3960
|
+
var higherProduct = $this.w14(firstHigher, secondHigher);
|
|
3961
|
+
var lowerProduct = $this.w14(firstLower, secondLower);
|
|
3962
|
+
var middleProduct = $this.w14($this.x14(firstHigher, firstLower), $this.x14(secondHigher, secondLower));
|
|
3963
|
+
var result = $this.x14($this.x14($this.y14(higherProduct, imul(imul(2, $this.l11_1), halfLength)), $this.y14($this.z14($this.z14(middleProduct, higherProduct), lowerProduct), imul($this.l11_1, halfLength))), lowerProduct);
|
|
3964
|
+
return result.a15_1;
|
|
3965
3965
|
}
|
|
3966
3966
|
function isZero($this, _this__u8e3s4) {
|
|
3967
|
-
if (equals(_this__u8e3s4, $this.
|
|
3967
|
+
if (equals(_this__u8e3s4, $this.f11_1))
|
|
3968
3968
|
return true;
|
|
3969
3969
|
if (_ULongArray___get_size__impl__ju6dtr(_this__u8e3s4) === 1 && equals(ULongArray__get_impl_pr71q9(_this__u8e3s4, 0), _ULong___init__impl__c78o9k(new Long(0, 0))))
|
|
3970
3970
|
return true;
|
|
3971
|
-
if ((_ULongArray___get_size__impl__ju6dtr(_this__u8e3s4) - $this.
|
|
3971
|
+
if ((_ULongArray___get_size__impl__ju6dtr(_this__u8e3s4) - $this.c15(_this__u8e3s4) | 0) === 0)
|
|
3972
3972
|
return true;
|
|
3973
3973
|
return false;
|
|
3974
3974
|
}
|
|
3975
3975
|
function SignedULongArray(unsignedValue, sign) {
|
|
3976
|
-
this.
|
|
3977
|
-
this.
|
|
3976
|
+
this.a15_1 = unsignedValue;
|
|
3977
|
+
this.b15_1 = sign;
|
|
3978
3978
|
}
|
|
3979
|
-
protoOf(SignedULongArray).
|
|
3979
|
+
protoOf(SignedULongArray).d15 = function (unsignedValue, sign) {
|
|
3980
3980
|
return new SignedULongArray(unsignedValue, sign);
|
|
3981
3981
|
};
|
|
3982
|
-
protoOf(SignedULongArray).
|
|
3983
|
-
unsignedValue = unsignedValue === VOID ? this.
|
|
3984
|
-
sign = sign === VOID ? this.
|
|
3985
|
-
return $super === VOID ? this.
|
|
3982
|
+
protoOf(SignedULongArray).e15 = function (unsignedValue, sign, $super) {
|
|
3983
|
+
unsignedValue = unsignedValue === VOID ? this.a15_1 : unsignedValue;
|
|
3984
|
+
sign = sign === VOID ? this.b15_1 : sign;
|
|
3985
|
+
return $super === VOID ? this.d15(unsignedValue, sign) : $super.d15.call(this, new ULongArray(unsignedValue), sign);
|
|
3986
3986
|
};
|
|
3987
3987
|
protoOf(SignedULongArray).toString = function () {
|
|
3988
|
-
return 'SignedULongArray(unsignedValue=' + ULongArray__toString_impl_wqk1p5(this.
|
|
3988
|
+
return 'SignedULongArray(unsignedValue=' + ULongArray__toString_impl_wqk1p5(this.a15_1) + ', sign=' + this.b15_1 + ')';
|
|
3989
3989
|
};
|
|
3990
3990
|
protoOf(SignedULongArray).hashCode = function () {
|
|
3991
|
-
var result = ULongArray__hashCode_impl_aze4wa(this.
|
|
3992
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3991
|
+
var result = ULongArray__hashCode_impl_aze4wa(this.a15_1);
|
|
3992
|
+
result = imul(result, 31) + getBooleanHashCode(this.b15_1) | 0;
|
|
3993
3993
|
return result;
|
|
3994
3994
|
};
|
|
3995
3995
|
protoOf(SignedULongArray).equals = function (other) {
|
|
@@ -3998,69 +3998,69 @@
|
|
|
3998
3998
|
if (!(other instanceof SignedULongArray))
|
|
3999
3999
|
return false;
|
|
4000
4000
|
var tmp0_other_with_cast = other instanceof SignedULongArray ? other : THROW_CCE();
|
|
4001
|
-
if (!equals(this.
|
|
4001
|
+
if (!equals(this.a15_1, tmp0_other_with_cast.a15_1))
|
|
4002
4002
|
return false;
|
|
4003
|
-
if (!(this.
|
|
4003
|
+
if (!(this.b15_1 === tmp0_other_with_cast.b15_1))
|
|
4004
4004
|
return false;
|
|
4005
4005
|
return true;
|
|
4006
4006
|
};
|
|
4007
4007
|
function signedAdd($this, first, second) {
|
|
4008
4008
|
var tmp;
|
|
4009
|
-
if (!!(first.
|
|
4009
|
+
if (!!(first.b15_1 ^ second.b15_1)) {
|
|
4010
4010
|
var tmp_0;
|
|
4011
|
-
if ($this.
|
|
4012
|
-
tmp_0 = new SignedULongArray($this.
|
|
4011
|
+
if ($this.l12(first.a15_1, second.a15_1) > 0) {
|
|
4012
|
+
tmp_0 = new SignedULongArray($this.f15(first.a15_1, second.a15_1), first.b15_1);
|
|
4013
4013
|
} else {
|
|
4014
|
-
tmp_0 = new SignedULongArray($this.
|
|
4014
|
+
tmp_0 = new SignedULongArray($this.f15(second.a15_1, first.a15_1), second.b15_1);
|
|
4015
4015
|
}
|
|
4016
4016
|
tmp = tmp_0;
|
|
4017
4017
|
} else {
|
|
4018
|
-
tmp = new SignedULongArray($this.
|
|
4018
|
+
tmp = new SignedULongArray($this.s14(first.a15_1, second.a15_1), first.b15_1);
|
|
4019
4019
|
}
|
|
4020
4020
|
return tmp;
|
|
4021
4021
|
}
|
|
4022
4022
|
function signedSubtract($this, first, second) {
|
|
4023
|
-
return signedAdd($this, first, second.
|
|
4023
|
+
return signedAdd($this, first, second.e15(VOID, !second.b15_1));
|
|
4024
4024
|
}
|
|
4025
4025
|
function signedMultiply($this, first, second) {
|
|
4026
|
-
return new SignedULongArray($this.
|
|
4026
|
+
return new SignedULongArray($this.g15(first.a15_1, second.a15_1), !!!(first.b15_1 ^ second.b15_1));
|
|
4027
4027
|
}
|
|
4028
4028
|
function signedDivide($this, first, second) {
|
|
4029
|
-
return new SignedULongArray($this.
|
|
4029
|
+
return new SignedULongArray($this.h15(first.a15_1, second.a15_1), !!!(first.b15_1 ^ second.b15_1));
|
|
4030
4030
|
}
|
|
4031
4031
|
function BigInteger63Arithmetic() {
|
|
4032
4032
|
BigInteger63Arithmetic_instance = this;
|
|
4033
4033
|
var tmp = this;
|
|
4034
4034
|
// Inline function 'kotlin.longArrayOf' call
|
|
4035
|
-
tmp.
|
|
4035
|
+
tmp.e11_1 = longArrayOf([]);
|
|
4036
4036
|
var tmp_0 = this;
|
|
4037
4037
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
4038
|
-
tmp_0.
|
|
4038
|
+
tmp_0.f11_1 = _ULongArray___init__impl__twm1l3(longArrayOf([_ULong___init__impl__c78o9k(new Long(0, 0))]));
|
|
4039
4039
|
var tmp_1 = this;
|
|
4040
4040
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
4041
|
-
tmp_1.
|
|
4041
|
+
tmp_1.g11_1 = _ULongArray___init__impl__twm1l3(longArrayOf([_ULong___init__impl__c78o9k(new Long(1, 0))]));
|
|
4042
4042
|
var tmp_2 = this;
|
|
4043
4043
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
4044
|
-
tmp_2.
|
|
4044
|
+
tmp_2.h11_1 = _ULongArray___init__impl__twm1l3(longArrayOf([_ULong___init__impl__c78o9k(new Long(2, 0))]));
|
|
4045
4045
|
var tmp_3 = this;
|
|
4046
4046
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
4047
|
-
tmp_3.
|
|
4047
|
+
tmp_3.i11_1 = _ULongArray___init__impl__twm1l3(longArrayOf([_ULong___init__impl__c78o9k(new Long(10, 0))]));
|
|
4048
4048
|
var tmp_4 = this;
|
|
4049
4049
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
4050
|
-
tmp_4.
|
|
4050
|
+
tmp_4.j11_1 = _ULongArray___init__impl__twm1l3(longArrayOf([_ULong___init__impl__c78o9k(new Long(-1431655765, 715827882))]));
|
|
4051
|
+
this.k11_1 = 63;
|
|
4051
4052
|
this.l11_1 = 63;
|
|
4052
|
-
this.m11_1 =
|
|
4053
|
-
this.n11_1 = _ULong___init__impl__c78o9k(new Long(-1, 2147483647));
|
|
4053
|
+
this.m11_1 = _ULong___init__impl__c78o9k(new Long(-1, 2147483647));
|
|
4054
4054
|
var tmp_5 = this;
|
|
4055
4055
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
4056
|
-
tmp_5.
|
|
4057
|
-
this.
|
|
4058
|
-
this.
|
|
4059
|
-
this.
|
|
4060
|
-
this.
|
|
4061
|
-
this.
|
|
4062
|
-
this.
|
|
4063
|
-
this.
|
|
4056
|
+
tmp_5.n11_1 = _ULongArray___init__impl__twm1l3(longArrayOf([_ULong___init__impl__c78o9k(new Long(-1, 2147483647))]));
|
|
4057
|
+
this.o11_1 = _ULong___init__impl__c78o9k(new Long(-1, 0));
|
|
4058
|
+
this.p11_1 = _ULong___init__impl__c78o9k(new Long(0, 2147483647));
|
|
4059
|
+
this.q11_1 = _ULong___init__impl__c78o9k(new Long(0, -2147483648));
|
|
4060
|
+
this.r11_1 = 120;
|
|
4061
|
+
this.s11_1 = 15000;
|
|
4062
|
+
this.t11_1 = false;
|
|
4063
|
+
this.u11_1 = new SignedULongArray(BigInteger63Arithmetic_getInstance().h11_1, true);
|
|
4064
4064
|
var tmp_6 = this;
|
|
4065
4065
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
4066
4066
|
var tmp_7 = _ULongArray___init__impl__twm1l3(longArrayOf([_ULong___init__impl__c78o9k(new Long(1, 0))]));
|
|
@@ -4267,8 +4267,11 @@
|
|
|
4267
4267
|
// Inline function 'kotlin.arrayOf' call
|
|
4268
4268
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
4269
4269
|
// Inline function 'kotlin.js.asDynamic' call
|
|
4270
|
-
tmp_6.
|
|
4270
|
+
tmp_6.v11_1 = [new ULongArray(tmp_7), new ULongArray(tmp_8), new ULongArray(tmp_9), new ULongArray(tmp_10), new ULongArray(tmp_11), new ULongArray(tmp_12), new ULongArray(tmp_13), new ULongArray(tmp_14), new ULongArray(tmp_15), new ULongArray(tmp_16), new ULongArray(tmp_17), new ULongArray(tmp_18), new ULongArray(tmp_19), new ULongArray(tmp_20), new ULongArray(tmp_21), new ULongArray(tmp_22), new ULongArray(tmp_23), new ULongArray(tmp_24), new ULongArray(tmp_25), new ULongArray(tmp_26), new ULongArray(tmp_27), new ULongArray(tmp_28), new ULongArray(tmp_29), new ULongArray(tmp_30), new ULongArray(tmp_31), new ULongArray(tmp_32), new ULongArray(tmp_33), new ULongArray(tmp_34), new ULongArray(tmp_35), new ULongArray(tmp_36), new ULongArray(tmp_37), new ULongArray(tmp_38), new ULongArray(tmp_39), new ULongArray(tmp_40), new ULongArray(tmp_41), new ULongArray(tmp_42), new ULongArray(tmp_43), new ULongArray(tmp_44), new ULongArray(tmp_45), new ULongArray(tmp_46), new ULongArray(tmp_47), new ULongArray(tmp_48), new ULongArray(tmp_49), new ULongArray(tmp_50), new ULongArray(tmp_51), new ULongArray(tmp_52), new ULongArray(tmp_53), new ULongArray(tmp_54), new ULongArray(tmp_55), new ULongArray(tmp_56), new ULongArray(tmp_57), new ULongArray(tmp_58), new ULongArray(tmp_59), new ULongArray(tmp_60), new ULongArray(tmp_61), new ULongArray(tmp_62), new ULongArray(tmp_63), new ULongArray(tmp_64), new ULongArray(tmp_65), new ULongArray(tmp_66), new ULongArray(tmp_67), new ULongArray(tmp_68), new ULongArray(tmp_69), new ULongArray(tmp_70), new ULongArray(tmp_71), new ULongArray(tmp_72), new ULongArray(tmp_73), new ULongArray(tmp_74), new ULongArray(tmp_75), new ULongArray(tmp_76), new ULongArray(tmp_77), new ULongArray(tmp_78), new ULongArray(tmp_79), new ULongArray(tmp_80), new ULongArray(tmp_81), new ULongArray(tmp_82), new ULongArray(tmp_83), new ULongArray(tmp_84), new ULongArray(tmp_85), new ULongArray(tmp_86), new ULongArray(tmp_87), new ULongArray(tmp_88), new ULongArray(tmp_89), new ULongArray(tmp_90), new ULongArray(tmp_91), new ULongArray(tmp_92), new ULongArray(tmp_93), new ULongArray(tmp_94), new ULongArray(tmp_95), new ULongArray(tmp_96), new ULongArray(tmp_97), new ULongArray(tmp_98), new ULongArray(tmp_99), new ULongArray(tmp_100), new ULongArray(tmp_101), new ULongArray(tmp_102), new ULongArray(tmp_103), new ULongArray(tmp_104), new ULongArray(tmp_105), new ULongArray(tmp_106), new ULongArray(tmp$ret$107)];
|
|
4271
4271
|
}
|
|
4272
|
+
protoOf(BigInteger63Arithmetic).p10 = function () {
|
|
4273
|
+
return this.f11_1;
|
|
4274
|
+
};
|
|
4272
4275
|
protoOf(BigInteger63Arithmetic).q10 = function () {
|
|
4273
4276
|
return this.g11_1;
|
|
4274
4277
|
};
|
|
@@ -4278,10 +4281,7 @@
|
|
|
4278
4281
|
protoOf(BigInteger63Arithmetic).s10 = function () {
|
|
4279
4282
|
return this.i11_1;
|
|
4280
4283
|
};
|
|
4281
|
-
protoOf(BigInteger63Arithmetic).
|
|
4282
|
-
return this.j11_1;
|
|
4283
|
-
};
|
|
4284
|
-
protoOf(BigInteger63Arithmetic).j15 = function (value) {
|
|
4284
|
+
protoOf(BigInteger63Arithmetic).i15 = function (value) {
|
|
4285
4285
|
var x = value;
|
|
4286
4286
|
var y;
|
|
4287
4287
|
var n = 63;
|
|
@@ -4331,7 +4331,7 @@
|
|
|
4331
4331
|
var this_6 = x;
|
|
4332
4332
|
return tmp - convertToInt(_ULong___get_data__impl__fggpzb(this_6)) | 0;
|
|
4333
4333
|
};
|
|
4334
|
-
protoOf(BigInteger63Arithmetic).
|
|
4334
|
+
protoOf(BigInteger63Arithmetic).j15 = function (value) {
|
|
4335
4335
|
var x = value;
|
|
4336
4336
|
var y;
|
|
4337
4337
|
var n = 63;
|
|
@@ -4339,7 +4339,7 @@
|
|
|
4339
4339
|
var this_0 = x;
|
|
4340
4340
|
var tmp0 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_0), 32));
|
|
4341
4341
|
// Inline function 'kotlin.ULong.and' call
|
|
4342
|
-
var other = this.
|
|
4342
|
+
var other = this.m11_1;
|
|
4343
4343
|
y = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0), _ULong___get_data__impl__fggpzb(other)));
|
|
4344
4344
|
if (!equals(y, _ULong___init__impl__c78o9k(new Long(0, 0)))) {
|
|
4345
4345
|
n = n - 32 | 0;
|
|
@@ -4349,7 +4349,7 @@
|
|
|
4349
4349
|
var this_1 = x;
|
|
4350
4350
|
var tmp0_0 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_1), 16));
|
|
4351
4351
|
// Inline function 'kotlin.ULong.and' call
|
|
4352
|
-
var other_0 = this.
|
|
4352
|
+
var other_0 = this.m11_1;
|
|
4353
4353
|
y = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_0), _ULong___get_data__impl__fggpzb(other_0)));
|
|
4354
4354
|
if (!equals(y, _ULong___init__impl__c78o9k(new Long(0, 0)))) {
|
|
4355
4355
|
n = n - 16 | 0;
|
|
@@ -4359,7 +4359,7 @@
|
|
|
4359
4359
|
var this_2 = x;
|
|
4360
4360
|
var tmp0_1 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_2), 8));
|
|
4361
4361
|
// Inline function 'kotlin.ULong.and' call
|
|
4362
|
-
var other_1 = this.
|
|
4362
|
+
var other_1 = this.m11_1;
|
|
4363
4363
|
y = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_1), _ULong___get_data__impl__fggpzb(other_1)));
|
|
4364
4364
|
if (!equals(y, _ULong___init__impl__c78o9k(new Long(0, 0)))) {
|
|
4365
4365
|
n = n - 8 | 0;
|
|
@@ -4369,7 +4369,7 @@
|
|
|
4369
4369
|
var this_3 = x;
|
|
4370
4370
|
var tmp0_2 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_3), 4));
|
|
4371
4371
|
// Inline function 'kotlin.ULong.and' call
|
|
4372
|
-
var other_2 = this.
|
|
4372
|
+
var other_2 = this.m11_1;
|
|
4373
4373
|
y = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_2), _ULong___get_data__impl__fggpzb(other_2)));
|
|
4374
4374
|
if (!equals(y, _ULong___init__impl__c78o9k(new Long(0, 0)))) {
|
|
4375
4375
|
n = n - 4 | 0;
|
|
@@ -4379,7 +4379,7 @@
|
|
|
4379
4379
|
var this_4 = x;
|
|
4380
4380
|
var tmp0_3 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_4), 2));
|
|
4381
4381
|
// Inline function 'kotlin.ULong.and' call
|
|
4382
|
-
var other_3 = this.
|
|
4382
|
+
var other_3 = this.m11_1;
|
|
4383
4383
|
y = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_3), _ULong___get_data__impl__fggpzb(other_3)));
|
|
4384
4384
|
if (!equals(y, _ULong___init__impl__c78o9k(new Long(0, 0)))) {
|
|
4385
4385
|
n = n - 2 | 0;
|
|
@@ -4389,7 +4389,7 @@
|
|
|
4389
4389
|
var this_5 = x;
|
|
4390
4390
|
var tmp0_4 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_5), 1));
|
|
4391
4391
|
// Inline function 'kotlin.ULong.and' call
|
|
4392
|
-
var other_4 = this.
|
|
4392
|
+
var other_4 = this.m11_1;
|
|
4393
4393
|
y = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_4), _ULong___get_data__impl__fggpzb(other_4)));
|
|
4394
4394
|
if (!equals(y, _ULong___init__impl__c78o9k(new Long(0, 0)))) {
|
|
4395
4395
|
return n - 2 | 0;
|
|
@@ -4399,21 +4399,21 @@
|
|
|
4399
4399
|
var this_6 = x;
|
|
4400
4400
|
return tmp - convertToInt(_ULong___get_data__impl__fggpzb(this_6)) | 0;
|
|
4401
4401
|
};
|
|
4402
|
-
protoOf(BigInteger63Arithmetic).
|
|
4402
|
+
protoOf(BigInteger63Arithmetic).c10 = function (value) {
|
|
4403
4403
|
if (isZero(this, value)) {
|
|
4404
4404
|
return 0;
|
|
4405
4405
|
}
|
|
4406
|
-
var start = (_ULongArray___get_size__impl__ju6dtr(value) - this.
|
|
4406
|
+
var start = (_ULongArray___get_size__impl__ju6dtr(value) - this.c15(value) | 0) - 1 | 0;
|
|
4407
4407
|
var mostSignificant = ULongArray__get_impl_pr71q9(value, start);
|
|
4408
|
-
return this.
|
|
4408
|
+
return this.k15(mostSignificant) + imul(start, 63) | 0;
|
|
4409
4409
|
};
|
|
4410
|
-
protoOf(BigInteger63Arithmetic).
|
|
4411
|
-
return 63 - this.
|
|
4410
|
+
protoOf(BigInteger63Arithmetic).k15 = function (value) {
|
|
4411
|
+
return 63 - this.i15(value) | 0;
|
|
4412
4412
|
};
|
|
4413
|
-
protoOf(BigInteger63Arithmetic).
|
|
4414
|
-
return this.
|
|
4413
|
+
protoOf(BigInteger63Arithmetic).l15 = function (value) {
|
|
4414
|
+
return this.j15(value);
|
|
4415
4415
|
};
|
|
4416
|
-
protoOf(BigInteger63Arithmetic).
|
|
4416
|
+
protoOf(BigInteger63Arithmetic).b10 = function (value) {
|
|
4417
4417
|
if (isZero(this, value)) {
|
|
4418
4418
|
return 0;
|
|
4419
4419
|
}
|
|
@@ -4431,12 +4431,12 @@
|
|
|
4431
4431
|
if (zeroWordsCount === _ULongArray___get_size__impl__ju6dtr(value)) {
|
|
4432
4432
|
return 0;
|
|
4433
4433
|
}
|
|
4434
|
-
return this.
|
|
4434
|
+
return this.l15(ULongArray__get_impl_pr71q9(value, zeroWordsCount)) + imul(zeroWordsCount, 63) | 0;
|
|
4435
4435
|
};
|
|
4436
|
-
protoOf(BigInteger63Arithmetic).
|
|
4437
|
-
var correctedSize = _ULongArray___get_size__impl__ju6dtr(bigInteger) - this.
|
|
4436
|
+
protoOf(BigInteger63Arithmetic).w11 = function (bigInteger) {
|
|
4437
|
+
var correctedSize = _ULongArray___get_size__impl__ju6dtr(bigInteger) - this.c15(bigInteger) | 0;
|
|
4438
4438
|
if (correctedSize === 0) {
|
|
4439
|
-
return this.
|
|
4439
|
+
return this.f11_1;
|
|
4440
4440
|
}
|
|
4441
4441
|
if (_ULongArray___get_size__impl__ju6dtr(bigInteger) === correctedSize) {
|
|
4442
4442
|
return bigInteger;
|
|
@@ -4447,7 +4447,7 @@
|
|
|
4447
4447
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
4448
4448
|
return _ULongArray___init__impl__twm1l3(copyOfRange_0(_ULongArray___get_storage__impl__28e64j(bigInteger), 0, correctedSize));
|
|
4449
4449
|
};
|
|
4450
|
-
protoOf(BigInteger63Arithmetic).
|
|
4450
|
+
protoOf(BigInteger63Arithmetic).c15 = function (bigInteger) {
|
|
4451
4451
|
var lastNonEmptyIndex = _ULongArray___get_size__impl__ju6dtr(bigInteger) - 1 | 0;
|
|
4452
4452
|
if (lastNonEmptyIndex <= 0) {
|
|
4453
4453
|
return 0;
|
|
@@ -4462,7 +4462,7 @@
|
|
|
4462
4462
|
}
|
|
4463
4463
|
return (_ULongArray___get_size__impl__ju6dtr(bigInteger) - lastNonEmptyIndex | 0) - 1 | 0;
|
|
4464
4464
|
};
|
|
4465
|
-
protoOf(BigInteger63Arithmetic).
|
|
4465
|
+
protoOf(BigInteger63Arithmetic).m15 = function (operand, places) {
|
|
4466
4466
|
if (isZero(this, operand)) {
|
|
4467
4467
|
return operand;
|
|
4468
4468
|
}
|
|
@@ -4470,16 +4470,16 @@
|
|
|
4470
4470
|
return operand;
|
|
4471
4471
|
}
|
|
4472
4472
|
if (ULongArray__isEmpty_impl_c3yngu(operand)) {
|
|
4473
|
-
return this.
|
|
4473
|
+
return this.f11_1;
|
|
4474
4474
|
}
|
|
4475
|
-
var leadingZeroWords = this.
|
|
4475
|
+
var leadingZeroWords = this.c15(operand);
|
|
4476
4476
|
if (_ULongArray___get_size__impl__ju6dtr(operand) === leadingZeroWords) {
|
|
4477
|
-
return this.
|
|
4477
|
+
return this.f11_1;
|
|
4478
4478
|
}
|
|
4479
4479
|
var originalSize = _ULongArray___get_size__impl__ju6dtr(operand) - leadingZeroWords | 0;
|
|
4480
|
-
var leadingZeros = this.
|
|
4481
|
-
var shiftWords = places / this.
|
|
4482
|
-
var shiftBits = places % this.
|
|
4480
|
+
var leadingZeros = this.i15(ULongArray__get_impl_pr71q9(operand, originalSize - 1 | 0));
|
|
4481
|
+
var shiftWords = places / this.k11_1 | 0;
|
|
4482
|
+
var shiftBits = places % this.k11_1 | 0;
|
|
4483
4483
|
var tmp;
|
|
4484
4484
|
if (shiftBits > leadingZeros) {
|
|
4485
4485
|
tmp = shiftWords + 1 | 0;
|
|
@@ -4516,7 +4516,7 @@
|
|
|
4516
4516
|
var this_1 = ULongArray__get_impl_pr71q9(operand, tmp_7 - shiftWords | 0);
|
|
4517
4517
|
var tmp0 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_1), shiftBits));
|
|
4518
4518
|
// Inline function 'kotlin.ULong.and' call
|
|
4519
|
-
var other = BigInteger63Arithmetic_getInstance().
|
|
4519
|
+
var other = BigInteger63Arithmetic_getInstance().m11_1;
|
|
4520
4520
|
tmp_8 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0), _ULong___get_data__impl__fggpzb(other)));
|
|
4521
4521
|
} else {
|
|
4522
4522
|
var containsLower = shiftWords + 1 | 0;
|
|
@@ -4525,11 +4525,11 @@
|
|
|
4525
4525
|
var this_2 = ULongArray__get_impl_pr71q9(operand, tmp_7 - shiftWords | 0);
|
|
4526
4526
|
var tmp0_0 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_2), shiftBits));
|
|
4527
4527
|
// Inline function 'kotlin.ULong.and' call
|
|
4528
|
-
var other_0 = BigInteger63Arithmetic_getInstance().
|
|
4528
|
+
var other_0 = BigInteger63Arithmetic_getInstance().m11_1;
|
|
4529
4529
|
var tmp0_1 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_0), _ULong___get_data__impl__fggpzb(other_0)));
|
|
4530
4530
|
var tmp0_2 = ULongArray__get_impl_pr71q9(operand, (tmp_7 - shiftWords | 0) - 1 | 0);
|
|
4531
4531
|
// Inline function 'kotlin.ULong.shr' call
|
|
4532
|
-
var bitCount = BigInteger63Arithmetic_getInstance().
|
|
4532
|
+
var bitCount = BigInteger63Arithmetic_getInstance().k11_1 - shiftBits | 0;
|
|
4533
4533
|
// Inline function 'kotlin.ULong.or' call
|
|
4534
4534
|
var other_1 = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_2), bitCount));
|
|
4535
4535
|
tmp_8 = _ULong___init__impl__c78o9k(bitwiseOr(_ULong___get_data__impl__fggpzb(tmp0_1), _ULong___get_data__impl__fggpzb(other_1)));
|
|
@@ -4537,7 +4537,7 @@
|
|
|
4537
4537
|
if (tmp_7 === ((originalSize + wordsNeeded | 0) - 1 | 0)) {
|
|
4538
4538
|
var tmp0_3 = ULongArray__get_impl_pr71q9(operand, tmp_7 - wordsNeeded | 0);
|
|
4539
4539
|
// Inline function 'kotlin.ULong.shr' call
|
|
4540
|
-
var bitCount_0 = BigInteger63Arithmetic_getInstance().
|
|
4540
|
+
var bitCount_0 = BigInteger63Arithmetic_getInstance().k11_1 - shiftBits | 0;
|
|
4541
4541
|
tmp_8 = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_3), bitCount_0));
|
|
4542
4542
|
} else {
|
|
4543
4543
|
throw RuntimeException_init_$Create$('Invalid case ' + tmp_7);
|
|
@@ -4552,16 +4552,16 @@
|
|
|
4552
4552
|
}
|
|
4553
4553
|
return _ULongArray___init__impl__twm1l3(tmp_6);
|
|
4554
4554
|
};
|
|
4555
|
-
protoOf(BigInteger63Arithmetic).
|
|
4555
|
+
protoOf(BigInteger63Arithmetic).n15 = function (operand, places) {
|
|
4556
4556
|
if (ULongArray__isEmpty_impl_c3yngu(operand) || places === 0) {
|
|
4557
4557
|
return operand;
|
|
4558
4558
|
}
|
|
4559
|
-
var leadingZeroWords = this.
|
|
4559
|
+
var leadingZeroWords = this.c15(operand);
|
|
4560
4560
|
var realOperandSize = _ULongArray___get_size__impl__ju6dtr(operand) - leadingZeroWords | 0;
|
|
4561
|
-
var shiftBits = places % this.
|
|
4562
|
-
var wordsToDiscard = places / this.
|
|
4561
|
+
var shiftBits = places % this.k11_1 | 0;
|
|
4562
|
+
var wordsToDiscard = places / this.k11_1 | 0;
|
|
4563
4563
|
if (wordsToDiscard >= realOperandSize) {
|
|
4564
|
-
return this.
|
|
4564
|
+
return this.f11_1;
|
|
4565
4565
|
}
|
|
4566
4566
|
if (shiftBits === 0) {
|
|
4567
4567
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
@@ -4577,7 +4577,7 @@
|
|
|
4577
4577
|
}
|
|
4578
4578
|
var newLength = realOperandSize - wordsToDiscard | 0;
|
|
4579
4579
|
if (newLength === 0) {
|
|
4580
|
-
return this.
|
|
4580
|
+
return this.f11_1;
|
|
4581
4581
|
}
|
|
4582
4582
|
// Inline function 'kotlin.ULongArray' call
|
|
4583
4583
|
var tmp = 0;
|
|
@@ -4592,10 +4592,10 @@
|
|
|
4592
4592
|
var tmp0 = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(this_1), shiftBits));
|
|
4593
4593
|
var tmp0_0 = ULongArray__get_impl_pr71q9(operand, (tmp_2 + wordsToDiscard | 0) + 1 | 0);
|
|
4594
4594
|
// Inline function 'kotlin.ULong.shl' call
|
|
4595
|
-
var bitCount = BigInteger63Arithmetic_getInstance().
|
|
4595
|
+
var bitCount = BigInteger63Arithmetic_getInstance().k11_1 - shiftBits | 0;
|
|
4596
4596
|
var tmp0_1 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(tmp0_0), bitCount));
|
|
4597
4597
|
// Inline function 'kotlin.ULong.and' call
|
|
4598
|
-
var other = BigInteger63Arithmetic_getInstance().
|
|
4598
|
+
var other = BigInteger63Arithmetic_getInstance().m11_1;
|
|
4599
4599
|
// Inline function 'kotlin.ULong.or' call
|
|
4600
4600
|
var other_0 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_1), _ULong___get_data__impl__fggpzb(other)));
|
|
4601
4601
|
tmp_3 = _ULong___init__impl__c78o9k(bitwiseOr(_ULong___get_data__impl__fggpzb(tmp0), _ULong___get_data__impl__fggpzb(other_0)));
|
|
@@ -4614,7 +4614,7 @@
|
|
|
4614
4614
|
var result = _ULongArray___init__impl__twm1l3(tmp_1);
|
|
4615
4615
|
return result;
|
|
4616
4616
|
};
|
|
4617
|
-
protoOf(BigInteger63Arithmetic).
|
|
4617
|
+
protoOf(BigInteger63Arithmetic).o15 = function (first, second, firstStart, secondStart) {
|
|
4618
4618
|
if (firstStart > secondStart) {
|
|
4619
4619
|
return 1;
|
|
4620
4620
|
}
|
|
@@ -4652,12 +4652,12 @@
|
|
|
4652
4652
|
return -1;
|
|
4653
4653
|
}
|
|
4654
4654
|
};
|
|
4655
|
-
protoOf(BigInteger63Arithmetic).
|
|
4656
|
-
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4657
|
-
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4658
|
-
return this.
|
|
4655
|
+
protoOf(BigInteger63Arithmetic).c11 = function (first, second) {
|
|
4656
|
+
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.c15(first) | 0;
|
|
4657
|
+
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.c15(second) | 0;
|
|
4658
|
+
return this.o15(first, second, firstStart, secondStart);
|
|
4659
4659
|
};
|
|
4660
|
-
protoOf(BigInteger63Arithmetic).
|
|
4660
|
+
protoOf(BigInteger63Arithmetic).p15 = function (resultArray, resultArrayStart, first, second) {
|
|
4661
4661
|
if (isZero(this, first)) {
|
|
4662
4662
|
// Inline function 'kotlin.collections.copyInto' call
|
|
4663
4663
|
var endIndex = _ULongArray___get_size__impl__ju6dtr(first);
|
|
@@ -4686,8 +4686,8 @@
|
|
|
4686
4686
|
arrayCopy(tmp_0, destination_0, resultArrayStart, 0, endIndex_0);
|
|
4687
4687
|
return Unit_instance;
|
|
4688
4688
|
}
|
|
4689
|
-
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4690
|
-
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4689
|
+
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.c15(first) | 0;
|
|
4690
|
+
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.c15(second) | 0;
|
|
4691
4691
|
var tmp_1;
|
|
4692
4692
|
if (firstStart > secondStart) {
|
|
4693
4693
|
tmp_1 = new Sextuple(_ULongArray___get_size__impl__ju6dtr(first), _ULongArray___get_size__impl__ju6dtr(second), new ULongArray(first), new ULongArray(second), firstStart, secondStart);
|
|
@@ -4695,12 +4695,12 @@
|
|
|
4695
4695
|
tmp_1 = new Sextuple(_ULongArray___get_size__impl__ju6dtr(second), _ULongArray___get_size__impl__ju6dtr(first), new ULongArray(second), new ULongArray(first), secondStart, firstStart);
|
|
4696
4696
|
}
|
|
4697
4697
|
var _destruct__k2r9zo = tmp_1;
|
|
4698
|
-
var largerLength = _destruct__k2r9zo.
|
|
4699
|
-
var smallerLength = _destruct__k2r9zo.
|
|
4700
|
-
var largerData = _destruct__k2r9zo.
|
|
4701
|
-
var smallerData = _destruct__k2r9zo.
|
|
4702
|
-
var largerStart = _destruct__k2r9zo.
|
|
4703
|
-
var smallerStart = _destruct__k2r9zo.
|
|
4698
|
+
var largerLength = _destruct__k2r9zo.ub();
|
|
4699
|
+
var smallerLength = _destruct__k2r9zo.vb();
|
|
4700
|
+
var largerData = _destruct__k2r9zo.ue().of_1;
|
|
4701
|
+
var smallerData = _destruct__k2r9zo.w12().of_1;
|
|
4702
|
+
var largerStart = _destruct__k2r9zo.x12();
|
|
4703
|
+
var smallerStart = _destruct__k2r9zo.y12();
|
|
4704
4704
|
var i = 0;
|
|
4705
4705
|
var sum = _ULong___init__impl__c78o9k(new Long(0, 0));
|
|
4706
4706
|
while (i < smallerStart) {
|
|
@@ -4714,7 +4714,7 @@
|
|
|
4714
4714
|
var tmp_2 = i + resultArrayStart | 0;
|
|
4715
4715
|
var tmp0_3 = sum;
|
|
4716
4716
|
// Inline function 'kotlin.ULong.and' call
|
|
4717
|
-
var other_1 = this.
|
|
4717
|
+
var other_1 = this.m11_1;
|
|
4718
4718
|
var tmp$ret$14 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_3), _ULong___get_data__impl__fggpzb(other_1)));
|
|
4719
4719
|
ULongArray__set_impl_z19mvh(resultArray, tmp_2, tmp$ret$14);
|
|
4720
4720
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -4741,7 +4741,7 @@
|
|
|
4741
4741
|
var tmp_3 = i;
|
|
4742
4742
|
var tmp0_5 = sum;
|
|
4743
4743
|
// Inline function 'kotlin.ULong.and' call
|
|
4744
|
-
var other_3 = this.
|
|
4744
|
+
var other_3 = this.m11_1;
|
|
4745
4745
|
var tmp$ret$17 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_5), _ULong___get_data__impl__fggpzb(other_3)));
|
|
4746
4746
|
ULongArray__set_impl_z19mvh(resultArray, tmp_3, tmp$ret$17);
|
|
4747
4747
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -4750,13 +4750,13 @@
|
|
|
4750
4750
|
i = i + 1 | 0;
|
|
4751
4751
|
}
|
|
4752
4752
|
};
|
|
4753
|
-
protoOf(BigInteger63Arithmetic).
|
|
4753
|
+
protoOf(BigInteger63Arithmetic).z11 = function (first, second) {
|
|
4754
4754
|
if (isZero(this, first))
|
|
4755
4755
|
return second;
|
|
4756
4756
|
if (isZero(this, second))
|
|
4757
4757
|
return first;
|
|
4758
|
-
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4759
|
-
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4758
|
+
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.c15(first) | 0;
|
|
4759
|
+
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.c15(second) | 0;
|
|
4760
4760
|
var tmp;
|
|
4761
4761
|
if (firstStart > secondStart) {
|
|
4762
4762
|
tmp = new Sextuple(_ULongArray___get_size__impl__ju6dtr(first), _ULongArray___get_size__impl__ju6dtr(second), new ULongArray(first), new ULongArray(second), firstStart, secondStart);
|
|
@@ -4764,12 +4764,12 @@
|
|
|
4764
4764
|
tmp = new Sextuple(_ULongArray___get_size__impl__ju6dtr(second), _ULongArray___get_size__impl__ju6dtr(first), new ULongArray(second), new ULongArray(first), secondStart, firstStart);
|
|
4765
4765
|
}
|
|
4766
4766
|
var _destruct__k2r9zo = tmp;
|
|
4767
|
-
var largerLength = _destruct__k2r9zo.
|
|
4768
|
-
var smallerLength = _destruct__k2r9zo.
|
|
4769
|
-
var largerData = _destruct__k2r9zo.
|
|
4770
|
-
var smallerData = _destruct__k2r9zo.
|
|
4771
|
-
var largerStart = _destruct__k2r9zo.
|
|
4772
|
-
var smallerStart = _destruct__k2r9zo.
|
|
4767
|
+
var largerLength = _destruct__k2r9zo.ub();
|
|
4768
|
+
var smallerLength = _destruct__k2r9zo.vb();
|
|
4769
|
+
var largerData = _destruct__k2r9zo.ue().of_1;
|
|
4770
|
+
var smallerData = _destruct__k2r9zo.w12().of_1;
|
|
4771
|
+
var largerStart = _destruct__k2r9zo.x12();
|
|
4772
|
+
var smallerStart = _destruct__k2r9zo.y12();
|
|
4773
4773
|
// Inline function 'com.ionspin.kotlin.bignum.integer.base63.array.BigInteger63Arithmetic.possibleAdditionOverflow' call
|
|
4774
4774
|
var firstMostSignificant = ULongArray__get_impl_pr71q9(largerData, largerStart - 1 | 0);
|
|
4775
4775
|
var secondMostSignificant = ULongArray__get_impl_pr71q9(smallerData, smallerStart - 1 | 0);
|
|
@@ -4815,22 +4815,22 @@
|
|
|
4815
4815
|
tmp_1 = _ULongArray___init__impl__twm1l3(tmp_7);
|
|
4816
4816
|
}
|
|
4817
4817
|
var result = tmp_1;
|
|
4818
|
-
this.
|
|
4818
|
+
this.p15(result, 0, first, second);
|
|
4819
4819
|
var tmp_9;
|
|
4820
4820
|
if (possibleOverflow_0) {
|
|
4821
|
-
tmp_9 = this.
|
|
4821
|
+
tmp_9 = this.w11(result);
|
|
4822
4822
|
} else {
|
|
4823
4823
|
tmp_9 = result;
|
|
4824
4824
|
}
|
|
4825
4825
|
return tmp_9;
|
|
4826
4826
|
};
|
|
4827
|
-
protoOf(BigInteger63Arithmetic).
|
|
4828
|
-
var comparison = this.
|
|
4827
|
+
protoOf(BigInteger63Arithmetic).q15 = function (first, second, firstStart, secondStart) {
|
|
4828
|
+
var comparison = this.o15(first, second, firstStart, secondStart);
|
|
4829
4829
|
var firstSize = firstStart + 1 | 0;
|
|
4830
4830
|
var secondSize = secondStart + 1 | 0;
|
|
4831
4831
|
var firstIsLarger = comparison === 1;
|
|
4832
4832
|
if (comparison === 0)
|
|
4833
|
-
return this.
|
|
4833
|
+
return this.f11_1;
|
|
4834
4834
|
if (secondSize === 1 && equals(ULongArray__get_impl_pr71q9(second, 0), _ULong___init__impl__c78o9k(new Long(0, 0)))) {
|
|
4835
4835
|
return first;
|
|
4836
4836
|
}
|
|
@@ -4844,10 +4844,10 @@
|
|
|
4844
4844
|
tmp = new Quadruple(new ULongArray(second), new ULongArray(first), secondStart, firstStart);
|
|
4845
4845
|
}
|
|
4846
4846
|
var _destruct__k2r9zo = tmp;
|
|
4847
|
-
var largerData = _destruct__k2r9zo.
|
|
4848
|
-
var smallerData = _destruct__k2r9zo.
|
|
4849
|
-
var largerStart = _destruct__k2r9zo.
|
|
4850
|
-
var smallerStart = _destruct__k2r9zo.
|
|
4847
|
+
var largerData = _destruct__k2r9zo.ub().of_1;
|
|
4848
|
+
var smallerData = _destruct__k2r9zo.vb().of_1;
|
|
4849
|
+
var largerStart = _destruct__k2r9zo.ue();
|
|
4850
|
+
var smallerStart = _destruct__k2r9zo.w12();
|
|
4851
4851
|
// Inline function 'kotlin.ULongArray' call
|
|
4852
4852
|
var tmp_0 = 0;
|
|
4853
4853
|
var tmp_1 = longArray(largerStart);
|
|
@@ -4872,7 +4872,7 @@
|
|
|
4872
4872
|
var tmp_3 = i;
|
|
4873
4873
|
var tmp0_1 = diff;
|
|
4874
4874
|
// Inline function 'kotlin.ULong.and' call
|
|
4875
|
-
var other_1 = this.
|
|
4875
|
+
var other_1 = this.m11_1;
|
|
4876
4876
|
var tmp$ret$6 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_1), _ULong___get_data__impl__fggpzb(other_1)));
|
|
4877
4877
|
ULongArray__set_impl_z19mvh(result, tmp_3, tmp$ret$6);
|
|
4878
4878
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -4888,7 +4888,7 @@
|
|
|
4888
4888
|
var tmp_4 = i;
|
|
4889
4889
|
var tmp0_3 = diff;
|
|
4890
4890
|
// Inline function 'kotlin.ULong.and' call
|
|
4891
|
-
var other_3 = this.
|
|
4891
|
+
var other_3 = this.m11_1;
|
|
4892
4892
|
var tmp$ret$9 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_3), _ULong___get_data__impl__fggpzb(other_3)));
|
|
4893
4893
|
ULongArray__set_impl_z19mvh(result, tmp_4, tmp$ret$9);
|
|
4894
4894
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -4900,22 +4900,22 @@
|
|
|
4900
4900
|
ULongArray__set_impl_z19mvh(result, i, ULongArray__get_impl_pr71q9(largerData, i));
|
|
4901
4901
|
i = i + 1 | 0;
|
|
4902
4902
|
}
|
|
4903
|
-
if (this.
|
|
4904
|
-
return this.
|
|
4903
|
+
if (this.c15(result) === (_ULongArray___get_size__impl__ju6dtr(result) - 1 | 0) && equals(ULongArray__get_impl_pr71q9(result, 0), _ULong___init__impl__c78o9k(new Long(0, 0)))) {
|
|
4904
|
+
return this.f11_1;
|
|
4905
4905
|
}
|
|
4906
|
-
return this.
|
|
4906
|
+
return this.w11(result);
|
|
4907
4907
|
};
|
|
4908
|
-
protoOf(BigInteger63Arithmetic).
|
|
4909
|
-
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4910
|
-
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4911
|
-
return this.
|
|
4908
|
+
protoOf(BigInteger63Arithmetic).y11 = function (first, second) {
|
|
4909
|
+
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.c15(first) | 0;
|
|
4910
|
+
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.c15(second) | 0;
|
|
4911
|
+
return this.q15(first, second, firstStart, secondStart);
|
|
4912
4912
|
};
|
|
4913
|
-
protoOf(BigInteger63Arithmetic).
|
|
4914
|
-
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4915
|
-
var secondCorrectedSize = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4913
|
+
protoOf(BigInteger63Arithmetic).f12 = function (first, second) {
|
|
4914
|
+
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(first) - this.c15(first) | 0;
|
|
4915
|
+
var secondCorrectedSize = _ULongArray___get_size__impl__ju6dtr(second) - this.c15(second) | 0;
|
|
4916
4916
|
return multiplyWithCorrectedSize(this, first, second, firstCorrectedSize, secondCorrectedSize);
|
|
4917
4917
|
};
|
|
4918
|
-
protoOf(BigInteger63Arithmetic).
|
|
4918
|
+
protoOf(BigInteger63Arithmetic).r15 = function (original, numberOfWords, value) {
|
|
4919
4919
|
// Inline function 'kotlin.ULongArray' call
|
|
4920
4920
|
var tmp = 0;
|
|
4921
4921
|
var tmp_0 = _ULongArray___get_size__impl__ju6dtr(original) + numberOfWords | 0;
|
|
@@ -4929,7 +4929,7 @@
|
|
|
4929
4929
|
}
|
|
4930
4930
|
return _ULongArray___init__impl__twm1l3(tmp_1);
|
|
4931
4931
|
};
|
|
4932
|
-
protoOf(BigInteger63Arithmetic).
|
|
4932
|
+
protoOf(BigInteger63Arithmetic).p14 = function (firstUnchecked, secondUnchecked) {
|
|
4933
4933
|
var tmp;
|
|
4934
4934
|
if (!((_ULongArray___get_size__impl__ju6dtr(firstUnchecked) % 3 | 0) === 0)) {
|
|
4935
4935
|
// Inline function 'kotlin.ULongArray' call
|
|
@@ -4976,17 +4976,17 @@
|
|
|
4976
4976
|
var secondLength = _ULongArray___get_size__impl__ju6dtr(second);
|
|
4977
4977
|
var tmp_9;
|
|
4978
4978
|
if (firstLength > secondLength) {
|
|
4979
|
-
var prepared = this.
|
|
4979
|
+
var prepared = this.r15(second, firstLength - secondLength | 0, _ULong___init__impl__c78o9k(new Long(0, 0)));
|
|
4980
4980
|
tmp_9 = new Pair(new ULongArray(first), new ULongArray(prepared));
|
|
4981
4981
|
} else if (firstLength < secondLength) {
|
|
4982
|
-
var prepared_0 = this.
|
|
4982
|
+
var prepared_0 = this.r15(first, secondLength - firstLength | 0, _ULong___init__impl__c78o9k(new Long(0, 0)));
|
|
4983
4983
|
tmp_9 = new Pair(new ULongArray(prepared_0), new ULongArray(second));
|
|
4984
4984
|
} else {
|
|
4985
4985
|
tmp_9 = new Pair(new ULongArray(first), new ULongArray(second));
|
|
4986
4986
|
}
|
|
4987
4987
|
var _destruct__k2r9zo = tmp_9;
|
|
4988
|
-
var firstPrepared = _destruct__k2r9zo.
|
|
4989
|
-
var secondPrepared = _destruct__k2r9zo.
|
|
4988
|
+
var firstPrepared = _destruct__k2r9zo.ub().of_1;
|
|
4989
|
+
var secondPrepared = _destruct__k2r9zo.vb().of_1;
|
|
4990
4990
|
var tmp0 = _ULongArray___get_size__impl__ju6dtr(first);
|
|
4991
4991
|
// Inline function 'kotlin.math.max' call
|
|
4992
4992
|
var b = _ULongArray___get_size__impl__ju6dtr(second);
|
|
@@ -4998,56 +4998,56 @@
|
|
|
4998
4998
|
var n0 = new SignedULongArray(toULongArray(slice(secondPrepared, until(0, extendedDigit))), true);
|
|
4999
4999
|
var n1 = new SignedULongArray(toULongArray(slice(secondPrepared, until(extendedDigit, imul(extendedDigit, 2)))), true);
|
|
5000
5000
|
var n2 = new SignedULongArray(toULongArray(slice(secondPrepared, until(imul(extendedDigit, 2), imul(extendedDigit, 3)))), true);
|
|
5001
|
-
var p0 = this.
|
|
5001
|
+
var p0 = this.x14(m0, m2);
|
|
5002
5002
|
var pe0 = m0;
|
|
5003
|
-
var pe1 = this.
|
|
5004
|
-
var pem1 = this.
|
|
5005
|
-
var doublePemM2 = this.
|
|
5006
|
-
var pem2 = this.
|
|
5003
|
+
var pe1 = this.x14(p0, m1);
|
|
5004
|
+
var pem1 = this.z14(p0, m1);
|
|
5005
|
+
var doublePemM2 = this.w14(this.x14(pem1, m2), this.u11_1);
|
|
5006
|
+
var pem2 = this.z14(doublePemM2, m0);
|
|
5007
5007
|
var pinf = m2;
|
|
5008
|
-
var q0 = this.
|
|
5008
|
+
var q0 = this.x14(n0, n2);
|
|
5009
5009
|
var qe0 = n0;
|
|
5010
|
-
var qe1 = this.
|
|
5011
|
-
var qem1 = this.
|
|
5012
|
-
var doubleQemN2 = this.
|
|
5013
|
-
var qem2 = this.
|
|
5010
|
+
var qe1 = this.x14(q0, n1);
|
|
5011
|
+
var qem1 = this.z14(q0, n1);
|
|
5012
|
+
var doubleQemN2 = this.w14(this.x14(qem1, n2), this.u11_1);
|
|
5013
|
+
var qem2 = this.z14(doubleQemN2, n0);
|
|
5014
5014
|
var qinf = n2;
|
|
5015
|
-
var re0 = this.
|
|
5016
|
-
var re1 = this.
|
|
5017
|
-
var rem1 = this.
|
|
5018
|
-
var rem2 = this.
|
|
5019
|
-
var rinf = this.
|
|
5015
|
+
var re0 = this.w14(pe0, qe0);
|
|
5016
|
+
var re1 = this.w14(pe1, qe1);
|
|
5017
|
+
var rem1 = this.w14(pem1, qem1);
|
|
5018
|
+
var rem2 = this.w14(pem2, qem2);
|
|
5019
|
+
var rinf = this.w14(pinf, qinf);
|
|
5020
5020
|
var r0 = re0;
|
|
5021
5021
|
var r4 = rinf;
|
|
5022
|
-
var rem2re1diff = this.
|
|
5022
|
+
var rem2re1diff = this.z14(rem2, re1);
|
|
5023
5023
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5024
5024
|
var tmp$ret$11 = _ULongArray___init__impl__twm1l3(longArrayOf([_ULong___init__impl__c78o9k(new Long(3, 0))]));
|
|
5025
|
-
var r3 = this.
|
|
5026
|
-
var r1 = this.
|
|
5027
|
-
var r2 = this.
|
|
5028
|
-
r3 = this.
|
|
5029
|
-
r2 = this.
|
|
5030
|
-
r1 = this.
|
|
5025
|
+
var r3 = this.s15(rem2re1diff, new SignedULongArray(tmp$ret$11, true));
|
|
5026
|
+
var r1 = this.v14(this.z14(re1, rem1), 1);
|
|
5027
|
+
var r2 = this.z14(rem1, r0);
|
|
5028
|
+
r3 = this.x14(this.v14(this.z14(r2, r3), 1), this.w14(this.u11_1, rinf));
|
|
5029
|
+
r2 = this.z14(this.x14(r2, r1), r4);
|
|
5030
|
+
r1 = this.z14(r1, r3);
|
|
5031
5031
|
var bShiftAmount = imul(extendedDigit, 63);
|
|
5032
5032
|
var rb0 = r0;
|
|
5033
|
-
var rb1 = this.
|
|
5034
|
-
var rb2 = this.
|
|
5035
|
-
var rb3 = this.
|
|
5036
|
-
var rb4 = this.
|
|
5037
|
-
var rb = this.
|
|
5038
|
-
return rb.
|
|
5039
|
-
};
|
|
5040
|
-
protoOf(BigInteger63Arithmetic).
|
|
5041
|
-
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
5042
|
-
return this.
|
|
5043
|
-
};
|
|
5044
|
-
protoOf(BigInteger63Arithmetic).
|
|
5033
|
+
var rb1 = this.y14(r1, bShiftAmount);
|
|
5034
|
+
var rb2 = this.y14(r2, imul(bShiftAmount, 2));
|
|
5035
|
+
var rb3 = this.y14(r3, imul(bShiftAmount, 3));
|
|
5036
|
+
var rb4 = this.y14(r4, imul(bShiftAmount, 4));
|
|
5037
|
+
var rb = this.x14(this.x14(this.x14(this.x14(rb0, rb1), rb2), rb3), rb4);
|
|
5038
|
+
return rb.a15_1;
|
|
5039
|
+
};
|
|
5040
|
+
protoOf(BigInteger63Arithmetic).q14 = function (first, second) {
|
|
5041
|
+
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(first) - this.c15(first) | 0;
|
|
5042
|
+
return this.t15(first, second, firstCorrectedSize);
|
|
5043
|
+
};
|
|
5044
|
+
protoOf(BigInteger63Arithmetic).t15 = function (first, second, firstCorrectedSize) {
|
|
5045
5045
|
// Inline function 'kotlin.ULong.and' call
|
|
5046
|
-
var other = this.
|
|
5046
|
+
var other = this.o11_1;
|
|
5047
5047
|
var secondLow = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(second), _ULong___get_data__impl__fggpzb(other)));
|
|
5048
5048
|
// Inline function 'kotlin.ULong.shr' call
|
|
5049
5049
|
var secondHigh = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(second), 32));
|
|
5050
|
-
var requiredBits = this.
|
|
5050
|
+
var requiredBits = this.c10(first) + this.k15(second) | 0;
|
|
5051
5051
|
var tmp;
|
|
5052
5052
|
if (!((requiredBits % 63 | 0) === 0)) {
|
|
5053
5053
|
tmp = (requiredBits / 63 | 0) + 1 | 0;
|
|
@@ -5062,7 +5062,7 @@
|
|
|
5062
5062
|
while (i < firstCorrectedSize) {
|
|
5063
5063
|
var tmp0 = ULongArray__get_impl_pr71q9(first, i);
|
|
5064
5064
|
// Inline function 'kotlin.ULong.and' call
|
|
5065
|
-
var other_0 = this.
|
|
5065
|
+
var other_0 = this.o11_1;
|
|
5066
5066
|
var firstLow = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0), _ULong___get_data__impl__fggpzb(other_0)));
|
|
5067
5067
|
// Inline function 'kotlin.ULong.shr' call
|
|
5068
5068
|
var this_0 = ULongArray__get_impl_pr71q9(first, i);
|
|
@@ -5074,7 +5074,7 @@
|
|
|
5074
5074
|
var lowerCarry = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(lowerProduct), 63));
|
|
5075
5075
|
var tmp0_0 = carryIntoNextRound;
|
|
5076
5076
|
// Inline function 'kotlin.ULong.and' call
|
|
5077
|
-
var other_1 = this.
|
|
5077
|
+
var other_1 = this.m11_1;
|
|
5078
5078
|
// Inline function 'kotlin.ULong.plus' call
|
|
5079
5079
|
var other_2 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(lowerProduct), _ULong___get_data__impl__fggpzb(other_1)));
|
|
5080
5080
|
var lowResult = _ULong___init__impl__c78o9k(add(_ULong___get_data__impl__fggpzb(tmp0_0), _ULong___get_data__impl__fggpzb(other_2)));
|
|
@@ -5086,7 +5086,7 @@
|
|
|
5086
5086
|
lowerCarry = _ULong___init__impl__c78o9k(add(_ULong___get_data__impl__fggpzb(tmp0_1), _ULong___get_data__impl__fggpzb(other_3)));
|
|
5087
5087
|
var tmp0_2 = lowResult;
|
|
5088
5088
|
// Inline function 'kotlin.ULong.and' call
|
|
5089
|
-
var other_4 = this.
|
|
5089
|
+
var other_4 = this.m11_1;
|
|
5090
5090
|
lowResult = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_2), _ULong___get_data__impl__fggpzb(other_4)));
|
|
5091
5091
|
// Inline function 'kotlin.ULong.times' call
|
|
5092
5092
|
var tmp0_3 = _ULong___init__impl__c78o9k(multiply(_ULong___get_data__impl__fggpzb(firstLow), _ULong___get_data__impl__fggpzb(secondHigh)));
|
|
@@ -5104,7 +5104,7 @@
|
|
|
5104
5104
|
// Inline function 'kotlin.ULong.shl' call
|
|
5105
5105
|
var tmp0_6 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(middleProduct), 32));
|
|
5106
5106
|
// Inline function 'kotlin.ULong.and' call
|
|
5107
|
-
var other_7 = this.
|
|
5107
|
+
var other_7 = this.m11_1;
|
|
5108
5108
|
// Inline function 'kotlin.ULong.plus' call
|
|
5109
5109
|
var other_8 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_6), _ULong___get_data__impl__fggpzb(other_7)));
|
|
5110
5110
|
lowResult = _ULong___init__impl__c78o9k(add(_ULong___get_data__impl__fggpzb(tmp0_5), _ULong___get_data__impl__fggpzb(other_8)));
|
|
@@ -5117,7 +5117,7 @@
|
|
|
5117
5117
|
var tmp_0 = j;
|
|
5118
5118
|
var tmp0_8 = lowResult;
|
|
5119
5119
|
// Inline function 'kotlin.ULong.and' call
|
|
5120
|
-
var other_10 = this.
|
|
5120
|
+
var other_10 = this.m11_1;
|
|
5121
5121
|
var tmp$ret$21 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_8), _ULong___get_data__impl__fggpzb(other_10)));
|
|
5122
5122
|
ULongArray__set_impl_z19mvh(result, tmp_0, tmp$ret$21);
|
|
5123
5123
|
var highResult = middleCarry;
|
|
@@ -5136,18 +5136,18 @@
|
|
|
5136
5136
|
}
|
|
5137
5137
|
return result;
|
|
5138
5138
|
};
|
|
5139
|
-
protoOf(BigInteger63Arithmetic).
|
|
5139
|
+
protoOf(BigInteger63Arithmetic).k12 = function (base, exponent) {
|
|
5140
5140
|
if (equalsLong(exponent, new Long(0, 0))) {
|
|
5141
|
-
return this.
|
|
5141
|
+
return this.g11_1;
|
|
5142
5142
|
}
|
|
5143
5143
|
if (equalsLong(exponent, new Long(1, 0))) {
|
|
5144
5144
|
return base;
|
|
5145
5145
|
}
|
|
5146
|
-
if (_ULongArray___get_size__impl__ju6dtr(base) === 1 && equals(ULongArray__get_impl_pr71q9(base, 0), _ULong___init__impl__c78o9k(new Long(10, 0))) && compare(exponent, fromInt(this.
|
|
5147
|
-
return this.
|
|
5146
|
+
if (_ULongArray___get_size__impl__ju6dtr(base) === 1 && equals(ULongArray__get_impl_pr71q9(base, 0), _ULong___init__impl__c78o9k(new Long(10, 0))) && compare(exponent, fromInt(this.v11_1.length)) < 0) {
|
|
5147
|
+
return this.v11_1[convertToInt(exponent)].of_1;
|
|
5148
5148
|
}
|
|
5149
|
-
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(base) - this.
|
|
5150
|
-
var helperVar = this.
|
|
5149
|
+
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(base) - this.c15(base) | 0;
|
|
5150
|
+
var helperVar = this.g11_1;
|
|
5151
5151
|
var exponentVar = exponent;
|
|
5152
5152
|
var baseVar = base;
|
|
5153
5153
|
while (compare(exponentVar, new Long(1, 0)) > 0) {
|
|
@@ -5155,13 +5155,13 @@
|
|
|
5155
5155
|
var this_0 = exponentVar;
|
|
5156
5156
|
var tmp$ret$0 = modulo(this_0, fromInt(2));
|
|
5157
5157
|
if (equalsLong(tmp$ret$0, new Long(0, 0))) {
|
|
5158
|
-
baseVar = this.
|
|
5158
|
+
baseVar = this.g15(baseVar, baseVar);
|
|
5159
5159
|
// Inline function 'kotlin.Long.div' call
|
|
5160
5160
|
var this_1 = exponentVar;
|
|
5161
5161
|
exponentVar = divide(this_1, fromInt(2));
|
|
5162
5162
|
} else {
|
|
5163
|
-
helperVar = this.
|
|
5164
|
-
baseVar = this.
|
|
5163
|
+
helperVar = this.g15(baseVar, helperVar);
|
|
5164
|
+
baseVar = this.g15(baseVar, baseVar);
|
|
5165
5165
|
// Inline function 'kotlin.Long.minus' call
|
|
5166
5166
|
var this_2 = exponentVar;
|
|
5167
5167
|
// Inline function 'kotlin.Long.div' call
|
|
@@ -5169,22 +5169,22 @@
|
|
|
5169
5169
|
exponentVar = divide(this_3, fromInt(2));
|
|
5170
5170
|
}
|
|
5171
5171
|
}
|
|
5172
|
-
return this.
|
|
5172
|
+
return this.g15(helperVar, baseVar);
|
|
5173
5173
|
};
|
|
5174
|
-
protoOf(BigInteger63Arithmetic).
|
|
5174
|
+
protoOf(BigInteger63Arithmetic).u15 = function (dividend, divisor) {
|
|
5175
5175
|
var divisorSize = _ULongArray___get_size__impl__ju6dtr(divisor);
|
|
5176
|
-
var normalizationShift = this.
|
|
5177
|
-
var divisorNormalized = this.
|
|
5178
|
-
var dividendNormalized = this.
|
|
5176
|
+
var normalizationShift = this.i15(ULongArray__get_impl_pr71q9(divisor, divisorSize - 1 | 0));
|
|
5177
|
+
var divisorNormalized = this.r14(divisor, normalizationShift);
|
|
5178
|
+
var dividendNormalized = this.r14(dividend, normalizationShift);
|
|
5179
5179
|
return new Triple(new ULongArray(dividendNormalized), new ULongArray(divisorNormalized), normalizationShift);
|
|
5180
5180
|
};
|
|
5181
|
-
protoOf(BigInteger63Arithmetic).
|
|
5182
|
-
var remainder = this.
|
|
5181
|
+
protoOf(BigInteger63Arithmetic).v15 = function (remainderNormalized, normalizationShift) {
|
|
5182
|
+
var remainder = this.w15(remainderNormalized, normalizationShift);
|
|
5183
5183
|
return remainder;
|
|
5184
5184
|
};
|
|
5185
|
-
protoOf(BigInteger63Arithmetic).
|
|
5186
|
-
if (this.
|
|
5187
|
-
return new Pair(new ULongArray(this.
|
|
5185
|
+
protoOf(BigInteger63Arithmetic).x15 = function (unnormalizedDividend, unnormalizedDivisor) {
|
|
5186
|
+
if (this.l12(unnormalizedDivisor, unnormalizedDividend) > 0) {
|
|
5187
|
+
return new Pair(new ULongArray(this.f11_1), new ULongArray(unnormalizedDividend));
|
|
5188
5188
|
}
|
|
5189
5189
|
if (_ULongArray___get_size__impl__ju6dtr(unnormalizedDivisor) === 1 && _ULongArray___get_size__impl__ju6dtr(unnormalizedDividend) === 1) {
|
|
5190
5190
|
var tmp0 = ULongArray__get_impl_pr71q9(unnormalizedDividend, 0);
|
|
@@ -5193,35 +5193,35 @@
|
|
|
5193
5193
|
var tmp$ret$0 = ulongDivide(tmp0, other);
|
|
5194
5194
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5195
5195
|
var tmp$ret$1 = _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$0]));
|
|
5196
|
-
var tmp = this.
|
|
5196
|
+
var tmp = this.w11(tmp$ret$1);
|
|
5197
5197
|
var tmp0_0 = ULongArray__get_impl_pr71q9(unnormalizedDividend, 0);
|
|
5198
5198
|
// Inline function 'kotlin.ULong.rem' call
|
|
5199
5199
|
var other_0 = ULongArray__get_impl_pr71q9(unnormalizedDivisor, 0);
|
|
5200
5200
|
var tmp$ret$2 = ulongRemainder(tmp0_0, other_0);
|
|
5201
5201
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5202
5202
|
var tmp$ret$3 = _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$2]));
|
|
5203
|
-
return new Pair(new ULongArray(tmp), new ULongArray(this.
|
|
5203
|
+
return new Pair(new ULongArray(tmp), new ULongArray(this.w11(tmp$ret$3)));
|
|
5204
5204
|
}
|
|
5205
|
-
var bitPrecision = this.
|
|
5205
|
+
var bitPrecision = this.c10(unnormalizedDividend) - this.c10(unnormalizedDivisor) | 0;
|
|
5206
5206
|
if (bitPrecision === 0) {
|
|
5207
|
-
return new Pair(new ULongArray(this.
|
|
5207
|
+
return new Pair(new ULongArray(this.g11_1), new ULongArray(this.f15(unnormalizedDividend, unnormalizedDivisor)));
|
|
5208
5208
|
}
|
|
5209
|
-
var _destruct__k2r9zo = this.
|
|
5210
|
-
var dividend = _destruct__k2r9zo.
|
|
5211
|
-
var divisor = _destruct__k2r9zo.
|
|
5212
|
-
var normalizationShift = _destruct__k2r9zo.
|
|
5209
|
+
var _destruct__k2r9zo = this.u15(unnormalizedDividend, unnormalizedDivisor);
|
|
5210
|
+
var dividend = _destruct__k2r9zo.ub().of_1;
|
|
5211
|
+
var divisor = _destruct__k2r9zo.vb().of_1;
|
|
5212
|
+
var normalizationShift = _destruct__k2r9zo.ue();
|
|
5213
5213
|
var dividendSize = _ULongArray___get_size__impl__ju6dtr(dividend);
|
|
5214
5214
|
var divisorSize = _ULongArray___get_size__impl__ju6dtr(divisor);
|
|
5215
|
-
var divisorCorrectedSize = _ULongArray___get_size__impl__ju6dtr(divisor) - this.
|
|
5215
|
+
var divisorCorrectedSize = _ULongArray___get_size__impl__ju6dtr(divisor) - this.c15(divisor) | 0;
|
|
5216
5216
|
var wordPrecision = dividendSize - divisorSize | 0;
|
|
5217
5217
|
var qjhat;
|
|
5218
5218
|
var reconstructedQuotient;
|
|
5219
5219
|
var quotient = _ULongArray___init__impl__twm1l3_0(wordPrecision);
|
|
5220
|
-
var divisorTimesBaseToPowerOfM = this.
|
|
5221
|
-
if (this.
|
|
5220
|
+
var divisorTimesBaseToPowerOfM = this.r14(divisor, imul(wordPrecision, this.k11_1));
|
|
5221
|
+
if (this.l12(dividend, divisorTimesBaseToPowerOfM) >= 0) {
|
|
5222
5222
|
quotient = _ULongArray___init__impl__twm1l3_0(wordPrecision + 1 | 0);
|
|
5223
5223
|
ULongArray__set_impl_z19mvh(quotient, wordPrecision, _ULong___init__impl__c78o9k(new Long(1, 0)));
|
|
5224
|
-
dividend = this.
|
|
5224
|
+
dividend = this.f15(dividend, divisorTimesBaseToPowerOfM);
|
|
5225
5225
|
}
|
|
5226
5226
|
var inductionVariable = wordPrecision - 1 | 0;
|
|
5227
5227
|
if (0 <= inductionVariable)
|
|
@@ -5232,39 +5232,39 @@
|
|
|
5232
5232
|
if ((divisorSize + j | 0) < _ULongArray___get_size__impl__ju6dtr(dividend)) {
|
|
5233
5233
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5234
5234
|
var tmp$ret$4 = _ULongArray___init__impl__twm1l3(longArrayOf([ULongArray__get_impl_pr71q9(dividend, divisorSize + j | 0)]));
|
|
5235
|
-
tmp_0 = this.
|
|
5235
|
+
tmp_0 = this.y15(this.r14(tmp$ret$4, this.k11_1), ULongArray__get_impl_pr71q9(dividend, (divisorSize + j | 0) - 1 | 0));
|
|
5236
5236
|
} else {
|
|
5237
5237
|
var tmp_1;
|
|
5238
5238
|
if ((divisorSize + j | 0) === _ULongArray___get_size__impl__ju6dtr(dividend)) {
|
|
5239
5239
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5240
5240
|
tmp_1 = _ULongArray___init__impl__twm1l3(longArrayOf([ULongArray__get_impl_pr71q9(dividend, (divisorSize + j | 0) - 1 | 0)]));
|
|
5241
5241
|
} else {
|
|
5242
|
-
tmp_1 = this.
|
|
5242
|
+
tmp_1 = this.f11_1;
|
|
5243
5243
|
}
|
|
5244
5244
|
tmp_0 = tmp_1;
|
|
5245
5245
|
}
|
|
5246
5246
|
var twoDigit = tmp_0;
|
|
5247
5247
|
var tmp_2 = BigInteger32Arithmetic_getInstance();
|
|
5248
|
-
var tmp_3 = this.
|
|
5248
|
+
var tmp_3 = this.z15(twoDigit);
|
|
5249
5249
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5250
5250
|
var tmp$ret$6 = _ULongArray___init__impl__twm1l3(longArrayOf([ULongArray__get_impl_pr71q9(divisor, divisorSize - 1 | 0)]));
|
|
5251
|
-
var convertedResult = tmp_2.
|
|
5252
|
-
qjhat = this.
|
|
5251
|
+
var convertedResult = tmp_2.j14(tmp_3, this.z15(tmp$ret$6));
|
|
5252
|
+
qjhat = this.a16(convertedResult.sb_1.ef_1);
|
|
5253
5253
|
var tmp_4 = quotient;
|
|
5254
5254
|
var tmp_5;
|
|
5255
5255
|
var tmp_6 = qjhat;
|
|
5256
|
-
var tmp0_1 = this.
|
|
5256
|
+
var tmp0_1 = this.m11_1;
|
|
5257
5257
|
// Inline function 'kotlin.ULong.minus' call
|
|
5258
5258
|
var other_1 = _ULong___init__impl__c78o9k(new Long(1, 0));
|
|
5259
5259
|
var tmp$ret$7 = _ULong___init__impl__c78o9k(subtract(_ULong___get_data__impl__fggpzb(tmp0_1), _ULong___get_data__impl__fggpzb(other_1)));
|
|
5260
|
-
if (this.
|
|
5260
|
+
if (this.b16(tmp_6, tmp$ret$7) < 0) {
|
|
5261
5261
|
tmp_5 = ULongArray__get_impl_pr71q9(qjhat, 0);
|
|
5262
5262
|
} else {
|
|
5263
|
-
tmp_5 = this.
|
|
5263
|
+
tmp_5 = this.m11_1;
|
|
5264
5264
|
}
|
|
5265
5265
|
ULongArray__set_impl_z19mvh(tmp_4, j, tmp_5);
|
|
5266
|
-
reconstructedQuotient = this.
|
|
5267
|
-
while (this.
|
|
5266
|
+
reconstructedQuotient = this.r14(this.t15(divisor, ULongArray__get_impl_pr71q9(quotient, j), divisorCorrectedSize), imul(j, this.k11_1));
|
|
5267
|
+
while (this.l12(reconstructedQuotient, dividend) > 0) {
|
|
5268
5268
|
var tmp_7 = quotient;
|
|
5269
5269
|
var tmp0_2 = ULongArray__get_impl_pr71q9(quotient, j);
|
|
5270
5270
|
// Inline function 'kotlin.ULong.minus' call
|
|
@@ -5278,22 +5278,22 @@
|
|
|
5278
5278
|
var other_2 = _ULong___init__impl__c78o9k(tmp$ret$8);
|
|
5279
5279
|
var tmp$ret$12 = _ULong___init__impl__c78o9k(subtract(_ULong___get_data__impl__fggpzb(tmp0_2), _ULong___get_data__impl__fggpzb(other_2)));
|
|
5280
5280
|
ULongArray__set_impl_z19mvh(tmp_7, j, tmp$ret$12);
|
|
5281
|
-
reconstructedQuotient = this.
|
|
5281
|
+
reconstructedQuotient = this.r14(this.t15(divisor, ULongArray__get_impl_pr71q9(quotient, j), divisorCorrectedSize), imul(j, this.k11_1));
|
|
5282
5282
|
}
|
|
5283
|
-
dividend = this.
|
|
5283
|
+
dividend = this.f15(dividend, reconstructedQuotient);
|
|
5284
5284
|
}
|
|
5285
5285
|
while (0 <= inductionVariable);
|
|
5286
|
-
while (this.
|
|
5287
|
-
quotient = this.
|
|
5288
|
-
dividend = this.
|
|
5286
|
+
while (this.l12(dividend, divisor) >= 0) {
|
|
5287
|
+
quotient = this.y15(quotient, _ULong___init__impl__c78o9k(new Long(1, 0)));
|
|
5288
|
+
dividend = this.f15(dividend, divisor);
|
|
5289
5289
|
}
|
|
5290
|
-
var denormRemainder = this.
|
|
5291
|
-
return new Pair(new ULongArray(this.
|
|
5290
|
+
var denormRemainder = this.v15(dividend, normalizationShift);
|
|
5291
|
+
return new Pair(new ULongArray(this.w11(quotient)), new ULongArray(denormRemainder));
|
|
5292
5292
|
};
|
|
5293
|
-
protoOf(BigInteger63Arithmetic).
|
|
5293
|
+
protoOf(BigInteger63Arithmetic).c16 = function (operand) {
|
|
5294
5294
|
if (isZero(this, operand))
|
|
5295
|
-
return this.
|
|
5296
|
-
var length = this.
|
|
5295
|
+
return this.f11_1;
|
|
5296
|
+
var length = this.c10(operand);
|
|
5297
5297
|
var tmp;
|
|
5298
5298
|
if ((length % 64 | 0) === 0) {
|
|
5299
5299
|
tmp = length / 64 | 0;
|
|
@@ -5330,10 +5330,10 @@
|
|
|
5330
5330
|
}
|
|
5331
5331
|
}
|
|
5332
5332
|
while (inductionVariable < requiredLength);
|
|
5333
|
-
return this.
|
|
5333
|
+
return this.w11(result);
|
|
5334
5334
|
};
|
|
5335
|
-
protoOf(BigInteger63Arithmetic).
|
|
5336
|
-
var power64Representation = this.
|
|
5335
|
+
protoOf(BigInteger63Arithmetic).d16 = function (operand) {
|
|
5336
|
+
var power64Representation = this.c16(operand);
|
|
5337
5337
|
var result = _UIntArray___init__impl__ghjpc6(imul(_ULongArray___get_size__impl__ju6dtr(power64Representation), 2));
|
|
5338
5338
|
var inductionVariable = 0;
|
|
5339
5339
|
var last = _ULongArray___get_size__impl__ju6dtr(power64Representation);
|
|
@@ -5344,7 +5344,7 @@
|
|
|
5344
5344
|
var tmp = imul(2, i);
|
|
5345
5345
|
var tmp0 = ULongArray__get_impl_pr71q9(power64Representation, i);
|
|
5346
5346
|
// Inline function 'kotlin.UInt.toULong' call
|
|
5347
|
-
var this_0 = BigInteger32Arithmetic_getInstance().
|
|
5347
|
+
var this_0 = BigInteger32Arithmetic_getInstance().k13_1;
|
|
5348
5348
|
// Inline function 'kotlin.uintToULong' call
|
|
5349
5349
|
// Inline function 'kotlin.uintToLong' call
|
|
5350
5350
|
var value = _UInt___get_data__impl__f0vqqw(this_0);
|
|
@@ -5368,11 +5368,11 @@
|
|
|
5368
5368
|
UIntArray__set_impl_7f2zu2(result, tmp_0, tmp$ret$8);
|
|
5369
5369
|
}
|
|
5370
5370
|
while (inductionVariable < last);
|
|
5371
|
-
return BigInteger32Arithmetic_getInstance().
|
|
5371
|
+
return BigInteger32Arithmetic_getInstance().x13(result);
|
|
5372
5372
|
};
|
|
5373
|
-
protoOf(BigInteger63Arithmetic).
|
|
5373
|
+
protoOf(BigInteger63Arithmetic).e16 = function (operand) {
|
|
5374
5374
|
if (_UIntArray___get_size__impl__r6l8ci(operand) === 0) {
|
|
5375
|
-
return this.
|
|
5375
|
+
return this.f11_1;
|
|
5376
5376
|
}
|
|
5377
5377
|
if (_UIntArray___get_size__impl__r6l8ci(operand) === 1) {
|
|
5378
5378
|
// Inline function 'kotlin.UInt.toULong' call
|
|
@@ -5385,7 +5385,7 @@
|
|
|
5385
5385
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5386
5386
|
return _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$2]));
|
|
5387
5387
|
}
|
|
5388
|
-
var length = BigInteger32Arithmetic_getInstance().
|
|
5388
|
+
var length = BigInteger32Arithmetic_getInstance().v13(operand);
|
|
5389
5389
|
var tmp;
|
|
5390
5390
|
if ((length % 63 | 0) === 0) {
|
|
5391
5391
|
tmp = length / 63 | 0;
|
|
@@ -5421,7 +5421,7 @@
|
|
|
5421
5421
|
var this_3 = _ULong___init__impl__c78o9k(tmp$ret$7);
|
|
5422
5422
|
var tmp0_0 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_3), 32));
|
|
5423
5423
|
// Inline function 'kotlin.ULong.and' call
|
|
5424
|
-
var other = this.
|
|
5424
|
+
var other = this.p11_1;
|
|
5425
5425
|
// Inline function 'kotlin.ULong.or' call
|
|
5426
5426
|
var other_0 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_0), _ULong___get_data__impl__fggpzb(other)));
|
|
5427
5427
|
var tmp$ret$12 = _ULong___init__impl__c78o9k(bitwiseOr(_ULong___get_data__impl__fggpzb(tmp0), _ULong___get_data__impl__fggpzb(other_0)));
|
|
@@ -5514,7 +5514,7 @@
|
|
|
5514
5514
|
var this_18 = _ULong___init__impl__c78o9k(tmp$ret$43);
|
|
5515
5515
|
var tmp0_5 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_18), 32));
|
|
5516
5516
|
// Inline function 'kotlin.ULong.and' call
|
|
5517
|
-
var other_4 = this.
|
|
5517
|
+
var other_4 = this.p11_1;
|
|
5518
5518
|
// Inline function 'kotlin.ULong.or' call
|
|
5519
5519
|
var other_5 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_5), _ULong___get_data__impl__fggpzb(other_4)));
|
|
5520
5520
|
var tmp$ret$48 = _ULong___init__impl__c78o9k(bitwiseOr(_ULong___get_data__impl__fggpzb(tmp0_4), _ULong___get_data__impl__fggpzb(other_5)));
|
|
@@ -5552,7 +5552,7 @@
|
|
|
5552
5552
|
var bitCount_0 = 32 + shiftAmount | 0;
|
|
5553
5553
|
var tmp0_10 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(tmp0_9), bitCount_0));
|
|
5554
5554
|
// Inline function 'kotlin.ULong.and' call
|
|
5555
|
-
var other_7 = this.
|
|
5555
|
+
var other_7 = this.p11_1;
|
|
5556
5556
|
// Inline function 'kotlin.ULong.or' call
|
|
5557
5557
|
var other_8 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0_10), _ULong___get_data__impl__fggpzb(other_7)));
|
|
5558
5558
|
var tmp$ret$63 = _ULong___init__impl__c78o9k(bitwiseOr(_ULong___get_data__impl__fggpzb(tmp0_8), _ULong___get_data__impl__fggpzb(other_8)));
|
|
@@ -5600,32 +5600,32 @@
|
|
|
5600
5600
|
while (inductionVariable < requiredLength);
|
|
5601
5601
|
return result;
|
|
5602
5602
|
};
|
|
5603
|
-
protoOf(BigInteger63Arithmetic).
|
|
5604
|
-
return this.
|
|
5603
|
+
protoOf(BigInteger63Arithmetic).h12 = function (first, second) {
|
|
5604
|
+
return this.x15(first, second);
|
|
5605
5605
|
};
|
|
5606
|
-
protoOf(BigInteger63Arithmetic).
|
|
5606
|
+
protoOf(BigInteger63Arithmetic).x14 = function (_this__u8e3s4, other) {
|
|
5607
5607
|
return signedAdd(this, _this__u8e3s4, other);
|
|
5608
5608
|
};
|
|
5609
|
-
protoOf(BigInteger63Arithmetic).
|
|
5609
|
+
protoOf(BigInteger63Arithmetic).z14 = function (_this__u8e3s4, other) {
|
|
5610
5610
|
return signedSubtract(this, _this__u8e3s4, other);
|
|
5611
5611
|
};
|
|
5612
|
-
protoOf(BigInteger63Arithmetic).
|
|
5612
|
+
protoOf(BigInteger63Arithmetic).w14 = function (_this__u8e3s4, other) {
|
|
5613
5613
|
return signedMultiply(this, _this__u8e3s4, other);
|
|
5614
5614
|
};
|
|
5615
|
-
protoOf(BigInteger63Arithmetic).
|
|
5615
|
+
protoOf(BigInteger63Arithmetic).s15 = function (_this__u8e3s4, other) {
|
|
5616
5616
|
return signedDivide(this, _this__u8e3s4, other);
|
|
5617
5617
|
};
|
|
5618
|
-
protoOf(BigInteger63Arithmetic).
|
|
5619
|
-
return new SignedULongArray(this.
|
|
5618
|
+
protoOf(BigInteger63Arithmetic).v14 = function (_this__u8e3s4, places) {
|
|
5619
|
+
return new SignedULongArray(this.w15(_this__u8e3s4.a15_1, places), _this__u8e3s4.b15_1);
|
|
5620
5620
|
};
|
|
5621
|
-
protoOf(BigInteger63Arithmetic).
|
|
5622
|
-
return new SignedULongArray(this.
|
|
5621
|
+
protoOf(BigInteger63Arithmetic).y14 = function (_this__u8e3s4, places) {
|
|
5622
|
+
return new SignedULongArray(this.r14(_this__u8e3s4.a15_1, places), _this__u8e3s4.b15_1);
|
|
5623
5623
|
};
|
|
5624
|
-
protoOf(BigInteger63Arithmetic).
|
|
5625
|
-
return new SignedULongArray(this.
|
|
5624
|
+
protoOf(BigInteger63Arithmetic).u14 = function (_this__u8e3s4, operand) {
|
|
5625
|
+
return new SignedULongArray(this.f16(_this__u8e3s4.a15_1, operand), _this__u8e3s4.b15_1);
|
|
5626
5626
|
};
|
|
5627
|
-
protoOf(BigInteger63Arithmetic).
|
|
5628
|
-
var parsed = this.
|
|
5627
|
+
protoOf(BigInteger63Arithmetic).t10 = function (number, base) {
|
|
5628
|
+
var parsed = this.f11_1;
|
|
5629
5629
|
// Inline function 'kotlin.text.toLowerCase' call
|
|
5630
5630
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5631
5631
|
// Inline function 'kotlin.text.forEach' call
|
|
@@ -5639,15 +5639,15 @@
|
|
|
5639
5639
|
var tmp_1 = parsed;
|
|
5640
5640
|
// Inline function 'kotlin.toULong' call
|
|
5641
5641
|
var tmp$ret$2 = _ULong___init__impl__c78o9k(fromInt(base));
|
|
5642
|
-
var tmp_2 = tmp_0.
|
|
5642
|
+
var tmp_2 = tmp_0.g16(tmp_1, tmp$ret$2);
|
|
5643
5643
|
// Inline function 'kotlin.toULong' call
|
|
5644
5644
|
var this_0 = toDigit(element, base);
|
|
5645
5645
|
var tmp$ret$3 = _ULong___init__impl__c78o9k(fromInt(this_0));
|
|
5646
|
-
parsed = tmp.
|
|
5646
|
+
parsed = tmp.y15(tmp_2, tmp$ret$3);
|
|
5647
5647
|
}
|
|
5648
|
-
return this.
|
|
5648
|
+
return this.w11(parsed);
|
|
5649
5649
|
};
|
|
5650
|
-
protoOf(BigInteger63Arithmetic).
|
|
5650
|
+
protoOf(BigInteger63Arithmetic).p12 = function (operand, base) {
|
|
5651
5651
|
// Inline function 'kotlin.collections.copyOf' call
|
|
5652
5652
|
var copy = _ULongArray___init__impl__twm1l3(copyOf(_ULongArray___get_storage__impl__28e64j(operand)));
|
|
5653
5653
|
// Inline function 'kotlin.toULong' call
|
|
@@ -5655,20 +5655,20 @@
|
|
|
5655
5655
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5656
5656
|
var baseArray = _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$1]));
|
|
5657
5657
|
var stringBuilder = StringBuilder_init_$Create$();
|
|
5658
|
-
while (!equals(copy, this.
|
|
5659
|
-
var divremResult = this.
|
|
5660
|
-
if (ULongArray__isEmpty_impl_c3yngu(divremResult.
|
|
5658
|
+
while (!equals(copy, this.f11_1)) {
|
|
5659
|
+
var divremResult = this.h16(copy, baseArray);
|
|
5660
|
+
if (ULongArray__isEmpty_impl_c3yngu(divremResult.tb_1.of_1)) {
|
|
5661
5661
|
stringBuilder.j9(0);
|
|
5662
5662
|
} else {
|
|
5663
|
-
stringBuilder.n6(toString_1(ULongArray__get_impl_pr71q9(divremResult.
|
|
5663
|
+
stringBuilder.n6(toString_1(ULongArray__get_impl_pr71q9(divremResult.tb_1.of_1, 0), base));
|
|
5664
5664
|
}
|
|
5665
|
-
copy = divremResult.
|
|
5665
|
+
copy = divremResult.sb_1.of_1;
|
|
5666
5666
|
}
|
|
5667
5667
|
// Inline function 'kotlin.text.reversed' call
|
|
5668
5668
|
var this_0 = stringBuilder.toString();
|
|
5669
5669
|
return toString(reversed(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
5670
5670
|
};
|
|
5671
|
-
protoOf(BigInteger63Arithmetic).
|
|
5671
|
+
protoOf(BigInteger63Arithmetic).f16 = function (operand, mask) {
|
|
5672
5672
|
var tmp;
|
|
5673
5673
|
if (_ULongArray___get_size__impl__ju6dtr(operand) > _ULongArray___get_size__impl__ju6dtr(mask)) {
|
|
5674
5674
|
tmp = new Pair(new ULongArray(operand), new ULongArray(mask));
|
|
@@ -5676,8 +5676,8 @@
|
|
|
5676
5676
|
tmp = new Pair(new ULongArray(mask), new ULongArray(operand));
|
|
5677
5677
|
}
|
|
5678
5678
|
var _destruct__k2r9zo = tmp;
|
|
5679
|
-
var bigger = _destruct__k2r9zo.
|
|
5680
|
-
var smaller = _destruct__k2r9zo.
|
|
5679
|
+
var bigger = _destruct__k2r9zo.ub().of_1;
|
|
5680
|
+
var smaller = _destruct__k2r9zo.vb().of_1;
|
|
5681
5681
|
// Inline function 'kotlin.ULongArray' call
|
|
5682
5682
|
var tmp_0 = 0;
|
|
5683
5683
|
var tmp_1 = _ULongArray___get_size__impl__ju6dtr(smaller);
|
|
@@ -5694,62 +5694,62 @@
|
|
|
5694
5694
|
}
|
|
5695
5695
|
return _ULongArray___init__impl__twm1l3(tmp_2);
|
|
5696
5696
|
};
|
|
5697
|
-
protoOf(BigInteger63Arithmetic).
|
|
5697
|
+
protoOf(BigInteger63Arithmetic).r14 = function (_this__u8e3s4, places) {
|
|
5698
|
+
return this.m15(_this__u8e3s4, places);
|
|
5699
|
+
};
|
|
5700
|
+
protoOf(BigInteger63Arithmetic).w15 = function (_this__u8e3s4, places) {
|
|
5698
5701
|
return this.n15(_this__u8e3s4, places);
|
|
5699
5702
|
};
|
|
5700
|
-
protoOf(BigInteger63Arithmetic).
|
|
5701
|
-
return this.
|
|
5703
|
+
protoOf(BigInteger63Arithmetic).s14 = function (_this__u8e3s4, other) {
|
|
5704
|
+
return this.z11(_this__u8e3s4, other);
|
|
5702
5705
|
};
|
|
5703
|
-
protoOf(BigInteger63Arithmetic).
|
|
5704
|
-
return this.
|
|
5706
|
+
protoOf(BigInteger63Arithmetic).f15 = function (_this__u8e3s4, other) {
|
|
5707
|
+
return this.y11(_this__u8e3s4, other);
|
|
5705
5708
|
};
|
|
5706
5709
|
protoOf(BigInteger63Arithmetic).g15 = function (_this__u8e3s4, other) {
|
|
5707
|
-
return this.
|
|
5708
|
-
};
|
|
5709
|
-
protoOf(BigInteger63Arithmetic).h15 = function (_this__u8e3s4, other) {
|
|
5710
|
-
return this.g12(_this__u8e3s4, other);
|
|
5710
|
+
return this.f12(_this__u8e3s4, other);
|
|
5711
5711
|
};
|
|
5712
|
-
protoOf(BigInteger63Arithmetic).
|
|
5712
|
+
protoOf(BigInteger63Arithmetic).y15 = function (_this__u8e3s4, other) {
|
|
5713
5713
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5714
5714
|
var tmp$ret$0 = _ULongArray___init__impl__twm1l3(longArrayOf([other]));
|
|
5715
|
-
return this.
|
|
5715
|
+
return this.z11(_this__u8e3s4, tmp$ret$0);
|
|
5716
5716
|
};
|
|
5717
|
-
protoOf(BigInteger63Arithmetic).
|
|
5717
|
+
protoOf(BigInteger63Arithmetic).t14 = function (_this__u8e3s4, other) {
|
|
5718
5718
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5719
5719
|
var tmp$ret$0 = _ULongArray___init__impl__twm1l3(longArrayOf([other]));
|
|
5720
|
-
return this.
|
|
5720
|
+
return this.y11(_this__u8e3s4, tmp$ret$0);
|
|
5721
5721
|
};
|
|
5722
|
-
protoOf(BigInteger63Arithmetic).
|
|
5723
|
-
return this.
|
|
5722
|
+
protoOf(BigInteger63Arithmetic).g16 = function (_this__u8e3s4, other) {
|
|
5723
|
+
return this.q14(_this__u8e3s4, other);
|
|
5724
5724
|
};
|
|
5725
|
-
protoOf(BigInteger63Arithmetic).
|
|
5726
|
-
return this.
|
|
5725
|
+
protoOf(BigInteger63Arithmetic).h15 = function (_this__u8e3s4, other) {
|
|
5726
|
+
return this.h12(_this__u8e3s4, other).sb_1.of_1;
|
|
5727
5727
|
};
|
|
5728
|
-
protoOf(BigInteger63Arithmetic).
|
|
5729
|
-
return this.
|
|
5728
|
+
protoOf(BigInteger63Arithmetic).h16 = function (_this__u8e3s4, other) {
|
|
5729
|
+
return this.h12(_this__u8e3s4, other);
|
|
5730
5730
|
};
|
|
5731
|
-
protoOf(BigInteger63Arithmetic).
|
|
5732
|
-
return this.
|
|
5731
|
+
protoOf(BigInteger63Arithmetic).l12 = function (_this__u8e3s4, other) {
|
|
5732
|
+
return this.c11(_this__u8e3s4, other);
|
|
5733
5733
|
};
|
|
5734
|
-
protoOf(BigInteger63Arithmetic).
|
|
5734
|
+
protoOf(BigInteger63Arithmetic).b16 = function (_this__u8e3s4, other) {
|
|
5735
5735
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5736
5736
|
var tmp$ret$0 = _ULongArray___init__impl__twm1l3(longArrayOf([other]));
|
|
5737
|
-
return this.
|
|
5737
|
+
return this.c11(_this__u8e3s4, tmp$ret$0);
|
|
5738
|
+
};
|
|
5739
|
+
protoOf(BigInteger63Arithmetic).z15 = function (_this__u8e3s4) {
|
|
5740
|
+
return this.d16(_this__u8e3s4);
|
|
5738
5741
|
};
|
|
5739
5742
|
protoOf(BigInteger63Arithmetic).a16 = function (_this__u8e3s4) {
|
|
5740
5743
|
return this.e16(_this__u8e3s4);
|
|
5741
5744
|
};
|
|
5742
|
-
protoOf(BigInteger63Arithmetic).
|
|
5743
|
-
return this.f16(_this__u8e3s4);
|
|
5744
|
-
};
|
|
5745
|
-
protoOf(BigInteger63Arithmetic).w10 = function (uLong) {
|
|
5745
|
+
protoOf(BigInteger63Arithmetic).v10 = function (uLong) {
|
|
5746
5746
|
var tmp;
|
|
5747
5747
|
// Inline function 'kotlin.ULong.and' call
|
|
5748
|
-
var other = this.
|
|
5748
|
+
var other = this.q11_1;
|
|
5749
5749
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(uLong), _ULong___get_data__impl__fggpzb(other)));
|
|
5750
5750
|
if (!equals(tmp$ret$0, _ULong___init__impl__c78o9k(new Long(0, 0)))) {
|
|
5751
5751
|
// Inline function 'kotlin.ULong.and' call
|
|
5752
|
-
var other_0 = this.
|
|
5752
|
+
var other_0 = this.m11_1;
|
|
5753
5753
|
var tmp$ret$1 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(uLong), _ULong___get_data__impl__fggpzb(other_0)));
|
|
5754
5754
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5755
5755
|
tmp = _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$1, _ULong___init__impl__c78o9k(new Long(1, 0))]));
|
|
@@ -5759,7 +5759,7 @@
|
|
|
5759
5759
|
}
|
|
5760
5760
|
return tmp;
|
|
5761
5761
|
};
|
|
5762
|
-
protoOf(BigInteger63Arithmetic).
|
|
5762
|
+
protoOf(BigInteger63Arithmetic).x10 = function (uInt) {
|
|
5763
5763
|
// Inline function 'kotlin.UInt.toULong' call
|
|
5764
5764
|
// Inline function 'kotlin.uintToULong' call
|
|
5765
5765
|
// Inline function 'kotlin.uintToLong' call
|
|
@@ -5769,19 +5769,19 @@
|
|
|
5769
5769
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5770
5770
|
return _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$2]));
|
|
5771
5771
|
};
|
|
5772
|
-
protoOf(BigInteger63Arithmetic).
|
|
5772
|
+
protoOf(BigInteger63Arithmetic).z10 = function (uShort) {
|
|
5773
5773
|
// Inline function 'kotlin.UShort.toULong' call
|
|
5774
5774
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(bitwiseAnd(fromInt(_UShort___get_data__impl__g0245(uShort)), new Long(65535, 0)));
|
|
5775
5775
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5776
5776
|
return _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$0]));
|
|
5777
5777
|
};
|
|
5778
|
-
protoOf(BigInteger63Arithmetic).
|
|
5778
|
+
protoOf(BigInteger63Arithmetic).b11 = function (uByte) {
|
|
5779
5779
|
// Inline function 'kotlin.UByte.toULong' call
|
|
5780
5780
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(bitwiseAnd(fromInt(_UByte___get_data__impl__jof9qr(uByte)), new Long(255, 0)));
|
|
5781
5781
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5782
5782
|
return _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$0]));
|
|
5783
5783
|
};
|
|
5784
|
-
protoOf(BigInteger63Arithmetic).
|
|
5784
|
+
protoOf(BigInteger63Arithmetic).l10 = function (long) {
|
|
5785
5785
|
if (equalsLong(long, new Long(0, -2147483648))) {
|
|
5786
5786
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5787
5787
|
return _ULongArray___init__impl__twm1l3(longArrayOf([_ULong___init__impl__c78o9k(new Long(0, 0)), _ULong___init__impl__c78o9k(new Long(1, 0))]));
|
|
@@ -5791,12 +5791,12 @@
|
|
|
5791
5791
|
var this_0 = abs(long);
|
|
5792
5792
|
var tmp0 = _ULong___init__impl__c78o9k(this_0);
|
|
5793
5793
|
// Inline function 'kotlin.ULong.and' call
|
|
5794
|
-
var other = this.
|
|
5794
|
+
var other = this.m11_1;
|
|
5795
5795
|
var tmp$ret$3 = _ULong___init__impl__c78o9k(bitwiseAnd(_ULong___get_data__impl__fggpzb(tmp0), _ULong___get_data__impl__fggpzb(other)));
|
|
5796
5796
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5797
5797
|
return _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$3]));
|
|
5798
5798
|
};
|
|
5799
|
-
protoOf(BigInteger63Arithmetic).
|
|
5799
|
+
protoOf(BigInteger63Arithmetic).m10 = function (int) {
|
|
5800
5800
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
5801
5801
|
var this_0 = fromInt(int);
|
|
5802
5802
|
// Inline function 'kotlin.toULong' call
|
|
@@ -5805,7 +5805,7 @@
|
|
|
5805
5805
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5806
5806
|
return _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$1]));
|
|
5807
5807
|
};
|
|
5808
|
-
protoOf(BigInteger63Arithmetic).
|
|
5808
|
+
protoOf(BigInteger63Arithmetic).n10 = function (short) {
|
|
5809
5809
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
5810
5810
|
// Inline function 'kotlin.toULong' call
|
|
5811
5811
|
var this_0 = abs_0(short);
|
|
@@ -5813,7 +5813,7 @@
|
|
|
5813
5813
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5814
5814
|
return _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$1]));
|
|
5815
5815
|
};
|
|
5816
|
-
protoOf(BigInteger63Arithmetic).
|
|
5816
|
+
protoOf(BigInteger63Arithmetic).o10 = function (byte) {
|
|
5817
5817
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
5818
5818
|
// Inline function 'kotlin.toULong' call
|
|
5819
5819
|
var this_0 = abs_0(byte);
|
|
@@ -5853,7 +5853,7 @@
|
|
|
5853
5853
|
}
|
|
5854
5854
|
function RuntimePlatform() {
|
|
5855
5855
|
}
|
|
5856
|
-
protoOf(RuntimePlatform).
|
|
5856
|
+
protoOf(RuntimePlatform).f10 = function () {
|
|
5857
5857
|
return Platform_JS_getInstance();
|
|
5858
5858
|
};
|
|
5859
5859
|
var RuntimePlatform_instance;
|
|
@@ -5861,22 +5861,22 @@
|
|
|
5861
5861
|
return RuntimePlatform_instance;
|
|
5862
5862
|
}
|
|
5863
5863
|
//region block: post-declaration
|
|
5864
|
-
protoOf(Companion).
|
|
5865
|
-
protoOf(Companion).
|
|
5866
|
-
protoOf(Companion).
|
|
5867
|
-
protoOf(BigDecimal).
|
|
5868
|
-
protoOf(BigDecimal).
|
|
5869
|
-
protoOf(BigDecimal).
|
|
5870
|
-
protoOf(Companion_1).
|
|
5871
|
-
protoOf(Companion_1).
|
|
5872
|
-
protoOf(Companion_1).
|
|
5873
|
-
protoOf(BigInteger).
|
|
5874
|
-
protoOf(BigInteger).
|
|
5875
|
-
protoOf(BigInteger).
|
|
5876
|
-
protoOf(BigInteger).
|
|
5877
|
-
protoOf(BigInteger).
|
|
5878
|
-
protoOf(BigInteger).
|
|
5879
|
-
protoOf(BigInteger).
|
|
5864
|
+
protoOf(Companion).xv = tryFromFloat$default;
|
|
5865
|
+
protoOf(Companion).zv = tryFromDouble$default;
|
|
5866
|
+
protoOf(Companion).uv = parseString$default;
|
|
5867
|
+
protoOf(BigDecimal).kw = plus_1;
|
|
5868
|
+
protoOf(BigDecimal).lw = minus_0;
|
|
5869
|
+
protoOf(BigDecimal).dg = times_0;
|
|
5870
|
+
protoOf(Companion_1).uv = parseString$default;
|
|
5871
|
+
protoOf(Companion_1).xv = tryFromFloat$default;
|
|
5872
|
+
protoOf(Companion_1).zv = tryFromDouble$default;
|
|
5873
|
+
protoOf(BigInteger).cw = plus_0;
|
|
5874
|
+
protoOf(BigInteger).ew = minus;
|
|
5875
|
+
protoOf(BigInteger).gw = times;
|
|
5876
|
+
protoOf(BigInteger).dg = times_0;
|
|
5877
|
+
protoOf(BigInteger).iw = div;
|
|
5878
|
+
protoOf(BigInteger).mw = div_0;
|
|
5879
|
+
protoOf(BigInteger).nw = rem;
|
|
5880
5880
|
//endregion
|
|
5881
5881
|
//region block: init
|
|
5882
5882
|
RuntimePlatform_instance = new RuntimePlatform();
|