@dhis2/expression-parser 1.1.0 → 1.1.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-ir.js +28 -25
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.mjs +28 -25
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.mjs.map +1 -1
- package/KotlinBigInteger-bignum-js-ir.js +1098 -1098
- package/KotlinBigInteger-bignum-js-ir.mjs +1098 -1098
- package/README.md +15 -15
- package/expression-parser.js +1941 -1941
- package/expression-parser.js.map +1 -1
- package/expression-parser.mjs +1941 -1941
- package/expression-parser.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.js +12 -12
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +10 -10
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -113,43 +113,43 @@
|
|
|
113
113
|
//region block: pre-declaration
|
|
114
114
|
function parseString$default(string, base, $super) {
|
|
115
115
|
base = base === VOID ? 10 : base;
|
|
116
|
-
return $super === VOID ? this.
|
|
116
|
+
return $super === VOID ? this.jh(string, base) : $super.jh.call(this, string, base);
|
|
117
117
|
}
|
|
118
118
|
function tryFromFloat$default(float, exactRequired, $super) {
|
|
119
119
|
exactRequired = exactRequired === VOID ? false : exactRequired;
|
|
120
|
-
return $super === VOID ? this.
|
|
120
|
+
return $super === VOID ? this.mh(float, exactRequired) : $super.mh.call(this, float, exactRequired);
|
|
121
121
|
}
|
|
122
122
|
function tryFromDouble$default(double, exactRequired, $super) {
|
|
123
123
|
exactRequired = exactRequired === VOID ? false : exactRequired;
|
|
124
|
-
return $super === VOID ? this.
|
|
124
|
+
return $super === VOID ? this.oh(double, exactRequired) : $super.oh.call(this, double, exactRequired);
|
|
125
125
|
}
|
|
126
126
|
setMetadataFor(Creator, 'Creator', interfaceMeta);
|
|
127
127
|
function plus_0(other) {
|
|
128
|
-
return this.
|
|
128
|
+
return this.rh().th(other);
|
|
129
129
|
}
|
|
130
130
|
function minus(other) {
|
|
131
|
-
return this.
|
|
131
|
+
return this.rh().vh(other);
|
|
132
132
|
}
|
|
133
133
|
function times(other) {
|
|
134
|
-
return this.
|
|
134
|
+
return this.rh().xh(other);
|
|
135
135
|
}
|
|
136
136
|
function div(other) {
|
|
137
|
-
return this.
|
|
137
|
+
return this.rh().zh(other);
|
|
138
138
|
}
|
|
139
139
|
function plus_1(int) {
|
|
140
|
-
return this.
|
|
140
|
+
return this.rh().th(this.qh().lh(int));
|
|
141
141
|
}
|
|
142
142
|
function times_0(int) {
|
|
143
|
-
return this.
|
|
143
|
+
return this.rh().xh(this.qh().lh(int));
|
|
144
144
|
}
|
|
145
145
|
function minus_0(int) {
|
|
146
|
-
return this.
|
|
146
|
+
return this.rh().vh(this.qh().lh(int));
|
|
147
147
|
}
|
|
148
148
|
function div_0(int) {
|
|
149
|
-
return this.
|
|
149
|
+
return this.rh().zh(this.qh().lh(int));
|
|
150
150
|
}
|
|
151
151
|
function rem(int) {
|
|
152
|
-
return this.
|
|
152
|
+
return this.rh().fi(this.qh().lh(int));
|
|
153
153
|
}
|
|
154
154
|
setMetadataFor(CommonBigNumberOperations, 'CommonBigNumberOperations', interfaceMeta);
|
|
155
155
|
setMetadataFor(SignificantDecider, 'SignificantDecider', classMeta, Enum);
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
}
|
|
191
191
|
function roundOrDont($this, significand, exponent, decimalMode) {
|
|
192
192
|
var tmp;
|
|
193
|
-
if (decimalMode.
|
|
193
|
+
if (decimalMode.ji_1) {
|
|
194
194
|
tmp = new BigDecimal(significand, exponent);
|
|
195
195
|
} else {
|
|
196
196
|
tmp = roundSignificand($this, significand, exponent, decimalMode);
|
|
@@ -201,17 +201,17 @@
|
|
|
201
201
|
Enum.call(this, name, ordinal);
|
|
202
202
|
}
|
|
203
203
|
function determineDecider($this, discarded) {
|
|
204
|
-
var tmp = Companion_getInstance_2().
|
|
204
|
+
var tmp = Companion_getInstance_2().pi_1;
|
|
205
205
|
// Inline function 'kotlin.Long.minus' call
|
|
206
|
-
var tmp$ret$0 = discarded.
|
|
207
|
-
var scale = tmp.
|
|
208
|
-
var divrem = discarded.
|
|
209
|
-
var significant = divrem.
|
|
210
|
-
var rest = divrem.
|
|
206
|
+
var tmp$ret$0 = discarded.vi().n9(toLong(1));
|
|
207
|
+
var scale = tmp.wi(tmp$ret$0);
|
|
208
|
+
var divrem = discarded.xi(scale);
|
|
209
|
+
var significant = divrem.yi_1.aj().bj(true);
|
|
210
|
+
var rest = divrem.zi_1.aj();
|
|
211
211
|
var tmp_0;
|
|
212
212
|
if (significant === 5) {
|
|
213
213
|
var tmp_1;
|
|
214
|
-
if (rest.equals(Companion_getInstance_2().
|
|
214
|
+
if (rest.equals(Companion_getInstance_2().mi_1)) {
|
|
215
215
|
tmp_1 = SignificantDecider_FIVE_getInstance();
|
|
216
216
|
} else {
|
|
217
217
|
tmp_1 = SignificantDecider_MORE_THAN_FIVE_getInstance();
|
|
@@ -227,11 +227,11 @@
|
|
|
227
227
|
return tmp_0;
|
|
228
228
|
}
|
|
229
229
|
function roundDiscarded($this, significand, discarded, decimalMode) {
|
|
230
|
-
var toDiscard = significand.
|
|
230
|
+
var toDiscard = significand.vi().n9(decimalMode.gi_1);
|
|
231
231
|
var tmp;
|
|
232
232
|
if (toDiscard.m5(new Long(0, 0)) > 0) {
|
|
233
|
-
var additionallyDiscarded = significand.
|
|
234
|
-
tmp = new Pair(additionallyDiscarded.
|
|
233
|
+
var additionallyDiscarded = significand.xi(Companion_getInstance_2().pi_1.wi(toDiscard));
|
|
234
|
+
tmp = new Pair(additionallyDiscarded.yi_1, additionallyDiscarded.zi_1);
|
|
235
235
|
} else {
|
|
236
236
|
tmp = new Pair(significand, discarded);
|
|
237
237
|
}
|
|
@@ -239,23 +239,23 @@
|
|
|
239
239
|
var result = tmp0_container.oc();
|
|
240
240
|
var remainder = tmp0_container.pc();
|
|
241
241
|
var tmp_0;
|
|
242
|
-
if (significand.equals(Companion_getInstance_2().
|
|
243
|
-
tmp_0 = discarded.
|
|
242
|
+
if (significand.equals(Companion_getInstance_2().mi_1)) {
|
|
243
|
+
tmp_0 = discarded.si_1;
|
|
244
244
|
} else {
|
|
245
|
-
tmp_0 = significand.
|
|
245
|
+
tmp_0 = significand.si_1;
|
|
246
246
|
}
|
|
247
247
|
var sign = tmp_0;
|
|
248
|
-
if (!decimalMode.
|
|
249
|
-
if (remainder.
|
|
248
|
+
if (!decimalMode.hi_1.equals(RoundingMode_AWAY_FROM_ZERO_getInstance()) ? !decimalMode.hi_1.equals(RoundingMode_TOWARDS_ZERO_getInstance()) : false) {
|
|
249
|
+
if (remainder.cj()) {
|
|
250
250
|
return result;
|
|
251
251
|
}
|
|
252
252
|
} else {
|
|
253
|
-
if (remainder.
|
|
253
|
+
if (remainder.cj() ? discarded.cj() : false) {
|
|
254
254
|
return result;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
var decider = determineDecider($this, remainder);
|
|
258
|
-
switch (decimalMode.
|
|
258
|
+
switch (decimalMode.hi_1.b9_1) {
|
|
259
259
|
case 2:
|
|
260
260
|
if (sign.equals(Sign_POSITIVE_getInstance())) {
|
|
261
261
|
result = result.r9();
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
break;
|
|
357
357
|
case 9:
|
|
358
358
|
if (decider.equals(SignificantDecider_FIVE_getInstance())) {
|
|
359
|
-
if (significand.
|
|
359
|
+
if (significand.ei(2).equals(Companion_getInstance_2().ni_1)) {
|
|
360
360
|
switch (sign.b9_1) {
|
|
361
361
|
case 0:
|
|
362
362
|
if (!decider.equals(SignificantDecider_LESS_THAN_FIVE_getInstance())) {
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
break;
|
|
404
404
|
case 10:
|
|
405
405
|
if (decider.equals(SignificantDecider_FIVE_getInstance())) {
|
|
406
|
-
if (significand.
|
|
406
|
+
if (significand.ei(2).equals(Companion_getInstance_2().mi_1)) {
|
|
407
407
|
switch (sign.b9_1) {
|
|
408
408
|
case 0:
|
|
409
409
|
if (!decider.equals(SignificantDecider_LESS_THAN_FIVE_getInstance())) {
|
|
@@ -454,34 +454,34 @@
|
|
|
454
454
|
return result;
|
|
455
455
|
}
|
|
456
456
|
function roundSignificand($this, significand, exponent, decimalMode) {
|
|
457
|
-
if (significand.equals(Companion_getInstance_2().
|
|
458
|
-
return new BigDecimal(Companion_getInstance_2().
|
|
457
|
+
if (significand.equals(Companion_getInstance_2().mi_1)) {
|
|
458
|
+
return new BigDecimal(Companion_getInstance_2().mi_1, exponent, decimalMode);
|
|
459
459
|
}
|
|
460
|
-
var significandDigits = significand.
|
|
460
|
+
var significandDigits = significand.vi();
|
|
461
461
|
var tmp;
|
|
462
|
-
if (decimalMode.
|
|
463
|
-
tmp = decimalMode.
|
|
462
|
+
if (decimalMode.ki_1) {
|
|
463
|
+
tmp = decimalMode.gi_1.m9(decimalMode.ii_1);
|
|
464
464
|
} else {
|
|
465
|
-
tmp = decimalMode.
|
|
465
|
+
tmp = decimalMode.gi_1;
|
|
466
466
|
}
|
|
467
467
|
var desiredPrecision = tmp;
|
|
468
468
|
var tmp_0;
|
|
469
469
|
if (desiredPrecision.m5(significandDigits) > 0) {
|
|
470
|
-
var extendedSignificand = significand.
|
|
470
|
+
var extendedSignificand = significand.wh(Companion_getInstance_2().pi_1.wi(desiredPrecision.n9(significandDigits)));
|
|
471
471
|
tmp_0 = new BigDecimal(extendedSignificand, exponent, decimalMode);
|
|
472
472
|
} else if (desiredPrecision.m5(significandDigits) < 0) {
|
|
473
|
-
var divRem = significand.
|
|
474
|
-
var resolvedRemainder = divRem.
|
|
475
|
-
if (divRem.
|
|
476
|
-
return new BigDecimal(divRem.
|
|
473
|
+
var divRem = significand.xi(Companion_getInstance_2().pi_1.wi(significandDigits.n9(desiredPrecision)));
|
|
474
|
+
var resolvedRemainder = divRem.zi_1;
|
|
475
|
+
if (divRem.zi_1.equals(Companion_getInstance_2().mi_1)) {
|
|
476
|
+
return new BigDecimal(divRem.yi_1, exponent, decimalMode);
|
|
477
477
|
}
|
|
478
478
|
var tmp_1;
|
|
479
|
-
if (significand.
|
|
480
|
-
var newSignificand = roundDiscarded($this, divRem.
|
|
481
|
-
var exponentModifier = newSignificand.
|
|
479
|
+
if (significand.vi().equals(divRem.yi_1.vi().m9(divRem.zi_1.vi()))) {
|
|
480
|
+
var newSignificand = roundDiscarded($this, divRem.yi_1, resolvedRemainder, decimalMode);
|
|
481
|
+
var exponentModifier = newSignificand.vi().n9(divRem.yi_1.vi());
|
|
482
482
|
tmp_1 = new BigDecimal(newSignificand, exponent.m9(exponentModifier), decimalMode);
|
|
483
483
|
} else {
|
|
484
|
-
tmp_1 = $this.
|
|
484
|
+
tmp_1 = $this.oj(divRem.yi_1, exponent, decimalMode);
|
|
485
485
|
}
|
|
486
486
|
tmp_0 = tmp_1;
|
|
487
487
|
} else {
|
|
@@ -490,18 +490,18 @@
|
|
|
490
490
|
return tmp_0;
|
|
491
491
|
}
|
|
492
492
|
function applyScale($this, significand, exponent, decimalMode) {
|
|
493
|
-
if (!decimalMode.
|
|
493
|
+
if (!decimalMode.ki_1) {
|
|
494
494
|
return new BigDecimal(significand, exponent, decimalMode);
|
|
495
495
|
}
|
|
496
496
|
var tmp;
|
|
497
497
|
if (exponent.m5(new Long(0, 0)) >= 0) {
|
|
498
498
|
// Inline function 'kotlin.Long.plus' call
|
|
499
|
-
var tmp$ret$0 = exponent.m9(decimalMode.
|
|
500
|
-
tmp = new DecimalMode(tmp$ret$0, decimalMode.
|
|
499
|
+
var tmp$ret$0 = exponent.m9(decimalMode.ii_1).m9(toLong(1));
|
|
500
|
+
tmp = new DecimalMode(tmp$ret$0, decimalMode.hi_1);
|
|
501
501
|
} else if (exponent.m5(new Long(0, 0)) < 0) {
|
|
502
502
|
// Inline function 'kotlin.Long.plus' call
|
|
503
|
-
var tmp$ret$1 = decimalMode.
|
|
504
|
-
tmp = new DecimalMode(tmp$ret$1, decimalMode.
|
|
503
|
+
var tmp$ret$1 = decimalMode.ii_1.m9(toLong(1));
|
|
504
|
+
tmp = new DecimalMode(tmp$ret$1, decimalMode.hi_1);
|
|
505
505
|
} else {
|
|
506
506
|
throw RuntimeException_init_$Create$('Unexpected state');
|
|
507
507
|
}
|
|
@@ -510,8 +510,8 @@
|
|
|
510
510
|
if (exponent.m5(new Long(0, 0)) >= 0) {
|
|
511
511
|
tmp_0 = roundSignificand($this, significand, exponent, workMode);
|
|
512
512
|
} else {
|
|
513
|
-
var temp = (new BigDecimal(significand, exponent)).
|
|
514
|
-
tmp_0 = roundSignificand($this, temp.
|
|
513
|
+
var temp = (new BigDecimal(significand, exponent)).ai(significand.pj());
|
|
514
|
+
tmp_0 = roundSignificand($this, temp.rj_1, temp.sj_1, workMode).ci(significand.pj());
|
|
515
515
|
}
|
|
516
516
|
return tmp_0;
|
|
517
517
|
}
|
|
@@ -529,11 +529,11 @@
|
|
|
529
529
|
if (secondDecimalMode == null ? !(firstDecimalMode == null) : false) {
|
|
530
530
|
return firstDecimalMode;
|
|
531
531
|
}
|
|
532
|
-
if (!ensureNotNull(firstDecimalMode).
|
|
533
|
-
throw ArithmeticException_init_$Create$('Different rounding modes! This: ' + firstDecimalMode.
|
|
532
|
+
if (!ensureNotNull(firstDecimalMode).hi_1.equals(ensureNotNull(secondDecimalMode).hi_1)) {
|
|
533
|
+
throw ArithmeticException_init_$Create$('Different rounding modes! This: ' + firstDecimalMode.hi_1 + ' Other: ' + secondDecimalMode.hi_1);
|
|
534
534
|
}
|
|
535
535
|
var tmp_0;
|
|
536
|
-
if (firstDecimalMode.
|
|
536
|
+
if (firstDecimalMode.gi_1.m5(secondDecimalMode.gi_1) >= 0) {
|
|
537
537
|
tmp_0 = firstDecimalMode;
|
|
538
538
|
} else {
|
|
539
539
|
tmp_0 = secondDecimalMode;
|
|
@@ -569,35 +569,35 @@
|
|
|
569
569
|
}
|
|
570
570
|
function Companion() {
|
|
571
571
|
Companion_instance = this;
|
|
572
|
-
this.cj_1 = new BigDecimal(Companion_getInstance_2().li_1);
|
|
573
572
|
this.dj_1 = new BigDecimal(Companion_getInstance_2().mi_1);
|
|
574
573
|
this.ej_1 = new BigDecimal(Companion_getInstance_2().ni_1);
|
|
575
|
-
this.fj_1 = new BigDecimal(Companion_getInstance_2().oi_1
|
|
576
|
-
this.gj_1 =
|
|
574
|
+
this.fj_1 = new BigDecimal(Companion_getInstance_2().oi_1);
|
|
575
|
+
this.gj_1 = new BigDecimal(Companion_getInstance_2().pi_1, new Long(1, 0));
|
|
576
|
+
this.hj_1 = false;
|
|
577
577
|
var tmp = this;
|
|
578
578
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
579
|
-
tmp.
|
|
579
|
+
tmp.ij_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]);
|
|
580
580
|
var tmp_0 = this;
|
|
581
|
-
tmp_0.
|
|
581
|
+
tmp_0.jj_1 = this.yj(1.7976931348623157E308);
|
|
582
582
|
var tmp_1 = this;
|
|
583
|
-
tmp_1.
|
|
583
|
+
tmp_1.kj_1 = this.yj(4.9E-324);
|
|
584
584
|
var tmp_2 = this;
|
|
585
585
|
// Inline function 'kotlin.floatArrayOf' call
|
|
586
|
-
tmp_2.
|
|
586
|
+
tmp_2.lj_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]);
|
|
587
587
|
var tmp_3 = this;
|
|
588
|
-
tmp_3.
|
|
588
|
+
tmp_3.mj_1 = this.zj(3.4028235E38);
|
|
589
589
|
var tmp_4 = this;
|
|
590
|
-
tmp_4.
|
|
590
|
+
tmp_4.nj_1 = this.zj(1.4E-45);
|
|
591
591
|
}
|
|
592
|
-
protoOf(Companion).
|
|
592
|
+
protoOf(Companion).oj = function (significand, exponent, decimalMode) {
|
|
593
593
|
var tmp;
|
|
594
|
-
if (significand.
|
|
594
|
+
if (significand.si_1.equals(Sign_POSITIVE_getInstance())) {
|
|
595
595
|
var tmp_0;
|
|
596
|
-
switch (decimalMode.
|
|
596
|
+
switch (decimalMode.hi_1.b9_1) {
|
|
597
597
|
case 1:
|
|
598
598
|
case 2:
|
|
599
599
|
var increasedSignificand = significand.r9();
|
|
600
|
-
var exponentModifier = increasedSignificand.
|
|
600
|
+
var exponentModifier = increasedSignificand.vi().n9(significand.vi());
|
|
601
601
|
tmp_0 = new BigDecimal(increasedSignificand, exponent.m9(exponentModifier), decimalMode);
|
|
602
602
|
break;
|
|
603
603
|
default:
|
|
@@ -605,13 +605,13 @@
|
|
|
605
605
|
break;
|
|
606
606
|
}
|
|
607
607
|
tmp = tmp_0;
|
|
608
|
-
} else if (significand.
|
|
608
|
+
} else if (significand.si_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
609
609
|
var tmp_1;
|
|
610
|
-
switch (decimalMode.
|
|
610
|
+
switch (decimalMode.hi_1.b9_1) {
|
|
611
611
|
case 0:
|
|
612
612
|
case 2:
|
|
613
613
|
var increasedSignificand_0 = significand.s9();
|
|
614
|
-
var exponentModifier_0 = increasedSignificand_0.
|
|
614
|
+
var exponentModifier_0 = increasedSignificand_0.vi().n9(significand.vi());
|
|
615
615
|
tmp_1 = new BigDecimal(increasedSignificand_0, exponent.m9(exponentModifier_0), decimalMode);
|
|
616
616
|
break;
|
|
617
617
|
default:
|
|
@@ -624,31 +624,31 @@
|
|
|
624
624
|
}
|
|
625
625
|
return tmp;
|
|
626
626
|
};
|
|
627
|
-
protoOf(Companion).
|
|
628
|
-
var bigint = Companion_getInstance_2().
|
|
627
|
+
protoOf(Companion).ak = function (long, decimalMode) {
|
|
628
|
+
var bigint = Companion_getInstance_2().bk(long);
|
|
629
629
|
// Inline function 'kotlin.Long.minus' call
|
|
630
|
-
var tmp$ret$0 = bigint.
|
|
631
|
-
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).
|
|
630
|
+
var tmp$ret$0 = bigint.vi().n9(toLong(1));
|
|
631
|
+
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).ck(decimalMode);
|
|
632
632
|
};
|
|
633
|
-
protoOf(Companion).
|
|
634
|
-
var bigint = Companion_getInstance_2().
|
|
633
|
+
protoOf(Companion).dk = function (int, decimalMode) {
|
|
634
|
+
var bigint = Companion_getInstance_2().lh(int);
|
|
635
635
|
// Inline function 'kotlin.Long.minus' call
|
|
636
|
-
var tmp$ret$0 = bigint.
|
|
637
|
-
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).
|
|
636
|
+
var tmp$ret$0 = bigint.vi().n9(toLong(1));
|
|
637
|
+
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).ck(decimalMode);
|
|
638
638
|
};
|
|
639
|
-
protoOf(Companion).
|
|
640
|
-
var bigint = Companion_getInstance_2().
|
|
639
|
+
protoOf(Companion).ek = function (short, decimalMode) {
|
|
640
|
+
var bigint = Companion_getInstance_2().fk(short);
|
|
641
641
|
// Inline function 'kotlin.Long.minus' call
|
|
642
|
-
var tmp$ret$0 = bigint.
|
|
643
|
-
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).
|
|
642
|
+
var tmp$ret$0 = bigint.vi().n9(toLong(1));
|
|
643
|
+
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).ck(decimalMode);
|
|
644
644
|
};
|
|
645
|
-
protoOf(Companion).
|
|
646
|
-
var bigint = Companion_getInstance_2().
|
|
645
|
+
protoOf(Companion).gk = function (byte, decimalMode) {
|
|
646
|
+
var bigint = Companion_getInstance_2().hk(byte);
|
|
647
647
|
// Inline function 'kotlin.Long.minus' call
|
|
648
|
-
var tmp$ret$0 = bigint.
|
|
649
|
-
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).
|
|
648
|
+
var tmp$ret$0 = bigint.vi().n9(toLong(1));
|
|
649
|
+
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).ck(decimalMode);
|
|
650
650
|
};
|
|
651
|
-
protoOf(Companion).
|
|
651
|
+
protoOf(Companion).ik = function (float, decimalMode) {
|
|
652
652
|
var floatString = float.toString();
|
|
653
653
|
var tmp;
|
|
654
654
|
if (contains(floatString, _Char___init__impl__6a9atx(46)) ? !contains(floatString, _Char___init__impl__6a9atx(69), true) : false) {
|
|
@@ -672,17 +672,17 @@
|
|
|
672
672
|
while (0 <= inductionVariable);
|
|
673
673
|
tmp$ret$3 = '';
|
|
674
674
|
}
|
|
675
|
-
tmp = this.
|
|
675
|
+
tmp = this.jk(tmp$ret$3, decimalMode).ck(decimalMode);
|
|
676
676
|
} else {
|
|
677
|
-
tmp = this.
|
|
677
|
+
tmp = this.jk(floatString, decimalMode).ck(decimalMode);
|
|
678
678
|
}
|
|
679
679
|
return tmp;
|
|
680
680
|
};
|
|
681
|
-
protoOf(Companion).
|
|
681
|
+
protoOf(Companion).zj = function (float, decimalMode, $super) {
|
|
682
682
|
decimalMode = decimalMode === VOID ? null : decimalMode;
|
|
683
|
-
return $super === VOID ? this.
|
|
683
|
+
return $super === VOID ? this.ik(float, decimalMode) : $super.ik.call(this, float, decimalMode);
|
|
684
684
|
};
|
|
685
|
-
protoOf(Companion).
|
|
685
|
+
protoOf(Companion).kk = function (double, decimalMode) {
|
|
686
686
|
var doubleString = double.toString();
|
|
687
687
|
var tmp;
|
|
688
688
|
if (contains(doubleString, _Char___init__impl__6a9atx(46)) ? !contains(doubleString, _Char___init__impl__6a9atx(69), true) : false) {
|
|
@@ -706,41 +706,41 @@
|
|
|
706
706
|
while (0 <= inductionVariable);
|
|
707
707
|
tmp$ret$3 = '';
|
|
708
708
|
}
|
|
709
|
-
tmp = this.
|
|
709
|
+
tmp = this.jk(tmp$ret$3, decimalMode).ck(decimalMode);
|
|
710
710
|
} else {
|
|
711
|
-
tmp = this.
|
|
711
|
+
tmp = this.jk(doubleString, decimalMode).ck(decimalMode).ck(decimalMode);
|
|
712
712
|
}
|
|
713
713
|
return tmp;
|
|
714
714
|
};
|
|
715
|
-
protoOf(Companion).
|
|
715
|
+
protoOf(Companion).yj = function (double, decimalMode, $super) {
|
|
716
716
|
decimalMode = decimalMode === VOID ? null : decimalMode;
|
|
717
|
-
return $super === VOID ? this.
|
|
717
|
+
return $super === VOID ? this.kk(double, decimalMode) : $super.kk.call(this, double, decimalMode);
|
|
718
718
|
};
|
|
719
|
-
protoOf(Companion).
|
|
720
|
-
return this.
|
|
719
|
+
protoOf(Companion).bk = function (long) {
|
|
720
|
+
return this.ak(long, null);
|
|
721
721
|
};
|
|
722
|
-
protoOf(Companion).
|
|
723
|
-
return this.
|
|
722
|
+
protoOf(Companion).lh = function (int) {
|
|
723
|
+
return this.dk(int, null);
|
|
724
724
|
};
|
|
725
|
-
protoOf(Companion).
|
|
726
|
-
return this.
|
|
725
|
+
protoOf(Companion).fk = function (short) {
|
|
726
|
+
return this.ek(short, null);
|
|
727
727
|
};
|
|
728
|
-
protoOf(Companion).
|
|
729
|
-
return this.
|
|
728
|
+
protoOf(Companion).hk = function (byte) {
|
|
729
|
+
return this.gk(byte, null);
|
|
730
730
|
};
|
|
731
|
-
protoOf(Companion).
|
|
732
|
-
return this.
|
|
731
|
+
protoOf(Companion).mh = function (float, exactRequired) {
|
|
732
|
+
return this.ik(float, null);
|
|
733
733
|
};
|
|
734
|
-
protoOf(Companion).
|
|
735
|
-
return this.
|
|
734
|
+
protoOf(Companion).oh = function (double, exactRequired) {
|
|
735
|
+
return this.kk(double, null);
|
|
736
736
|
};
|
|
737
|
-
protoOf(Companion).
|
|
738
|
-
return this.
|
|
737
|
+
protoOf(Companion).jh = function (string, base) {
|
|
738
|
+
return this.jk(string, null);
|
|
739
739
|
};
|
|
740
|
-
protoOf(Companion).
|
|
741
|
-
return this.
|
|
740
|
+
protoOf(Companion).lk = function (string) {
|
|
741
|
+
return this.mk(string);
|
|
742
742
|
};
|
|
743
|
-
protoOf(Companion).
|
|
743
|
+
protoOf(Companion).jk = function (floatingPointString, decimalMode) {
|
|
744
744
|
// Inline function 'kotlin.text.isEmpty' call
|
|
745
745
|
if (charSequenceLength(floatingPointString) === 0) {
|
|
746
746
|
throw ArithmeticException_init_$Create$('Empty string is not a valid decimal number');
|
|
@@ -860,12 +860,12 @@
|
|
|
860
860
|
var endIndex_0 = rightLastNonZero + 1 | 0;
|
|
861
861
|
// Inline function 'kotlin.js.asDynamic' call
|
|
862
862
|
var rightTruncated = right.substring(0, endIndex_0);
|
|
863
|
-
var significand = Companion_getInstance_2().
|
|
864
|
-
if (significand.equals(Companion_getInstance_2().
|
|
863
|
+
var significand = Companion_getInstance_2().jh(leftTruncated + rightTruncated, 10);
|
|
864
|
+
if (significand.equals(Companion_getInstance_2().mi_1)) {
|
|
865
865
|
sign = Sign_ZERO_getInstance();
|
|
866
866
|
}
|
|
867
867
|
if (sign.equals(Sign_NEGATIVE_getInstance())) {
|
|
868
|
-
significand = significand.
|
|
868
|
+
significand = significand.nk();
|
|
869
869
|
}
|
|
870
870
|
var tmp_6;
|
|
871
871
|
if (!(leftTruncated === '0')) {
|
|
@@ -875,7 +875,7 @@
|
|
|
875
875
|
tmp_6 = exponent.m9(toLong(other)).n9(toLong(1));
|
|
876
876
|
} else {
|
|
877
877
|
// Inline function 'kotlin.Long.minus' call
|
|
878
|
-
tmp_6 = exponent.n9(numberToLong(rightTruncated.length).n9(significand.
|
|
878
|
+
tmp_6 = exponent.n9(numberToLong(rightTruncated.length).n9(significand.vi())).n9(toLong(1));
|
|
879
879
|
}
|
|
880
880
|
var exponentModifiedByFloatingPointPosition = tmp_6;
|
|
881
881
|
return new BigDecimal(significand, exponentModifiedByFloatingPointPosition, decimalMode);
|
|
@@ -962,7 +962,7 @@
|
|
|
962
962
|
var endIndex_2 = rightLastNonZero_0 + 1 | 0;
|
|
963
963
|
// Inline function 'kotlin.js.asDynamic' call
|
|
964
964
|
var rightTruncated_0 = right_0.substring(0, endIndex_2);
|
|
965
|
-
var significand_0 = Companion_getInstance_2().
|
|
965
|
+
var significand_0 = Companion_getInstance_2().jh(leftTruncated_0 + rightTruncated_0, 10);
|
|
966
966
|
var tmp_10;
|
|
967
967
|
var tmp_11;
|
|
968
968
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
@@ -995,26 +995,26 @@
|
|
|
995
995
|
tmp_10 = imul(tmp$ret$29 + 1 | 0, -1);
|
|
996
996
|
}
|
|
997
997
|
var exponent_0 = tmp_10;
|
|
998
|
-
if (significand_0.equals(Companion_getInstance_2().
|
|
998
|
+
if (significand_0.equals(Companion_getInstance_2().mi_1)) {
|
|
999
999
|
sign_0 = Sign_ZERO_getInstance();
|
|
1000
1000
|
}
|
|
1001
1001
|
if (sign_0.equals(Sign_NEGATIVE_getInstance())) {
|
|
1002
|
-
significand_0 = significand_0.
|
|
1002
|
+
significand_0 = significand_0.nk();
|
|
1003
1003
|
}
|
|
1004
1004
|
return new BigDecimal(significand_0, toLong(exponent_0), decimalMode);
|
|
1005
1005
|
} else
|
|
1006
1006
|
throw ArithmeticException_init_$Create$('Invalid (or unsupported) floating point number format: ' + floatingPointString);
|
|
1007
1007
|
} else {
|
|
1008
|
-
var significand_1 = Companion_getInstance_2().
|
|
1008
|
+
var significand_1 = Companion_getInstance_2().jh(floatingPointString, 10);
|
|
1009
1009
|
// Inline function 'kotlin.Long.minus' call
|
|
1010
|
-
var tmp$ret$30 = significand_1.
|
|
1010
|
+
var tmp$ret$30 = significand_1.vi().n9(toLong(1));
|
|
1011
1011
|
return new BigDecimal(significand_1, tmp$ret$30, decimalMode);
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
1014
|
};
|
|
1015
|
-
protoOf(Companion).
|
|
1015
|
+
protoOf(Companion).mk = function (floatingPointString, decimalMode, $super) {
|
|
1016
1016
|
decimalMode = decimalMode === VOID ? null : decimalMode;
|
|
1017
|
-
return $super === VOID ? this.
|
|
1017
|
+
return $super === VOID ? this.jk(floatingPointString, decimalMode) : $super.jk.call(this, floatingPointString, decimalMode);
|
|
1018
1018
|
};
|
|
1019
1019
|
var Companion_instance;
|
|
1020
1020
|
function Companion_getInstance_0() {
|
|
@@ -1023,51 +1023,51 @@
|
|
|
1023
1023
|
return Companion_instance;
|
|
1024
1024
|
}
|
|
1025
1025
|
function removeTrailingZeroes($this, bigDecimal) {
|
|
1026
|
-
if (bigDecimal.equals(Companion_getInstance_0().
|
|
1026
|
+
if (bigDecimal.equals(Companion_getInstance_0().dj_1))
|
|
1027
1027
|
return $this;
|
|
1028
|
-
var significand = bigDecimal.
|
|
1029
|
-
var divisionResult = new QuotientAndRemainder(bigDecimal.
|
|
1028
|
+
var significand = bigDecimal.rj_1;
|
|
1029
|
+
var divisionResult = new QuotientAndRemainder(bigDecimal.rj_1, Companion_getInstance_2().mi_1);
|
|
1030
1030
|
do {
|
|
1031
|
-
divisionResult = divisionResult.
|
|
1032
|
-
if (divisionResult.
|
|
1033
|
-
significand = divisionResult.
|
|
1031
|
+
divisionResult = divisionResult.yi_1.xi(Companion_getInstance_2().pi_1);
|
|
1032
|
+
if (divisionResult.zi_1.equals(Companion_getInstance_2().mi_1)) {
|
|
1033
|
+
significand = divisionResult.yi_1;
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
|
-
while (divisionResult.
|
|
1037
|
-
return new BigDecimal(significand, bigDecimal.
|
|
1036
|
+
while (divisionResult.zi_1.equals(Companion_getInstance_2().mi_1));
|
|
1037
|
+
return new BigDecimal(significand, bigDecimal.sj_1);
|
|
1038
1038
|
}
|
|
1039
1039
|
function ScaleOps(name, ordinal) {
|
|
1040
1040
|
Enum.call(this, name, ordinal);
|
|
1041
1041
|
}
|
|
1042
1042
|
function computeMode($this, other, op) {
|
|
1043
1043
|
var tmp;
|
|
1044
|
-
if ((($this.
|
|
1045
|
-
tmp = Companion_getInstance_1().
|
|
1044
|
+
if ((($this.tj_1 == null ? true : $this.tj_1.ji_1) ? true : other.tj_1 == null) ? true : other.tj_1.ji_1) {
|
|
1045
|
+
tmp = Companion_getInstance_1().ok_1;
|
|
1046
1046
|
} else {
|
|
1047
1047
|
// Inline function 'kotlin.math.max' call
|
|
1048
|
-
var a = $this.
|
|
1049
|
-
var b = other.
|
|
1048
|
+
var a = $this.tj_1.gi_1;
|
|
1049
|
+
var b = other.tj_1.gi_1;
|
|
1050
1050
|
var tmp_0 = a.m5(b) >= 0 ? a : b;
|
|
1051
1051
|
var tmp_1;
|
|
1052
|
-
if ($this.
|
|
1052
|
+
if ($this.tj_1.ki_1 ? other.tj_1.ki_1 : false) {
|
|
1053
1053
|
var tmp_2;
|
|
1054
1054
|
switch (op.b9_1) {
|
|
1055
1055
|
case 0:
|
|
1056
1056
|
// Inline function 'kotlin.math.max' call
|
|
1057
1057
|
|
|
1058
|
-
var a_0 = $this.
|
|
1059
|
-
var b_0 = other.
|
|
1058
|
+
var a_0 = $this.tj_1.ii_1;
|
|
1059
|
+
var b_0 = other.tj_1.ii_1;
|
|
1060
1060
|
tmp_2 = a_0.m5(b_0) >= 0 ? a_0 : b_0;
|
|
1061
1061
|
break;
|
|
1062
1062
|
case 1:
|
|
1063
1063
|
// Inline function 'kotlin.math.min' call
|
|
1064
1064
|
|
|
1065
|
-
var a_1 = $this.
|
|
1066
|
-
var b_1 = other.
|
|
1065
|
+
var a_1 = $this.tj_1.ii_1;
|
|
1066
|
+
var b_1 = other.tj_1.ii_1;
|
|
1067
1067
|
tmp_2 = a_1.m5(b_1) <= 0 ? a_1 : b_1;
|
|
1068
1068
|
break;
|
|
1069
1069
|
case 2:
|
|
1070
|
-
tmp_2 = $this.
|
|
1070
|
+
tmp_2 = $this.tj_1.ii_1.m9(other.tj_1.ii_1);
|
|
1071
1071
|
break;
|
|
1072
1072
|
default:
|
|
1073
1073
|
noWhenBranchMatchedException();
|
|
@@ -1077,67 +1077,67 @@
|
|
|
1077
1077
|
} else {
|
|
1078
1078
|
tmp_1 = new Long(-1, -1);
|
|
1079
1079
|
}
|
|
1080
|
-
tmp = new DecimalMode(tmp_0, $this.
|
|
1080
|
+
tmp = new DecimalMode(tmp_0, $this.tj_1.hi_1, tmp_1);
|
|
1081
1081
|
}
|
|
1082
1082
|
return tmp;
|
|
1083
1083
|
}
|
|
1084
1084
|
function getRidOfRadix($this, bigDecimal) {
|
|
1085
|
-
var precision = bigDecimal.
|
|
1085
|
+
var precision = bigDecimal.rj_1.vi();
|
|
1086
1086
|
// Inline function 'kotlin.Long.plus' call
|
|
1087
|
-
var newExponent = bigDecimal.
|
|
1088
|
-
return new BigDecimal(bigDecimal.
|
|
1087
|
+
var newExponent = bigDecimal.sj_1.n9(precision).m9(toLong(1));
|
|
1088
|
+
return new BigDecimal(bigDecimal.rj_1, newExponent);
|
|
1089
1089
|
}
|
|
1090
1090
|
function bringSignificandToSameExponent($this, first, second) {
|
|
1091
1091
|
var firstPrepared = getRidOfRadix($this, first);
|
|
1092
1092
|
var secondPrepared = getRidOfRadix($this, second);
|
|
1093
|
-
var firstPreparedExponent = firstPrepared.
|
|
1094
|
-
var secondPreparedExponent = secondPrepared.
|
|
1093
|
+
var firstPreparedExponent = firstPrepared.sj_1;
|
|
1094
|
+
var secondPreparedExponent = secondPrepared.sj_1;
|
|
1095
1095
|
var tmp;
|
|
1096
|
-
if (first.
|
|
1096
|
+
if (first.sj_1.m5(second.sj_1) > 0) {
|
|
1097
1097
|
var moveFirstBy = firstPreparedExponent.n9(secondPreparedExponent);
|
|
1098
1098
|
var tmp_0;
|
|
1099
1099
|
if (moveFirstBy.m5(new Long(0, 0)) >= 0) {
|
|
1100
|
-
var movedFirst = firstPrepared.
|
|
1101
|
-
return new Triple(movedFirst, second.
|
|
1100
|
+
var movedFirst = firstPrepared.rj_1.wh(toBigInteger(10).wi(moveFirstBy));
|
|
1101
|
+
return new Triple(movedFirst, second.rj_1, secondPreparedExponent);
|
|
1102
1102
|
} else {
|
|
1103
1103
|
var tmp_1 = toBigInteger(10);
|
|
1104
1104
|
// Inline function 'kotlin.Long.times' call
|
|
1105
1105
|
var tmp$ret$0 = moveFirstBy.o9(toLong(-1));
|
|
1106
|
-
var movedSecond = secondPrepared.
|
|
1107
|
-
tmp_0 = new Triple(first.
|
|
1106
|
+
var movedSecond = secondPrepared.rj_1.wh(tmp_1.wi(tmp$ret$0));
|
|
1107
|
+
tmp_0 = new Triple(first.rj_1, movedSecond, firstPreparedExponent);
|
|
1108
1108
|
}
|
|
1109
1109
|
tmp = tmp_0;
|
|
1110
|
-
} else if (first.
|
|
1110
|
+
} else if (first.sj_1.m5(second.sj_1) < 0) {
|
|
1111
1111
|
var moveSecondBy = secondPreparedExponent.n9(firstPreparedExponent);
|
|
1112
1112
|
var tmp_2;
|
|
1113
1113
|
if (moveSecondBy.m5(new Long(0, 0)) >= 0) {
|
|
1114
|
-
var movedSecond_0 = secondPrepared.
|
|
1115
|
-
tmp_2 = new Triple(first.
|
|
1114
|
+
var movedSecond_0 = secondPrepared.rj_1.wh(toBigInteger(10).wi(moveSecondBy));
|
|
1115
|
+
tmp_2 = new Triple(first.rj_1, movedSecond_0, firstPreparedExponent);
|
|
1116
1116
|
} else {
|
|
1117
1117
|
var tmp_3 = toBigInteger(10);
|
|
1118
1118
|
// Inline function 'kotlin.Long.times' call
|
|
1119
1119
|
var tmp$ret$1 = moveSecondBy.o9(toLong(-1));
|
|
1120
|
-
var movedFirst_0 = firstPrepared.
|
|
1121
|
-
tmp_2 = new Triple(movedFirst_0, second.
|
|
1120
|
+
var movedFirst_0 = firstPrepared.rj_1.wh(tmp_3.wi(tmp$ret$1));
|
|
1121
|
+
tmp_2 = new Triple(movedFirst_0, second.rj_1, firstPreparedExponent);
|
|
1122
1122
|
}
|
|
1123
1123
|
return tmp_2;
|
|
1124
|
-
} else if (first.
|
|
1124
|
+
} else if (first.sj_1.equals(second.sj_1)) {
|
|
1125
1125
|
var delta = firstPreparedExponent.n9(secondPreparedExponent);
|
|
1126
1126
|
var tmp_4;
|
|
1127
1127
|
if (delta.m5(new Long(0, 0)) > 0) {
|
|
1128
|
-
var movedFirst_1 = first.
|
|
1129
|
-
tmp_4 = new Triple(movedFirst_1, second.
|
|
1128
|
+
var movedFirst_1 = first.rj_1.wh(toBigInteger(10).wi(delta));
|
|
1129
|
+
tmp_4 = new Triple(movedFirst_1, second.rj_1, firstPreparedExponent);
|
|
1130
1130
|
} else {
|
|
1131
1131
|
if (delta.m5(new Long(0, 0)) < 0) {
|
|
1132
1132
|
var tmp_5 = toBigInteger(10);
|
|
1133
1133
|
// Inline function 'kotlin.Long.times' call
|
|
1134
1134
|
var tmp$ret$2 = delta.o9(toLong(-1));
|
|
1135
|
-
var movedSecond_1 = second.
|
|
1136
|
-
tmp_4 = new Triple(first.
|
|
1135
|
+
var movedSecond_1 = second.rj_1.wh(tmp_5.wi(tmp$ret$2));
|
|
1136
|
+
tmp_4 = new Triple(first.rj_1, movedSecond_1, firstPreparedExponent);
|
|
1137
1137
|
} else {
|
|
1138
1138
|
// Inline function 'kotlin.Long.compareTo' call
|
|
1139
1139
|
if (delta.m5(toLong(0)) === 0) {
|
|
1140
|
-
tmp_4 = new Triple(first.
|
|
1140
|
+
tmp_4 = new Triple(first.rj_1, second.rj_1, firstPreparedExponent);
|
|
1141
1141
|
} else {
|
|
1142
1142
|
throw RuntimeException_init_$Create$('Invalid delta: ' + delta.toString());
|
|
1143
1143
|
}
|
|
@@ -1145,7 +1145,7 @@
|
|
|
1145
1145
|
}
|
|
1146
1146
|
return tmp_4;
|
|
1147
1147
|
} else {
|
|
1148
|
-
throw RuntimeException_init_$Create$('Invalid comparison state BigInteger: ' + first.
|
|
1148
|
+
throw RuntimeException_init_$Create$('Invalid comparison state BigInteger: ' + first.sj_1.toString() + ', ' + second.sj_1.toString());
|
|
1149
1149
|
}
|
|
1150
1150
|
return tmp;
|
|
1151
1151
|
}
|
|
@@ -1154,12 +1154,12 @@
|
|
|
1154
1154
|
var tmp;
|
|
1155
1155
|
Companion_getInstance();
|
|
1156
1156
|
if (double > (new Long(-1, 2147483647)).h9()) {
|
|
1157
|
-
tmp = $this.
|
|
1157
|
+
tmp = $this.qk(Companion_getInstance_0().lk(double.toString()));
|
|
1158
1158
|
} else {
|
|
1159
1159
|
if (double % 1 === 0.0) {
|
|
1160
|
-
tmp = $this.
|
|
1160
|
+
tmp = $this.qk(Companion_getInstance_0().bk(numberToLong(number)));
|
|
1161
1161
|
} else {
|
|
1162
|
-
tmp = $this.
|
|
1162
|
+
tmp = $this.qk(toBigDecimal(numberToDouble(number)));
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
1165
1165
|
return tmp;
|
|
@@ -1231,85 +1231,85 @@
|
|
|
1231
1231
|
Companion_getInstance_0();
|
|
1232
1232
|
_exponent = _exponent === VOID ? new Long(0, 0) : _exponent;
|
|
1233
1233
|
_decimalMode = _decimalMode === VOID ? null : _decimalMode;
|
|
1234
|
-
if (!(_decimalMode == null) ? _decimalMode.
|
|
1234
|
+
if (!(_decimalMode == null) ? _decimalMode.ki_1 : false) {
|
|
1235
1235
|
var wrk = applyScale(Companion_getInstance_0(), _significand, _exponent, _decimalMode);
|
|
1236
|
-
if (!wrk.
|
|
1237
|
-
this.qj_1 = wrk.qj_1;
|
|
1236
|
+
if (!wrk.cj()) {
|
|
1238
1237
|
this.rj_1 = wrk.rj_1;
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
this.
|
|
1238
|
+
this.sj_1 = wrk.sj_1;
|
|
1239
|
+
var newPrecision = this.rj_1.vi();
|
|
1240
|
+
this.qj_1 = newPrecision;
|
|
1241
|
+
this.tj_1 = _decimalMode.rk(newPrecision);
|
|
1242
1242
|
} else {
|
|
1243
|
-
this.
|
|
1244
|
-
this.
|
|
1245
|
-
this.
|
|
1246
|
-
this.
|
|
1243
|
+
this.rj_1 = wrk.rj_1;
|
|
1244
|
+
this.sj_1 = wrk.sj_1.o9(_decimalMode.gi_1.m9(_decimalMode.ii_1));
|
|
1245
|
+
this.qj_1 = _decimalMode.gi_1.m9(_decimalMode.ii_1);
|
|
1246
|
+
this.tj_1 = _decimalMode.rk(this.qj_1);
|
|
1247
1247
|
}
|
|
1248
1248
|
} else {
|
|
1249
|
-
this.
|
|
1250
|
-
this.
|
|
1251
|
-
this.
|
|
1252
|
-
this.
|
|
1249
|
+
this.rj_1 = _significand;
|
|
1250
|
+
this.qj_1 = _significand.vi();
|
|
1251
|
+
this.sj_1 = _exponent;
|
|
1252
|
+
this.tj_1 = _decimalMode;
|
|
1253
1253
|
}
|
|
1254
1254
|
var tmp = this;
|
|
1255
|
-
var tmp0_safe_receiver = this.
|
|
1256
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1257
|
-
tmp.
|
|
1255
|
+
var tmp0_safe_receiver = this.tj_1;
|
|
1256
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gi_1;
|
|
1257
|
+
tmp.uj_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs;
|
|
1258
1258
|
var tmp_0 = this;
|
|
1259
|
-
var tmp0_safe_receiver_0 = this.
|
|
1260
|
-
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.
|
|
1261
|
-
tmp_0.
|
|
1259
|
+
var tmp0_safe_receiver_0 = this.tj_1;
|
|
1260
|
+
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.hi_1;
|
|
1261
|
+
tmp_0.vj_1 = tmp1_elvis_lhs_0 == null ? RoundingMode_NONE_getInstance() : tmp1_elvis_lhs_0;
|
|
1262
1262
|
var tmp_1 = this;
|
|
1263
|
-
var tmp0_safe_receiver_1 = this.
|
|
1264
|
-
var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
1265
|
-
tmp_1.
|
|
1266
|
-
this.
|
|
1263
|
+
var tmp0_safe_receiver_1 = this.tj_1;
|
|
1264
|
+
var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.ii_1;
|
|
1265
|
+
tmp_1.wj_1 = tmp1_elvis_lhs_1 == null ? new Long(-1, -1) : tmp1_elvis_lhs_1;
|
|
1266
|
+
this.xj_1 = this.wj_1.m5(new Long(0, 0)) >= 0;
|
|
1267
1267
|
}
|
|
1268
|
-
protoOf(BigDecimal).
|
|
1268
|
+
protoOf(BigDecimal).sk = function (scale) {
|
|
1269
1269
|
if (scale.m5(new Long(0, 0)) < 0)
|
|
1270
1270
|
throw ArithmeticException_init_$Create$('Negative Scale is unsupported.');
|
|
1271
1271
|
var tmp;
|
|
1272
|
-
if (this.
|
|
1272
|
+
if (this.tj_1 == null) {
|
|
1273
1273
|
var tmp_0;
|
|
1274
1274
|
if (scale.equals(new Long(-1, -1))) {
|
|
1275
|
-
tmp_0 = Companion_getInstance_1().
|
|
1275
|
+
tmp_0 = Companion_getInstance_1().ok_1;
|
|
1276
1276
|
} else {
|
|
1277
1277
|
tmp_0 = new DecimalMode(new Long(0, 0), RoundingMode_ROUND_HALF_AWAY_FROM_ZERO_getInstance(), scale);
|
|
1278
1278
|
}
|
|
1279
1279
|
tmp = tmp_0;
|
|
1280
1280
|
} else {
|
|
1281
|
-
tmp = new DecimalMode(this.
|
|
1281
|
+
tmp = new DecimalMode(this.tj_1.gi_1.n9(this.tj_1.ii_1), this.tj_1.hi_1, scale);
|
|
1282
1282
|
}
|
|
1283
1283
|
var mode = tmp;
|
|
1284
|
-
return new BigDecimal(this.
|
|
1284
|
+
return new BigDecimal(this.rj_1, this.sj_1, mode);
|
|
1285
1285
|
};
|
|
1286
|
-
protoOf(BigDecimal).
|
|
1286
|
+
protoOf(BigDecimal).qh = function () {
|
|
1287
1287
|
return Companion_getInstance_0();
|
|
1288
1288
|
};
|
|
1289
|
-
protoOf(BigDecimal).
|
|
1289
|
+
protoOf(BigDecimal).rh = function () {
|
|
1290
1290
|
return this;
|
|
1291
1291
|
};
|
|
1292
|
-
protoOf(BigDecimal).
|
|
1293
|
-
return this.
|
|
1292
|
+
protoOf(BigDecimal).tk = function (other) {
|
|
1293
|
+
return this.uk(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1294
1294
|
};
|
|
1295
|
-
protoOf(BigDecimal).
|
|
1296
|
-
return this.
|
|
1295
|
+
protoOf(BigDecimal).th = function (other) {
|
|
1296
|
+
return this.tk(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1297
1297
|
};
|
|
1298
|
-
protoOf(BigDecimal).
|
|
1299
|
-
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance_0(), this.
|
|
1300
|
-
if (this.equals(Companion_getInstance_0().
|
|
1301
|
-
return roundOrDont(Companion_getInstance_0(), other.
|
|
1298
|
+
protoOf(BigDecimal).uk = function (other, decimalMode) {
|
|
1299
|
+
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance_0(), this.tj_1, other.tj_1, decimalMode);
|
|
1300
|
+
if (this.equals(Companion_getInstance_0().dj_1)) {
|
|
1301
|
+
return roundOrDont(Companion_getInstance_0(), other.rj_1, other.sj_1, resolvedDecimalMode);
|
|
1302
1302
|
}
|
|
1303
|
-
if (other.equals(Companion_getInstance_0().
|
|
1304
|
-
return roundOrDont(Companion_getInstance_0(), this.
|
|
1303
|
+
if (other.equals(Companion_getInstance_0().dj_1)) {
|
|
1304
|
+
return roundOrDont(Companion_getInstance_0(), this.rj_1, this.sj_1, resolvedDecimalMode);
|
|
1305
1305
|
}
|
|
1306
1306
|
var tmp0_container = bringSignificandToSameExponent(this, this, other);
|
|
1307
1307
|
var first = tmp0_container.oc();
|
|
1308
1308
|
var second = tmp0_container.pc();
|
|
1309
|
-
var firstNumOfDigits = first.
|
|
1310
|
-
var secondNumOfDigits = second.
|
|
1311
|
-
var newSignificand = first.
|
|
1312
|
-
var newSignificandNumOfDigit = newSignificand.
|
|
1309
|
+
var firstNumOfDigits = first.vi();
|
|
1310
|
+
var secondNumOfDigits = second.vi();
|
|
1311
|
+
var newSignificand = first.sh(second);
|
|
1312
|
+
var newSignificandNumOfDigit = newSignificand.vi();
|
|
1313
1313
|
var tmp;
|
|
1314
1314
|
if (firstNumOfDigits.m5(secondNumOfDigits) > 0) {
|
|
1315
1315
|
tmp = firstNumOfDigits;
|
|
@@ -1319,38 +1319,38 @@
|
|
|
1319
1319
|
var largerOperand = tmp;
|
|
1320
1320
|
var carryDetected = newSignificandNumOfDigit.n9(largerOperand);
|
|
1321
1321
|
// Inline function 'kotlin.math.max' call
|
|
1322
|
-
var a = this.
|
|
1323
|
-
var b = other.
|
|
1322
|
+
var a = this.sj_1;
|
|
1323
|
+
var b = other.sj_1;
|
|
1324
1324
|
var newExponent = (a.m5(b) >= 0 ? a : b).m9(carryDetected);
|
|
1325
1325
|
var tmp_0;
|
|
1326
|
-
if (resolvedDecimalMode.
|
|
1327
|
-
tmp_0 = roundOrDont(Companion_getInstance_0(), newSignificand, newExponent, resolvedDecimalMode.
|
|
1326
|
+
if (resolvedDecimalMode.ki_1) {
|
|
1327
|
+
tmp_0 = roundOrDont(Companion_getInstance_0(), newSignificand, newExponent, resolvedDecimalMode.rk(newSignificandNumOfDigit));
|
|
1328
1328
|
} else {
|
|
1329
1329
|
tmp_0 = roundOrDont(Companion_getInstance_0(), newSignificand, newExponent, resolvedDecimalMode);
|
|
1330
1330
|
}
|
|
1331
1331
|
return tmp_0;
|
|
1332
1332
|
};
|
|
1333
|
-
protoOf(BigDecimal).
|
|
1334
|
-
return this.
|
|
1333
|
+
protoOf(BigDecimal).vk = function (other) {
|
|
1334
|
+
return this.wk(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1335
1335
|
};
|
|
1336
|
-
protoOf(BigDecimal).
|
|
1337
|
-
return this.
|
|
1336
|
+
protoOf(BigDecimal).vh = function (other) {
|
|
1337
|
+
return this.vk(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1338
1338
|
};
|
|
1339
|
-
protoOf(BigDecimal).
|
|
1340
|
-
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance_0(), this.
|
|
1341
|
-
if (this.equals(Companion_getInstance_0().
|
|
1342
|
-
return roundOrDont(Companion_getInstance_0(), other.
|
|
1339
|
+
protoOf(BigDecimal).wk = function (other, decimalMode) {
|
|
1340
|
+
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance_0(), this.tj_1, other.tj_1, decimalMode);
|
|
1341
|
+
if (this.equals(Companion_getInstance_0().dj_1)) {
|
|
1342
|
+
return roundOrDont(Companion_getInstance_0(), other.rj_1.nk(), other.sj_1, resolvedDecimalMode);
|
|
1343
1343
|
}
|
|
1344
|
-
if (other.equals(Companion_getInstance_0().
|
|
1345
|
-
return roundOrDont(Companion_getInstance_0(), this.
|
|
1344
|
+
if (other.equals(Companion_getInstance_0().dj_1)) {
|
|
1345
|
+
return roundOrDont(Companion_getInstance_0(), this.rj_1, this.sj_1, resolvedDecimalMode);
|
|
1346
1346
|
}
|
|
1347
1347
|
var tmp0_container = bringSignificandToSameExponent(this, this, other);
|
|
1348
1348
|
var first = tmp0_container.oc();
|
|
1349
1349
|
var second = tmp0_container.pc();
|
|
1350
|
-
var firstNumOfDigits = first.
|
|
1351
|
-
var secondNumOfDigits = second.
|
|
1352
|
-
var newSignificand = first.
|
|
1353
|
-
var newSignificandNumOfDigit = newSignificand.
|
|
1350
|
+
var firstNumOfDigits = first.vi();
|
|
1351
|
+
var secondNumOfDigits = second.vi();
|
|
1352
|
+
var newSignificand = first.uh(second);
|
|
1353
|
+
var newSignificandNumOfDigit = newSignificand.vi();
|
|
1354
1354
|
var tmp;
|
|
1355
1355
|
if (firstNumOfDigits.m5(secondNumOfDigits) > 0) {
|
|
1356
1356
|
tmp = firstNumOfDigits;
|
|
@@ -1360,163 +1360,163 @@
|
|
|
1360
1360
|
var largerOperand = tmp;
|
|
1361
1361
|
var borrowDetected = newSignificandNumOfDigit.n9(largerOperand);
|
|
1362
1362
|
// Inline function 'kotlin.math.max' call
|
|
1363
|
-
var a = this.
|
|
1364
|
-
var b = other.
|
|
1363
|
+
var a = this.sj_1;
|
|
1364
|
+
var b = other.sj_1;
|
|
1365
1365
|
var newExponent = (a.m5(b) >= 0 ? a : b).m9(borrowDetected);
|
|
1366
|
-
if (this.
|
|
1367
|
-
return roundOrDont(Companion_getInstance_0(), newSignificand, newExponent, resolvedDecimalMode.
|
|
1366
|
+
if (this.xj_1) {
|
|
1367
|
+
return roundOrDont(Companion_getInstance_0(), newSignificand, newExponent, resolvedDecimalMode.rk(newSignificandNumOfDigit));
|
|
1368
1368
|
} else {
|
|
1369
1369
|
return roundOrDont(Companion_getInstance_0(), newSignificand, newExponent, resolvedDecimalMode);
|
|
1370
1370
|
}
|
|
1371
1371
|
};
|
|
1372
|
-
protoOf(BigDecimal).
|
|
1373
|
-
return this.
|
|
1372
|
+
protoOf(BigDecimal).xk = function (other) {
|
|
1373
|
+
return this.yk(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1374
1374
|
};
|
|
1375
|
-
protoOf(BigDecimal).
|
|
1376
|
-
return this.
|
|
1375
|
+
protoOf(BigDecimal).xh = function (other) {
|
|
1376
|
+
return this.xk(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1377
1377
|
};
|
|
1378
|
-
protoOf(BigDecimal).
|
|
1379
|
-
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance_0(), this.
|
|
1380
|
-
var firstNumOfDigits = this.
|
|
1381
|
-
var secondNumOfDigits = other.
|
|
1382
|
-
var newSignificand = this.
|
|
1383
|
-
var newSignificandNumOfDigit = newSignificand.
|
|
1378
|
+
protoOf(BigDecimal).yk = function (other, decimalMode) {
|
|
1379
|
+
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance_0(), this.tj_1, other.tj_1, decimalMode);
|
|
1380
|
+
var firstNumOfDigits = this.rj_1.vi();
|
|
1381
|
+
var secondNumOfDigits = other.rj_1.vi();
|
|
1382
|
+
var newSignificand = this.rj_1.wh(other.rj_1);
|
|
1383
|
+
var newSignificandNumOfDigit = newSignificand.vi();
|
|
1384
1384
|
var moveExponent = newSignificandNumOfDigit.n9(firstNumOfDigits.m9(secondNumOfDigits));
|
|
1385
1385
|
// Inline function 'kotlin.Long.plus' call
|
|
1386
|
-
var newExponent = this.
|
|
1386
|
+
var newExponent = this.sj_1.m9(other.sj_1).m9(moveExponent).m9(toLong(1));
|
|
1387
1387
|
var tmp;
|
|
1388
|
-
if (resolvedDecimalMode.
|
|
1389
|
-
tmp = roundOrDont(Companion_getInstance_0(), newSignificand, newExponent, resolvedDecimalMode.
|
|
1388
|
+
if (resolvedDecimalMode.ki_1) {
|
|
1389
|
+
tmp = roundOrDont(Companion_getInstance_0(), newSignificand, newExponent, resolvedDecimalMode.rk(newSignificandNumOfDigit));
|
|
1390
1390
|
} else {
|
|
1391
1391
|
tmp = roundOrDont(Companion_getInstance_0(), newSignificand, newExponent, resolvedDecimalMode);
|
|
1392
1392
|
}
|
|
1393
1393
|
return tmp;
|
|
1394
1394
|
};
|
|
1395
|
-
protoOf(BigDecimal).
|
|
1396
|
-
return this.
|
|
1395
|
+
protoOf(BigDecimal).zk = function (other) {
|
|
1396
|
+
return this.al(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1397
1397
|
};
|
|
1398
|
-
protoOf(BigDecimal).
|
|
1399
|
-
return this.
|
|
1398
|
+
protoOf(BigDecimal).zh = function (other) {
|
|
1399
|
+
return this.zk(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1400
1400
|
};
|
|
1401
|
-
protoOf(BigDecimal).
|
|
1402
|
-
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance_0(), this.
|
|
1403
|
-
if (resolvedDecimalMode.
|
|
1404
|
-
var newExponent = this.
|
|
1401
|
+
protoOf(BigDecimal).al = function (other, decimalMode) {
|
|
1402
|
+
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance_0(), this.tj_1, other.tj_1, decimalMode);
|
|
1403
|
+
if (resolvedDecimalMode.ji_1 ? !resolvedDecimalMode.ki_1 : false) {
|
|
1404
|
+
var newExponent = this.sj_1.n9(other.sj_1);
|
|
1405
1405
|
// Inline function 'kotlin.Long.plus' call
|
|
1406
1406
|
// Inline function 'kotlin.Long.times' call
|
|
1407
|
-
var power = other.
|
|
1408
|
-
var thisPrepared = this.
|
|
1409
|
-
var divRem = thisPrepared.
|
|
1410
|
-
var result = divRem.
|
|
1407
|
+
var power = other.qj_1.o9(toLong(2)).m9(toLong(6));
|
|
1408
|
+
var thisPrepared = this.rj_1.wh(Companion_getInstance_2().pi_1.wi(power));
|
|
1409
|
+
var divRem = thisPrepared.xi(other.rj_1);
|
|
1410
|
+
var result = divRem.yi_1;
|
|
1411
1411
|
// Inline function 'kotlin.Long.minus' call
|
|
1412
|
-
var expectedDiff = other.
|
|
1413
|
-
var exponentModifier = expectedDiff.m9(result.
|
|
1414
|
-
if (!divRem.
|
|
1412
|
+
var expectedDiff = other.qj_1.n9(toLong(1));
|
|
1413
|
+
var exponentModifier = expectedDiff.m9(result.vi().n9(thisPrepared.vi()));
|
|
1414
|
+
if (!divRem.zi_1.equals(Companion_getInstance_2().mi_1)) {
|
|
1415
1415
|
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.');
|
|
1416
1416
|
}
|
|
1417
1417
|
return new BigDecimal(result, newExponent.m9(exponentModifier), resolvedDecimalMode);
|
|
1418
1418
|
} else {
|
|
1419
1419
|
// Inline function 'kotlin.Long.minus' call
|
|
1420
|
-
var newExponent_0 = this.
|
|
1421
|
-
var desiredPrecision = resolvedDecimalMode.
|
|
1422
|
-
var power_0 = desiredPrecision.n9(this.
|
|
1420
|
+
var newExponent_0 = this.sj_1.n9(other.sj_1).n9(toLong(1));
|
|
1421
|
+
var desiredPrecision = resolvedDecimalMode.gi_1;
|
|
1422
|
+
var power_0 = desiredPrecision.n9(this.qj_1).m9(other.qj_1);
|
|
1423
1423
|
var tmp;
|
|
1424
1424
|
if (power_0.m5(new Long(0, 0)) > 0) {
|
|
1425
|
-
tmp = this.
|
|
1425
|
+
tmp = this.rj_1.wh(toBigInteger(10).wi(power_0));
|
|
1426
1426
|
} else if (power_0.m5(new Long(0, 0)) < 0) {
|
|
1427
1427
|
var tmp_0 = toBigInteger(10);
|
|
1428
1428
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1429
1429
|
var tmp$ret$4 = abs(power_0);
|
|
1430
|
-
tmp = this.
|
|
1430
|
+
tmp = this.rj_1.yh(tmp_0.wi(tmp$ret$4));
|
|
1431
1431
|
} else {
|
|
1432
|
-
tmp = this.
|
|
1432
|
+
tmp = this.rj_1;
|
|
1433
1433
|
}
|
|
1434
1434
|
var thisPrepared_0 = tmp;
|
|
1435
|
-
var divRem_0 = thisPrepared_0.
|
|
1436
|
-
var result_0 = divRem_0.
|
|
1437
|
-
if (result_0.equals(Companion_getInstance_2().
|
|
1435
|
+
var divRem_0 = thisPrepared_0.xi(other.rj_1);
|
|
1436
|
+
var result_0 = divRem_0.yi_1;
|
|
1437
|
+
if (result_0.equals(Companion_getInstance_2().mi_1)) {
|
|
1438
1438
|
newExponent_0 = newExponent_0.s9();
|
|
1439
1439
|
}
|
|
1440
|
-
var exponentModifier_0 = result_0.
|
|
1440
|
+
var exponentModifier_0 = result_0.vi().n9(resolvedDecimalMode.gi_1);
|
|
1441
1441
|
var tmp_1;
|
|
1442
|
-
if (this.
|
|
1443
|
-
tmp_1 = new BigDecimal(roundDiscarded(Companion_getInstance_0(), result_0, divRem_0.
|
|
1442
|
+
if (this.xj_1) {
|
|
1443
|
+
tmp_1 = new BigDecimal(roundDiscarded(Companion_getInstance_0(), result_0, divRem_0.zi_1, resolvedDecimalMode), newExponent_0.m9(exponentModifier_0), resolvedDecimalMode.rk(result_0.vi()));
|
|
1444
1444
|
} else {
|
|
1445
|
-
tmp_1 = new BigDecimal(roundDiscarded(Companion_getInstance_0(), result_0, divRem_0.
|
|
1445
|
+
tmp_1 = new BigDecimal(roundDiscarded(Companion_getInstance_0(), result_0, divRem_0.zi_1, resolvedDecimalMode), newExponent_0.m9(exponentModifier_0), resolvedDecimalMode);
|
|
1446
1446
|
}
|
|
1447
1447
|
return tmp_1;
|
|
1448
1448
|
}
|
|
1449
1449
|
};
|
|
1450
|
-
protoOf(BigDecimal).
|
|
1451
|
-
return this.
|
|
1450
|
+
protoOf(BigDecimal).bl = function (other) {
|
|
1451
|
+
return this.cl(other).nc_1;
|
|
1452
1452
|
};
|
|
1453
|
-
protoOf(BigDecimal).
|
|
1454
|
-
return this.
|
|
1453
|
+
protoOf(BigDecimal).fi = function (other) {
|
|
1454
|
+
return this.bl(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1455
1455
|
};
|
|
1456
|
-
protoOf(BigDecimal).
|
|
1457
|
-
if (this.
|
|
1458
|
-
return new Pair(Companion_getInstance_0().
|
|
1456
|
+
protoOf(BigDecimal).cl = function (other) {
|
|
1457
|
+
if (this.sj_1.m5(new Long(0, 0)) < 0) {
|
|
1458
|
+
return new Pair(Companion_getInstance_0().dj_1, this);
|
|
1459
1459
|
}
|
|
1460
|
-
if (other.
|
|
1461
|
-
return new Pair(Companion_getInstance_0().
|
|
1460
|
+
if (other.aj().dl(this.aj()) > 0) {
|
|
1461
|
+
return new Pair(Companion_getInstance_0().dj_1, this);
|
|
1462
1462
|
}
|
|
1463
|
-
var tmp0_safe_receiver = this.
|
|
1463
|
+
var tmp0_safe_receiver = this.tj_1;
|
|
1464
1464
|
var tmp;
|
|
1465
1465
|
if (tmp0_safe_receiver == null) {
|
|
1466
1466
|
tmp = null;
|
|
1467
1467
|
} else {
|
|
1468
1468
|
// Inline function 'kotlin.Long.plus' call
|
|
1469
|
-
var tmp$ret$0 = this.
|
|
1470
|
-
tmp = tmp0_safe_receiver.
|
|
1469
|
+
var tmp$ret$0 = this.sj_1.m9(toLong(1));
|
|
1470
|
+
tmp = tmp0_safe_receiver.rk(tmp$ret$0);
|
|
1471
1471
|
}
|
|
1472
1472
|
var tmp1_elvis_lhs = tmp;
|
|
1473
1473
|
var tmp_0;
|
|
1474
1474
|
if (tmp1_elvis_lhs == null) {
|
|
1475
1475
|
// Inline function 'kotlin.Long.plus' call
|
|
1476
|
-
var tmp$ret$1 = this.
|
|
1476
|
+
var tmp$ret$1 = this.sj_1.m9(toLong(1));
|
|
1477
1477
|
tmp_0 = new DecimalMode(tmp$ret$1, RoundingMode_FLOOR_getInstance());
|
|
1478
1478
|
} else {
|
|
1479
1479
|
tmp_0 = tmp1_elvis_lhs;
|
|
1480
1480
|
}
|
|
1481
1481
|
var resolvedRoundingMode = tmp_0;
|
|
1482
|
-
var quotient = this.
|
|
1483
|
-
var quotientInfinitePrecision = quotient.
|
|
1484
|
-
var remainder = this.
|
|
1482
|
+
var quotient = this.al(other, resolvedRoundingMode);
|
|
1483
|
+
var quotientInfinitePrecision = quotient.el(VOID, VOID, Companion_getInstance_1().ok_1);
|
|
1484
|
+
var remainder = this.gl(quotientInfinitePrecision.fl(other));
|
|
1485
1485
|
return new Pair(quotient, remainder);
|
|
1486
1486
|
};
|
|
1487
|
-
protoOf(BigDecimal).
|
|
1488
|
-
return this.
|
|
1487
|
+
protoOf(BigDecimal).cj = function () {
|
|
1488
|
+
return this.rj_1.cj();
|
|
1489
1489
|
};
|
|
1490
|
-
protoOf(BigDecimal).
|
|
1490
|
+
protoOf(BigDecimal).hl = function (significand, exponent, decimalMode) {
|
|
1491
1491
|
return new BigDecimal(significand, exponent, decimalMode);
|
|
1492
1492
|
};
|
|
1493
|
-
protoOf(BigDecimal).
|
|
1494
|
-
significand = significand === VOID ? this.
|
|
1495
|
-
exponent = exponent === VOID ? this.
|
|
1496
|
-
decimalMode = decimalMode === VOID ? this.
|
|
1497
|
-
return $super === VOID ? this.
|
|
1493
|
+
protoOf(BigDecimal).el = function (significand, exponent, decimalMode, $super) {
|
|
1494
|
+
significand = significand === VOID ? this.rj_1 : significand;
|
|
1495
|
+
exponent = exponent === VOID ? this.sj_1 : exponent;
|
|
1496
|
+
decimalMode = decimalMode === VOID ? this.tj_1 : decimalMode;
|
|
1497
|
+
return $super === VOID ? this.hl(significand, exponent, decimalMode) : $super.hl.call(this, significand, exponent, decimalMode);
|
|
1498
1498
|
};
|
|
1499
|
-
protoOf(BigDecimal).
|
|
1499
|
+
protoOf(BigDecimal).il = function (places) {
|
|
1500
1500
|
if (places.equals(new Long(0, 0))) {
|
|
1501
1501
|
return this;
|
|
1502
1502
|
}
|
|
1503
|
-
return this.
|
|
1503
|
+
return this.el(VOID, this.sj_1.m9(places));
|
|
1504
1504
|
};
|
|
1505
|
-
protoOf(BigDecimal).
|
|
1506
|
-
return this.
|
|
1505
|
+
protoOf(BigDecimal).jl = function (exponent) {
|
|
1506
|
+
return this.wi(toLong(exponent));
|
|
1507
1507
|
};
|
|
1508
|
-
protoOf(BigDecimal).
|
|
1509
|
-
if (this.
|
|
1508
|
+
protoOf(BigDecimal).kl = function () {
|
|
1509
|
+
if (this.sj_1.m5(new Long(0, 0)) < 0) {
|
|
1510
1510
|
var tmp;
|
|
1511
|
-
switch (this.
|
|
1511
|
+
switch (this.rj_1.si_1.b9_1) {
|
|
1512
1512
|
case 0:
|
|
1513
|
-
tmp = Companion_getInstance_0().
|
|
1513
|
+
tmp = Companion_getInstance_0().dj_1;
|
|
1514
1514
|
break;
|
|
1515
1515
|
case 1:
|
|
1516
|
-
tmp = Companion_getInstance_0().
|
|
1516
|
+
tmp = Companion_getInstance_0().ej_1.nk();
|
|
1517
1517
|
break;
|
|
1518
1518
|
case 2:
|
|
1519
|
-
tmp = Companion_getInstance_0().
|
|
1519
|
+
tmp = Companion_getInstance_0().dj_1;
|
|
1520
1520
|
break;
|
|
1521
1521
|
default:
|
|
1522
1522
|
noWhenBranchMatchedException();
|
|
@@ -1525,51 +1525,51 @@
|
|
|
1525
1525
|
return tmp;
|
|
1526
1526
|
}
|
|
1527
1527
|
// Inline function 'kotlin.Long.plus' call
|
|
1528
|
-
var tmp$ret$0 = this.
|
|
1529
|
-
return this.
|
|
1528
|
+
var tmp$ret$0 = this.sj_1.m9(toLong(1));
|
|
1529
|
+
return this.ck(new DecimalMode(tmp$ret$0, RoundingMode_FLOOR_getInstance()));
|
|
1530
1530
|
};
|
|
1531
|
-
protoOf(BigDecimal).
|
|
1532
|
-
if (this.
|
|
1533
|
-
return Companion_getInstance_2().
|
|
1531
|
+
protoOf(BigDecimal).ll = function () {
|
|
1532
|
+
if (this.sj_1.m5(new Long(0, 0)) < 0) {
|
|
1533
|
+
return Companion_getInstance_2().mi_1;
|
|
1534
1534
|
}
|
|
1535
|
-
var precisionExponentDiff = this.
|
|
1535
|
+
var precisionExponentDiff = this.sj_1.n9(this.qj_1);
|
|
1536
1536
|
var tmp;
|
|
1537
1537
|
if (precisionExponentDiff.m5(new Long(0, 0)) > 0) {
|
|
1538
1538
|
var tmp_0 = toBigInteger(10);
|
|
1539
1539
|
// Inline function 'kotlin.Long.plus' call
|
|
1540
1540
|
var tmp$ret$0 = precisionExponentDiff.m9(toLong(1));
|
|
1541
|
-
tmp = this.
|
|
1541
|
+
tmp = this.rj_1.wh(tmp_0.wi(tmp$ret$0));
|
|
1542
1542
|
} else if (precisionExponentDiff.m5(new Long(0, 0)) < 0) {
|
|
1543
1543
|
var tmp_1 = toBigInteger(10);
|
|
1544
1544
|
// Inline function 'kotlin.Long.minus' call
|
|
1545
1545
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1546
1546
|
var tmp$ret$2 = abs(precisionExponentDiff).n9(toLong(1));
|
|
1547
|
-
tmp = this.
|
|
1547
|
+
tmp = this.rj_1.yh(tmp_1.wi(tmp$ret$2));
|
|
1548
1548
|
} else {
|
|
1549
|
-
tmp = this.
|
|
1549
|
+
tmp = this.rj_1.bi(10);
|
|
1550
1550
|
}
|
|
1551
1551
|
return tmp;
|
|
1552
1552
|
};
|
|
1553
|
-
protoOf(BigDecimal).
|
|
1554
|
-
return this.
|
|
1553
|
+
protoOf(BigDecimal).ml = function (other) {
|
|
1554
|
+
return this.cl(other);
|
|
1555
1555
|
};
|
|
1556
|
-
protoOf(BigDecimal).
|
|
1557
|
-
return this.
|
|
1556
|
+
protoOf(BigDecimal).gl = function (other) {
|
|
1557
|
+
return this.wk(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1558
1558
|
};
|
|
1559
|
-
protoOf(BigDecimal).
|
|
1560
|
-
return this.
|
|
1559
|
+
protoOf(BigDecimal).fl = function (other) {
|
|
1560
|
+
return this.yk(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1561
1561
|
};
|
|
1562
|
-
protoOf(BigDecimal).
|
|
1563
|
-
return this.
|
|
1562
|
+
protoOf(BigDecimal).nl = function (other) {
|
|
1563
|
+
return this.al(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1564
1564
|
};
|
|
1565
|
-
protoOf(BigDecimal).
|
|
1566
|
-
return new BigDecimal(this.
|
|
1565
|
+
protoOf(BigDecimal).aj = function () {
|
|
1566
|
+
return new BigDecimal(this.rj_1.aj(), this.sj_1, this.tj_1);
|
|
1567
1567
|
};
|
|
1568
|
-
protoOf(BigDecimal).
|
|
1569
|
-
return new BigDecimal(this.
|
|
1568
|
+
protoOf(BigDecimal).nk = function () {
|
|
1569
|
+
return new BigDecimal(this.rj_1.nk(), this.sj_1, this.tj_1);
|
|
1570
1570
|
};
|
|
1571
|
-
protoOf(BigDecimal).
|
|
1572
|
-
if (this.equals(Companion_getInstance_0().
|
|
1571
|
+
protoOf(BigDecimal).wi = function (exponent) {
|
|
1572
|
+
if (this.equals(Companion_getInstance_0().dj_1) ? exponent.m5(new Long(0, 0)) < 0 : false) {
|
|
1573
1573
|
throw ArithmeticException_init_$Create$('Negative exponentiation of zero is not defined.');
|
|
1574
1574
|
}
|
|
1575
1575
|
var result = this;
|
|
@@ -1582,7 +1582,7 @@
|
|
|
1582
1582
|
do {
|
|
1583
1583
|
var i = inductionVariable;
|
|
1584
1584
|
inductionVariable = inductionVariable.m9(new Long(1, 0));
|
|
1585
|
-
result = result.
|
|
1585
|
+
result = result.fl(this);
|
|
1586
1586
|
}
|
|
1587
1587
|
while (inductionVariable.m5(last) < 0);
|
|
1588
1588
|
tmp = result;
|
|
@@ -1596,10 +1596,10 @@
|
|
|
1596
1596
|
do {
|
|
1597
1597
|
var i_0 = inductionVariable_0;
|
|
1598
1598
|
inductionVariable_0 = inductionVariable_0.m9(new Long(1, 0));
|
|
1599
|
-
result = result.
|
|
1599
|
+
result = result.nl(this);
|
|
1600
1600
|
}
|
|
1601
1601
|
while (!i_0.equals(last_0));
|
|
1602
|
-
result = result.
|
|
1602
|
+
result = result.nl(this);
|
|
1603
1603
|
} else {
|
|
1604
1604
|
var inductionVariable_1 = new Long(0, 0);
|
|
1605
1605
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
@@ -1608,53 +1608,53 @@
|
|
|
1608
1608
|
do {
|
|
1609
1609
|
var i_1 = inductionVariable_1;
|
|
1610
1610
|
inductionVariable_1 = inductionVariable_1.m9(new Long(1, 0));
|
|
1611
|
-
result = result.
|
|
1611
|
+
result = result.nl(this);
|
|
1612
1612
|
}
|
|
1613
1613
|
while (!i_1.equals(last_1));
|
|
1614
1614
|
}
|
|
1615
1615
|
tmp = result;
|
|
1616
1616
|
} else {
|
|
1617
|
-
tmp = Companion_getInstance_0().
|
|
1617
|
+
tmp = Companion_getInstance_0().ej_1;
|
|
1618
1618
|
}
|
|
1619
1619
|
return tmp;
|
|
1620
1620
|
};
|
|
1621
|
-
protoOf(BigDecimal).
|
|
1622
|
-
var res = this.
|
|
1623
|
-
var isWholeNumber = res.nc_1.
|
|
1621
|
+
protoOf(BigDecimal).ol = function () {
|
|
1622
|
+
var res = this.aj().ml(Companion_getInstance_0().ej_1);
|
|
1623
|
+
var isWholeNumber = res.nc_1.cj();
|
|
1624
1624
|
return isWholeNumber;
|
|
1625
1625
|
};
|
|
1626
|
-
protoOf(BigDecimal).
|
|
1626
|
+
protoOf(BigDecimal).pl = function (exactRequired) {
|
|
1627
1627
|
if (exactRequired) {
|
|
1628
1628
|
var exactPossible = true;
|
|
1629
|
-
if (this.
|
|
1629
|
+
if (this.sj_1.m5(new Long(-324, -1)) < 0 ? true : this.sj_1.m5(new Long(308, 0)) > 0) {
|
|
1630
1630
|
exactPossible = false;
|
|
1631
1631
|
}
|
|
1632
1632
|
var tmp;
|
|
1633
1633
|
// Inline function 'kotlin.Long.minus' call
|
|
1634
|
-
if (this.
|
|
1634
|
+
if (this.qj_1.n9(this.sj_1).n9(toLong(1)).m5(new Long(0, 0)) > 0) {
|
|
1635
1635
|
var tmp_0;
|
|
1636
|
-
if (this.
|
|
1637
|
-
var tmp_1 = Companion_getInstance_2().
|
|
1636
|
+
if (this.sj_1.m5(new Long(0, 0)) >= 0) {
|
|
1637
|
+
var tmp_1 = Companion_getInstance_2().pi_1;
|
|
1638
1638
|
// Inline function 'kotlin.Long.minus' call
|
|
1639
|
-
var tmp$ret$1 = this.
|
|
1640
|
-
tmp_0 = this.
|
|
1639
|
+
var tmp$ret$1 = this.qj_1.n9(this.sj_1).n9(toLong(1));
|
|
1640
|
+
tmp_0 = this.rj_1.yh(tmp_1.wi(tmp$ret$1));
|
|
1641
1641
|
} else {
|
|
1642
|
-
tmp_0 = Companion_getInstance_2().
|
|
1642
|
+
tmp_0 = Companion_getInstance_2().mi_1;
|
|
1643
1643
|
}
|
|
1644
1644
|
var integerPart = tmp_0;
|
|
1645
|
-
var integerPartBitLength = get_chosenArithmetic().
|
|
1646
|
-
var tmp_2 = Companion_getInstance_2().
|
|
1645
|
+
var integerPartBitLength = get_chosenArithmetic().rl(integerPart.ri_1);
|
|
1646
|
+
var tmp_2 = Companion_getInstance_2().pi_1;
|
|
1647
1647
|
// Inline function 'kotlin.Long.minus' call
|
|
1648
|
-
var tmp$ret$2 = this.
|
|
1649
|
-
var fractionPart = this.
|
|
1648
|
+
var tmp$ret$2 = this.qj_1.n9(this.sj_1).n9(toLong(1));
|
|
1649
|
+
var fractionPart = this.rj_1.xi(tmp_2.wi(tmp$ret$2)).zi_1;
|
|
1650
1650
|
var fractionConvertTemp = new BigDecimal(fractionPart, new Long(-1, -1));
|
|
1651
1651
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1652
1652
|
var bitList = ArrayList_init_$Create$();
|
|
1653
1653
|
var counter = 0;
|
|
1654
|
-
while (!fractionConvertTemp.equals(Companion_getInstance_0().
|
|
1655
|
-
var multiplied = fractionConvertTemp.
|
|
1654
|
+
while (!fractionConvertTemp.equals(Companion_getInstance_0().dj_1) ? counter <= 53 : false) {
|
|
1655
|
+
var multiplied = fractionConvertTemp.bi(2);
|
|
1656
1656
|
var tmp_3;
|
|
1657
|
-
if (multiplied.
|
|
1657
|
+
if (multiplied.dl(Companion_getInstance_0().ej_1) >= 0) {
|
|
1658
1658
|
tmp_3 = 1;
|
|
1659
1659
|
} else {
|
|
1660
1660
|
tmp_3 = 0;
|
|
@@ -1663,7 +1663,7 @@
|
|
|
1663
1663
|
bitList.p(bit);
|
|
1664
1664
|
var tmp_4;
|
|
1665
1665
|
if (bit === 1) {
|
|
1666
|
-
tmp_4 = multiplied.
|
|
1666
|
+
tmp_4 = multiplied.ml(Companion_getInstance_0().gj_1).nc_1;
|
|
1667
1667
|
} else {
|
|
1668
1668
|
tmp_4 = multiplied;
|
|
1669
1669
|
}
|
|
@@ -1673,8 +1673,8 @@
|
|
|
1673
1673
|
var bitSum = integerPartBitLength + bitList.l() | 0;
|
|
1674
1674
|
tmp = bitSum;
|
|
1675
1675
|
} else {
|
|
1676
|
-
var trailingZeroBits = get_chosenArithmetic().
|
|
1677
|
-
var bitSum_0 = get_chosenArithmetic().
|
|
1676
|
+
var trailingZeroBits = get_chosenArithmetic().ql(this.rj_1.ri_1);
|
|
1677
|
+
var bitSum_0 = get_chosenArithmetic().rl(this.rj_1.ri_1);
|
|
1678
1678
|
tmp = bitSum_0 - trailingZeroBits | 0;
|
|
1679
1679
|
}
|
|
1680
1680
|
var totalBits = tmp;
|
|
@@ -1686,74 +1686,74 @@
|
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
1688
|
// Inline function 'kotlin.Long.minus' call
|
|
1689
|
-
var divExponent = this.
|
|
1690
|
-
var l = this.
|
|
1689
|
+
var divExponent = this.qj_1.n9(toLong(1)).n9(this.sj_1);
|
|
1690
|
+
var l = this.rj_1.sl(exactRequired);
|
|
1691
1691
|
var tmp_5;
|
|
1692
1692
|
Companion_getInstance();
|
|
1693
|
-
if (this.
|
|
1693
|
+
if (this.rj_1.dl(new Long(-1, 2147483647)) > 0) {
|
|
1694
1694
|
tmp_5 = true;
|
|
1695
1695
|
} else {
|
|
1696
1696
|
Companion_getInstance();
|
|
1697
|
-
tmp_5 = this.
|
|
1697
|
+
tmp_5 = this.rj_1.dl(new Long(0, -2147483648)) < 0;
|
|
1698
1698
|
}
|
|
1699
1699
|
if (tmp_5) {
|
|
1700
1700
|
return toDouble(this.toString());
|
|
1701
1701
|
}
|
|
1702
1702
|
var tmp_6;
|
|
1703
|
-
if ((numberToLong(l.h9()).equals(l) ? divExponent.m5(new Long(0, 0)) >= 0 : false) ? divExponent.m5(toLong(Companion_getInstance_0().
|
|
1703
|
+
if ((numberToLong(l.h9()).equals(l) ? divExponent.m5(new Long(0, 0)) >= 0 : false) ? divExponent.m5(toLong(Companion_getInstance_0().ij_1.length)) < 0 : false) {
|
|
1704
1704
|
// Inline function 'kotlin.Long.div' call
|
|
1705
|
-
var other = Companion_getInstance_0().
|
|
1705
|
+
var other = Companion_getInstance_0().ij_1[divExponent.i8()];
|
|
1706
1706
|
tmp_6 = l.h9() / other;
|
|
1707
1707
|
} else {
|
|
1708
1708
|
tmp_6 = toDouble(this.toString());
|
|
1709
1709
|
}
|
|
1710
1710
|
return tmp_6;
|
|
1711
1711
|
};
|
|
1712
|
-
protoOf(BigDecimal).
|
|
1712
|
+
protoOf(BigDecimal).ck = function (decimalMode) {
|
|
1713
1713
|
if (decimalMode == null) {
|
|
1714
1714
|
return this;
|
|
1715
1715
|
}
|
|
1716
|
-
return roundSignificand(Companion_getInstance_0(), this.
|
|
1716
|
+
return roundSignificand(Companion_getInstance_0(), this.rj_1, this.sj_1, decimalMode);
|
|
1717
1717
|
};
|
|
1718
|
-
protoOf(BigDecimal).
|
|
1718
|
+
protoOf(BigDecimal).qk = function (other) {
|
|
1719
1719
|
var tmp;
|
|
1720
|
-
if (this.
|
|
1721
|
-
tmp = this.
|
|
1720
|
+
if (this.sj_1.equals(other.sj_1) ? this.qj_1.equals(other.qj_1) : false) {
|
|
1721
|
+
tmp = this.rj_1.tl(other.rj_1);
|
|
1722
1722
|
} else {
|
|
1723
1723
|
var tmp0_container = bringSignificandToSameExponent(this, this, other);
|
|
1724
1724
|
var preparedFirst = tmp0_container.oc();
|
|
1725
1725
|
var preparedSecond = tmp0_container.pc();
|
|
1726
|
-
tmp = preparedFirst.
|
|
1726
|
+
tmp = preparedFirst.tl(preparedSecond);
|
|
1727
1727
|
}
|
|
1728
1728
|
return tmp;
|
|
1729
1729
|
};
|
|
1730
|
-
protoOf(BigDecimal).
|
|
1730
|
+
protoOf(BigDecimal).dl = function (other) {
|
|
1731
1731
|
if (isNumber(other)) {
|
|
1732
|
-
if (RuntimePlatform_instance.
|
|
1732
|
+
if (RuntimePlatform_instance.ul().equals(Platform_JS_getInstance())) {
|
|
1733
1733
|
return javascriptNumberComparison(this, other);
|
|
1734
1734
|
}
|
|
1735
1735
|
}
|
|
1736
1736
|
var tmp;
|
|
1737
1737
|
if (other instanceof BigDecimal) {
|
|
1738
|
-
tmp = this.
|
|
1738
|
+
tmp = this.qk(other);
|
|
1739
1739
|
} else {
|
|
1740
1740
|
if (other instanceof Long) {
|
|
1741
|
-
tmp = this.
|
|
1741
|
+
tmp = this.qk(Companion_getInstance_0().bk(other));
|
|
1742
1742
|
} else {
|
|
1743
1743
|
if (typeof other === 'number') {
|
|
1744
|
-
tmp = this.
|
|
1744
|
+
tmp = this.qk(Companion_getInstance_0().lh(other));
|
|
1745
1745
|
} else {
|
|
1746
1746
|
if (typeof other === 'number') {
|
|
1747
|
-
tmp = this.
|
|
1747
|
+
tmp = this.qk(Companion_getInstance_0().fk(other));
|
|
1748
1748
|
} else {
|
|
1749
1749
|
if (typeof other === 'number') {
|
|
1750
|
-
tmp = this.
|
|
1750
|
+
tmp = this.qk(Companion_getInstance_0().hk(other));
|
|
1751
1751
|
} else {
|
|
1752
1752
|
if (typeof other === 'number') {
|
|
1753
|
-
tmp = this.
|
|
1753
|
+
tmp = this.qk(Companion_getInstance_0().yj(other));
|
|
1754
1754
|
} else {
|
|
1755
1755
|
if (typeof other === 'number') {
|
|
1756
|
-
tmp = this.
|
|
1756
|
+
tmp = this.qk(Companion_getInstance_0().zj(other));
|
|
1757
1757
|
} else {
|
|
1758
1758
|
throw RuntimeException_init_$Create$('Invalid comparison type for BigDecimal: ' + getKClassFromExpression(other).n5());
|
|
1759
1759
|
}
|
|
@@ -1766,30 +1766,30 @@
|
|
|
1766
1766
|
return tmp;
|
|
1767
1767
|
};
|
|
1768
1768
|
protoOf(BigDecimal).d = function (other) {
|
|
1769
|
-
return this.
|
|
1769
|
+
return this.dl(!(other == null) ? other : THROW_CCE());
|
|
1770
1770
|
};
|
|
1771
1771
|
protoOf(BigDecimal).equals = function (other) {
|
|
1772
1772
|
var tmp;
|
|
1773
1773
|
if (other instanceof BigDecimal) {
|
|
1774
|
-
tmp = this.
|
|
1774
|
+
tmp = this.qk(other);
|
|
1775
1775
|
} else {
|
|
1776
1776
|
if (other instanceof Long) {
|
|
1777
|
-
tmp = this.
|
|
1777
|
+
tmp = this.qk(Companion_getInstance_0().bk(other));
|
|
1778
1778
|
} else {
|
|
1779
1779
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1780
|
-
tmp = this.
|
|
1780
|
+
tmp = this.qk(Companion_getInstance_0().lh(other));
|
|
1781
1781
|
} else {
|
|
1782
1782
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1783
|
-
tmp = this.
|
|
1783
|
+
tmp = this.qk(Companion_getInstance_0().fk(other));
|
|
1784
1784
|
} else {
|
|
1785
1785
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1786
|
-
tmp = this.
|
|
1786
|
+
tmp = this.qk(Companion_getInstance_0().hk(other));
|
|
1787
1787
|
} else {
|
|
1788
1788
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1789
|
-
tmp = this.
|
|
1789
|
+
tmp = this.qk(Companion_getInstance_0().yj(other));
|
|
1790
1790
|
} else {
|
|
1791
1791
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1792
|
-
tmp = this.
|
|
1792
|
+
tmp = this.qk(Companion_getInstance_0().zj(other));
|
|
1793
1793
|
} else {
|
|
1794
1794
|
tmp = -1;
|
|
1795
1795
|
}
|
|
@@ -1803,18 +1803,18 @@
|
|
|
1803
1803
|
return comparison === 0;
|
|
1804
1804
|
};
|
|
1805
1805
|
protoOf(BigDecimal).hashCode = function () {
|
|
1806
|
-
if (this.equals(Companion_getInstance_0().
|
|
1806
|
+
if (this.equals(Companion_getInstance_0().dj_1)) {
|
|
1807
1807
|
return 0;
|
|
1808
1808
|
}
|
|
1809
|
-
return removeTrailingZeroes(this, this).
|
|
1809
|
+
return removeTrailingZeroes(this, this).rj_1.hashCode() + this.sj_1.hashCode() | 0;
|
|
1810
1810
|
};
|
|
1811
1811
|
protoOf(BigDecimal).toString = function () {
|
|
1812
|
-
if (Companion_getInstance_0().
|
|
1813
|
-
return this.
|
|
1812
|
+
if (Companion_getInstance_0().hj_1) {
|
|
1813
|
+
return this.vl();
|
|
1814
1814
|
}
|
|
1815
|
-
var significandString = this.
|
|
1815
|
+
var significandString = this.rj_1.wl(10);
|
|
1816
1816
|
var tmp;
|
|
1817
|
-
if (this.
|
|
1817
|
+
if (this.rj_1.dl(0) < 0) {
|
|
1818
1818
|
tmp = 2;
|
|
1819
1819
|
} else {
|
|
1820
1820
|
tmp = 1;
|
|
@@ -1824,7 +1824,7 @@
|
|
|
1824
1824
|
var tmp$ret$3;
|
|
1825
1825
|
$l$block: {
|
|
1826
1826
|
// Inline function 'kotlin.text.dropLastWhile' call
|
|
1827
|
-
var this_0 = this.
|
|
1827
|
+
var this_0 = this.rj_1.toString();
|
|
1828
1828
|
var inductionVariable = get_lastIndex(this_0);
|
|
1829
1829
|
if (0 <= inductionVariable)
|
|
1830
1830
|
do {
|
|
@@ -1849,61 +1849,61 @@
|
|
|
1849
1849
|
}
|
|
1850
1850
|
var expand = tmp_0;
|
|
1851
1851
|
var tmp_1;
|
|
1852
|
-
if (this.
|
|
1853
|
-
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E+' + this.
|
|
1854
|
-
} else if (this.
|
|
1855
|
-
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E' + this.
|
|
1856
|
-
} else if (this.
|
|
1852
|
+
if (this.sj_1.m5(new Long(0, 0)) > 0) {
|
|
1853
|
+
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E+' + this.sj_1.toString();
|
|
1854
|
+
} else if (this.sj_1.m5(new Long(0, 0)) < 0) {
|
|
1855
|
+
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E' + this.sj_1.toString();
|
|
1856
|
+
} else if (this.sj_1.equals(new Long(0, 0))) {
|
|
1857
1857
|
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand;
|
|
1858
1858
|
} else {
|
|
1859
1859
|
throw RuntimeException_init_$Create$('Invalid state, please report a bug (Integer compareTo invalid)');
|
|
1860
1860
|
}
|
|
1861
1861
|
return tmp_1;
|
|
1862
1862
|
};
|
|
1863
|
-
protoOf(BigDecimal).
|
|
1864
|
-
if (this.equals(Companion_getInstance_0().
|
|
1863
|
+
protoOf(BigDecimal).vl = function () {
|
|
1864
|
+
if (this.equals(Companion_getInstance_0().dj_1)) {
|
|
1865
1865
|
return '0';
|
|
1866
1866
|
}
|
|
1867
|
-
var digits = this.
|
|
1868
|
-
if (this.
|
|
1867
|
+
var digits = this.rj_1.vi();
|
|
1868
|
+
if (this.sj_1.m5(toLong(IntCompanionObject_instance.MAX_VALUE)) > 0) {
|
|
1869
1869
|
throw RuntimeException_init_$Create$('Invalid toStringExpanded request (exponent > Int.MAX_VALUE)');
|
|
1870
1870
|
}
|
|
1871
|
-
var significandString = this.
|
|
1871
|
+
var significandString = this.rj_1.xl(10);
|
|
1872
1872
|
var tmp;
|
|
1873
|
-
if (this.
|
|
1873
|
+
if (this.rj_1.si_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
1874
1874
|
tmp = '-';
|
|
1875
1875
|
} else {
|
|
1876
1876
|
tmp = '';
|
|
1877
1877
|
}
|
|
1878
1878
|
var sign = tmp;
|
|
1879
1879
|
var tmp_0;
|
|
1880
|
-
if (this.
|
|
1880
|
+
if (this.sj_1.m5(new Long(0, 0)) > 0) {
|
|
1881
1881
|
// Inline function 'kotlin.Long.plus' call
|
|
1882
|
-
var diffBigInt = this.
|
|
1882
|
+
var diffBigInt = this.sj_1.n9(digits).m9(toLong(1));
|
|
1883
1883
|
var tmp_1;
|
|
1884
1884
|
if (diffBigInt.m5(new Long(0, 0)) > 0) {
|
|
1885
|
-
var expandZeros = this.
|
|
1885
|
+
var expandZeros = this.yl(diffBigInt, _Char___init__impl__6a9atx(48));
|
|
1886
1886
|
tmp_1 = significandString + expandZeros;
|
|
1887
1887
|
} else {
|
|
1888
|
-
tmp_1 = placeADotInStringExpanded(this, significandString, (significandString.length - this.
|
|
1888
|
+
tmp_1 = placeADotInStringExpanded(this, significandString, (significandString.length - this.sj_1.i8() | 0) - 1 | 0);
|
|
1889
1889
|
}
|
|
1890
1890
|
tmp_0 = tmp_1;
|
|
1891
|
-
} else if (this.
|
|
1891
|
+
} else if (this.sj_1.m5(new Long(0, 0)) < 0) {
|
|
1892
1892
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1893
|
-
var this_0 = this.
|
|
1893
|
+
var this_0 = this.sj_1.i8();
|
|
1894
1894
|
var diffInt = abs_0(this_0);
|
|
1895
1895
|
var tmp_2;
|
|
1896
1896
|
if (diffInt > 0) {
|
|
1897
1897
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1898
|
-
var this_1 = this.
|
|
1898
|
+
var this_1 = this.sj_1;
|
|
1899
1899
|
var tmp$ret$2 = abs(this_1);
|
|
1900
|
-
var expandZeros_0 = this.
|
|
1900
|
+
var expandZeros_0 = this.yl(tmp$ret$2, _Char___init__impl__6a9atx(48));
|
|
1901
1901
|
tmp_2 = placeADotInStringExpanded(this, expandZeros_0 + significandString, (diffInt + significandString.length | 0) - 1 | 0);
|
|
1902
1902
|
} else {
|
|
1903
1903
|
tmp_2 = placeADotInStringExpanded(this, significandString, significandString.length - 1 | 0);
|
|
1904
1904
|
}
|
|
1905
1905
|
tmp_0 = tmp_2;
|
|
1906
|
-
} else if (this.
|
|
1906
|
+
} else if (this.sj_1.equals(new Long(0, 0))) {
|
|
1907
1907
|
if (digits.equals(new Long(1, 0))) {
|
|
1908
1908
|
return sign + significandString;
|
|
1909
1909
|
}
|
|
@@ -1914,7 +1914,7 @@
|
|
|
1914
1914
|
var adjusted = tmp_0;
|
|
1915
1915
|
return sign + adjusted;
|
|
1916
1916
|
};
|
|
1917
|
-
protoOf(BigDecimal).
|
|
1917
|
+
protoOf(BigDecimal).yl = function (_this__u8e3s4, char) {
|
|
1918
1918
|
if (_this__u8e3s4.m5(new Long(0, 0)) < 0) {
|
|
1919
1919
|
throw RuntimeException_init_$Create$('Char cannot be multiplied with negative number');
|
|
1920
1920
|
}
|
|
@@ -1929,13 +1929,13 @@
|
|
|
1929
1929
|
function toBigDecimal(_this__u8e3s4, exponentModifier, decimalMode) {
|
|
1930
1930
|
exponentModifier = exponentModifier === VOID ? null : exponentModifier;
|
|
1931
1931
|
decimalMode = decimalMode === VOID ? null : decimalMode;
|
|
1932
|
-
var tmp = Companion_getInstance_0().
|
|
1933
|
-
return tmp.
|
|
1932
|
+
var tmp = Companion_getInstance_0().kk(_this__u8e3s4, decimalMode);
|
|
1933
|
+
return tmp.il(exponentModifier == null ? new Long(0, 0) : exponentModifier);
|
|
1934
1934
|
}
|
|
1935
1935
|
function Companion_0() {
|
|
1936
1936
|
Companion_instance_0 = this;
|
|
1937
|
-
this.
|
|
1938
|
-
this.
|
|
1937
|
+
this.ok_1 = new DecimalMode();
|
|
1938
|
+
this.pk_1 = new DecimalMode(new Long(30, 0), RoundingMode_ROUND_HALF_AWAY_FROM_ZERO_getInstance(), new Long(2, 0));
|
|
1939
1939
|
}
|
|
1940
1940
|
var Companion_instance_0;
|
|
1941
1941
|
function Companion_getInstance_1() {
|
|
@@ -1948,40 +1948,40 @@
|
|
|
1948
1948
|
decimalPrecision = decimalPrecision === VOID ? new Long(0, 0) : decimalPrecision;
|
|
1949
1949
|
roundingMode = roundingMode === VOID ? RoundingMode_NONE_getInstance() : roundingMode;
|
|
1950
1950
|
scale = scale === VOID ? new Long(-1, -1) : scale;
|
|
1951
|
-
this.
|
|
1952
|
-
this.
|
|
1953
|
-
this.
|
|
1954
|
-
if (this.
|
|
1951
|
+
this.gi_1 = decimalPrecision;
|
|
1952
|
+
this.hi_1 = roundingMode;
|
|
1953
|
+
this.ii_1 = scale;
|
|
1954
|
+
if (this.gi_1.m5(new Long(0, 0)) < 0) {
|
|
1955
1955
|
throw ArithmeticException_init_$Create$('Negative decimal precision is not allowed.');
|
|
1956
1956
|
}
|
|
1957
|
-
this.
|
|
1958
|
-
this.
|
|
1959
|
-
if ((!this.
|
|
1957
|
+
this.ji_1 = this.gi_1.equals(new Long(0, 0));
|
|
1958
|
+
this.ki_1 = this.ii_1.m5(new Long(0, 0)) >= 0;
|
|
1959
|
+
if ((!this.ki_1 ? this.gi_1.equals(new Long(0, 0)) : false) ? !this.hi_1.equals(RoundingMode_NONE_getInstance()) : false) {
|
|
1960
1960
|
throw ArithmeticException_init_$Create$('Rounding mode with 0 digits precision.');
|
|
1961
1961
|
}
|
|
1962
|
-
if (this.
|
|
1962
|
+
if (this.ii_1.m5(new Long(-1, -1)) < 0) {
|
|
1963
1963
|
throw ArithmeticException_init_$Create$('Negative Scale is unsupported.');
|
|
1964
1964
|
}
|
|
1965
|
-
if (this.
|
|
1966
|
-
throw ArithmeticException_init_$Create$('Scale of ' + this.
|
|
1965
|
+
if (this.ki_1 ? this.hi_1.equals(RoundingMode_NONE_getInstance()) : false) {
|
|
1966
|
+
throw ArithmeticException_init_$Create$('Scale of ' + this.ii_1.toString() + ' digits to the right of the decimal requires a RoundingMode that is not NONE.');
|
|
1967
1967
|
}
|
|
1968
1968
|
}
|
|
1969
|
-
protoOf(DecimalMode).
|
|
1969
|
+
protoOf(DecimalMode).zl = function (decimalPrecision, roundingMode, scale) {
|
|
1970
1970
|
return new DecimalMode(decimalPrecision, roundingMode, scale);
|
|
1971
1971
|
};
|
|
1972
|
-
protoOf(DecimalMode).
|
|
1973
|
-
decimalPrecision = decimalPrecision === VOID ? this.
|
|
1974
|
-
roundingMode = roundingMode === VOID ? this.
|
|
1975
|
-
scale = scale === VOID ? this.
|
|
1976
|
-
return $super === VOID ? this.
|
|
1972
|
+
protoOf(DecimalMode).rk = function (decimalPrecision, roundingMode, scale, $super) {
|
|
1973
|
+
decimalPrecision = decimalPrecision === VOID ? this.gi_1 : decimalPrecision;
|
|
1974
|
+
roundingMode = roundingMode === VOID ? this.hi_1 : roundingMode;
|
|
1975
|
+
scale = scale === VOID ? this.ii_1 : scale;
|
|
1976
|
+
return $super === VOID ? this.zl(decimalPrecision, roundingMode, scale) : $super.zl.call(this, decimalPrecision, roundingMode, scale);
|
|
1977
1977
|
};
|
|
1978
1978
|
protoOf(DecimalMode).toString = function () {
|
|
1979
|
-
return 'DecimalMode(decimalPrecision=' + this.
|
|
1979
|
+
return 'DecimalMode(decimalPrecision=' + this.gi_1.toString() + ', roundingMode=' + this.hi_1 + ', scale=' + this.ii_1.toString() + ')';
|
|
1980
1980
|
};
|
|
1981
1981
|
protoOf(DecimalMode).hashCode = function () {
|
|
1982
|
-
var result = this.
|
|
1983
|
-
result = imul(result, 31) + this.gi_1.hashCode() | 0;
|
|
1982
|
+
var result = this.gi_1.hashCode();
|
|
1984
1983
|
result = imul(result, 31) + this.hi_1.hashCode() | 0;
|
|
1984
|
+
result = imul(result, 31) + this.ii_1.hashCode() | 0;
|
|
1985
1985
|
return result;
|
|
1986
1986
|
};
|
|
1987
1987
|
protoOf(DecimalMode).equals = function (other) {
|
|
@@ -1990,12 +1990,12 @@
|
|
|
1990
1990
|
if (!(other instanceof DecimalMode))
|
|
1991
1991
|
return false;
|
|
1992
1992
|
var tmp0_other_with_cast = other instanceof DecimalMode ? other : THROW_CCE();
|
|
1993
|
-
if (!this.fi_1.equals(tmp0_other_with_cast.fi_1))
|
|
1994
|
-
return false;
|
|
1995
1993
|
if (!this.gi_1.equals(tmp0_other_with_cast.gi_1))
|
|
1996
1994
|
return false;
|
|
1997
1995
|
if (!this.hi_1.equals(tmp0_other_with_cast.hi_1))
|
|
1998
1996
|
return false;
|
|
1997
|
+
if (!this.ii_1.equals(tmp0_other_with_cast.ii_1))
|
|
1998
|
+
return false;
|
|
1999
1999
|
return true;
|
|
2000
2000
|
};
|
|
2001
2001
|
var RoundingMode_FLOOR_instance;
|
|
@@ -2050,7 +2050,7 @@
|
|
|
2050
2050
|
return RoundingMode_ROUND_HALF_AWAY_FROM_ZERO_instance;
|
|
2051
2051
|
}
|
|
2052
2052
|
function BigInteger_init_$Init$(long, $this) {
|
|
2053
|
-
var tmp = Companion_getInstance_2().
|
|
2053
|
+
var tmp = Companion_getInstance_2().li_1.am(long);
|
|
2054
2054
|
// Inline function 'com.ionspin.kotlin.bignum.integer.Companion.determinSignFromNumber' call
|
|
2055
2055
|
Companion_getInstance_2();
|
|
2056
2056
|
var tmp0_subject = getKClass(Long);
|
|
@@ -2082,7 +2082,7 @@
|
|
|
2082
2082
|
return BigInteger_init_$Init$(long, objectCreate(protoOf(BigInteger)));
|
|
2083
2083
|
}
|
|
2084
2084
|
function BigInteger_init_$Init$_0(int, $this) {
|
|
2085
|
-
var tmp = Companion_getInstance_2().
|
|
2085
|
+
var tmp = Companion_getInstance_2().li_1.bm(int);
|
|
2086
2086
|
// Inline function 'com.ionspin.kotlin.bignum.integer.Companion.determinSignFromNumber' call
|
|
2087
2087
|
Companion_getInstance_2();
|
|
2088
2088
|
var tmp0_subject = PrimitiveClasses_getInstance().d6();
|
|
@@ -2114,7 +2114,7 @@
|
|
|
2114
2114
|
return BigInteger_init_$Init$_0(int, objectCreate(protoOf(BigInteger)));
|
|
2115
2115
|
}
|
|
2116
2116
|
function BigInteger_init_$Init$_1(short, $this) {
|
|
2117
|
-
var tmp = Companion_getInstance_2().
|
|
2117
|
+
var tmp = Companion_getInstance_2().li_1.cm(short);
|
|
2118
2118
|
// Inline function 'com.ionspin.kotlin.bignum.integer.Companion.determinSignFromNumber' call
|
|
2119
2119
|
Companion_getInstance_2();
|
|
2120
2120
|
var tmp0_subject = PrimitiveClasses_getInstance().c6();
|
|
@@ -2146,7 +2146,7 @@
|
|
|
2146
2146
|
return BigInteger_init_$Init$_1(short, objectCreate(protoOf(BigInteger)));
|
|
2147
2147
|
}
|
|
2148
2148
|
function BigInteger_init_$Init$_2(byte, $this) {
|
|
2149
|
-
var tmp = Companion_getInstance_2().
|
|
2149
|
+
var tmp = Companion_getInstance_2().li_1.dm(byte);
|
|
2150
2150
|
// Inline function 'com.ionspin.kotlin.bignum.integer.Companion.determinSignFromNumber' call
|
|
2151
2151
|
Companion_getInstance_2();
|
|
2152
2152
|
var tmp0_subject = PrimitiveClasses_getInstance().b6();
|
|
@@ -2179,27 +2179,27 @@
|
|
|
2179
2179
|
}
|
|
2180
2180
|
function Companion_1() {
|
|
2181
2181
|
Companion_instance_1 = this;
|
|
2182
|
-
this.
|
|
2183
|
-
this.
|
|
2184
|
-
this.
|
|
2185
|
-
this.
|
|
2186
|
-
this.
|
|
2182
|
+
this.li_1 = get_chosenArithmetic();
|
|
2183
|
+
this.mi_1 = new BigInteger(this.li_1.em(), Sign_ZERO_getInstance());
|
|
2184
|
+
this.ni_1 = new BigInteger(this.li_1.fm(), Sign_POSITIVE_getInstance());
|
|
2185
|
+
this.oi_1 = new BigInteger(this.li_1.gm(), Sign_POSITIVE_getInstance());
|
|
2186
|
+
this.pi_1 = new BigInteger(this.li_1.hm(), Sign_POSITIVE_getInstance());
|
|
2187
2187
|
var tmp = this;
|
|
2188
2188
|
// Inline function 'kotlin.math.log10' call
|
|
2189
|
-
tmp.
|
|
2189
|
+
tmp.qi_1 = log10(2.0);
|
|
2190
2190
|
}
|
|
2191
|
-
protoOf(Companion_1).
|
|
2191
|
+
protoOf(Companion_1).jh = function (string, base) {
|
|
2192
2192
|
if (base < 2 ? true : base > 36) {
|
|
2193
2193
|
throw NumberFormatException_init_$Create$('Unsupported base: ' + base + '. Supported base range is from 2 to 36');
|
|
2194
2194
|
}
|
|
2195
2195
|
var decimal = contains(string, _Char___init__impl__6a9atx(46));
|
|
2196
2196
|
if (decimal) {
|
|
2197
|
-
var bigDecimal = Companion_getInstance_0().
|
|
2198
|
-
var isActuallyDecimal = bigDecimal.
|
|
2197
|
+
var bigDecimal = Companion_getInstance_0().lk(string);
|
|
2198
|
+
var isActuallyDecimal = bigDecimal.gl(bigDecimal.kl()).dl(0) > 0;
|
|
2199
2199
|
if (isActuallyDecimal) {
|
|
2200
2200
|
throw NumberFormatException_init_$Create$('Supplied string is decimal, which cannot be converted to BigInteger without precision loss.');
|
|
2201
2201
|
}
|
|
2202
|
-
return bigDecimal.
|
|
2202
|
+
return bigDecimal.ll();
|
|
2203
2203
|
}
|
|
2204
2204
|
var signed = charSequenceGet(string, 0) === _Char___init__impl__6a9atx(45) ? true : charSequenceGet(string, 0) === _Char___init__impl__6a9atx(43);
|
|
2205
2205
|
var tmp;
|
|
@@ -2215,72 +2215,72 @@
|
|
|
2215
2215
|
}
|
|
2216
2216
|
var isNegative = tmp_0;
|
|
2217
2217
|
if (string.length === 2 ? charSequenceGet(string, 1) === _Char___init__impl__6a9atx(48) : false) {
|
|
2218
|
-
return this.
|
|
2218
|
+
return this.mi_1;
|
|
2219
2219
|
}
|
|
2220
2220
|
// Inline function 'kotlin.text.substring' call
|
|
2221
2221
|
var endIndex = string.length;
|
|
2222
2222
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2223
2223
|
var tmp$ret$1 = string.substring(1, endIndex);
|
|
2224
|
-
tmp = new BigInteger(this.
|
|
2224
|
+
tmp = new BigInteger(this.li_1.im(tmp$ret$1, base), isNegative);
|
|
2225
2225
|
} else {
|
|
2226
2226
|
if (string.length === 1 ? charSequenceGet(string, 0) === _Char___init__impl__6a9atx(48) : false) {
|
|
2227
|
-
return this.
|
|
2227
|
+
return this.mi_1;
|
|
2228
2228
|
}
|
|
2229
|
-
tmp = new BigInteger(this.
|
|
2229
|
+
tmp = new BigInteger(this.li_1.im(string, base), Sign_POSITIVE_getInstance());
|
|
2230
2230
|
}
|
|
2231
2231
|
return tmp;
|
|
2232
2232
|
};
|
|
2233
|
-
protoOf(Companion_1).
|
|
2234
|
-
return new BigInteger(this.
|
|
2233
|
+
protoOf(Companion_1).jm = function (uLong) {
|
|
2234
|
+
return new BigInteger(this.li_1.km(uLong), Sign_POSITIVE_getInstance());
|
|
2235
2235
|
};
|
|
2236
|
-
protoOf(Companion_1).
|
|
2237
|
-
return new BigInteger(this.
|
|
2236
|
+
protoOf(Companion_1).lm = function (uInt) {
|
|
2237
|
+
return new BigInteger(this.li_1.mm(uInt), Sign_POSITIVE_getInstance());
|
|
2238
2238
|
};
|
|
2239
|
-
protoOf(Companion_1).
|
|
2240
|
-
return new BigInteger(this.
|
|
2239
|
+
protoOf(Companion_1).nm = function (uShort) {
|
|
2240
|
+
return new BigInteger(this.li_1.om(uShort), Sign_POSITIVE_getInstance());
|
|
2241
2241
|
};
|
|
2242
|
-
protoOf(Companion_1).
|
|
2243
|
-
return new BigInteger(this.
|
|
2242
|
+
protoOf(Companion_1).pm = function (uByte) {
|
|
2243
|
+
return new BigInteger(this.li_1.qm(uByte), Sign_POSITIVE_getInstance());
|
|
2244
2244
|
};
|
|
2245
|
-
protoOf(Companion_1).
|
|
2245
|
+
protoOf(Companion_1).bk = function (long) {
|
|
2246
2246
|
return BigInteger_init_$Create$(long);
|
|
2247
2247
|
};
|
|
2248
|
-
protoOf(Companion_1).
|
|
2248
|
+
protoOf(Companion_1).lh = function (int) {
|
|
2249
2249
|
return BigInteger_init_$Create$_0(int);
|
|
2250
2250
|
};
|
|
2251
|
-
protoOf(Companion_1).
|
|
2251
|
+
protoOf(Companion_1).fk = function (short) {
|
|
2252
2252
|
return BigInteger_init_$Create$_1(short);
|
|
2253
2253
|
};
|
|
2254
|
-
protoOf(Companion_1).
|
|
2254
|
+
protoOf(Companion_1).hk = function (byte) {
|
|
2255
2255
|
return BigInteger_init_$Create$_2(byte);
|
|
2256
2256
|
};
|
|
2257
|
-
protoOf(Companion_1).
|
|
2257
|
+
protoOf(Companion_1).mh = function (float, exactRequired) {
|
|
2258
2258
|
// Inline function 'kotlin.math.floor' call
|
|
2259
2259
|
var floatDecimalPart = float - Math.floor(float);
|
|
2260
2260
|
var tmp = Companion_getInstance_0();
|
|
2261
2261
|
// Inline function 'kotlin.math.floor' call
|
|
2262
2262
|
var tmp$ret$1 = Math.floor(float);
|
|
2263
|
-
var bigDecimal = tmp.
|
|
2263
|
+
var bigDecimal = tmp.ik(tmp$ret$1, null);
|
|
2264
2264
|
if (exactRequired) {
|
|
2265
2265
|
if (floatDecimalPart > 0.0) {
|
|
2266
2266
|
throw ArithmeticException_init_$Create$('Cant create BigInteger without precision loss, and exact value was required');
|
|
2267
2267
|
}
|
|
2268
2268
|
}
|
|
2269
|
-
return bigDecimal.
|
|
2269
|
+
return bigDecimal.ll();
|
|
2270
2270
|
};
|
|
2271
|
-
protoOf(Companion_1).
|
|
2271
|
+
protoOf(Companion_1).oh = function (double, exactRequired) {
|
|
2272
2272
|
// Inline function 'kotlin.math.floor' call
|
|
2273
2273
|
var doubleDecimalPart = double - Math.floor(double);
|
|
2274
2274
|
var tmp = Companion_getInstance_0();
|
|
2275
2275
|
// Inline function 'kotlin.math.floor' call
|
|
2276
2276
|
var tmp$ret$1 = Math.floor(double);
|
|
2277
|
-
var bigDecimal = tmp.
|
|
2277
|
+
var bigDecimal = tmp.kk(tmp$ret$1, null);
|
|
2278
2278
|
if (exactRequired) {
|
|
2279
2279
|
if (doubleDecimalPart > 0.0) {
|
|
2280
2280
|
throw ArithmeticException_init_$Create$('Cant create BigInteger without precision loss, and exact value was required');
|
|
2281
2281
|
}
|
|
2282
2282
|
}
|
|
2283
|
-
return bigDecimal.
|
|
2283
|
+
return bigDecimal.ll();
|
|
2284
2284
|
};
|
|
2285
2285
|
var Companion_instance_1;
|
|
2286
2286
|
function Companion_getInstance_2() {
|
|
@@ -2289,34 +2289,34 @@
|
|
|
2289
2289
|
return Companion_instance_1;
|
|
2290
2290
|
}
|
|
2291
2291
|
function isResultZero($this, resultMagnitude) {
|
|
2292
|
-
return Companion_getInstance_2().
|
|
2292
|
+
return Companion_getInstance_2().li_1.rm(resultMagnitude, Companion_getInstance_2().li_1.em()) === 0;
|
|
2293
2293
|
}
|
|
2294
2294
|
function javascriptNumberComparison_0($this, number) {
|
|
2295
2295
|
var double = numberToDouble(number);
|
|
2296
2296
|
var tmp;
|
|
2297
2297
|
Companion_getInstance();
|
|
2298
2298
|
if (double > (new Long(-1, 2147483647)).h9()) {
|
|
2299
|
-
tmp = $this.
|
|
2299
|
+
tmp = $this.tl(Companion_getInstance_2().kh(double.toString()));
|
|
2300
2300
|
} else {
|
|
2301
2301
|
if (double % 1 === 0.0) {
|
|
2302
|
-
tmp = $this.
|
|
2302
|
+
tmp = $this.tl(Companion_getInstance_2().bk(numberToLong(number)));
|
|
2303
2303
|
} else {
|
|
2304
2304
|
var tmp_0 = numberToDouble(number);
|
|
2305
|
-
tmp = $this.
|
|
2305
|
+
tmp = $this.sm(tmp_0, BigInteger$javascriptNumberComparison$lambda($this));
|
|
2306
2306
|
}
|
|
2307
2307
|
}
|
|
2308
2308
|
return tmp;
|
|
2309
2309
|
}
|
|
2310
2310
|
function QuotientAndRemainder(quotient, remainder) {
|
|
2311
|
-
this.
|
|
2312
|
-
this.
|
|
2311
|
+
this.yi_1 = quotient;
|
|
2312
|
+
this.zi_1 = remainder;
|
|
2313
2313
|
}
|
|
2314
2314
|
protoOf(QuotientAndRemainder).toString = function () {
|
|
2315
|
-
return 'QuotientAndRemainder(quotient=' + this.
|
|
2315
|
+
return 'QuotientAndRemainder(quotient=' + this.yi_1 + ', remainder=' + this.zi_1 + ')';
|
|
2316
2316
|
};
|
|
2317
2317
|
protoOf(QuotientAndRemainder).hashCode = function () {
|
|
2318
|
-
var result = this.
|
|
2319
|
-
result = imul(result, 31) + this.
|
|
2318
|
+
var result = this.yi_1.hashCode();
|
|
2319
|
+
result = imul(result, 31) + this.zi_1.hashCode() | 0;
|
|
2320
2320
|
return result;
|
|
2321
2321
|
};
|
|
2322
2322
|
protoOf(QuotientAndRemainder).equals = function (other) {
|
|
@@ -2325,25 +2325,25 @@
|
|
|
2325
2325
|
if (!(other instanceof QuotientAndRemainder))
|
|
2326
2326
|
return false;
|
|
2327
2327
|
var tmp0_other_with_cast = other instanceof QuotientAndRemainder ? other : THROW_CCE();
|
|
2328
|
-
if (!this.xi_1.equals(tmp0_other_with_cast.xi_1))
|
|
2329
|
-
return false;
|
|
2330
2328
|
if (!this.yi_1.equals(tmp0_other_with_cast.yi_1))
|
|
2331
2329
|
return false;
|
|
2330
|
+
if (!this.zi_1.equals(tmp0_other_with_cast.zi_1))
|
|
2331
|
+
return false;
|
|
2332
2332
|
return true;
|
|
2333
2333
|
};
|
|
2334
2334
|
function BigInteger$compareTo$lambda(this$0) {
|
|
2335
2335
|
return function (it) {
|
|
2336
|
-
return this$0.
|
|
2336
|
+
return this$0.tl(it);
|
|
2337
2337
|
};
|
|
2338
2338
|
}
|
|
2339
2339
|
function BigInteger$compareTo$lambda_0(this$0) {
|
|
2340
2340
|
return function (it) {
|
|
2341
|
-
return this$0.
|
|
2341
|
+
return this$0.tl(it);
|
|
2342
2342
|
};
|
|
2343
2343
|
}
|
|
2344
2344
|
function BigInteger$javascriptNumberComparison$lambda(this$0) {
|
|
2345
2345
|
return function (it) {
|
|
2346
|
-
return this$0.
|
|
2346
|
+
return this$0.tl(it);
|
|
2347
2347
|
};
|
|
2348
2348
|
}
|
|
2349
2349
|
function BigInteger(wordArray, requestedSign) {
|
|
@@ -2357,81 +2357,81 @@
|
|
|
2357
2357
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2358
2358
|
}
|
|
2359
2359
|
}
|
|
2360
|
-
this.
|
|
2360
|
+
this.ri_1 = BigInteger63Arithmetic_getInstance().ln(wordArray);
|
|
2361
2361
|
var tmp = this;
|
|
2362
2362
|
var tmp_0;
|
|
2363
|
-
if (isResultZero(this, this.
|
|
2363
|
+
if (isResultZero(this, this.ri_1)) {
|
|
2364
2364
|
tmp_0 = Sign_ZERO_getInstance();
|
|
2365
2365
|
} else {
|
|
2366
2366
|
tmp_0 = requestedSign;
|
|
2367
2367
|
}
|
|
2368
|
-
tmp.
|
|
2369
|
-
this.
|
|
2370
|
-
this.
|
|
2368
|
+
tmp.si_1 = tmp_0;
|
|
2369
|
+
this.ti_1 = _ULongArray___get_size__impl__ju6dtr(this.ri_1);
|
|
2370
|
+
this.ui_1 = null;
|
|
2371
2371
|
}
|
|
2372
|
-
protoOf(BigInteger).
|
|
2372
|
+
protoOf(BigInteger).qh = function () {
|
|
2373
2373
|
return Companion_getInstance_2();
|
|
2374
2374
|
};
|
|
2375
|
-
protoOf(BigInteger).
|
|
2375
|
+
protoOf(BigInteger).rh = function () {
|
|
2376
2376
|
return this;
|
|
2377
2377
|
};
|
|
2378
|
-
protoOf(BigInteger).
|
|
2379
|
-
var comparison = Companion_getInstance_2().
|
|
2378
|
+
protoOf(BigInteger).mn = function (other) {
|
|
2379
|
+
var comparison = Companion_getInstance_2().li_1.rm(this.ri_1, other.ri_1);
|
|
2380
2380
|
var tmp;
|
|
2381
|
-
if (other.
|
|
2382
|
-
return new BigInteger(Companion_getInstance_2().
|
|
2381
|
+
if (other.si_1.equals(this.si_1)) {
|
|
2382
|
+
return new BigInteger(Companion_getInstance_2().li_1.on(this.ri_1, other.ri_1), this.si_1);
|
|
2383
2383
|
} else {
|
|
2384
2384
|
var tmp_0;
|
|
2385
2385
|
if (comparison > 0) {
|
|
2386
|
-
tmp_0 = new BigInteger(Companion_getInstance_2().
|
|
2386
|
+
tmp_0 = new BigInteger(Companion_getInstance_2().li_1.nn(this.ri_1, other.ri_1), this.si_1);
|
|
2387
2387
|
} else if (comparison < 0) {
|
|
2388
|
-
tmp_0 = new BigInteger(Companion_getInstance_2().
|
|
2388
|
+
tmp_0 = new BigInteger(Companion_getInstance_2().li_1.nn(other.ri_1, this.ri_1), other.si_1);
|
|
2389
2389
|
} else {
|
|
2390
|
-
tmp_0 = Companion_getInstance_2().
|
|
2390
|
+
tmp_0 = Companion_getInstance_2().mi_1;
|
|
2391
2391
|
}
|
|
2392
2392
|
tmp = tmp_0;
|
|
2393
2393
|
}
|
|
2394
2394
|
return tmp;
|
|
2395
2395
|
};
|
|
2396
|
-
protoOf(BigInteger).
|
|
2397
|
-
return this.
|
|
2396
|
+
protoOf(BigInteger).th = function (other) {
|
|
2397
|
+
return this.mn(other instanceof BigInteger ? other : THROW_CCE());
|
|
2398
2398
|
};
|
|
2399
|
-
protoOf(BigInteger).
|
|
2400
|
-
var comparison = Companion_getInstance_2().
|
|
2401
|
-
if (this.equals(Companion_getInstance_2().
|
|
2402
|
-
return other.
|
|
2399
|
+
protoOf(BigInteger).pn = function (other) {
|
|
2400
|
+
var comparison = Companion_getInstance_2().li_1.rm(this.ri_1, other.ri_1);
|
|
2401
|
+
if (this.equals(Companion_getInstance_2().mi_1)) {
|
|
2402
|
+
return other.nk();
|
|
2403
2403
|
}
|
|
2404
|
-
if (other.equals(Companion_getInstance_2().
|
|
2404
|
+
if (other.equals(Companion_getInstance_2().mi_1)) {
|
|
2405
2405
|
return this;
|
|
2406
2406
|
}
|
|
2407
2407
|
var tmp;
|
|
2408
|
-
if (other.
|
|
2408
|
+
if (other.si_1.equals(this.si_1)) {
|
|
2409
2409
|
var tmp_0;
|
|
2410
2410
|
if (comparison > 0) {
|
|
2411
|
-
tmp_0 = new BigInteger(Companion_getInstance_2().
|
|
2411
|
+
tmp_0 = new BigInteger(Companion_getInstance_2().li_1.nn(this.ri_1, other.ri_1), this.si_1);
|
|
2412
2412
|
} else if (comparison < 0) {
|
|
2413
|
-
tmp_0 = new BigInteger(Companion_getInstance_2().
|
|
2413
|
+
tmp_0 = new BigInteger(Companion_getInstance_2().li_1.nn(other.ri_1, this.ri_1), this.si_1.sn());
|
|
2414
2414
|
} else {
|
|
2415
|
-
tmp_0 = Companion_getInstance_2().
|
|
2415
|
+
tmp_0 = Companion_getInstance_2().mi_1;
|
|
2416
2416
|
}
|
|
2417
2417
|
tmp = tmp_0;
|
|
2418
2418
|
} else {
|
|
2419
|
-
return new BigInteger(Companion_getInstance_2().
|
|
2419
|
+
return new BigInteger(Companion_getInstance_2().li_1.on(this.ri_1, other.ri_1), this.si_1);
|
|
2420
2420
|
}
|
|
2421
2421
|
return tmp;
|
|
2422
2422
|
};
|
|
2423
|
-
protoOf(BigInteger).
|
|
2424
|
-
return this.
|
|
2423
|
+
protoOf(BigInteger).vh = function (other) {
|
|
2424
|
+
return this.pn(other instanceof BigInteger ? other : THROW_CCE());
|
|
2425
2425
|
};
|
|
2426
|
-
protoOf(BigInteger).
|
|
2427
|
-
if (this.
|
|
2428
|
-
return Companion_getInstance_2().
|
|
2426
|
+
protoOf(BigInteger).tn = function (other) {
|
|
2427
|
+
if (this.cj() ? true : other.cj()) {
|
|
2428
|
+
return Companion_getInstance_2().mi_1;
|
|
2429
2429
|
}
|
|
2430
|
-
if (other.equals(Companion_getInstance_2().
|
|
2430
|
+
if (other.equals(Companion_getInstance_2().ni_1)) {
|
|
2431
2431
|
return this;
|
|
2432
2432
|
}
|
|
2433
2433
|
var tmp;
|
|
2434
|
-
if (!this.
|
|
2434
|
+
if (!this.si_1.equals(other.si_1)) {
|
|
2435
2435
|
tmp = Sign_NEGATIVE_getInstance();
|
|
2436
2436
|
} else {
|
|
2437
2437
|
tmp = Sign_POSITIVE_getInstance();
|
|
@@ -2439,26 +2439,26 @@
|
|
|
2439
2439
|
var sign = tmp;
|
|
2440
2440
|
var tmp_0;
|
|
2441
2441
|
if (sign.equals(Sign_POSITIVE_getInstance())) {
|
|
2442
|
-
tmp_0 = new BigInteger(Companion_getInstance_2().
|
|
2442
|
+
tmp_0 = new BigInteger(Companion_getInstance_2().li_1.un(this.ri_1, other.ri_1), sign);
|
|
2443
2443
|
} else {
|
|
2444
|
-
tmp_0 = new BigInteger(Companion_getInstance_2().
|
|
2444
|
+
tmp_0 = new BigInteger(Companion_getInstance_2().li_1.un(this.ri_1, other.ri_1), sign);
|
|
2445
2445
|
}
|
|
2446
2446
|
return tmp_0;
|
|
2447
2447
|
};
|
|
2448
|
-
protoOf(BigInteger).
|
|
2449
|
-
return this.
|
|
2448
|
+
protoOf(BigInteger).xh = function (other) {
|
|
2449
|
+
return this.tn(other instanceof BigInteger ? other : THROW_CCE());
|
|
2450
2450
|
};
|
|
2451
|
-
protoOf(BigInteger).
|
|
2452
|
-
if (other.
|
|
2451
|
+
protoOf(BigInteger).vn = function (other) {
|
|
2452
|
+
if (other.cj()) {
|
|
2453
2453
|
throw ArithmeticException_init_$Create$('Division by zero! ' + this + ' / ' + other);
|
|
2454
2454
|
}
|
|
2455
|
-
var result = Companion_getInstance_2().
|
|
2455
|
+
var result = Companion_getInstance_2().li_1.wn(this.ri_1, other.ri_1).mc_1.of_1;
|
|
2456
2456
|
var tmp;
|
|
2457
|
-
if (equals(result, Companion_getInstance_2().
|
|
2458
|
-
tmp = Companion_getInstance_2().
|
|
2457
|
+
if (equals(result, Companion_getInstance_2().li_1.em())) {
|
|
2458
|
+
tmp = Companion_getInstance_2().mi_1;
|
|
2459
2459
|
} else {
|
|
2460
2460
|
var tmp_0;
|
|
2461
|
-
if (!this.
|
|
2461
|
+
if (!this.si_1.equals(other.si_1)) {
|
|
2462
2462
|
tmp_0 = Sign_NEGATIVE_getInstance();
|
|
2463
2463
|
} else {
|
|
2464
2464
|
tmp_0 = Sign_POSITIVE_getInstance();
|
|
@@ -2468,100 +2468,100 @@
|
|
|
2468
2468
|
}
|
|
2469
2469
|
return tmp;
|
|
2470
2470
|
};
|
|
2471
|
-
protoOf(BigInteger).
|
|
2472
|
-
return this.
|
|
2471
|
+
protoOf(BigInteger).zh = function (other) {
|
|
2472
|
+
return this.vn(other instanceof BigInteger ? other : THROW_CCE());
|
|
2473
2473
|
};
|
|
2474
|
-
protoOf(BigInteger).
|
|
2475
|
-
if (other.
|
|
2474
|
+
protoOf(BigInteger).xn = function (other) {
|
|
2475
|
+
if (other.cj()) {
|
|
2476
2476
|
throw ArithmeticException_init_$Create$('Division by zero! ' + this + ' / ' + other);
|
|
2477
2477
|
}
|
|
2478
2478
|
var tmp;
|
|
2479
|
-
if (!this.
|
|
2479
|
+
if (!this.si_1.equals(other.si_1)) {
|
|
2480
2480
|
tmp = Sign_NEGATIVE_getInstance();
|
|
2481
2481
|
} else {
|
|
2482
2482
|
tmp = Sign_POSITIVE_getInstance();
|
|
2483
2483
|
}
|
|
2484
2484
|
var sign = tmp;
|
|
2485
|
-
var result = Companion_getInstance_2().
|
|
2486
|
-
if (equals(result, Companion_getInstance_2().
|
|
2485
|
+
var result = Companion_getInstance_2().li_1.wn(this.ri_1, other.ri_1).nc_1.of_1;
|
|
2486
|
+
if (equals(result, Companion_getInstance_2().li_1.em())) {
|
|
2487
2487
|
sign = Sign_ZERO_getInstance();
|
|
2488
2488
|
}
|
|
2489
2489
|
return new BigInteger(result, sign);
|
|
2490
2490
|
};
|
|
2491
|
-
protoOf(BigInteger).
|
|
2492
|
-
return this.
|
|
2491
|
+
protoOf(BigInteger).fi = function (other) {
|
|
2492
|
+
return this.xn(other instanceof BigInteger ? other : THROW_CCE());
|
|
2493
2493
|
};
|
|
2494
|
-
protoOf(BigInteger).
|
|
2495
|
-
if (other.
|
|
2494
|
+
protoOf(BigInteger).yn = function (other) {
|
|
2495
|
+
if (other.cj()) {
|
|
2496
2496
|
throw ArithmeticException_init_$Create$('Division by zero! ' + this + ' / ' + other);
|
|
2497
2497
|
}
|
|
2498
2498
|
var tmp;
|
|
2499
|
-
if (!this.
|
|
2499
|
+
if (!this.si_1.equals(other.si_1)) {
|
|
2500
2500
|
tmp = Sign_NEGATIVE_getInstance();
|
|
2501
2501
|
} else {
|
|
2502
2502
|
tmp = Sign_POSITIVE_getInstance();
|
|
2503
2503
|
}
|
|
2504
2504
|
var sign = tmp;
|
|
2505
|
-
var result = Companion_getInstance_2().
|
|
2505
|
+
var result = Companion_getInstance_2().li_1.wn(this.ri_1, other.ri_1);
|
|
2506
2506
|
var tmp_0;
|
|
2507
|
-
if (equals(result.mc_1, new ULongArray(Companion_getInstance_2().
|
|
2508
|
-
tmp_0 = Companion_getInstance_2().
|
|
2507
|
+
if (equals(result.mc_1, new ULongArray(Companion_getInstance_2().li_1.em()))) {
|
|
2508
|
+
tmp_0 = Companion_getInstance_2().mi_1;
|
|
2509
2509
|
} else {
|
|
2510
2510
|
tmp_0 = new BigInteger(result.mc_1.of_1, sign);
|
|
2511
2511
|
}
|
|
2512
2512
|
var quotient = tmp_0;
|
|
2513
2513
|
var tmp_1;
|
|
2514
|
-
if (equals(result.nc_1, new ULongArray(Companion_getInstance_2().
|
|
2515
|
-
tmp_1 = Companion_getInstance_2().
|
|
2514
|
+
if (equals(result.nc_1, new ULongArray(Companion_getInstance_2().li_1.em()))) {
|
|
2515
|
+
tmp_1 = Companion_getInstance_2().mi_1;
|
|
2516
2516
|
} else {
|
|
2517
|
-
tmp_1 = new BigInteger(result.nc_1.of_1, this.
|
|
2517
|
+
tmp_1 = new BigInteger(result.nc_1.of_1, this.si_1);
|
|
2518
2518
|
}
|
|
2519
2519
|
var remainder = tmp_1;
|
|
2520
2520
|
return new Pair(quotient, remainder);
|
|
2521
2521
|
};
|
|
2522
|
-
protoOf(BigInteger).
|
|
2523
|
-
if (this.
|
|
2522
|
+
protoOf(BigInteger).tl = function (other) {
|
|
2523
|
+
if (this.cj() ? other.cj() : false)
|
|
2524
2524
|
return 0;
|
|
2525
|
-
if (other.
|
|
2525
|
+
if (other.cj() ? this.si_1.equals(Sign_POSITIVE_getInstance()) : false)
|
|
2526
2526
|
return 1;
|
|
2527
|
-
if (other.
|
|
2527
|
+
if (other.cj() ? this.si_1.equals(Sign_NEGATIVE_getInstance()) : false)
|
|
2528
2528
|
return -1;
|
|
2529
|
-
if (this.
|
|
2529
|
+
if (this.cj() ? other.si_1.equals(Sign_POSITIVE_getInstance()) : false)
|
|
2530
2530
|
return -1;
|
|
2531
|
-
if (this.
|
|
2531
|
+
if (this.cj() ? other.si_1.equals(Sign_NEGATIVE_getInstance()) : false)
|
|
2532
2532
|
return 1;
|
|
2533
|
-
if (!this.
|
|
2534
|
-
return this.
|
|
2535
|
-
var result = Companion_getInstance_2().
|
|
2533
|
+
if (!this.si_1.equals(other.si_1))
|
|
2534
|
+
return this.si_1.equals(Sign_POSITIVE_getInstance()) ? 1 : -1;
|
|
2535
|
+
var result = Companion_getInstance_2().li_1.rm(this.ri_1, other.ri_1);
|
|
2536
2536
|
var tmp;
|
|
2537
|
-
if (this.
|
|
2537
|
+
if (this.si_1.equals(Sign_NEGATIVE_getInstance()) ? other.si_1.equals(Sign_NEGATIVE_getInstance()) : false) {
|
|
2538
2538
|
tmp = imul(result, -1);
|
|
2539
2539
|
} else {
|
|
2540
2540
|
tmp = result;
|
|
2541
2541
|
}
|
|
2542
2542
|
return tmp;
|
|
2543
2543
|
};
|
|
2544
|
-
protoOf(BigInteger).
|
|
2545
|
-
return this.
|
|
2544
|
+
protoOf(BigInteger).cj = function () {
|
|
2545
|
+
return this.si_1.equals(Sign_ZERO_getInstance()) ? true : get_chosenArithmetic().rm(this.ri_1, get_chosenArithmetic().em()) === 0;
|
|
2546
2546
|
};
|
|
2547
|
-
protoOf(BigInteger).
|
|
2548
|
-
return new BigInteger(this.
|
|
2547
|
+
protoOf(BigInteger).nk = function () {
|
|
2548
|
+
return new BigInteger(this.ri_1, this.si_1.sn());
|
|
2549
2549
|
};
|
|
2550
|
-
protoOf(BigInteger).
|
|
2551
|
-
return new BigInteger(this.
|
|
2550
|
+
protoOf(BigInteger).aj = function () {
|
|
2551
|
+
return new BigInteger(this.ri_1, Sign_POSITIVE_getInstance());
|
|
2552
2552
|
};
|
|
2553
|
-
protoOf(BigInteger).
|
|
2553
|
+
protoOf(BigInteger).wi = function (exponent) {
|
|
2554
2554
|
if (exponent.m5(new Long(0, 0)) < 0) {
|
|
2555
2555
|
throw ArithmeticException_init_$Create$('Negative exponent not supported with BigInteger');
|
|
2556
2556
|
}
|
|
2557
2557
|
var tmp;
|
|
2558
|
-
if (this.equals(Companion_getInstance_2().
|
|
2559
|
-
tmp = Companion_getInstance_2().li_1;
|
|
2560
|
-
} else if (this.equals(Companion_getInstance_2().mi_1)) {
|
|
2558
|
+
if (this.equals(Companion_getInstance_2().mi_1)) {
|
|
2561
2559
|
tmp = Companion_getInstance_2().mi_1;
|
|
2560
|
+
} else if (this.equals(Companion_getInstance_2().ni_1)) {
|
|
2561
|
+
tmp = Companion_getInstance_2().ni_1;
|
|
2562
2562
|
} else {
|
|
2563
2563
|
var tmp_0;
|
|
2564
|
-
if (this.
|
|
2564
|
+
if (this.si_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
2565
2565
|
var tmp_1;
|
|
2566
2566
|
// Inline function 'kotlin.Long.rem' call
|
|
2567
2567
|
if (exponent.q9(toLong(2)).equals(new Long(0, 0))) {
|
|
@@ -2574,16 +2574,16 @@
|
|
|
2574
2574
|
tmp_0 = Sign_POSITIVE_getInstance();
|
|
2575
2575
|
}
|
|
2576
2576
|
var sign = tmp_0;
|
|
2577
|
-
tmp = new BigInteger(Companion_getInstance_2().
|
|
2577
|
+
tmp = new BigInteger(Companion_getInstance_2().li_1.zn(this.ri_1, exponent), sign);
|
|
2578
2578
|
}
|
|
2579
2579
|
return tmp;
|
|
2580
2580
|
};
|
|
2581
|
-
protoOf(BigInteger).
|
|
2582
|
-
return this.
|
|
2581
|
+
protoOf(BigInteger).jl = function (exponent) {
|
|
2582
|
+
return this.wi(toLong(exponent));
|
|
2583
2583
|
};
|
|
2584
|
-
protoOf(BigInteger).
|
|
2584
|
+
protoOf(BigInteger).pj = function () {
|
|
2585
2585
|
var tmp;
|
|
2586
|
-
switch (this.
|
|
2586
|
+
switch (this.si_1.b9_1) {
|
|
2587
2587
|
case 0:
|
|
2588
2588
|
tmp = 1;
|
|
2589
2589
|
break;
|
|
@@ -2599,18 +2599,18 @@
|
|
|
2599
2599
|
}
|
|
2600
2600
|
return tmp;
|
|
2601
2601
|
};
|
|
2602
|
-
protoOf(BigInteger).
|
|
2603
|
-
if (this.
|
|
2602
|
+
protoOf(BigInteger).vi = function () {
|
|
2603
|
+
if (this.cj()) {
|
|
2604
2604
|
return new Long(1, 0);
|
|
2605
2605
|
}
|
|
2606
|
-
var bitLength = Companion_getInstance_2().
|
|
2606
|
+
var bitLength = Companion_getInstance_2().li_1.rl(this.ri_1);
|
|
2607
2607
|
// Inline function 'kotlin.math.ceil' call
|
|
2608
|
-
var x = (bitLength - 1 | 0) * Companion_getInstance_2().
|
|
2608
|
+
var x = (bitLength - 1 | 0) * Companion_getInstance_2().qi_1;
|
|
2609
2609
|
var minDigit = Math.ceil(x);
|
|
2610
|
-
var tmp = this.
|
|
2610
|
+
var tmp = this.yh(toBigInteger(10).jl(numberToInt(minDigit)));
|
|
2611
2611
|
var counter = new Long(0, 0);
|
|
2612
|
-
while (!(tmp.
|
|
2613
|
-
tmp = tmp.
|
|
2612
|
+
while (!(tmp.dl(0) === 0)) {
|
|
2613
|
+
tmp = tmp.di(10);
|
|
2614
2614
|
counter = counter.r9();
|
|
2615
2615
|
}
|
|
2616
2616
|
// Inline function 'kotlin.Long.plus' call
|
|
@@ -2619,54 +2619,54 @@
|
|
|
2619
2619
|
return this_0.m9(toLong(other));
|
|
2620
2620
|
};
|
|
2621
2621
|
protoOf(BigInteger).s9 = function () {
|
|
2622
|
-
return this.
|
|
2622
|
+
return this.uh(Companion_getInstance_2().ni_1);
|
|
2623
2623
|
};
|
|
2624
2624
|
protoOf(BigInteger).r9 = function () {
|
|
2625
|
-
return this.
|
|
2625
|
+
return this.sh(Companion_getInstance_2().ni_1);
|
|
2626
2626
|
};
|
|
2627
|
-
protoOf(BigInteger).
|
|
2628
|
-
var result = this.
|
|
2627
|
+
protoOf(BigInteger).xi = function (other) {
|
|
2628
|
+
var result = this.yn(other);
|
|
2629
2629
|
return new QuotientAndRemainder(result.mc_1, result.nc_1);
|
|
2630
2630
|
};
|
|
2631
|
-
protoOf(BigInteger).
|
|
2631
|
+
protoOf(BigInteger).dl = function (other) {
|
|
2632
2632
|
if (isNumber(other)) {
|
|
2633
|
-
if (RuntimePlatform_instance.
|
|
2633
|
+
if (RuntimePlatform_instance.ul().equals(Platform_JS_getInstance())) {
|
|
2634
2634
|
return javascriptNumberComparison_0(this, other);
|
|
2635
2635
|
}
|
|
2636
2636
|
}
|
|
2637
2637
|
var tmp;
|
|
2638
2638
|
if (other instanceof BigInteger) {
|
|
2639
|
-
tmp = this.
|
|
2639
|
+
tmp = this.tl(other);
|
|
2640
2640
|
} else {
|
|
2641
2641
|
if (other instanceof Long) {
|
|
2642
|
-
tmp = this.
|
|
2642
|
+
tmp = this.tl(Companion_getInstance_2().bk(other));
|
|
2643
2643
|
} else {
|
|
2644
2644
|
if (typeof other === 'number') {
|
|
2645
|
-
tmp = this.
|
|
2645
|
+
tmp = this.tl(Companion_getInstance_2().lh(other));
|
|
2646
2646
|
} else {
|
|
2647
2647
|
if (typeof other === 'number') {
|
|
2648
|
-
tmp = this.
|
|
2648
|
+
tmp = this.tl(Companion_getInstance_2().fk(other));
|
|
2649
2649
|
} else {
|
|
2650
2650
|
if (typeof other === 'number') {
|
|
2651
|
-
tmp = this.
|
|
2651
|
+
tmp = this.tl(Companion_getInstance_2().hk(other));
|
|
2652
2652
|
} else {
|
|
2653
2653
|
if (other instanceof ULong) {
|
|
2654
|
-
tmp = this.
|
|
2654
|
+
tmp = this.tl(Companion_getInstance_2().jm(other.l8_1));
|
|
2655
2655
|
} else {
|
|
2656
2656
|
if (other instanceof UInt) {
|
|
2657
|
-
tmp = this.
|
|
2657
|
+
tmp = this.tl(Companion_getInstance_2().lm(other.ye_1));
|
|
2658
2658
|
} else {
|
|
2659
2659
|
if (other instanceof UShort) {
|
|
2660
|
-
tmp = this.
|
|
2660
|
+
tmp = this.tl(Companion_getInstance_2().nm(other.co_1));
|
|
2661
2661
|
} else {
|
|
2662
2662
|
if (other instanceof UByte) {
|
|
2663
|
-
tmp = this.
|
|
2663
|
+
tmp = this.tl(Companion_getInstance_2().pm(other.bo_1));
|
|
2664
2664
|
} else {
|
|
2665
2665
|
if (typeof other === 'number') {
|
|
2666
|
-
tmp = this.
|
|
2666
|
+
tmp = this.sm(other, BigInteger$compareTo$lambda(this));
|
|
2667
2667
|
} else {
|
|
2668
2668
|
if (typeof other === 'number') {
|
|
2669
|
-
tmp = this.
|
|
2669
|
+
tmp = this.ao(other, BigInteger$compareTo$lambda_0(this));
|
|
2670
2670
|
} else {
|
|
2671
2671
|
throw RuntimeException_init_$Create$('Invalid comparison type for BigInteger: ' + getKClassFromExpression(other));
|
|
2672
2672
|
}
|
|
@@ -2683,15 +2683,15 @@
|
|
|
2683
2683
|
return tmp;
|
|
2684
2684
|
};
|
|
2685
2685
|
protoOf(BigInteger).d = function (other) {
|
|
2686
|
-
return this.
|
|
2686
|
+
return this.dl(!(other == null) ? other : THROW_CCE());
|
|
2687
2687
|
};
|
|
2688
|
-
protoOf(BigInteger).
|
|
2688
|
+
protoOf(BigInteger).sm = function (float, comparisonBlock) {
|
|
2689
2689
|
// Inline function 'kotlin.math.floor' call
|
|
2690
2690
|
var withoutDecimalPart = Math.floor(float);
|
|
2691
2691
|
var hasDecimalPart = !(float % 1 === 0.0);
|
|
2692
2692
|
var tmp;
|
|
2693
2693
|
if (hasDecimalPart) {
|
|
2694
|
-
var comparisonResult = comparisonBlock(Companion_getInstance_2().
|
|
2694
|
+
var comparisonResult = comparisonBlock(Companion_getInstance_2().nh(withoutDecimalPart + 1));
|
|
2695
2695
|
var tmp_0;
|
|
2696
2696
|
if (comparisonResult === 0) {
|
|
2697
2697
|
tmp_0 = 1;
|
|
@@ -2700,17 +2700,17 @@
|
|
|
2700
2700
|
}
|
|
2701
2701
|
tmp = tmp_0;
|
|
2702
2702
|
} else {
|
|
2703
|
-
tmp = comparisonBlock(Companion_getInstance_2().
|
|
2703
|
+
tmp = comparisonBlock(Companion_getInstance_2().nh(withoutDecimalPart));
|
|
2704
2704
|
}
|
|
2705
2705
|
return tmp;
|
|
2706
2706
|
};
|
|
2707
|
-
protoOf(BigInteger).
|
|
2707
|
+
protoOf(BigInteger).ao = function (double, comparisonBlock) {
|
|
2708
2708
|
// Inline function 'kotlin.math.floor' call
|
|
2709
2709
|
var withoutDecimalPart = Math.floor(double);
|
|
2710
2710
|
var hasDecimalPart = !(double % 1 === 0.0);
|
|
2711
2711
|
var tmp;
|
|
2712
2712
|
if (hasDecimalPart) {
|
|
2713
|
-
var comparisonResult = comparisonBlock(Companion_getInstance_2().
|
|
2713
|
+
var comparisonResult = comparisonBlock(Companion_getInstance_2().ph(withoutDecimalPart + 1));
|
|
2714
2714
|
var tmp_0;
|
|
2715
2715
|
if (comparisonResult === 0) {
|
|
2716
2716
|
tmp_0 = 1;
|
|
@@ -2719,38 +2719,38 @@
|
|
|
2719
2719
|
}
|
|
2720
2720
|
tmp = tmp_0;
|
|
2721
2721
|
} else {
|
|
2722
|
-
tmp = comparisonBlock(Companion_getInstance_2().
|
|
2722
|
+
tmp = comparisonBlock(Companion_getInstance_2().ph(withoutDecimalPart));
|
|
2723
2723
|
}
|
|
2724
2724
|
return tmp;
|
|
2725
2725
|
};
|
|
2726
2726
|
protoOf(BigInteger).equals = function (other) {
|
|
2727
2727
|
var tmp;
|
|
2728
2728
|
if (other instanceof BigInteger) {
|
|
2729
|
-
tmp = this.
|
|
2729
|
+
tmp = this.tl(other);
|
|
2730
2730
|
} else {
|
|
2731
2731
|
if (other instanceof Long) {
|
|
2732
|
-
tmp = this.
|
|
2732
|
+
tmp = this.tl(Companion_getInstance_2().bk(other));
|
|
2733
2733
|
} else {
|
|
2734
2734
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
2735
|
-
tmp = this.
|
|
2735
|
+
tmp = this.tl(Companion_getInstance_2().lh(other));
|
|
2736
2736
|
} else {
|
|
2737
2737
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
2738
|
-
tmp = this.
|
|
2738
|
+
tmp = this.tl(Companion_getInstance_2().fk(other));
|
|
2739
2739
|
} else {
|
|
2740
2740
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
2741
|
-
tmp = this.
|
|
2741
|
+
tmp = this.tl(Companion_getInstance_2().hk(other));
|
|
2742
2742
|
} else {
|
|
2743
2743
|
if (other instanceof ULong) {
|
|
2744
|
-
tmp = this.
|
|
2744
|
+
tmp = this.tl(Companion_getInstance_2().jm(other.l8_1));
|
|
2745
2745
|
} else {
|
|
2746
2746
|
if (other instanceof UInt) {
|
|
2747
|
-
tmp = this.
|
|
2747
|
+
tmp = this.tl(Companion_getInstance_2().lm(other.ye_1));
|
|
2748
2748
|
} else {
|
|
2749
2749
|
if (other instanceof UShort) {
|
|
2750
|
-
tmp = this.
|
|
2750
|
+
tmp = this.tl(Companion_getInstance_2().nm(other.co_1));
|
|
2751
2751
|
} else {
|
|
2752
2752
|
if (other instanceof UByte) {
|
|
2753
|
-
tmp = this.
|
|
2753
|
+
tmp = this.tl(Companion_getInstance_2().pm(other.bo_1));
|
|
2754
2754
|
} else {
|
|
2755
2755
|
tmp = -1;
|
|
2756
2756
|
}
|
|
@@ -2767,7 +2767,7 @@
|
|
|
2767
2767
|
};
|
|
2768
2768
|
protoOf(BigInteger).hashCode = function () {
|
|
2769
2769
|
// Inline function 'kotlin.collections.fold' call
|
|
2770
|
-
var this_0 = this.
|
|
2770
|
+
var this_0 = this.ri_1;
|
|
2771
2771
|
var accumulator = 0;
|
|
2772
2772
|
var tmp0_iterator = ULongArray__iterator_impl_cq4d2h(this_0);
|
|
2773
2773
|
while (tmp0_iterator.t()) {
|
|
@@ -2775,43 +2775,43 @@
|
|
|
2775
2775
|
// Inline function 'com.ionspin.kotlin.bignum.integer.BigInteger.hashCode.<anonymous>' call
|
|
2776
2776
|
accumulator = accumulator + ULong__hashCode_impl_6hv2lb(element) | 0;
|
|
2777
2777
|
}
|
|
2778
|
-
return accumulator + this.
|
|
2778
|
+
return accumulator + this.si_1.hashCode() | 0;
|
|
2779
2779
|
};
|
|
2780
2780
|
protoOf(BigInteger).toString = function () {
|
|
2781
|
-
return this.
|
|
2781
|
+
return this.wl(10);
|
|
2782
2782
|
};
|
|
2783
|
-
protoOf(BigInteger).
|
|
2783
|
+
protoOf(BigInteger).wl = function (base) {
|
|
2784
2784
|
var tmp;
|
|
2785
|
-
if (this.
|
|
2785
|
+
if (this.si_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
2786
2786
|
tmp = '-';
|
|
2787
2787
|
} else {
|
|
2788
2788
|
tmp = '';
|
|
2789
2789
|
}
|
|
2790
2790
|
var sign = tmp;
|
|
2791
|
-
return sign + this.
|
|
2791
|
+
return sign + this.xl(base);
|
|
2792
2792
|
};
|
|
2793
|
-
protoOf(BigInteger).
|
|
2794
|
-
return Companion_getInstance_2().
|
|
2793
|
+
protoOf(BigInteger).xl = function (base) {
|
|
2794
|
+
return Companion_getInstance_2().li_1.do(this.ri_1, base);
|
|
2795
2795
|
};
|
|
2796
|
-
protoOf(BigInteger).
|
|
2797
|
-
if (exactRequired ? this.
|
|
2796
|
+
protoOf(BigInteger).bj = function (exactRequired) {
|
|
2797
|
+
if (exactRequired ? this.dl(IntCompanionObject_instance.MAX_VALUE) > 0 ? true : this.dl(IntCompanionObject_instance.MIN_VALUE) < 0 : false) {
|
|
2798
2798
|
throw ArithmeticException_init_$Create$('Cannot convert to int and provide exact value');
|
|
2799
2799
|
}
|
|
2800
2800
|
// Inline function 'kotlin.ULong.toInt' call
|
|
2801
|
-
var this_0 = ULongArray__get_impl_pr71q9(this.
|
|
2801
|
+
var this_0 = ULongArray__get_impl_pr71q9(this.ri_1, 0);
|
|
2802
2802
|
var tmp$ret$0 = _ULong___get_data__impl__fggpzb(this_0).i8();
|
|
2803
|
-
return imul(tmp$ret$0, this.
|
|
2803
|
+
return imul(tmp$ret$0, this.pj());
|
|
2804
2804
|
};
|
|
2805
|
-
protoOf(BigInteger).
|
|
2805
|
+
protoOf(BigInteger).sl = function (exactRequired) {
|
|
2806
2806
|
var tmp;
|
|
2807
2807
|
if (exactRequired) {
|
|
2808
2808
|
var tmp_0;
|
|
2809
2809
|
Companion_getInstance();
|
|
2810
|
-
if (this.
|
|
2810
|
+
if (this.dl(new Long(-1, 2147483647)) > 0) {
|
|
2811
2811
|
tmp_0 = true;
|
|
2812
2812
|
} else {
|
|
2813
2813
|
Companion_getInstance();
|
|
2814
|
-
tmp_0 = this.
|
|
2814
|
+
tmp_0 = this.dl(new Long(0, -2147483648)) < 0;
|
|
2815
2815
|
}
|
|
2816
2816
|
tmp = tmp_0;
|
|
2817
2817
|
} else {
|
|
@@ -2821,25 +2821,25 @@
|
|
|
2821
2821
|
throw ArithmeticException_init_$Create$('Cannot convert to long and provide exact value');
|
|
2822
2822
|
}
|
|
2823
2823
|
var tmp_1;
|
|
2824
|
-
if (_ULongArray___get_size__impl__ju6dtr(this.
|
|
2824
|
+
if (_ULongArray___get_size__impl__ju6dtr(this.ri_1) > 1) {
|
|
2825
2825
|
// Inline function 'kotlin.ULong.shl' call
|
|
2826
|
-
var this_0 = ULongArray__get_impl_pr71q9(this.
|
|
2826
|
+
var this_0 = ULongArray__get_impl_pr71q9(this.ri_1, 1);
|
|
2827
2827
|
var firstBit = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_0).u9(63));
|
|
2828
2828
|
// Inline function 'kotlin.Long.times' call
|
|
2829
2829
|
// Inline function 'kotlin.ULong.toLong' call
|
|
2830
|
-
var this_1 = ULongArray__get_impl_pr71q9(this.
|
|
2830
|
+
var this_1 = ULongArray__get_impl_pr71q9(this.ri_1, 0);
|
|
2831
2831
|
var tmp_2 = _ULong___get_data__impl__fggpzb(this_1);
|
|
2832
2832
|
// Inline function 'kotlin.ULong.toLong' call
|
|
2833
2833
|
var tmp$ret$2 = _ULong___get_data__impl__fggpzb(firstBit);
|
|
2834
2834
|
var this_2 = tmp_2.x9(tmp$ret$2);
|
|
2835
|
-
var other = this.
|
|
2835
|
+
var other = this.pj();
|
|
2836
2836
|
tmp_1 = this_2.o9(toLong(other));
|
|
2837
2837
|
} else {
|
|
2838
2838
|
// Inline function 'kotlin.Long.times' call
|
|
2839
2839
|
// Inline function 'kotlin.ULong.toLong' call
|
|
2840
|
-
var this_3 = ULongArray__get_impl_pr71q9(this.
|
|
2840
|
+
var this_3 = ULongArray__get_impl_pr71q9(this.ri_1, 0);
|
|
2841
2841
|
var this_4 = _ULong___get_data__impl__fggpzb(this_3);
|
|
2842
|
-
var other_0 = this.
|
|
2842
|
+
var other_0 = this.pj();
|
|
2843
2843
|
return this_4.o9(toLong(other_0));
|
|
2844
2844
|
}
|
|
2845
2845
|
return tmp_1;
|
|
@@ -2859,7 +2859,7 @@
|
|
|
2859
2859
|
function Sign(name, ordinal) {
|
|
2860
2860
|
Enum.call(this, name, ordinal);
|
|
2861
2861
|
}
|
|
2862
|
-
protoOf(Sign).
|
|
2862
|
+
protoOf(Sign).sn = function () {
|
|
2863
2863
|
var tmp;
|
|
2864
2864
|
switch (this.b9_1) {
|
|
2865
2865
|
case 0:
|
|
@@ -2890,7 +2890,7 @@
|
|
|
2890
2890
|
return Sign_ZERO_instance;
|
|
2891
2891
|
}
|
|
2892
2892
|
function toBigInteger(_this__u8e3s4) {
|
|
2893
|
-
return Companion_getInstance_2().
|
|
2893
|
+
return Companion_getInstance_2().lh(_this__u8e3s4);
|
|
2894
2894
|
}
|
|
2895
2895
|
function get_chosenArithmetic() {
|
|
2896
2896
|
_init_properties_Configuration_kt__48zwcc();
|
|
@@ -2924,23 +2924,20 @@
|
|
|
2924
2924
|
return Platform_JS_instance;
|
|
2925
2925
|
}
|
|
2926
2926
|
function Sextuple(a, b, c, d, e, f) {
|
|
2927
|
-
this.
|
|
2928
|
-
this.
|
|
2929
|
-
this.
|
|
2930
|
-
this.
|
|
2931
|
-
this.
|
|
2932
|
-
this.
|
|
2927
|
+
this.eo_1 = a;
|
|
2928
|
+
this.fo_1 = b;
|
|
2929
|
+
this.go_1 = c;
|
|
2930
|
+
this.ho_1 = d;
|
|
2931
|
+
this.io_1 = e;
|
|
2932
|
+
this.jo_1 = f;
|
|
2933
2933
|
}
|
|
2934
2934
|
protoOf(Sextuple).oc = function () {
|
|
2935
|
-
return this.do_1;
|
|
2936
|
-
};
|
|
2937
|
-
protoOf(Sextuple).pc = function () {
|
|
2938
2935
|
return this.eo_1;
|
|
2939
2936
|
};
|
|
2940
|
-
protoOf(Sextuple).
|
|
2937
|
+
protoOf(Sextuple).pc = function () {
|
|
2941
2938
|
return this.fo_1;
|
|
2942
2939
|
};
|
|
2943
|
-
protoOf(Sextuple).
|
|
2940
|
+
protoOf(Sextuple).te = function () {
|
|
2944
2941
|
return this.go_1;
|
|
2945
2942
|
};
|
|
2946
2943
|
protoOf(Sextuple).ko = function () {
|
|
@@ -2949,16 +2946,19 @@
|
|
|
2949
2946
|
protoOf(Sextuple).lo = function () {
|
|
2950
2947
|
return this.io_1;
|
|
2951
2948
|
};
|
|
2949
|
+
protoOf(Sextuple).mo = function () {
|
|
2950
|
+
return this.jo_1;
|
|
2951
|
+
};
|
|
2952
2952
|
protoOf(Sextuple).toString = function () {
|
|
2953
|
-
return 'Sextuple(a=' + this.
|
|
2953
|
+
return 'Sextuple(a=' + this.eo_1 + ', b=' + this.fo_1 + ', c=' + this.go_1 + ', d=' + this.ho_1 + ', e=' + this.io_1 + ', f=' + this.jo_1 + ')';
|
|
2954
2954
|
};
|
|
2955
2955
|
protoOf(Sextuple).hashCode = function () {
|
|
2956
|
-
var result = this.
|
|
2957
|
-
result = imul(result, 31) + (this.eo_1 == null ? 0 : hashCode(this.eo_1)) | 0;
|
|
2956
|
+
var result = this.eo_1 == null ? 0 : hashCode(this.eo_1);
|
|
2958
2957
|
result = imul(result, 31) + (this.fo_1 == null ? 0 : hashCode(this.fo_1)) | 0;
|
|
2959
2958
|
result = imul(result, 31) + (this.go_1 == null ? 0 : hashCode(this.go_1)) | 0;
|
|
2960
2959
|
result = imul(result, 31) + (this.ho_1 == null ? 0 : hashCode(this.ho_1)) | 0;
|
|
2961
2960
|
result = imul(result, 31) + (this.io_1 == null ? 0 : hashCode(this.io_1)) | 0;
|
|
2961
|
+
result = imul(result, 31) + (this.jo_1 == null ? 0 : hashCode(this.jo_1)) | 0;
|
|
2962
2962
|
return result;
|
|
2963
2963
|
};
|
|
2964
2964
|
protoOf(Sextuple).equals = function (other) {
|
|
@@ -2967,8 +2967,6 @@
|
|
|
2967
2967
|
if (!(other instanceof Sextuple))
|
|
2968
2968
|
return false;
|
|
2969
2969
|
var tmp0_other_with_cast = other instanceof Sextuple ? other : THROW_CCE();
|
|
2970
|
-
if (!equals(this.do_1, tmp0_other_with_cast.do_1))
|
|
2971
|
-
return false;
|
|
2972
2970
|
if (!equals(this.eo_1, tmp0_other_with_cast.eo_1))
|
|
2973
2971
|
return false;
|
|
2974
2972
|
if (!equals(this.fo_1, tmp0_other_with_cast.fo_1))
|
|
@@ -2979,34 +2977,36 @@
|
|
|
2979
2977
|
return false;
|
|
2980
2978
|
if (!equals(this.io_1, tmp0_other_with_cast.io_1))
|
|
2981
2979
|
return false;
|
|
2980
|
+
if (!equals(this.jo_1, tmp0_other_with_cast.jo_1))
|
|
2981
|
+
return false;
|
|
2982
2982
|
return true;
|
|
2983
2983
|
};
|
|
2984
2984
|
function Quadruple(a, b, c, d) {
|
|
2985
|
-
this.
|
|
2986
|
-
this.
|
|
2987
|
-
this.
|
|
2988
|
-
this.
|
|
2985
|
+
this.no_1 = a;
|
|
2986
|
+
this.oo_1 = b;
|
|
2987
|
+
this.po_1 = c;
|
|
2988
|
+
this.qo_1 = d;
|
|
2989
2989
|
}
|
|
2990
2990
|
protoOf(Quadruple).oc = function () {
|
|
2991
|
-
return this.mo_1;
|
|
2992
|
-
};
|
|
2993
|
-
protoOf(Quadruple).pc = function () {
|
|
2994
2991
|
return this.no_1;
|
|
2995
2992
|
};
|
|
2996
|
-
protoOf(Quadruple).
|
|
2993
|
+
protoOf(Quadruple).pc = function () {
|
|
2997
2994
|
return this.oo_1;
|
|
2998
2995
|
};
|
|
2999
|
-
protoOf(Quadruple).
|
|
2996
|
+
protoOf(Quadruple).te = function () {
|
|
3000
2997
|
return this.po_1;
|
|
3001
2998
|
};
|
|
2999
|
+
protoOf(Quadruple).ko = function () {
|
|
3000
|
+
return this.qo_1;
|
|
3001
|
+
};
|
|
3002
3002
|
protoOf(Quadruple).toString = function () {
|
|
3003
|
-
return 'Quadruple(a=' + this.
|
|
3003
|
+
return 'Quadruple(a=' + this.no_1 + ', b=' + this.oo_1 + ', c=' + this.po_1 + ', d=' + this.qo_1 + ')';
|
|
3004
3004
|
};
|
|
3005
3005
|
protoOf(Quadruple).hashCode = function () {
|
|
3006
|
-
var result = this.
|
|
3007
|
-
result = imul(result, 31) + (this.no_1 == null ? 0 : hashCode(this.no_1)) | 0;
|
|
3006
|
+
var result = this.no_1 == null ? 0 : hashCode(this.no_1);
|
|
3008
3007
|
result = imul(result, 31) + (this.oo_1 == null ? 0 : hashCode(this.oo_1)) | 0;
|
|
3009
3008
|
result = imul(result, 31) + (this.po_1 == null ? 0 : hashCode(this.po_1)) | 0;
|
|
3009
|
+
result = imul(result, 31) + (this.qo_1 == null ? 0 : hashCode(this.qo_1)) | 0;
|
|
3010
3010
|
return result;
|
|
3011
3011
|
};
|
|
3012
3012
|
protoOf(Quadruple).equals = function (other) {
|
|
@@ -3015,26 +3015,26 @@
|
|
|
3015
3015
|
if (!(other instanceof Quadruple))
|
|
3016
3016
|
return false;
|
|
3017
3017
|
var tmp0_other_with_cast = other instanceof Quadruple ? other : THROW_CCE();
|
|
3018
|
-
if (!equals(this.mo_1, tmp0_other_with_cast.mo_1))
|
|
3019
|
-
return false;
|
|
3020
3018
|
if (!equals(this.no_1, tmp0_other_with_cast.no_1))
|
|
3021
3019
|
return false;
|
|
3022
3020
|
if (!equals(this.oo_1, tmp0_other_with_cast.oo_1))
|
|
3023
3021
|
return false;
|
|
3024
3022
|
if (!equals(this.po_1, tmp0_other_with_cast.po_1))
|
|
3025
3023
|
return false;
|
|
3024
|
+
if (!equals(this.qo_1, tmp0_other_with_cast.qo_1))
|
|
3025
|
+
return false;
|
|
3026
3026
|
return true;
|
|
3027
3027
|
};
|
|
3028
3028
|
function SignedUIntArray(unsignedValue, sign) {
|
|
3029
|
-
this.
|
|
3030
|
-
this.
|
|
3029
|
+
this.ro_1 = unsignedValue;
|
|
3030
|
+
this.so_1 = sign;
|
|
3031
3031
|
}
|
|
3032
3032
|
protoOf(SignedUIntArray).toString = function () {
|
|
3033
|
-
return 'SignedUIntArray(unsignedValue=' + new UIntArray(this.
|
|
3033
|
+
return 'SignedUIntArray(unsignedValue=' + new UIntArray(this.ro_1) + ', sign=' + this.so_1 + ')';
|
|
3034
3034
|
};
|
|
3035
3035
|
protoOf(SignedUIntArray).hashCode = function () {
|
|
3036
|
-
var result = UIntArray__hashCode_impl_hr7ost(this.
|
|
3037
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3036
|
+
var result = UIntArray__hashCode_impl_hr7ost(this.ro_1);
|
|
3037
|
+
result = imul(result, 31) + getBooleanHashCode(this.so_1) | 0;
|
|
3038
3038
|
return result;
|
|
3039
3039
|
};
|
|
3040
3040
|
protoOf(SignedUIntArray).equals = function (other) {
|
|
@@ -3043,9 +3043,9 @@
|
|
|
3043
3043
|
if (!(other instanceof SignedUIntArray))
|
|
3044
3044
|
return false;
|
|
3045
3045
|
var tmp0_other_with_cast = other instanceof SignedUIntArray ? other : THROW_CCE();
|
|
3046
|
-
if (!equals(this.
|
|
3046
|
+
if (!equals(this.ro_1, tmp0_other_with_cast.ro_1))
|
|
3047
3047
|
return false;
|
|
3048
|
-
if (!(this.
|
|
3048
|
+
if (!(this.so_1 === tmp0_other_with_cast.so_1))
|
|
3049
3049
|
return false;
|
|
3050
3050
|
return true;
|
|
3051
3051
|
};
|
|
@@ -3053,15 +3053,15 @@
|
|
|
3053
3053
|
BigInteger32Arithmetic_instance = this;
|
|
3054
3054
|
var tmp = this;
|
|
3055
3055
|
// Inline function 'kotlin.intArrayOf' call
|
|
3056
|
-
tmp.
|
|
3057
|
-
this.
|
|
3058
|
-
this.
|
|
3059
|
-
this.
|
|
3060
|
-
this.
|
|
3061
|
-
this.
|
|
3062
|
-
this.yo_1 = 32;
|
|
3056
|
+
tmp.to_1 = new Int32Array([]);
|
|
3057
|
+
this.uo_1 = _ULong___init__impl__c78o9k(new Long(-1, 0));
|
|
3058
|
+
this.vo_1 = _UInt___init__impl__l7qpdl(-1);
|
|
3059
|
+
this.wo_1 = _ULong___init__impl__c78o9k(new Long(0, 1));
|
|
3060
|
+
this.xo_1 = _ULong___init__impl__c78o9k(new Long(65535, 0));
|
|
3061
|
+
this.yo_1 = _UInt___init__impl__l7qpdl(-1);
|
|
3063
3062
|
this.zo_1 = 32;
|
|
3064
|
-
this.ap_1 =
|
|
3063
|
+
this.ap_1 = 32;
|
|
3064
|
+
this.bp_1 = _UIntArray___init__impl__ghjpc6(0);
|
|
3065
3065
|
var tmp_0 = this;
|
|
3066
3066
|
// Inline function 'kotlin.UIntArray' call
|
|
3067
3067
|
var tmp_1 = 0;
|
|
@@ -3074,7 +3074,7 @@
|
|
|
3074
3074
|
tmp_2[tmp_3] = _UInt___get_data__impl__f0vqqw(this_0);
|
|
3075
3075
|
tmp_1 = tmp_1 + 1 | 0;
|
|
3076
3076
|
}
|
|
3077
|
-
tmp_0.
|
|
3077
|
+
tmp_0.cp_1 = _UIntArray___init__impl__ghjpc6_0(tmp_2);
|
|
3078
3078
|
var tmp_4 = this;
|
|
3079
3079
|
// Inline function 'kotlin.UIntArray' call
|
|
3080
3080
|
var tmp_5 = 0;
|
|
@@ -3087,7 +3087,7 @@
|
|
|
3087
3087
|
tmp_6[tmp_7] = _UInt___get_data__impl__f0vqqw(this_1);
|
|
3088
3088
|
tmp_5 = tmp_5 + 1 | 0;
|
|
3089
3089
|
}
|
|
3090
|
-
tmp_4.
|
|
3090
|
+
tmp_4.dp_1 = _UIntArray___init__impl__ghjpc6_0(tmp_6);
|
|
3091
3091
|
var tmp_8 = this;
|
|
3092
3092
|
// Inline function 'kotlin.UIntArray' call
|
|
3093
3093
|
var tmp_9 = 0;
|
|
@@ -3100,15 +3100,15 @@
|
|
|
3100
3100
|
tmp_10[tmp_11] = _UInt___get_data__impl__f0vqqw(this_2);
|
|
3101
3101
|
tmp_9 = tmp_9 + 1 | 0;
|
|
3102
3102
|
}
|
|
3103
|
-
tmp_8.
|
|
3104
|
-
this.
|
|
3105
|
-
this.
|
|
3106
|
-
this.
|
|
3103
|
+
tmp_8.ep_1 = _UIntArray___init__impl__ghjpc6_0(tmp_10);
|
|
3104
|
+
this.fp_1 = 60;
|
|
3105
|
+
this.gp_1 = 15000;
|
|
3106
|
+
this.hp_1 = new SignedUIntArray(this.dp_1, true);
|
|
3107
3107
|
}
|
|
3108
|
-
protoOf(BigInteger32Arithmetic).
|
|
3108
|
+
protoOf(BigInteger32Arithmetic).ip = function (value) {
|
|
3109
3109
|
var x = value;
|
|
3110
3110
|
var y;
|
|
3111
|
-
var n = this.
|
|
3111
|
+
var n = this.zo_1;
|
|
3112
3112
|
// Inline function 'kotlin.UInt.shr' call
|
|
3113
3113
|
var this_0 = x;
|
|
3114
3114
|
y = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_0) >>> 16 | 0);
|
|
@@ -3148,17 +3148,17 @@
|
|
|
3148
3148
|
var this_5 = x;
|
|
3149
3149
|
return tmp - _UInt___get_data__impl__f0vqqw(this_5) | 0;
|
|
3150
3150
|
};
|
|
3151
|
-
protoOf(BigInteger32Arithmetic).
|
|
3151
|
+
protoOf(BigInteger32Arithmetic).jp = function (value) {
|
|
3152
3152
|
if (UIntArray__isEmpty_impl_vd8j4n(value)) {
|
|
3153
3153
|
return 0;
|
|
3154
3154
|
}
|
|
3155
3155
|
var mostSignificant = UIntArray__get_impl_gp5kza(value, _UIntArray___get_size__impl__r6l8ci(value) - 1 | 0);
|
|
3156
|
-
return this.
|
|
3156
|
+
return this.kp(mostSignificant) + imul(_UIntArray___get_size__impl__r6l8ci(value) - 1 | 0, this.zo_1) | 0;
|
|
3157
3157
|
};
|
|
3158
|
-
protoOf(BigInteger32Arithmetic).
|
|
3159
|
-
return this.
|
|
3158
|
+
protoOf(BigInteger32Arithmetic).kp = function (value) {
|
|
3159
|
+
return this.zo_1 - this.ip(value) | 0;
|
|
3160
3160
|
};
|
|
3161
|
-
protoOf(BigInteger32Arithmetic).
|
|
3161
|
+
protoOf(BigInteger32Arithmetic).lp = function (bigInteger) {
|
|
3162
3162
|
// Inline function 'kotlin.collections.indexOfLast' call
|
|
3163
3163
|
var tmp$ret$3;
|
|
3164
3164
|
$l$block: {
|
|
@@ -3183,12 +3183,12 @@
|
|
|
3183
3183
|
}
|
|
3184
3184
|
var firstEmpty = tmp$ret$3 + 1 | 0;
|
|
3185
3185
|
if (firstEmpty === -1 ? true : firstEmpty === 0) {
|
|
3186
|
-
return this.
|
|
3186
|
+
return this.bp_1;
|
|
3187
3187
|
}
|
|
3188
3188
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
3189
3189
|
return _UIntArray___init__impl__ghjpc6_0(copyOfRange(_UIntArray___get_storage__impl__92a0v0(bigInteger), 0, firstEmpty));
|
|
3190
3190
|
};
|
|
3191
|
-
protoOf(BigInteger32Arithmetic).
|
|
3191
|
+
protoOf(BigInteger32Arithmetic).mp = function (bigInteger) {
|
|
3192
3192
|
var lastNonEmptyIndex = _UIntArray___get_size__impl__r6l8ci(bigInteger) - 1 | 0;
|
|
3193
3193
|
if (lastNonEmptyIndex <= 0) {
|
|
3194
3194
|
return 0;
|
|
@@ -3203,14 +3203,14 @@
|
|
|
3203
3203
|
}
|
|
3204
3204
|
return (_UIntArray___get_size__impl__r6l8ci(bigInteger) - lastNonEmptyIndex | 0) - 1 | 0;
|
|
3205
3205
|
};
|
|
3206
|
-
protoOf(BigInteger32Arithmetic).
|
|
3206
|
+
protoOf(BigInteger32Arithmetic).np = function (operand, places) {
|
|
3207
3207
|
if (UIntArray__isEmpty_impl_vd8j4n(operand) ? true : places === 0) {
|
|
3208
3208
|
return operand;
|
|
3209
3209
|
}
|
|
3210
3210
|
var originalSize = _UIntArray___get_size__impl__r6l8ci(operand);
|
|
3211
|
-
var leadingZeros = this.
|
|
3212
|
-
var shiftWords = places / this.
|
|
3213
|
-
var shiftBits = places % this.
|
|
3211
|
+
var leadingZeros = this.ip(UIntArray__get_impl_gp5kza(operand, _UIntArray___get_size__impl__r6l8ci(operand) - 1 | 0));
|
|
3212
|
+
var shiftWords = places / this.zo_1 | 0;
|
|
3213
|
+
var shiftBits = places % this.zo_1 | 0;
|
|
3214
3214
|
var tmp;
|
|
3215
3215
|
if (shiftBits > leadingZeros) {
|
|
3216
3216
|
tmp = shiftWords + 1 | 0;
|
|
@@ -3258,14 +3258,14 @@
|
|
|
3258
3258
|
var this_3 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_2) << shiftBits);
|
|
3259
3259
|
// Inline function 'kotlin.UInt.shr' call
|
|
3260
3260
|
var this_4 = UIntArray__get_impl_gp5kza(operand, (tmp_7 - shiftWords | 0) - 1 | 0);
|
|
3261
|
-
var bitCount = BigInteger32Arithmetic_getInstance().
|
|
3261
|
+
var bitCount = BigInteger32Arithmetic_getInstance().zo_1 - shiftBits | 0;
|
|
3262
3262
|
var other = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_4) >>> bitCount | 0);
|
|
3263
3263
|
tmp_8 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_3) | _UInt___get_data__impl__f0vqqw(other));
|
|
3264
3264
|
} else {
|
|
3265
3265
|
if (tmp_7 === ((originalSize + wordsNeeded | 0) - 1 | 0)) {
|
|
3266
3266
|
// Inline function 'kotlin.UInt.shr' call
|
|
3267
3267
|
var this_5 = UIntArray__get_impl_gp5kza(operand, tmp_7 - wordsNeeded | 0);
|
|
3268
|
-
var bitCount_0 = BigInteger32Arithmetic_getInstance().
|
|
3268
|
+
var bitCount_0 = BigInteger32Arithmetic_getInstance().zo_1 - shiftBits | 0;
|
|
3269
3269
|
tmp_8 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_5) >>> bitCount_0 | 0);
|
|
3270
3270
|
} else {
|
|
3271
3271
|
throw RuntimeException_init_$Create$('Invalid case ' + tmp_7);
|
|
@@ -3279,14 +3279,14 @@
|
|
|
3279
3279
|
}
|
|
3280
3280
|
return _UIntArray___init__impl__ghjpc6_0(tmp_6);
|
|
3281
3281
|
};
|
|
3282
|
-
protoOf(BigInteger32Arithmetic).
|
|
3282
|
+
protoOf(BigInteger32Arithmetic).op = function (operand, places) {
|
|
3283
3283
|
if (UIntArray__isEmpty_impl_vd8j4n(operand) ? true : places === 0) {
|
|
3284
3284
|
return operand;
|
|
3285
3285
|
}
|
|
3286
|
-
var shiftBits = places % this.
|
|
3287
|
-
var wordsToDiscard = places / this.
|
|
3286
|
+
var shiftBits = places % this.zo_1 | 0;
|
|
3287
|
+
var wordsToDiscard = places / this.zo_1 | 0;
|
|
3288
3288
|
if (wordsToDiscard >= _UIntArray___get_size__impl__r6l8ci(operand)) {
|
|
3289
|
-
return this.
|
|
3289
|
+
return this.bp_1;
|
|
3290
3290
|
}
|
|
3291
3291
|
if (shiftBits === 0) {
|
|
3292
3292
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
@@ -3316,7 +3316,7 @@
|
|
|
3316
3316
|
var this_2 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_1) >>> shiftBits | 0);
|
|
3317
3317
|
// Inline function 'kotlin.UInt.shl' call
|
|
3318
3318
|
var this_3 = UIntArray__get_impl_gp5kza(operand, (tmp_2 + wordsToDiscard | 0) + 1 | 0);
|
|
3319
|
-
var bitCount = BigInteger32Arithmetic_getInstance().
|
|
3319
|
+
var bitCount = BigInteger32Arithmetic_getInstance().zo_1 - shiftBits | 0;
|
|
3320
3320
|
var other = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_3) << bitCount);
|
|
3321
3321
|
tmp_3 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_2) | _UInt___get_data__impl__f0vqqw(other));
|
|
3322
3322
|
} else if (tmp_2 === ((_UIntArray___get_size__impl__r6l8ci(operand) - 1 | 0) - wordsToDiscard | 0)) {
|
|
@@ -3331,22 +3331,22 @@
|
|
|
3331
3331
|
tmp = tmp + 1 | 0;
|
|
3332
3332
|
}
|
|
3333
3333
|
var result = _UIntArray___init__impl__ghjpc6_0(tmp_1);
|
|
3334
|
-
return this.
|
|
3334
|
+
return this.lp(result);
|
|
3335
3335
|
};
|
|
3336
|
-
protoOf(BigInteger32Arithmetic).
|
|
3336
|
+
protoOf(BigInteger32Arithmetic).pp = function (dividend, divisor) {
|
|
3337
3337
|
var divisorSize = _UIntArray___get_size__impl__r6l8ci(divisor);
|
|
3338
|
-
var normalizationShift = this.
|
|
3339
|
-
var divisorNormalized = this.
|
|
3340
|
-
var dividendNormalized = this.
|
|
3338
|
+
var normalizationShift = this.ip(UIntArray__get_impl_gp5kza(divisor, divisorSize - 1 | 0));
|
|
3339
|
+
var divisorNormalized = this.qp(divisor, normalizationShift);
|
|
3340
|
+
var dividendNormalized = this.qp(dividend, normalizationShift);
|
|
3341
3341
|
return new Triple(new UIntArray(dividendNormalized), new UIntArray(divisorNormalized), normalizationShift);
|
|
3342
3342
|
};
|
|
3343
|
-
protoOf(BigInteger32Arithmetic).
|
|
3344
|
-
var remainder = this.
|
|
3343
|
+
protoOf(BigInteger32Arithmetic).rp = function (remainderNormalized, normalizationShift) {
|
|
3344
|
+
var remainder = this.sp(remainderNormalized, normalizationShift);
|
|
3345
3345
|
return remainder;
|
|
3346
3346
|
};
|
|
3347
|
-
protoOf(BigInteger32Arithmetic).
|
|
3348
|
-
var firstStart = _UIntArray___get_size__impl__r6l8ci(first) - this.
|
|
3349
|
-
var secondStart = _UIntArray___get_size__impl__r6l8ci(second) - this.
|
|
3347
|
+
protoOf(BigInteger32Arithmetic).tp = function (first, second) {
|
|
3348
|
+
var firstStart = _UIntArray___get_size__impl__r6l8ci(first) - this.mp(first) | 0;
|
|
3349
|
+
var secondStart = _UIntArray___get_size__impl__r6l8ci(second) - this.mp(second) | 0;
|
|
3350
3350
|
if (firstStart > secondStart) {
|
|
3351
3351
|
return 1;
|
|
3352
3352
|
}
|
|
@@ -3384,7 +3384,7 @@
|
|
|
3384
3384
|
return -1;
|
|
3385
3385
|
}
|
|
3386
3386
|
};
|
|
3387
|
-
protoOf(BigInteger32Arithmetic).
|
|
3387
|
+
protoOf(BigInteger32Arithmetic).up = function (first, second) {
|
|
3388
3388
|
if (_UIntArray___get_size__impl__r6l8ci(first) === 1 ? UIntArray__get_impl_gp5kza(first, 0) === _UInt___init__impl__l7qpdl(0) : false)
|
|
3389
3389
|
return second;
|
|
3390
3390
|
if (_UIntArray___get_size__impl__r6l8ci(second) === 1 ? UIntArray__get_impl_gp5kza(second, 0) === _UInt___init__impl__l7qpdl(0) : false)
|
|
@@ -3399,7 +3399,7 @@
|
|
|
3399
3399
|
var maxLength = tmp0_container.oc();
|
|
3400
3400
|
var minLength = tmp0_container.pc();
|
|
3401
3401
|
var largerData = tmp0_container.te().df_1;
|
|
3402
|
-
var smallerData = tmp0_container.
|
|
3402
|
+
var smallerData = tmp0_container.ko().df_1;
|
|
3403
3403
|
// Inline function 'kotlin.UIntArray' call
|
|
3404
3404
|
var tmp_0 = 0;
|
|
3405
3405
|
var tmp_1 = maxLength + 1 | 0;
|
|
@@ -3433,7 +3433,7 @@
|
|
|
3433
3433
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3434
3434
|
// Inline function 'kotlin.ULong.and' call
|
|
3435
3435
|
var this_5 = sum;
|
|
3436
|
-
var other_1 = this.
|
|
3436
|
+
var other_1 = this.uo_1;
|
|
3437
3437
|
var this_6 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_5).w9(_ULong___get_data__impl__fggpzb(other_1)));
|
|
3438
3438
|
// Inline function 'kotlin.toUInt' call
|
|
3439
3439
|
var this_7 = _ULong___get_data__impl__fggpzb(this_6);
|
|
@@ -3441,7 +3441,7 @@
|
|
|
3441
3441
|
UIntArray__set_impl_7f2zu2(result, tmp_4, tmp$ret$12);
|
|
3442
3442
|
// Inline function 'kotlin.ULong.shr' call
|
|
3443
3443
|
var this_8 = sum;
|
|
3444
|
-
var bitCount = this.
|
|
3444
|
+
var bitCount = this.zo_1;
|
|
3445
3445
|
sum = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_8).v9(bitCount));
|
|
3446
3446
|
i = i + 1 | 0;
|
|
3447
3447
|
}
|
|
@@ -3481,7 +3481,7 @@
|
|
|
3481
3481
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3482
3482
|
// Inline function 'kotlin.ULong.and' call
|
|
3483
3483
|
var this_13 = sum;
|
|
3484
|
-
var other_3 = this.
|
|
3484
|
+
var other_3 = this.uo_1;
|
|
3485
3485
|
var this_14 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_13).w9(_ULong___get_data__impl__fggpzb(other_3)));
|
|
3486
3486
|
// Inline function 'kotlin.toUInt' call
|
|
3487
3487
|
var this_15 = _ULong___get_data__impl__fggpzb(this_14);
|
|
@@ -3489,15 +3489,15 @@
|
|
|
3489
3489
|
UIntArray__set_impl_7f2zu2(result, tmp_6, tmp$ret$22);
|
|
3490
3490
|
// Inline function 'kotlin.ULong.shr' call
|
|
3491
3491
|
var this_16 = sum;
|
|
3492
|
-
var bitCount_0 = this.
|
|
3492
|
+
var bitCount_0 = this.zo_1;
|
|
3493
3493
|
sum = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_16).v9(bitCount_0));
|
|
3494
3494
|
i = i + 1 | 0;
|
|
3495
3495
|
}
|
|
3496
3496
|
};
|
|
3497
|
-
protoOf(BigInteger32Arithmetic).
|
|
3498
|
-
var firstWithoutLeadingZeroes = this.
|
|
3499
|
-
var secondWithoutLeadingZeroes = this.
|
|
3500
|
-
var firstIsLarger = this.
|
|
3497
|
+
protoOf(BigInteger32Arithmetic).vp = function (first, second) {
|
|
3498
|
+
var firstWithoutLeadingZeroes = this.lp(first);
|
|
3499
|
+
var secondWithoutLeadingZeroes = this.lp(second);
|
|
3500
|
+
var firstIsLarger = this.tp(firstWithoutLeadingZeroes, secondWithoutLeadingZeroes) === 1;
|
|
3501
3501
|
var tmp;
|
|
3502
3502
|
if (firstIsLarger) {
|
|
3503
3503
|
tmp = new Quadruple(_UIntArray___get_size__impl__r6l8ci(firstWithoutLeadingZeroes), _UIntArray___get_size__impl__r6l8ci(secondWithoutLeadingZeroes), new UIntArray(firstWithoutLeadingZeroes), new UIntArray(secondWithoutLeadingZeroes));
|
|
@@ -3508,7 +3508,7 @@
|
|
|
3508
3508
|
var largerLength = tmp0_container.oc();
|
|
3509
3509
|
var smallerLength = tmp0_container.pc();
|
|
3510
3510
|
var largerData = tmp0_container.te().df_1;
|
|
3511
|
-
var smallerData = tmp0_container.
|
|
3511
|
+
var smallerData = tmp0_container.ko().df_1;
|
|
3512
3512
|
// Inline function 'kotlin.UIntArray' call
|
|
3513
3513
|
var tmp_0 = 0;
|
|
3514
3514
|
var tmp_1 = largerLength + 1 | 0;
|
|
@@ -3553,9 +3553,9 @@
|
|
|
3553
3553
|
// Inline function 'kotlin.ULong.shr' call
|
|
3554
3554
|
// Inline function 'kotlin.ULong.and' call
|
|
3555
3555
|
var this_7 = diff;
|
|
3556
|
-
var other_1 = this.
|
|
3556
|
+
var other_1 = this.wo_1;
|
|
3557
3557
|
var this_8 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_7).w9(_ULong___get_data__impl__fggpzb(other_1)));
|
|
3558
|
-
var bitCount = this.
|
|
3558
|
+
var bitCount = this.ap_1;
|
|
3559
3559
|
diff = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_8).v9(bitCount));
|
|
3560
3560
|
i = i + 1 | 0;
|
|
3561
3561
|
}
|
|
@@ -3574,15 +3574,15 @@
|
|
|
3574
3574
|
// Inline function 'kotlin.toUInt' call
|
|
3575
3575
|
var this_12 = _ULong___get_data__impl__fggpzb(this_11);
|
|
3576
3576
|
var this_13 = _UInt___init__impl__l7qpdl(this_12.i8());
|
|
3577
|
-
var other_3 = this.
|
|
3577
|
+
var other_3 = this.vo_1;
|
|
3578
3578
|
var tmp$ret$18 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_13) & _UInt___get_data__impl__f0vqqw(other_3));
|
|
3579
3579
|
UIntArray__set_impl_7f2zu2(result, tmp_5, tmp$ret$18);
|
|
3580
3580
|
// Inline function 'kotlin.ULong.shr' call
|
|
3581
3581
|
// Inline function 'kotlin.ULong.and' call
|
|
3582
3582
|
var this_14 = diff;
|
|
3583
|
-
var other_4 = this.
|
|
3583
|
+
var other_4 = this.wo_1;
|
|
3584
3584
|
var this_15 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_14).w9(_ULong___get_data__impl__fggpzb(other_4)));
|
|
3585
|
-
var bitCount_0 = this.
|
|
3585
|
+
var bitCount_0 = this.ap_1;
|
|
3586
3586
|
diff = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_15).v9(bitCount_0));
|
|
3587
3587
|
i = i + 1 | 0;
|
|
3588
3588
|
}
|
|
@@ -3602,7 +3602,7 @@
|
|
|
3602
3602
|
}
|
|
3603
3603
|
}
|
|
3604
3604
|
if (destination.x()) {
|
|
3605
|
-
return this.
|
|
3605
|
+
return this.bp_1;
|
|
3606
3606
|
}
|
|
3607
3607
|
// Inline function 'kotlin.collections.indexOfLast' call
|
|
3608
3608
|
var tmp$ret$27;
|
|
@@ -3630,7 +3630,7 @@
|
|
|
3630
3630
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
3631
3631
|
return _UIntArray___init__impl__ghjpc6_0(copyOfRange(_UIntArray___get_storage__impl__92a0v0(result), 0, firstEmpty));
|
|
3632
3632
|
};
|
|
3633
|
-
protoOf(BigInteger32Arithmetic).
|
|
3633
|
+
protoOf(BigInteger32Arithmetic).wp = function (first, second) {
|
|
3634
3634
|
var result = _UIntArray___init__impl__ghjpc6(_UIntArray___get_size__impl__r6l8ci(first) + 1 | 0);
|
|
3635
3635
|
var product;
|
|
3636
3636
|
var sum;
|
|
@@ -3654,7 +3654,7 @@
|
|
|
3654
3654
|
var this_3 = _ULong___init__impl__c78o9k(toLong(_UInt___get_data__impl__f0vqqw(this_2)).w9(new Long(-1, 0)));
|
|
3655
3655
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3656
3656
|
// Inline function 'kotlin.ULong.and' call
|
|
3657
|
-
var other_0 = this.
|
|
3657
|
+
var other_0 = this.uo_1;
|
|
3658
3658
|
var this_4 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(product).w9(_ULong___get_data__impl__fggpzb(other_0)));
|
|
3659
3659
|
// Inline function 'kotlin.toUInt' call
|
|
3660
3660
|
var this_5 = _ULong___get_data__impl__fggpzb(this_4);
|
|
@@ -3666,7 +3666,7 @@
|
|
|
3666
3666
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3667
3667
|
// Inline function 'kotlin.ULong.and' call
|
|
3668
3668
|
var this_7 = sum;
|
|
3669
|
-
var other_2 = this.
|
|
3669
|
+
var other_2 = this.uo_1;
|
|
3670
3670
|
var this_8 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_7).w9(_ULong___get_data__impl__fggpzb(other_2)));
|
|
3671
3671
|
// Inline function 'kotlin.toUInt' call
|
|
3672
3672
|
var this_9 = _ULong___get_data__impl__fggpzb(this_8);
|
|
@@ -3674,13 +3674,13 @@
|
|
|
3674
3674
|
UIntArray__set_impl_7f2zu2(result, i, tmp$ret$13);
|
|
3675
3675
|
// Inline function 'kotlin.ULong.shr' call
|
|
3676
3676
|
var this_10 = sum;
|
|
3677
|
-
var bitCount = this.
|
|
3677
|
+
var bitCount = this.zo_1;
|
|
3678
3678
|
sum = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_10).v9(bitCount));
|
|
3679
3679
|
var tmp = i + 1 | 0;
|
|
3680
3680
|
// Inline function 'kotlin.UInt.plus' call
|
|
3681
3681
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3682
3682
|
// Inline function 'kotlin.ULong.shr' call
|
|
3683
|
-
var bitCount_0 = this.
|
|
3683
|
+
var bitCount_0 = this.zo_1;
|
|
3684
3684
|
var this_11 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(product).v9(bitCount_0));
|
|
3685
3685
|
// Inline function 'kotlin.toUInt' call
|
|
3686
3686
|
var this_12 = _ULong___get_data__impl__fggpzb(this_11);
|
|
@@ -3694,14 +3694,14 @@
|
|
|
3694
3694
|
UIntArray__set_impl_7f2zu2(result, tmp, tmp$ret$20);
|
|
3695
3695
|
}
|
|
3696
3696
|
while (inductionVariable < last);
|
|
3697
|
-
return this.
|
|
3697
|
+
return this.lp(result);
|
|
3698
3698
|
};
|
|
3699
|
-
protoOf(BigInteger32Arithmetic).
|
|
3700
|
-
return this.
|
|
3699
|
+
protoOf(BigInteger32Arithmetic).xp = function (first, second) {
|
|
3700
|
+
return this.yp(first, second);
|
|
3701
3701
|
};
|
|
3702
|
-
protoOf(BigInteger32Arithmetic).
|
|
3703
|
-
if (this.
|
|
3704
|
-
return new Pair(new UIntArray(this.
|
|
3702
|
+
protoOf(BigInteger32Arithmetic).yp = function (unnormalizedDividend, unnormalizedDivisor) {
|
|
3703
|
+
if (this.zp(unnormalizedDivisor, unnormalizedDividend) > 0) {
|
|
3704
|
+
return new Pair(new UIntArray(this.bp_1), new UIntArray(unnormalizedDividend));
|
|
3705
3705
|
}
|
|
3706
3706
|
if (_UIntArray___get_size__impl__r6l8ci(unnormalizedDivisor) === 1 ? _UIntArray___get_size__impl__r6l8ci(unnormalizedDividend) === 1 : false) {
|
|
3707
3707
|
// Inline function 'kotlin.uintArrayOf' call
|
|
@@ -3710,22 +3710,22 @@
|
|
|
3710
3710
|
var other = UIntArray__get_impl_gp5kza(unnormalizedDivisor, 0);
|
|
3711
3711
|
var tmp$ret$0 = uintDivide(this_0, other);
|
|
3712
3712
|
var tmp$ret$1 = _UIntArray___init__impl__ghjpc6_0(new Int32Array([tmp$ret$0]));
|
|
3713
|
-
var tmp = this.
|
|
3713
|
+
var tmp = this.lp(tmp$ret$1);
|
|
3714
3714
|
// Inline function 'kotlin.uintArrayOf' call
|
|
3715
3715
|
// Inline function 'kotlin.UInt.rem' call
|
|
3716
3716
|
var this_1 = UIntArray__get_impl_gp5kza(unnormalizedDividend, 0);
|
|
3717
3717
|
var other_0 = UIntArray__get_impl_gp5kza(unnormalizedDivisor, 0);
|
|
3718
3718
|
var tmp$ret$2 = uintRemainder(this_1, other_0);
|
|
3719
3719
|
var tmp$ret$3 = _UIntArray___init__impl__ghjpc6_0(new Int32Array([tmp$ret$2]));
|
|
3720
|
-
return new Pair(new UIntArray(tmp), new UIntArray(this.
|
|
3720
|
+
return new Pair(new UIntArray(tmp), new UIntArray(this.lp(tmp$ret$3)));
|
|
3721
3721
|
}
|
|
3722
|
-
var bitPrecision = this.
|
|
3722
|
+
var bitPrecision = this.jp(unnormalizedDividend) - this.jp(unnormalizedDivisor) | 0;
|
|
3723
3723
|
if (bitPrecision === 0) {
|
|
3724
3724
|
// Inline function 'kotlin.uintArrayOf' call
|
|
3725
3725
|
var tmp$ret$4 = _UIntArray___init__impl__ghjpc6_0(new Int32Array([_UInt___init__impl__l7qpdl(1)]));
|
|
3726
|
-
return new Pair(new UIntArray(tmp$ret$4), new UIntArray(this.
|
|
3726
|
+
return new Pair(new UIntArray(tmp$ret$4), new UIntArray(this.aq(unnormalizedDividend, unnormalizedDivisor)));
|
|
3727
3727
|
}
|
|
3728
|
-
var tmp0_container = this.
|
|
3728
|
+
var tmp0_container = this.pp(unnormalizedDividend, unnormalizedDivisor);
|
|
3729
3729
|
var dividend = tmp0_container.oc().df_1;
|
|
3730
3730
|
var divisor = tmp0_container.pc().df_1;
|
|
3731
3731
|
var normalizationShift = tmp0_container.te();
|
|
@@ -3735,11 +3735,11 @@
|
|
|
3735
3735
|
var qjhat;
|
|
3736
3736
|
var reconstructedQuotient;
|
|
3737
3737
|
var quotient = _UIntArray___init__impl__ghjpc6(wordPrecision);
|
|
3738
|
-
var divisorTimesBaseToPowerOfM = this.
|
|
3739
|
-
if (this.
|
|
3738
|
+
var divisorTimesBaseToPowerOfM = this.qp(divisor, imul(wordPrecision, this.zo_1));
|
|
3739
|
+
if (this.zp(dividend, divisorTimesBaseToPowerOfM) >= 0) {
|
|
3740
3740
|
quotient = _UIntArray___init__impl__ghjpc6(wordPrecision + 1 | 0);
|
|
3741
3741
|
UIntArray__set_impl_7f2zu2(quotient, wordPrecision, _UInt___init__impl__l7qpdl(1));
|
|
3742
|
-
dividend = this.
|
|
3742
|
+
dividend = this.aq(dividend, divisorTimesBaseToPowerOfM);
|
|
3743
3743
|
}
|
|
3744
3744
|
var inductionVariable = wordPrecision - 1 | 0;
|
|
3745
3745
|
if (0 <= inductionVariable)
|
|
@@ -3754,7 +3754,7 @@
|
|
|
3754
3754
|
// Inline function 'kotlin.UInt.toULong' call
|
|
3755
3755
|
var this_2 = UIntArray__get_impl_gp5kza(dividend, divisorSize + j | 0);
|
|
3756
3756
|
var this_3 = _ULong___init__impl__c78o9k(toLong(_UInt___get_data__impl__f0vqqw(this_2)).w9(new Long(-1, 0)));
|
|
3757
|
-
var bitCount = this.
|
|
3757
|
+
var bitCount = this.zo_1;
|
|
3758
3758
|
var this_4 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_3).u9(bitCount));
|
|
3759
3759
|
// Inline function 'kotlin.ULong.plus' call
|
|
3760
3760
|
// Inline function 'kotlin.UInt.toULong' call
|
|
@@ -3785,7 +3785,7 @@
|
|
|
3785
3785
|
var tmp_3;
|
|
3786
3786
|
// Inline function 'kotlin.ULong.compareTo' call
|
|
3787
3787
|
// Inline function 'kotlin.UInt.minus' call
|
|
3788
|
-
var this_10 = this.
|
|
3788
|
+
var this_10 = this.yo_1;
|
|
3789
3789
|
var other_4 = _ULong___init__impl__c78o9k(new Long(1, 0));
|
|
3790
3790
|
// Inline function 'kotlin.ULong.minus' call
|
|
3791
3791
|
// Inline function 'kotlin.UInt.toULong' call
|
|
@@ -3798,50 +3798,50 @@
|
|
|
3798
3798
|
tmp_3 = _UInt___init__impl__l7qpdl(this_12.i8());
|
|
3799
3799
|
} else {
|
|
3800
3800
|
// Inline function 'kotlin.UInt.minus' call
|
|
3801
|
-
var this_13 = this.
|
|
3801
|
+
var this_13 = this.yo_1;
|
|
3802
3802
|
var other_6 = _UInt___init__impl__l7qpdl(1);
|
|
3803
3803
|
tmp_3 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_13) - _UInt___get_data__impl__f0vqqw(other_6) | 0);
|
|
3804
3804
|
}
|
|
3805
3805
|
UIntArray__set_impl_7f2zu2(tmp_2, j, tmp_3);
|
|
3806
|
-
reconstructedQuotient = this.
|
|
3807
|
-
while (this.
|
|
3806
|
+
reconstructedQuotient = this.qp(this.bq(divisor, UIntArray__get_impl_gp5kza(quotient, j)), imul(j, this.zo_1));
|
|
3807
|
+
while (this.zp(reconstructedQuotient, dividend) > 0) {
|
|
3808
3808
|
var tmp_4 = quotient;
|
|
3809
3809
|
// Inline function 'kotlin.UInt.minus' call
|
|
3810
3810
|
var this_14 = UIntArray__get_impl_gp5kza(quotient, j);
|
|
3811
3811
|
var other_7 = _UInt___init__impl__l7qpdl(1);
|
|
3812
3812
|
var tmp$ret$22 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_14) - _UInt___get_data__impl__f0vqqw(other_7) | 0);
|
|
3813
3813
|
UIntArray__set_impl_7f2zu2(tmp_4, j, tmp$ret$22);
|
|
3814
|
-
reconstructedQuotient = this.
|
|
3814
|
+
reconstructedQuotient = this.qp(this.bq(divisor, UIntArray__get_impl_gp5kza(quotient, j)), imul(j, this.zo_1));
|
|
3815
3815
|
}
|
|
3816
|
-
dividend = this.
|
|
3816
|
+
dividend = this.aq(dividend, reconstructedQuotient);
|
|
3817
3817
|
}
|
|
3818
3818
|
while (0 <= inductionVariable);
|
|
3819
|
-
while (this.
|
|
3820
|
-
quotient = this.
|
|
3821
|
-
dividend = this.
|
|
3819
|
+
while (this.zp(dividend, divisor) >= 0) {
|
|
3820
|
+
quotient = this.cq(quotient, _UInt___init__impl__l7qpdl(1));
|
|
3821
|
+
dividend = this.aq(dividend, divisor);
|
|
3822
3822
|
}
|
|
3823
|
-
var denormRemainder = this.
|
|
3824
|
-
return new Pair(new UIntArray(this.
|
|
3825
|
-
};
|
|
3826
|
-
protoOf(BigInteger32Arithmetic).pp = function (_this__u8e3s4, places) {
|
|
3827
|
-
return this.mp(_this__u8e3s4, places);
|
|
3823
|
+
var denormRemainder = this.rp(dividend, normalizationShift);
|
|
3824
|
+
return new Pair(new UIntArray(this.lp(quotient)), new UIntArray(denormRemainder));
|
|
3828
3825
|
};
|
|
3829
|
-
protoOf(BigInteger32Arithmetic).
|
|
3826
|
+
protoOf(BigInteger32Arithmetic).qp = function (_this__u8e3s4, places) {
|
|
3830
3827
|
return this.np(_this__u8e3s4, places);
|
|
3831
3828
|
};
|
|
3832
|
-
protoOf(BigInteger32Arithmetic).
|
|
3833
|
-
return this.
|
|
3829
|
+
protoOf(BigInteger32Arithmetic).sp = function (_this__u8e3s4, places) {
|
|
3830
|
+
return this.op(_this__u8e3s4, places);
|
|
3834
3831
|
};
|
|
3835
|
-
protoOf(BigInteger32Arithmetic).
|
|
3832
|
+
protoOf(BigInteger32Arithmetic).aq = function (_this__u8e3s4, other) {
|
|
3833
|
+
return this.vp(_this__u8e3s4, other);
|
|
3834
|
+
};
|
|
3835
|
+
protoOf(BigInteger32Arithmetic).cq = function (_this__u8e3s4, other) {
|
|
3836
3836
|
// Inline function 'kotlin.uintArrayOf' call
|
|
3837
3837
|
var tmp$ret$0 = _UIntArray___init__impl__ghjpc6_0(new Int32Array([other]));
|
|
3838
|
-
return this.
|
|
3838
|
+
return this.up(_this__u8e3s4, tmp$ret$0);
|
|
3839
3839
|
};
|
|
3840
|
-
protoOf(BigInteger32Arithmetic).
|
|
3841
|
-
return this.
|
|
3840
|
+
protoOf(BigInteger32Arithmetic).bq = function (_this__u8e3s4, other) {
|
|
3841
|
+
return this.wp(_this__u8e3s4, other);
|
|
3842
3842
|
};
|
|
3843
|
-
protoOf(BigInteger32Arithmetic).
|
|
3844
|
-
return this.
|
|
3843
|
+
protoOf(BigInteger32Arithmetic).zp = function (_this__u8e3s4, other) {
|
|
3844
|
+
return this.tp(_this__u8e3s4, other);
|
|
3845
3845
|
};
|
|
3846
3846
|
var BigInteger32Arithmetic_instance;
|
|
3847
3847
|
function BigInteger32Arithmetic_getInstance() {
|
|
@@ -3851,18 +3851,18 @@
|
|
|
3851
3851
|
}
|
|
3852
3852
|
function multiplyWithCorrectedSize($this, first, second, firstCorrectedSize, secondCorrectedSize) {
|
|
3853
3853
|
if (isZero(first, $this) ? true : isZero(second, $this)) {
|
|
3854
|
-
return $this.
|
|
3854
|
+
return $this.um_1;
|
|
3855
3855
|
}
|
|
3856
3856
|
if ((firstCorrectedSize >= 120 ? true : secondCorrectedSize >= 120) ? firstCorrectedSize <= 15000 ? true : secondCorrectedSize < 15000 : false) {
|
|
3857
3857
|
return karatsubaMultiplyWithCorrectedSizes($this, first, second, firstCorrectedSize, secondCorrectedSize);
|
|
3858
3858
|
}
|
|
3859
3859
|
if (firstCorrectedSize >= 15000 ? secondCorrectedSize >= 15000 : false) {
|
|
3860
|
-
return $this.
|
|
3860
|
+
return $this.dq(first, second);
|
|
3861
3861
|
}
|
|
3862
3862
|
return basecaseMultiplyWithCorrectedSize($this, first, second, firstCorrectedSize, secondCorrectedSize);
|
|
3863
3863
|
}
|
|
3864
3864
|
function basecaseMultiplyWithCorrectedSize($this, first, second, firstCorrectedSizeStart, secondCorrectedSizeStart) {
|
|
3865
|
-
var resultArray = $this.
|
|
3865
|
+
var resultArray = $this.um_1;
|
|
3866
3866
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
3867
3867
|
var index = 0;
|
|
3868
3868
|
var tmp0_iterator = ULongArray__iterator_impl_cq4d2h(second);
|
|
@@ -3872,7 +3872,7 @@
|
|
|
3872
3872
|
var tmp1 = index;
|
|
3873
3873
|
index = tmp1 + 1 | 0;
|
|
3874
3874
|
if (tmp1 <= secondCorrectedSizeStart) {
|
|
3875
|
-
resultArray = BigInteger63Arithmetic_getInstance().
|
|
3875
|
+
resultArray = BigInteger63Arithmetic_getInstance().gq(resultArray, BigInteger63Arithmetic_getInstance().fq(BigInteger63Arithmetic_getInstance().eq(first, item), imul(tmp1, BigInteger63Arithmetic_getInstance().zm_1)));
|
|
3876
3876
|
}
|
|
3877
3877
|
}
|
|
3878
3878
|
return resultArray;
|
|
@@ -3882,44 +3882,44 @@
|
|
|
3882
3882
|
var second = new SignedULongArray(secondUnsigned, true);
|
|
3883
3883
|
// Inline function 'kotlin.math.max' call
|
|
3884
3884
|
var halfLength = (Math.max(firstCorrectedSize, secondCorrectedSize) + 1 | 0) / 2 | 0;
|
|
3885
|
-
var mask = $this.
|
|
3886
|
-
var firstLower = $this.
|
|
3887
|
-
var firstHigher = $this.
|
|
3888
|
-
var secondLower = $this.
|
|
3889
|
-
var secondHigher = $this.
|
|
3890
|
-
var higherProduct = $this.
|
|
3891
|
-
var lowerProduct = $this.
|
|
3892
|
-
var middleProduct = $this.
|
|
3893
|
-
var result = $this.
|
|
3894
|
-
return result.
|
|
3885
|
+
var mask = $this.hq($this.fq($this.vm_1, imul(halfLength, $this.an_1)), _ULong___init__impl__c78o9k(new Long(1, 0)));
|
|
3886
|
+
var firstLower = $this.iq(first, mask);
|
|
3887
|
+
var firstHigher = $this.jq(first, imul(halfLength, $this.an_1));
|
|
3888
|
+
var secondLower = $this.iq(second, mask);
|
|
3889
|
+
var secondHigher = $this.jq(second, imul(halfLength, $this.an_1));
|
|
3890
|
+
var higherProduct = $this.kq(firstHigher, secondHigher);
|
|
3891
|
+
var lowerProduct = $this.kq(firstLower, secondLower);
|
|
3892
|
+
var middleProduct = $this.kq($this.lq(firstHigher, firstLower), $this.lq(secondHigher, secondLower));
|
|
3893
|
+
var result = $this.lq($this.lq($this.mq(higherProduct, imul(imul(2, $this.an_1), halfLength)), $this.mq($this.nq($this.nq(middleProduct, higherProduct), lowerProduct), imul($this.an_1, halfLength))), lowerProduct);
|
|
3894
|
+
return result.oq_1;
|
|
3895
3895
|
}
|
|
3896
3896
|
function isZero(_this__u8e3s4, $this) {
|
|
3897
|
-
if (equals(_this__u8e3s4, $this.
|
|
3897
|
+
if (equals(_this__u8e3s4, $this.um_1))
|
|
3898
3898
|
return true;
|
|
3899
3899
|
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))) : false)
|
|
3900
3900
|
return true;
|
|
3901
|
-
if ((_ULongArray___get_size__impl__ju6dtr(_this__u8e3s4) - $this.
|
|
3901
|
+
if ((_ULongArray___get_size__impl__ju6dtr(_this__u8e3s4) - $this.qq(_this__u8e3s4) | 0) === 0)
|
|
3902
3902
|
return true;
|
|
3903
3903
|
return false;
|
|
3904
3904
|
}
|
|
3905
3905
|
function SignedULongArray(unsignedValue, sign) {
|
|
3906
|
-
this.
|
|
3907
|
-
this.
|
|
3906
|
+
this.oq_1 = unsignedValue;
|
|
3907
|
+
this.pq_1 = sign;
|
|
3908
3908
|
}
|
|
3909
|
-
protoOf(SignedULongArray).
|
|
3909
|
+
protoOf(SignedULongArray).rq = function (unsignedValue, sign) {
|
|
3910
3910
|
return new SignedULongArray(unsignedValue, sign);
|
|
3911
3911
|
};
|
|
3912
|
-
protoOf(SignedULongArray).
|
|
3913
|
-
unsignedValue = unsignedValue === VOID ? this.
|
|
3914
|
-
sign = sign === VOID ? this.
|
|
3915
|
-
return $super === VOID ? this.
|
|
3912
|
+
protoOf(SignedULongArray).sq = function (unsignedValue, sign, $super) {
|
|
3913
|
+
unsignedValue = unsignedValue === VOID ? this.oq_1 : unsignedValue;
|
|
3914
|
+
sign = sign === VOID ? this.pq_1 : sign;
|
|
3915
|
+
return $super === VOID ? this.rq(unsignedValue, sign) : $super.rq.call(this, new ULongArray(unsignedValue), sign);
|
|
3916
3916
|
};
|
|
3917
3917
|
protoOf(SignedULongArray).toString = function () {
|
|
3918
|
-
return 'SignedULongArray(unsignedValue=' + new ULongArray(this.
|
|
3918
|
+
return 'SignedULongArray(unsignedValue=' + new ULongArray(this.oq_1) + ', sign=' + this.pq_1 + ')';
|
|
3919
3919
|
};
|
|
3920
3920
|
protoOf(SignedULongArray).hashCode = function () {
|
|
3921
|
-
var result = ULongArray__hashCode_impl_aze4wa(this.
|
|
3922
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3921
|
+
var result = ULongArray__hashCode_impl_aze4wa(this.oq_1);
|
|
3922
|
+
result = imul(result, 31) + getBooleanHashCode(this.pq_1) | 0;
|
|
3923
3923
|
return result;
|
|
3924
3924
|
};
|
|
3925
3925
|
protoOf(SignedULongArray).equals = function (other) {
|
|
@@ -3928,69 +3928,69 @@
|
|
|
3928
3928
|
if (!(other instanceof SignedULongArray))
|
|
3929
3929
|
return false;
|
|
3930
3930
|
var tmp0_other_with_cast = other instanceof SignedULongArray ? other : THROW_CCE();
|
|
3931
|
-
if (!equals(this.
|
|
3931
|
+
if (!equals(this.oq_1, tmp0_other_with_cast.oq_1))
|
|
3932
3932
|
return false;
|
|
3933
|
-
if (!(this.
|
|
3933
|
+
if (!(this.pq_1 === tmp0_other_with_cast.pq_1))
|
|
3934
3934
|
return false;
|
|
3935
3935
|
return true;
|
|
3936
3936
|
};
|
|
3937
3937
|
function signedAdd($this, first, second) {
|
|
3938
3938
|
var tmp;
|
|
3939
|
-
if (!!(first.
|
|
3939
|
+
if (!!(first.pq_1 ^ second.pq_1)) {
|
|
3940
3940
|
var tmp_0;
|
|
3941
|
-
if ($this.
|
|
3942
|
-
tmp_0 = new SignedULongArray($this.
|
|
3941
|
+
if ($this.uq(first.oq_1, second.oq_1) > 0) {
|
|
3942
|
+
tmp_0 = new SignedULongArray($this.tq(first.oq_1, second.oq_1), first.pq_1);
|
|
3943
3943
|
} else {
|
|
3944
|
-
tmp_0 = new SignedULongArray($this.
|
|
3944
|
+
tmp_0 = new SignedULongArray($this.tq(second.oq_1, first.oq_1), second.pq_1);
|
|
3945
3945
|
}
|
|
3946
3946
|
tmp = tmp_0;
|
|
3947
3947
|
} else {
|
|
3948
|
-
tmp = new SignedULongArray($this.
|
|
3948
|
+
tmp = new SignedULongArray($this.gq(first.oq_1, second.oq_1), first.pq_1);
|
|
3949
3949
|
}
|
|
3950
3950
|
return tmp;
|
|
3951
3951
|
}
|
|
3952
3952
|
function signedSubtract($this, first, second) {
|
|
3953
|
-
return signedAdd($this, first, second.
|
|
3953
|
+
return signedAdd($this, first, second.sq(VOID, !second.pq_1));
|
|
3954
3954
|
}
|
|
3955
3955
|
function signedMultiply($this, first, second) {
|
|
3956
|
-
return new SignedULongArray($this.
|
|
3956
|
+
return new SignedULongArray($this.vq(first.oq_1, second.oq_1), !!!(first.pq_1 ^ second.pq_1));
|
|
3957
3957
|
}
|
|
3958
3958
|
function signedDivide($this, first, second) {
|
|
3959
|
-
return new SignedULongArray($this.
|
|
3959
|
+
return new SignedULongArray($this.wq(first.oq_1, second.oq_1), !!!(first.pq_1 ^ second.pq_1));
|
|
3960
3960
|
}
|
|
3961
3961
|
function BigInteger63Arithmetic() {
|
|
3962
3962
|
BigInteger63Arithmetic_instance = this;
|
|
3963
3963
|
var tmp = this;
|
|
3964
3964
|
// Inline function 'kotlin.longArrayOf' call
|
|
3965
|
-
tmp.
|
|
3965
|
+
tmp.tm_1 = longArrayOf([]);
|
|
3966
3966
|
var tmp_0 = this;
|
|
3967
3967
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3968
|
-
tmp_0.
|
|
3968
|
+
tmp_0.um_1 = _ULongArray___init__impl__twm1l3(longArrayOf([_ULong___init__impl__c78o9k(new Long(0, 0))]));
|
|
3969
3969
|
var tmp_1 = this;
|
|
3970
3970
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3971
|
-
tmp_1.
|
|
3971
|
+
tmp_1.vm_1 = _ULongArray___init__impl__twm1l3(longArrayOf([_ULong___init__impl__c78o9k(new Long(1, 0))]));
|
|
3972
3972
|
var tmp_2 = this;
|
|
3973
3973
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3974
|
-
tmp_2.
|
|
3974
|
+
tmp_2.wm_1 = _ULongArray___init__impl__twm1l3(longArrayOf([_ULong___init__impl__c78o9k(new Long(2, 0))]));
|
|
3975
3975
|
var tmp_3 = this;
|
|
3976
3976
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3977
|
-
tmp_3.
|
|
3977
|
+
tmp_3.xm_1 = _ULongArray___init__impl__twm1l3(longArrayOf([_ULong___init__impl__c78o9k(new Long(10, 0))]));
|
|
3978
3978
|
var tmp_4 = this;
|
|
3979
3979
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3980
|
-
tmp_4.
|
|
3981
|
-
this.ym_1 = 63;
|
|
3980
|
+
tmp_4.ym_1 = _ULongArray___init__impl__twm1l3(longArrayOf([_ULong___init__impl__c78o9k(new Long(-1431655765, 715827882))]));
|
|
3982
3981
|
this.zm_1 = 63;
|
|
3983
|
-
this.an_1 =
|
|
3982
|
+
this.an_1 = 63;
|
|
3983
|
+
this.bn_1 = _ULong___init__impl__c78o9k(new Long(-1, 2147483647));
|
|
3984
3984
|
var tmp_5 = this;
|
|
3985
3985
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3986
|
-
tmp_5.
|
|
3987
|
-
this.
|
|
3988
|
-
this.
|
|
3989
|
-
this.
|
|
3990
|
-
this.
|
|
3991
|
-
this.
|
|
3992
|
-
this.
|
|
3993
|
-
this.
|
|
3986
|
+
tmp_5.cn_1 = _ULongArray___init__impl__twm1l3(longArrayOf([_ULong___init__impl__c78o9k(new Long(-1, 2147483647))]));
|
|
3987
|
+
this.dn_1 = _ULong___init__impl__c78o9k(new Long(-1, 0));
|
|
3988
|
+
this.en_1 = _ULong___init__impl__c78o9k(new Long(0, 2147483647));
|
|
3989
|
+
this.fn_1 = _ULong___init__impl__c78o9k(new Long(0, -2147483648));
|
|
3990
|
+
this.gn_1 = 120;
|
|
3991
|
+
this.hn_1 = 15000;
|
|
3992
|
+
this.in_1 = false;
|
|
3993
|
+
this.jn_1 = new SignedULongArray(BigInteger63Arithmetic_getInstance().wm_1, true);
|
|
3994
3994
|
var tmp_6 = this;
|
|
3995
3995
|
// Inline function 'kotlin.arrayOf' call
|
|
3996
3996
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
@@ -4197,11 +4197,8 @@
|
|
|
4197
4197
|
var tmp$ret$107 = _ULongArray___init__impl__twm1l3(longArrayOf([_ULong___init__impl__c78o9k(new Long(0, 0)), _ULong___init__impl__c78o9k(new Long(0, 1348279840)), _ULong___init__impl__c78o9k(new Long(-1429664734, 948201970)), _ULong___init__impl__c78o9k(new Long(-1672056316, 640053343)), _ULong___init__impl__c78o9k(new Long(-827280776, 1381583927)), _ULong___init__impl__c78o9k(new Long(149813, 0))]));
|
|
4198
4198
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
4199
4199
|
// Inline function 'kotlin.js.asDynamic' call
|
|
4200
|
-
tmp_6.
|
|
4200
|
+
tmp_6.kn_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)];
|
|
4201
4201
|
}
|
|
4202
|
-
protoOf(BigInteger63Arithmetic).dm = function () {
|
|
4203
|
-
return this.tm_1;
|
|
4204
|
-
};
|
|
4205
4202
|
protoOf(BigInteger63Arithmetic).em = function () {
|
|
4206
4203
|
return this.um_1;
|
|
4207
4204
|
};
|
|
@@ -4211,7 +4208,10 @@
|
|
|
4211
4208
|
protoOf(BigInteger63Arithmetic).gm = function () {
|
|
4212
4209
|
return this.wm_1;
|
|
4213
4210
|
};
|
|
4214
|
-
protoOf(BigInteger63Arithmetic).
|
|
4211
|
+
protoOf(BigInteger63Arithmetic).hm = function () {
|
|
4212
|
+
return this.xm_1;
|
|
4213
|
+
};
|
|
4214
|
+
protoOf(BigInteger63Arithmetic).xq = function (value) {
|
|
4215
4215
|
var x = value;
|
|
4216
4216
|
var y;
|
|
4217
4217
|
var n = 63;
|
|
@@ -4261,7 +4261,7 @@
|
|
|
4261
4261
|
var this_6 = x;
|
|
4262
4262
|
return tmp - _ULong___get_data__impl__fggpzb(this_6).i8() | 0;
|
|
4263
4263
|
};
|
|
4264
|
-
protoOf(BigInteger63Arithmetic).
|
|
4264
|
+
protoOf(BigInteger63Arithmetic).yq = function (value) {
|
|
4265
4265
|
var x = value;
|
|
4266
4266
|
var y;
|
|
4267
4267
|
var n = 63;
|
|
@@ -4269,7 +4269,7 @@
|
|
|
4269
4269
|
// Inline function 'kotlin.ULong.shl' call
|
|
4270
4270
|
var this_0 = x;
|
|
4271
4271
|
var this_1 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_0).u9(32));
|
|
4272
|
-
var other = this.
|
|
4272
|
+
var other = this.bn_1;
|
|
4273
4273
|
y = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_1).w9(_ULong___get_data__impl__fggpzb(other)));
|
|
4274
4274
|
if (!equals(y, _ULong___init__impl__c78o9k(new Long(0, 0)))) {
|
|
4275
4275
|
n = n - 32 | 0;
|
|
@@ -4279,7 +4279,7 @@
|
|
|
4279
4279
|
// Inline function 'kotlin.ULong.shl' call
|
|
4280
4280
|
var this_2 = x;
|
|
4281
4281
|
var this_3 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_2).u9(16));
|
|
4282
|
-
var other_0 = this.
|
|
4282
|
+
var other_0 = this.bn_1;
|
|
4283
4283
|
y = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_3).w9(_ULong___get_data__impl__fggpzb(other_0)));
|
|
4284
4284
|
if (!equals(y, _ULong___init__impl__c78o9k(new Long(0, 0)))) {
|
|
4285
4285
|
n = n - 16 | 0;
|
|
@@ -4289,7 +4289,7 @@
|
|
|
4289
4289
|
// Inline function 'kotlin.ULong.shl' call
|
|
4290
4290
|
var this_4 = x;
|
|
4291
4291
|
var this_5 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_4).u9(8));
|
|
4292
|
-
var other_1 = this.
|
|
4292
|
+
var other_1 = this.bn_1;
|
|
4293
4293
|
y = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_5).w9(_ULong___get_data__impl__fggpzb(other_1)));
|
|
4294
4294
|
if (!equals(y, _ULong___init__impl__c78o9k(new Long(0, 0)))) {
|
|
4295
4295
|
n = n - 8 | 0;
|
|
@@ -4299,7 +4299,7 @@
|
|
|
4299
4299
|
// Inline function 'kotlin.ULong.shl' call
|
|
4300
4300
|
var this_6 = x;
|
|
4301
4301
|
var this_7 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_6).u9(4));
|
|
4302
|
-
var other_2 = this.
|
|
4302
|
+
var other_2 = this.bn_1;
|
|
4303
4303
|
y = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_7).w9(_ULong___get_data__impl__fggpzb(other_2)));
|
|
4304
4304
|
if (!equals(y, _ULong___init__impl__c78o9k(new Long(0, 0)))) {
|
|
4305
4305
|
n = n - 4 | 0;
|
|
@@ -4309,7 +4309,7 @@
|
|
|
4309
4309
|
// Inline function 'kotlin.ULong.shl' call
|
|
4310
4310
|
var this_8 = x;
|
|
4311
4311
|
var this_9 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_8).u9(2));
|
|
4312
|
-
var other_3 = this.
|
|
4312
|
+
var other_3 = this.bn_1;
|
|
4313
4313
|
y = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_9).w9(_ULong___get_data__impl__fggpzb(other_3)));
|
|
4314
4314
|
if (!equals(y, _ULong___init__impl__c78o9k(new Long(0, 0)))) {
|
|
4315
4315
|
n = n - 2 | 0;
|
|
@@ -4319,7 +4319,7 @@
|
|
|
4319
4319
|
// Inline function 'kotlin.ULong.shl' call
|
|
4320
4320
|
var this_10 = x;
|
|
4321
4321
|
var this_11 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_10).u9(1));
|
|
4322
|
-
var other_4 = this.
|
|
4322
|
+
var other_4 = this.bn_1;
|
|
4323
4323
|
y = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_11).w9(_ULong___get_data__impl__fggpzb(other_4)));
|
|
4324
4324
|
if (!equals(y, _ULong___init__impl__c78o9k(new Long(0, 0)))) {
|
|
4325
4325
|
return n - 2 | 0;
|
|
@@ -4329,21 +4329,21 @@
|
|
|
4329
4329
|
var this_12 = x;
|
|
4330
4330
|
return tmp - _ULong___get_data__impl__fggpzb(this_12).i8() | 0;
|
|
4331
4331
|
};
|
|
4332
|
-
protoOf(BigInteger63Arithmetic).
|
|
4332
|
+
protoOf(BigInteger63Arithmetic).rl = function (value) {
|
|
4333
4333
|
if (isZero(value, this)) {
|
|
4334
4334
|
return 0;
|
|
4335
4335
|
}
|
|
4336
|
-
var start = (_ULongArray___get_size__impl__ju6dtr(value) - this.
|
|
4336
|
+
var start = (_ULongArray___get_size__impl__ju6dtr(value) - this.qq(value) | 0) - 1 | 0;
|
|
4337
4337
|
var mostSignificant = ULongArray__get_impl_pr71q9(value, start);
|
|
4338
|
-
return this.
|
|
4339
|
-
};
|
|
4340
|
-
protoOf(BigInteger63Arithmetic).yq = function (value) {
|
|
4341
|
-
return 63 - this.wq(value) | 0;
|
|
4338
|
+
return this.zq(mostSignificant) + imul(start, 63) | 0;
|
|
4342
4339
|
};
|
|
4343
4340
|
protoOf(BigInteger63Arithmetic).zq = function (value) {
|
|
4344
|
-
return this.xq(value);
|
|
4341
|
+
return 63 - this.xq(value) | 0;
|
|
4342
|
+
};
|
|
4343
|
+
protoOf(BigInteger63Arithmetic).ar = function (value) {
|
|
4344
|
+
return this.yq(value);
|
|
4345
4345
|
};
|
|
4346
|
-
protoOf(BigInteger63Arithmetic).
|
|
4346
|
+
protoOf(BigInteger63Arithmetic).ql = function (value) {
|
|
4347
4347
|
if (isZero(value, this)) {
|
|
4348
4348
|
return 0;
|
|
4349
4349
|
}
|
|
@@ -4362,12 +4362,12 @@
|
|
|
4362
4362
|
if (zeroWordsCount === _ULongArray___get_size__impl__ju6dtr(value)) {
|
|
4363
4363
|
return 0;
|
|
4364
4364
|
}
|
|
4365
|
-
return this.
|
|
4365
|
+
return this.ar(ULongArray__get_impl_pr71q9(value, zeroWordsCount)) + imul(zeroWordsCount, 63) | 0;
|
|
4366
4366
|
};
|
|
4367
|
-
protoOf(BigInteger63Arithmetic).
|
|
4368
|
-
var correctedSize = _ULongArray___get_size__impl__ju6dtr(bigInteger) - this.
|
|
4367
|
+
protoOf(BigInteger63Arithmetic).ln = function (bigInteger) {
|
|
4368
|
+
var correctedSize = _ULongArray___get_size__impl__ju6dtr(bigInteger) - this.qq(bigInteger) | 0;
|
|
4369
4369
|
if (correctedSize === 0) {
|
|
4370
|
-
return this.
|
|
4370
|
+
return this.um_1;
|
|
4371
4371
|
}
|
|
4372
4372
|
if (_ULongArray___get_size__impl__ju6dtr(bigInteger) === correctedSize) {
|
|
4373
4373
|
return bigInteger;
|
|
@@ -4378,7 +4378,7 @@
|
|
|
4378
4378
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
4379
4379
|
return _ULongArray___init__impl__twm1l3(copyOfRange_0(_ULongArray___get_storage__impl__28e64j(bigInteger), 0, correctedSize));
|
|
4380
4380
|
};
|
|
4381
|
-
protoOf(BigInteger63Arithmetic).
|
|
4381
|
+
protoOf(BigInteger63Arithmetic).qq = function (bigInteger) {
|
|
4382
4382
|
var lastNonEmptyIndex = _ULongArray___get_size__impl__ju6dtr(bigInteger) - 1 | 0;
|
|
4383
4383
|
if (lastNonEmptyIndex <= 0) {
|
|
4384
4384
|
return 0;
|
|
@@ -4393,7 +4393,7 @@
|
|
|
4393
4393
|
}
|
|
4394
4394
|
return (_ULongArray___get_size__impl__ju6dtr(bigInteger) - lastNonEmptyIndex | 0) - 1 | 0;
|
|
4395
4395
|
};
|
|
4396
|
-
protoOf(BigInteger63Arithmetic).
|
|
4396
|
+
protoOf(BigInteger63Arithmetic).br = function (operand, places) {
|
|
4397
4397
|
if (isZero(operand, this)) {
|
|
4398
4398
|
return operand;
|
|
4399
4399
|
}
|
|
@@ -4401,16 +4401,16 @@
|
|
|
4401
4401
|
return operand;
|
|
4402
4402
|
}
|
|
4403
4403
|
if (ULongArray__isEmpty_impl_c3yngu(operand)) {
|
|
4404
|
-
return this.
|
|
4404
|
+
return this.um_1;
|
|
4405
4405
|
}
|
|
4406
|
-
var leadingZeroWords = this.
|
|
4406
|
+
var leadingZeroWords = this.qq(operand);
|
|
4407
4407
|
if (_ULongArray___get_size__impl__ju6dtr(operand) === leadingZeroWords) {
|
|
4408
|
-
return this.
|
|
4408
|
+
return this.um_1;
|
|
4409
4409
|
}
|
|
4410
4410
|
var originalSize = _ULongArray___get_size__impl__ju6dtr(operand) - leadingZeroWords | 0;
|
|
4411
|
-
var leadingZeros = this.
|
|
4412
|
-
var shiftWords = places / this.
|
|
4413
|
-
var shiftBits = places % this.
|
|
4411
|
+
var leadingZeros = this.xq(ULongArray__get_impl_pr71q9(operand, originalSize - 1 | 0));
|
|
4412
|
+
var shiftWords = places / this.zm_1 | 0;
|
|
4413
|
+
var shiftBits = places % this.zm_1 | 0;
|
|
4414
4414
|
var tmp;
|
|
4415
4415
|
if (shiftBits > leadingZeros) {
|
|
4416
4416
|
tmp = shiftWords + 1 | 0;
|
|
@@ -4450,7 +4450,7 @@
|
|
|
4450
4450
|
// Inline function 'kotlin.ULong.shl' call
|
|
4451
4451
|
var this_1 = ULongArray__get_impl_pr71q9(operand, tmp_7 - shiftWords | 0);
|
|
4452
4452
|
var this_2 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_1).u9(shiftBits));
|
|
4453
|
-
var other = BigInteger63Arithmetic_getInstance().
|
|
4453
|
+
var other = BigInteger63Arithmetic_getInstance().bn_1;
|
|
4454
4454
|
tmp_8 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_2).w9(_ULong___get_data__impl__fggpzb(other)));
|
|
4455
4455
|
} else {
|
|
4456
4456
|
var containsLower = shiftWords + 1 | 0;
|
|
@@ -4460,18 +4460,18 @@
|
|
|
4460
4460
|
// Inline function 'kotlin.ULong.shl' call
|
|
4461
4461
|
var this_3 = ULongArray__get_impl_pr71q9(operand, tmp_7 - shiftWords | 0);
|
|
4462
4462
|
var this_4 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_3).u9(shiftBits));
|
|
4463
|
-
var other_0 = BigInteger63Arithmetic_getInstance().
|
|
4463
|
+
var other_0 = BigInteger63Arithmetic_getInstance().bn_1;
|
|
4464
4464
|
var this_5 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_4).w9(_ULong___get_data__impl__fggpzb(other_0)));
|
|
4465
4465
|
// Inline function 'kotlin.ULong.shr' call
|
|
4466
4466
|
var this_6 = ULongArray__get_impl_pr71q9(operand, (tmp_7 - shiftWords | 0) - 1 | 0);
|
|
4467
|
-
var bitCount = BigInteger63Arithmetic_getInstance().
|
|
4467
|
+
var bitCount = BigInteger63Arithmetic_getInstance().zm_1 - shiftBits | 0;
|
|
4468
4468
|
var other_1 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_6).v9(bitCount));
|
|
4469
4469
|
tmp_8 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_5).x9(_ULong___get_data__impl__fggpzb(other_1)));
|
|
4470
4470
|
} else {
|
|
4471
4471
|
if (tmp_7 === ((originalSize + wordsNeeded | 0) - 1 | 0)) {
|
|
4472
4472
|
// Inline function 'kotlin.ULong.shr' call
|
|
4473
4473
|
var this_7 = ULongArray__get_impl_pr71q9(operand, tmp_7 - wordsNeeded | 0);
|
|
4474
|
-
var bitCount_0 = BigInteger63Arithmetic_getInstance().
|
|
4474
|
+
var bitCount_0 = BigInteger63Arithmetic_getInstance().zm_1 - shiftBits | 0;
|
|
4475
4475
|
tmp_8 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_7).v9(bitCount_0));
|
|
4476
4476
|
} else {
|
|
4477
4477
|
throw RuntimeException_init_$Create$('Invalid case ' + tmp_7);
|
|
@@ -4485,16 +4485,16 @@
|
|
|
4485
4485
|
}
|
|
4486
4486
|
return _ULongArray___init__impl__twm1l3(tmp_6);
|
|
4487
4487
|
};
|
|
4488
|
-
protoOf(BigInteger63Arithmetic).
|
|
4488
|
+
protoOf(BigInteger63Arithmetic).cr = function (operand, places) {
|
|
4489
4489
|
if (ULongArray__isEmpty_impl_c3yngu(operand) ? true : places === 0) {
|
|
4490
4490
|
return operand;
|
|
4491
4491
|
}
|
|
4492
|
-
var leadingZeroWords = this.
|
|
4492
|
+
var leadingZeroWords = this.qq(operand);
|
|
4493
4493
|
var realOperandSize = _ULongArray___get_size__impl__ju6dtr(operand) - leadingZeroWords | 0;
|
|
4494
|
-
var shiftBits = places % this.
|
|
4495
|
-
var wordsToDiscard = places / this.
|
|
4494
|
+
var shiftBits = places % this.zm_1 | 0;
|
|
4495
|
+
var wordsToDiscard = places / this.zm_1 | 0;
|
|
4496
4496
|
if (wordsToDiscard >= realOperandSize) {
|
|
4497
|
-
return this.
|
|
4497
|
+
return this.um_1;
|
|
4498
4498
|
}
|
|
4499
4499
|
if (shiftBits === 0) {
|
|
4500
4500
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
@@ -4510,7 +4510,7 @@
|
|
|
4510
4510
|
}
|
|
4511
4511
|
var newLength = realOperandSize - wordsToDiscard | 0;
|
|
4512
4512
|
if (newLength === 0) {
|
|
4513
|
-
return this.
|
|
4513
|
+
return this.um_1;
|
|
4514
4514
|
}
|
|
4515
4515
|
// Inline function 'kotlin.ULongArray' call
|
|
4516
4516
|
var tmp = 0;
|
|
@@ -4529,9 +4529,9 @@
|
|
|
4529
4529
|
// Inline function 'kotlin.ULong.and' call
|
|
4530
4530
|
// Inline function 'kotlin.ULong.shl' call
|
|
4531
4531
|
var this_3 = ULongArray__get_impl_pr71q9(operand, (tmp_2 + wordsToDiscard | 0) + 1 | 0);
|
|
4532
|
-
var bitCount = BigInteger63Arithmetic_getInstance().
|
|
4532
|
+
var bitCount = BigInteger63Arithmetic_getInstance().zm_1 - shiftBits | 0;
|
|
4533
4533
|
var this_4 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_3).u9(bitCount));
|
|
4534
|
-
var other = BigInteger63Arithmetic_getInstance().
|
|
4534
|
+
var other = BigInteger63Arithmetic_getInstance().bn_1;
|
|
4535
4535
|
var other_0 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_4).w9(_ULong___get_data__impl__fggpzb(other)));
|
|
4536
4536
|
tmp_3 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_2).x9(_ULong___get_data__impl__fggpzb(other_0)));
|
|
4537
4537
|
} else if (tmp_2 === ((realOperandSize - 1 | 0) - wordsToDiscard | 0)) {
|
|
@@ -4548,7 +4548,7 @@
|
|
|
4548
4548
|
var result = _ULongArray___init__impl__twm1l3(tmp_1);
|
|
4549
4549
|
return result;
|
|
4550
4550
|
};
|
|
4551
|
-
protoOf(BigInteger63Arithmetic).
|
|
4551
|
+
protoOf(BigInteger63Arithmetic).dr = function (first, second, firstStart, secondStart) {
|
|
4552
4552
|
if (firstStart > secondStart) {
|
|
4553
4553
|
return 1;
|
|
4554
4554
|
}
|
|
@@ -4586,12 +4586,12 @@
|
|
|
4586
4586
|
return -1;
|
|
4587
4587
|
}
|
|
4588
4588
|
};
|
|
4589
|
-
protoOf(BigInteger63Arithmetic).
|
|
4590
|
-
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4591
|
-
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4592
|
-
return this.
|
|
4589
|
+
protoOf(BigInteger63Arithmetic).rm = function (first, second) {
|
|
4590
|
+
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.qq(first) | 0;
|
|
4591
|
+
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.qq(second) | 0;
|
|
4592
|
+
return this.dr(first, second, firstStart, secondStart);
|
|
4593
4593
|
};
|
|
4594
|
-
protoOf(BigInteger63Arithmetic).
|
|
4594
|
+
protoOf(BigInteger63Arithmetic).er = function (resultArray, resultArrayStart, first, second) {
|
|
4595
4595
|
if (isZero(first, this)) {
|
|
4596
4596
|
// Inline function 'kotlin.collections.copyInto' call
|
|
4597
4597
|
var endIndex = _ULongArray___get_size__impl__ju6dtr(first);
|
|
@@ -4620,8 +4620,8 @@
|
|
|
4620
4620
|
arrayCopy(tmp_0, destination_0, resultArrayStart, 0, endIndex_0);
|
|
4621
4621
|
return Unit_instance;
|
|
4622
4622
|
}
|
|
4623
|
-
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4624
|
-
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4623
|
+
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.qq(first) | 0;
|
|
4624
|
+
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.qq(second) | 0;
|
|
4625
4625
|
var tmp_1;
|
|
4626
4626
|
if (firstStart > secondStart) {
|
|
4627
4627
|
tmp_1 = new Sextuple(_ULongArray___get_size__impl__ju6dtr(first), _ULongArray___get_size__impl__ju6dtr(second), new ULongArray(first), new ULongArray(second), firstStart, secondStart);
|
|
@@ -4632,9 +4632,9 @@
|
|
|
4632
4632
|
var largerLength = tmp0_container.oc();
|
|
4633
4633
|
var smallerLength = tmp0_container.pc();
|
|
4634
4634
|
var largerData = tmp0_container.te().of_1;
|
|
4635
|
-
var smallerData = tmp0_container.
|
|
4636
|
-
var largerStart = tmp0_container.
|
|
4637
|
-
var smallerStart = tmp0_container.
|
|
4635
|
+
var smallerData = tmp0_container.ko().of_1;
|
|
4636
|
+
var largerStart = tmp0_container.lo();
|
|
4637
|
+
var smallerStart = tmp0_container.mo();
|
|
4638
4638
|
var i = 0;
|
|
4639
4639
|
var sum = _ULong___init__impl__c78o9k(new Long(0, 0));
|
|
4640
4640
|
while (i < smallerStart) {
|
|
@@ -4648,7 +4648,7 @@
|
|
|
4648
4648
|
var tmp_2 = i + resultArrayStart | 0;
|
|
4649
4649
|
// Inline function 'kotlin.ULong.and' call
|
|
4650
4650
|
var this_4 = sum;
|
|
4651
|
-
var other_1 = this.
|
|
4651
|
+
var other_1 = this.bn_1;
|
|
4652
4652
|
var tmp$ret$14 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_4).w9(_ULong___get_data__impl__fggpzb(other_1)));
|
|
4653
4653
|
ULongArray__set_impl_z19mvh(resultArray, tmp_2, tmp$ret$14);
|
|
4654
4654
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -4675,7 +4675,7 @@
|
|
|
4675
4675
|
var tmp_3 = i;
|
|
4676
4676
|
// Inline function 'kotlin.ULong.and' call
|
|
4677
4677
|
var this_7 = sum;
|
|
4678
|
-
var other_3 = this.
|
|
4678
|
+
var other_3 = this.bn_1;
|
|
4679
4679
|
var tmp$ret$17 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_7).w9(_ULong___get_data__impl__fggpzb(other_3)));
|
|
4680
4680
|
ULongArray__set_impl_z19mvh(resultArray, tmp_3, tmp$ret$17);
|
|
4681
4681
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -4684,13 +4684,13 @@
|
|
|
4684
4684
|
i = i + 1 | 0;
|
|
4685
4685
|
}
|
|
4686
4686
|
};
|
|
4687
|
-
protoOf(BigInteger63Arithmetic).
|
|
4687
|
+
protoOf(BigInteger63Arithmetic).on = function (first, second) {
|
|
4688
4688
|
if (isZero(first, this))
|
|
4689
4689
|
return second;
|
|
4690
4690
|
if (isZero(second, this))
|
|
4691
4691
|
return first;
|
|
4692
|
-
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4693
|
-
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4692
|
+
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.qq(first) | 0;
|
|
4693
|
+
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.qq(second) | 0;
|
|
4694
4694
|
var tmp;
|
|
4695
4695
|
if (firstStart > secondStart) {
|
|
4696
4696
|
tmp = new Sextuple(_ULongArray___get_size__impl__ju6dtr(first), _ULongArray___get_size__impl__ju6dtr(second), new ULongArray(first), new ULongArray(second), firstStart, secondStart);
|
|
@@ -4701,9 +4701,9 @@
|
|
|
4701
4701
|
var largerLength = tmp0_container.oc();
|
|
4702
4702
|
var smallerLength = tmp0_container.pc();
|
|
4703
4703
|
var largerData = tmp0_container.te().of_1;
|
|
4704
|
-
var smallerData = tmp0_container.
|
|
4705
|
-
var largerStart = tmp0_container.
|
|
4706
|
-
var smallerStart = tmp0_container.
|
|
4704
|
+
var smallerData = tmp0_container.ko().of_1;
|
|
4705
|
+
var largerStart = tmp0_container.lo();
|
|
4706
|
+
var smallerStart = tmp0_container.mo();
|
|
4707
4707
|
// Inline function 'com.ionspin.kotlin.bignum.integer.base63.array.BigInteger63Arithmetic.possibleAdditionOverflow' call
|
|
4708
4708
|
var firstMostSignificant = ULongArray__get_impl_pr71q9(largerData, largerStart - 1 | 0);
|
|
4709
4709
|
var secondMostSignificant = ULongArray__get_impl_pr71q9(smallerData, smallerStart - 1 | 0);
|
|
@@ -4751,22 +4751,22 @@
|
|
|
4751
4751
|
tmp_1 = _ULongArray___init__impl__twm1l3(tmp_7);
|
|
4752
4752
|
}
|
|
4753
4753
|
var result = tmp_1;
|
|
4754
|
-
this.
|
|
4754
|
+
this.er(result, 0, first, second);
|
|
4755
4755
|
var tmp_9;
|
|
4756
4756
|
if (possibleOverflow_0) {
|
|
4757
|
-
tmp_9 = this.
|
|
4757
|
+
tmp_9 = this.ln(result);
|
|
4758
4758
|
} else {
|
|
4759
4759
|
tmp_9 = result;
|
|
4760
4760
|
}
|
|
4761
4761
|
return tmp_9;
|
|
4762
4762
|
};
|
|
4763
|
-
protoOf(BigInteger63Arithmetic).
|
|
4764
|
-
var comparison = this.
|
|
4763
|
+
protoOf(BigInteger63Arithmetic).fr = function (first, second, firstStart, secondStart) {
|
|
4764
|
+
var comparison = this.dr(first, second, firstStart, secondStart);
|
|
4765
4765
|
var firstSize = firstStart + 1 | 0;
|
|
4766
4766
|
var secondSize = secondStart + 1 | 0;
|
|
4767
4767
|
var firstIsLarger = comparison === 1;
|
|
4768
4768
|
if (comparison === 0)
|
|
4769
|
-
return this.
|
|
4769
|
+
return this.um_1;
|
|
4770
4770
|
if (secondSize === 1 ? equals(ULongArray__get_impl_pr71q9(second, 0), _ULong___init__impl__c78o9k(new Long(0, 0))) : false) {
|
|
4771
4771
|
return first;
|
|
4772
4772
|
}
|
|
@@ -4783,7 +4783,7 @@
|
|
|
4783
4783
|
var largerData = tmp0_container.oc().of_1;
|
|
4784
4784
|
var smallerData = tmp0_container.pc().of_1;
|
|
4785
4785
|
var largerStart = tmp0_container.te();
|
|
4786
|
-
var smallerStart = tmp0_container.
|
|
4786
|
+
var smallerStart = tmp0_container.ko();
|
|
4787
4787
|
// Inline function 'kotlin.ULongArray' call
|
|
4788
4788
|
var tmp_0 = 0;
|
|
4789
4789
|
var tmp_1 = longArray(largerStart);
|
|
@@ -4809,7 +4809,7 @@
|
|
|
4809
4809
|
var tmp_3 = i;
|
|
4810
4810
|
// Inline function 'kotlin.ULong.and' call
|
|
4811
4811
|
var this_3 = diff;
|
|
4812
|
-
var other_1 = this.
|
|
4812
|
+
var other_1 = this.bn_1;
|
|
4813
4813
|
var tmp$ret$6 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_3).w9(_ULong___get_data__impl__fggpzb(other_1)));
|
|
4814
4814
|
ULongArray__set_impl_z19mvh(result, tmp_3, tmp$ret$6);
|
|
4815
4815
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -4825,7 +4825,7 @@
|
|
|
4825
4825
|
var tmp_4 = i;
|
|
4826
4826
|
// Inline function 'kotlin.ULong.and' call
|
|
4827
4827
|
var this_6 = diff;
|
|
4828
|
-
var other_3 = this.
|
|
4828
|
+
var other_3 = this.bn_1;
|
|
4829
4829
|
var tmp$ret$9 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_6).w9(_ULong___get_data__impl__fggpzb(other_3)));
|
|
4830
4830
|
ULongArray__set_impl_z19mvh(result, tmp_4, tmp$ret$9);
|
|
4831
4831
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -4837,22 +4837,22 @@
|
|
|
4837
4837
|
ULongArray__set_impl_z19mvh(result, i, ULongArray__get_impl_pr71q9(largerData, i));
|
|
4838
4838
|
i = i + 1 | 0;
|
|
4839
4839
|
}
|
|
4840
|
-
if (this.
|
|
4841
|
-
return this.
|
|
4840
|
+
if (this.qq(result) === (_ULongArray___get_size__impl__ju6dtr(result) - 1 | 0) ? equals(ULongArray__get_impl_pr71q9(result, 0), _ULong___init__impl__c78o9k(new Long(0, 0))) : false) {
|
|
4841
|
+
return this.um_1;
|
|
4842
4842
|
}
|
|
4843
|
-
return this.
|
|
4843
|
+
return this.ln(result);
|
|
4844
4844
|
};
|
|
4845
|
-
protoOf(BigInteger63Arithmetic).
|
|
4846
|
-
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4847
|
-
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4848
|
-
return this.
|
|
4845
|
+
protoOf(BigInteger63Arithmetic).nn = function (first, second) {
|
|
4846
|
+
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.qq(first) | 0;
|
|
4847
|
+
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.qq(second) | 0;
|
|
4848
|
+
return this.fr(first, second, firstStart, secondStart);
|
|
4849
4849
|
};
|
|
4850
|
-
protoOf(BigInteger63Arithmetic).
|
|
4851
|
-
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4852
|
-
var secondCorrectedSize = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4850
|
+
protoOf(BigInteger63Arithmetic).un = function (first, second) {
|
|
4851
|
+
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(first) - this.qq(first) | 0;
|
|
4852
|
+
var secondCorrectedSize = _ULongArray___get_size__impl__ju6dtr(second) - this.qq(second) | 0;
|
|
4853
4853
|
return multiplyWithCorrectedSize(this, first, second, firstCorrectedSize, secondCorrectedSize);
|
|
4854
4854
|
};
|
|
4855
|
-
protoOf(BigInteger63Arithmetic).
|
|
4855
|
+
protoOf(BigInteger63Arithmetic).gr = function (original, numberOfWords, value) {
|
|
4856
4856
|
// Inline function 'kotlin.ULongArray' call
|
|
4857
4857
|
var tmp = 0;
|
|
4858
4858
|
var tmp_0 = _ULongArray___get_size__impl__ju6dtr(original) + numberOfWords | 0;
|
|
@@ -4867,7 +4867,7 @@
|
|
|
4867
4867
|
}
|
|
4868
4868
|
return _ULongArray___init__impl__twm1l3(tmp_1);
|
|
4869
4869
|
};
|
|
4870
|
-
protoOf(BigInteger63Arithmetic).
|
|
4870
|
+
protoOf(BigInteger63Arithmetic).dq = function (firstUnchecked, secondUnchecked) {
|
|
4871
4871
|
var tmp;
|
|
4872
4872
|
if (!((_ULongArray___get_size__impl__ju6dtr(firstUnchecked) % 3 | 0) === 0)) {
|
|
4873
4873
|
// Inline function 'kotlin.collections.asIterable' call
|
|
@@ -4916,10 +4916,10 @@
|
|
|
4916
4916
|
var secondLength = _ULongArray___get_size__impl__ju6dtr(second);
|
|
4917
4917
|
var tmp_9;
|
|
4918
4918
|
if (firstLength > secondLength) {
|
|
4919
|
-
var prepared = this.
|
|
4919
|
+
var prepared = this.gr(second, firstLength - secondLength | 0, _ULong___init__impl__c78o9k(new Long(0, 0)));
|
|
4920
4920
|
tmp_9 = new Pair(new ULongArray(first), new ULongArray(prepared));
|
|
4921
4921
|
} else if (firstLength < secondLength) {
|
|
4922
|
-
var prepared_0 = this.
|
|
4922
|
+
var prepared_0 = this.gr(first, secondLength - firstLength | 0, _ULong___init__impl__c78o9k(new Long(0, 0)));
|
|
4923
4923
|
tmp_9 = new Pair(new ULongArray(prepared_0), new ULongArray(second));
|
|
4924
4924
|
} else {
|
|
4925
4925
|
tmp_9 = new Pair(new ULongArray(first), new ULongArray(second));
|
|
@@ -4938,56 +4938,56 @@
|
|
|
4938
4938
|
var n0 = new SignedULongArray(toULongArray(slice(secondPrepared, until(0, extendedDigit))), true);
|
|
4939
4939
|
var n1 = new SignedULongArray(toULongArray(slice(secondPrepared, until(extendedDigit, imul(extendedDigit, 2)))), true);
|
|
4940
4940
|
var n2 = new SignedULongArray(toULongArray(slice(secondPrepared, until(imul(extendedDigit, 2), imul(extendedDigit, 3)))), true);
|
|
4941
|
-
var p0 = this.
|
|
4941
|
+
var p0 = this.lq(m0, m2);
|
|
4942
4942
|
var pe0 = m0;
|
|
4943
|
-
var pe1 = this.
|
|
4944
|
-
var pem1 = this.
|
|
4945
|
-
var doublePemM2 = this.
|
|
4946
|
-
var pem2 = this.
|
|
4943
|
+
var pe1 = this.lq(p0, m1);
|
|
4944
|
+
var pem1 = this.nq(p0, m1);
|
|
4945
|
+
var doublePemM2 = this.kq(this.lq(pem1, m2), this.jn_1);
|
|
4946
|
+
var pem2 = this.nq(doublePemM2, m0);
|
|
4947
4947
|
var pinf = m2;
|
|
4948
|
-
var q0 = this.
|
|
4948
|
+
var q0 = this.lq(n0, n2);
|
|
4949
4949
|
var qe0 = n0;
|
|
4950
|
-
var qe1 = this.
|
|
4951
|
-
var qem1 = this.
|
|
4952
|
-
var doubleQemN2 = this.
|
|
4953
|
-
var qem2 = this.
|
|
4950
|
+
var qe1 = this.lq(q0, n1);
|
|
4951
|
+
var qem1 = this.nq(q0, n1);
|
|
4952
|
+
var doubleQemN2 = this.kq(this.lq(qem1, n2), this.jn_1);
|
|
4953
|
+
var qem2 = this.nq(doubleQemN2, n0);
|
|
4954
4954
|
var qinf = n2;
|
|
4955
|
-
var re0 = this.
|
|
4956
|
-
var re1 = this.
|
|
4957
|
-
var rem1 = this.
|
|
4958
|
-
var rem2 = this.
|
|
4959
|
-
var rinf = this.
|
|
4955
|
+
var re0 = this.kq(pe0, qe0);
|
|
4956
|
+
var re1 = this.kq(pe1, qe1);
|
|
4957
|
+
var rem1 = this.kq(pem1, qem1);
|
|
4958
|
+
var rem2 = this.kq(pem2, qem2);
|
|
4959
|
+
var rinf = this.kq(pinf, qinf);
|
|
4960
4960
|
var r0 = re0;
|
|
4961
4961
|
var r4 = rinf;
|
|
4962
|
-
var rem2re1diff = this.
|
|
4962
|
+
var rem2re1diff = this.nq(rem2, re1);
|
|
4963
4963
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
4964
4964
|
var tmp$ret$11 = _ULongArray___init__impl__twm1l3(longArrayOf([_ULong___init__impl__c78o9k(new Long(3, 0))]));
|
|
4965
|
-
var r3 = this.
|
|
4966
|
-
var r1 = this.
|
|
4967
|
-
var r2 = this.
|
|
4968
|
-
r3 = this.
|
|
4969
|
-
r2 = this.
|
|
4970
|
-
r1 = this.
|
|
4965
|
+
var r3 = this.hr(rem2re1diff, new SignedULongArray(tmp$ret$11, true));
|
|
4966
|
+
var r1 = this.jq(this.nq(re1, rem1), 1);
|
|
4967
|
+
var r2 = this.nq(rem1, r0);
|
|
4968
|
+
r3 = this.lq(this.jq(this.nq(r2, r3), 1), this.kq(this.jn_1, rinf));
|
|
4969
|
+
r2 = this.nq(this.lq(r2, r1), r4);
|
|
4970
|
+
r1 = this.nq(r1, r3);
|
|
4971
4971
|
var bShiftAmount = imul(extendedDigit, 63);
|
|
4972
4972
|
var rb0 = r0;
|
|
4973
|
-
var rb1 = this.
|
|
4974
|
-
var rb2 = this.
|
|
4975
|
-
var rb3 = this.
|
|
4976
|
-
var rb4 = this.
|
|
4977
|
-
var rb = this.
|
|
4978
|
-
return rb.
|
|
4979
|
-
};
|
|
4980
|
-
protoOf(BigInteger63Arithmetic).
|
|
4981
|
-
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4982
|
-
return this.
|
|
4983
|
-
};
|
|
4984
|
-
protoOf(BigInteger63Arithmetic).
|
|
4973
|
+
var rb1 = this.mq(r1, bShiftAmount);
|
|
4974
|
+
var rb2 = this.mq(r2, imul(bShiftAmount, 2));
|
|
4975
|
+
var rb3 = this.mq(r3, imul(bShiftAmount, 3));
|
|
4976
|
+
var rb4 = this.mq(r4, imul(bShiftAmount, 4));
|
|
4977
|
+
var rb = this.lq(this.lq(this.lq(this.lq(rb0, rb1), rb2), rb3), rb4);
|
|
4978
|
+
return rb.oq_1;
|
|
4979
|
+
};
|
|
4980
|
+
protoOf(BigInteger63Arithmetic).eq = function (first, second) {
|
|
4981
|
+
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(first) - this.qq(first) | 0;
|
|
4982
|
+
return this.ir(first, second, firstCorrectedSize);
|
|
4983
|
+
};
|
|
4984
|
+
protoOf(BigInteger63Arithmetic).ir = function (first, second, firstCorrectedSize) {
|
|
4985
4985
|
// Inline function 'kotlin.ULong.and' call
|
|
4986
|
-
var other = this.
|
|
4986
|
+
var other = this.dn_1;
|
|
4987
4987
|
var secondLow = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(second).w9(_ULong___get_data__impl__fggpzb(other)));
|
|
4988
4988
|
// Inline function 'kotlin.ULong.shr' call
|
|
4989
4989
|
var secondHigh = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(second).v9(32));
|
|
4990
|
-
var requiredBits = this.
|
|
4990
|
+
var requiredBits = this.rl(first) + this.zq(second) | 0;
|
|
4991
4991
|
var tmp;
|
|
4992
4992
|
if (!((requiredBits % 63 | 0) === 0)) {
|
|
4993
4993
|
tmp = (requiredBits / 63 | 0) + 1 | 0;
|
|
@@ -5002,7 +5002,7 @@
|
|
|
5002
5002
|
while (i < firstCorrectedSize) {
|
|
5003
5003
|
// Inline function 'kotlin.ULong.and' call
|
|
5004
5004
|
var this_0 = ULongArray__get_impl_pr71q9(first, i);
|
|
5005
|
-
var other_0 = this.
|
|
5005
|
+
var other_0 = this.dn_1;
|
|
5006
5006
|
var firstLow = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_0).w9(_ULong___get_data__impl__fggpzb(other_0)));
|
|
5007
5007
|
// Inline function 'kotlin.ULong.shr' call
|
|
5008
5008
|
var this_1 = ULongArray__get_impl_pr71q9(first, i);
|
|
@@ -5015,7 +5015,7 @@
|
|
|
5015
5015
|
// Inline function 'kotlin.ULong.plus' call
|
|
5016
5016
|
var this_2 = carryIntoNextRound;
|
|
5017
5017
|
// Inline function 'kotlin.ULong.and' call
|
|
5018
|
-
var other_1 = this.
|
|
5018
|
+
var other_1 = this.bn_1;
|
|
5019
5019
|
var other_2 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(lowerProduct).w9(_ULong___get_data__impl__fggpzb(other_1)));
|
|
5020
5020
|
var lowResult = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_2).m9(_ULong___get_data__impl__fggpzb(other_2)));
|
|
5021
5021
|
// Inline function 'kotlin.ULong.plus' call
|
|
@@ -5026,7 +5026,7 @@
|
|
|
5026
5026
|
lowerCarry = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_3).m9(_ULong___get_data__impl__fggpzb(other_3)));
|
|
5027
5027
|
// Inline function 'kotlin.ULong.and' call
|
|
5028
5028
|
var this_5 = lowResult;
|
|
5029
|
-
var other_4 = this.
|
|
5029
|
+
var other_4 = this.bn_1;
|
|
5030
5030
|
lowResult = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_5).w9(_ULong___get_data__impl__fggpzb(other_4)));
|
|
5031
5031
|
// Inline function 'kotlin.ULong.plus' call
|
|
5032
5032
|
// Inline function 'kotlin.ULong.times' call
|
|
@@ -5045,7 +5045,7 @@
|
|
|
5045
5045
|
// Inline function 'kotlin.ULong.and' call
|
|
5046
5046
|
// Inline function 'kotlin.ULong.shl' call
|
|
5047
5047
|
var this_9 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(middleProduct).u9(32));
|
|
5048
|
-
var other_7 = this.
|
|
5048
|
+
var other_7 = this.bn_1;
|
|
5049
5049
|
var other_8 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_9).w9(_ULong___get_data__impl__fggpzb(other_7)));
|
|
5050
5050
|
lowResult = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_8).m9(_ULong___get_data__impl__fggpzb(other_8)));
|
|
5051
5051
|
// Inline function 'kotlin.ULong.plus' call
|
|
@@ -5057,7 +5057,7 @@
|
|
|
5057
5057
|
var tmp_0 = j;
|
|
5058
5058
|
// Inline function 'kotlin.ULong.and' call
|
|
5059
5059
|
var this_12 = lowResult;
|
|
5060
|
-
var other_10 = this.
|
|
5060
|
+
var other_10 = this.bn_1;
|
|
5061
5061
|
var tmp$ret$21 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_12).w9(_ULong___get_data__impl__fggpzb(other_10)));
|
|
5062
5062
|
ULongArray__set_impl_z19mvh(result, tmp_0, tmp$ret$21);
|
|
5063
5063
|
var highResult = middleCarry;
|
|
@@ -5076,50 +5076,50 @@
|
|
|
5076
5076
|
}
|
|
5077
5077
|
return result;
|
|
5078
5078
|
};
|
|
5079
|
-
protoOf(BigInteger63Arithmetic).
|
|
5079
|
+
protoOf(BigInteger63Arithmetic).zn = function (base, exponent) {
|
|
5080
5080
|
if (exponent.equals(new Long(0, 0))) {
|
|
5081
|
-
return this.
|
|
5081
|
+
return this.vm_1;
|
|
5082
5082
|
}
|
|
5083
5083
|
if (exponent.equals(new Long(1, 0))) {
|
|
5084
5084
|
return base;
|
|
5085
5085
|
}
|
|
5086
|
-
if ((_ULongArray___get_size__impl__ju6dtr(base) === 1 ? equals(ULongArray__get_impl_pr71q9(base, 0), _ULong___init__impl__c78o9k(new Long(10, 0))) : false) ? exponent.m5(toLong(this.
|
|
5087
|
-
return this.
|
|
5086
|
+
if ((_ULongArray___get_size__impl__ju6dtr(base) === 1 ? equals(ULongArray__get_impl_pr71q9(base, 0), _ULong___init__impl__c78o9k(new Long(10, 0))) : false) ? exponent.m5(toLong(this.kn_1.length)) < 0 : false) {
|
|
5087
|
+
return this.kn_1[exponent.i8()].of_1;
|
|
5088
5088
|
}
|
|
5089
|
-
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(base) - this.
|
|
5090
|
-
var helperVar = this.
|
|
5089
|
+
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(base) - this.qq(base) | 0;
|
|
5090
|
+
var helperVar = this.vm_1;
|
|
5091
5091
|
var exponentVar = exponent;
|
|
5092
5092
|
var baseVar = base;
|
|
5093
5093
|
while (exponentVar.m5(new Long(1, 0)) > 0) {
|
|
5094
5094
|
// Inline function 'kotlin.Long.rem' call
|
|
5095
5095
|
if (exponentVar.q9(toLong(2)).equals(new Long(0, 0))) {
|
|
5096
|
-
baseVar = this.
|
|
5096
|
+
baseVar = this.vq(baseVar, baseVar);
|
|
5097
5097
|
// Inline function 'kotlin.Long.div' call
|
|
5098
5098
|
exponentVar = exponentVar.p9(toLong(2));
|
|
5099
5099
|
} else {
|
|
5100
|
-
helperVar = this.
|
|
5101
|
-
baseVar = this.
|
|
5100
|
+
helperVar = this.vq(baseVar, helperVar);
|
|
5101
|
+
baseVar = this.vq(baseVar, baseVar);
|
|
5102
5102
|
// Inline function 'kotlin.Long.div' call
|
|
5103
5103
|
// Inline function 'kotlin.Long.minus' call
|
|
5104
5104
|
exponentVar = exponentVar.n9(toLong(1)).p9(toLong(2));
|
|
5105
5105
|
}
|
|
5106
5106
|
}
|
|
5107
|
-
return this.
|
|
5107
|
+
return this.vq(helperVar, baseVar);
|
|
5108
5108
|
};
|
|
5109
|
-
protoOf(BigInteger63Arithmetic).
|
|
5109
|
+
protoOf(BigInteger63Arithmetic).jr = function (dividend, divisor) {
|
|
5110
5110
|
var divisorSize = _ULongArray___get_size__impl__ju6dtr(divisor);
|
|
5111
|
-
var normalizationShift = this.
|
|
5112
|
-
var divisorNormalized = this.
|
|
5113
|
-
var dividendNormalized = this.
|
|
5111
|
+
var normalizationShift = this.xq(ULongArray__get_impl_pr71q9(divisor, divisorSize - 1 | 0));
|
|
5112
|
+
var divisorNormalized = this.fq(divisor, normalizationShift);
|
|
5113
|
+
var dividendNormalized = this.fq(dividend, normalizationShift);
|
|
5114
5114
|
return new Triple(new ULongArray(dividendNormalized), new ULongArray(divisorNormalized), normalizationShift);
|
|
5115
5115
|
};
|
|
5116
|
-
protoOf(BigInteger63Arithmetic).
|
|
5117
|
-
var remainder = this.
|
|
5116
|
+
protoOf(BigInteger63Arithmetic).kr = function (remainderNormalized, normalizationShift) {
|
|
5117
|
+
var remainder = this.lr(remainderNormalized, normalizationShift);
|
|
5118
5118
|
return remainder;
|
|
5119
5119
|
};
|
|
5120
|
-
protoOf(BigInteger63Arithmetic).
|
|
5121
|
-
if (this.
|
|
5122
|
-
return new Pair(new ULongArray(this.
|
|
5120
|
+
protoOf(BigInteger63Arithmetic).mr = function (unnormalizedDividend, unnormalizedDivisor) {
|
|
5121
|
+
if (this.uq(unnormalizedDivisor, unnormalizedDividend) > 0) {
|
|
5122
|
+
return new Pair(new ULongArray(this.um_1), new ULongArray(unnormalizedDividend));
|
|
5123
5123
|
}
|
|
5124
5124
|
if (_ULongArray___get_size__impl__ju6dtr(unnormalizedDivisor) === 1 ? _ULongArray___get_size__impl__ju6dtr(unnormalizedDividend) === 1 : false) {
|
|
5125
5125
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
@@ -5128,35 +5128,35 @@
|
|
|
5128
5128
|
var other = ULongArray__get_impl_pr71q9(unnormalizedDivisor, 0);
|
|
5129
5129
|
var tmp$ret$0 = ulongDivide(this_0, other);
|
|
5130
5130
|
var tmp$ret$1 = _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$0]));
|
|
5131
|
-
var tmp = this.
|
|
5131
|
+
var tmp = this.ln(tmp$ret$1);
|
|
5132
5132
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5133
5133
|
// Inline function 'kotlin.ULong.rem' call
|
|
5134
5134
|
var this_1 = ULongArray__get_impl_pr71q9(unnormalizedDividend, 0);
|
|
5135
5135
|
var other_0 = ULongArray__get_impl_pr71q9(unnormalizedDivisor, 0);
|
|
5136
5136
|
var tmp$ret$2 = ulongRemainder(this_1, other_0);
|
|
5137
5137
|
var tmp$ret$3 = _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$2]));
|
|
5138
|
-
return new Pair(new ULongArray(tmp), new ULongArray(this.
|
|
5138
|
+
return new Pair(new ULongArray(tmp), new ULongArray(this.ln(tmp$ret$3)));
|
|
5139
5139
|
}
|
|
5140
|
-
var bitPrecision = this.
|
|
5140
|
+
var bitPrecision = this.rl(unnormalizedDividend) - this.rl(unnormalizedDivisor) | 0;
|
|
5141
5141
|
if (bitPrecision === 0) {
|
|
5142
|
-
return new Pair(new ULongArray(this.
|
|
5142
|
+
return new Pair(new ULongArray(this.vm_1), new ULongArray(this.tq(unnormalizedDividend, unnormalizedDivisor)));
|
|
5143
5143
|
}
|
|
5144
|
-
var tmp0_container = this.
|
|
5144
|
+
var tmp0_container = this.jr(unnormalizedDividend, unnormalizedDivisor);
|
|
5145
5145
|
var dividend = tmp0_container.oc().of_1;
|
|
5146
5146
|
var divisor = tmp0_container.pc().of_1;
|
|
5147
5147
|
var normalizationShift = tmp0_container.te();
|
|
5148
5148
|
var dividendSize = _ULongArray___get_size__impl__ju6dtr(dividend);
|
|
5149
5149
|
var divisorSize = _ULongArray___get_size__impl__ju6dtr(divisor);
|
|
5150
|
-
var divisorCorrectedSize = _ULongArray___get_size__impl__ju6dtr(divisor) - this.
|
|
5150
|
+
var divisorCorrectedSize = _ULongArray___get_size__impl__ju6dtr(divisor) - this.qq(divisor) | 0;
|
|
5151
5151
|
var wordPrecision = dividendSize - divisorSize | 0;
|
|
5152
5152
|
var qjhat;
|
|
5153
5153
|
var reconstructedQuotient;
|
|
5154
5154
|
var quotient = _ULongArray___init__impl__twm1l3_0(wordPrecision);
|
|
5155
|
-
var divisorTimesBaseToPowerOfM = this.
|
|
5156
|
-
if (this.
|
|
5155
|
+
var divisorTimesBaseToPowerOfM = this.fq(divisor, imul(wordPrecision, this.zm_1));
|
|
5156
|
+
if (this.uq(dividend, divisorTimesBaseToPowerOfM) >= 0) {
|
|
5157
5157
|
quotient = _ULongArray___init__impl__twm1l3_0(wordPrecision + 1 | 0);
|
|
5158
5158
|
ULongArray__set_impl_z19mvh(quotient, wordPrecision, _ULong___init__impl__c78o9k(new Long(1, 0)));
|
|
5159
|
-
dividend = this.
|
|
5159
|
+
dividend = this.tq(dividend, divisorTimesBaseToPowerOfM);
|
|
5160
5160
|
}
|
|
5161
5161
|
var inductionVariable = wordPrecision - 1 | 0;
|
|
5162
5162
|
if (0 <= inductionVariable)
|
|
@@ -5167,39 +5167,39 @@
|
|
|
5167
5167
|
if ((divisorSize + j | 0) < _ULongArray___get_size__impl__ju6dtr(dividend)) {
|
|
5168
5168
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5169
5169
|
var tmp$ret$4 = _ULongArray___init__impl__twm1l3(longArrayOf([ULongArray__get_impl_pr71q9(dividend, divisorSize + j | 0)]));
|
|
5170
|
-
tmp_0 = this.
|
|
5170
|
+
tmp_0 = this.nr(this.fq(tmp$ret$4, this.zm_1), ULongArray__get_impl_pr71q9(dividend, (divisorSize + j | 0) - 1 | 0));
|
|
5171
5171
|
} else {
|
|
5172
5172
|
var tmp_1;
|
|
5173
5173
|
if ((divisorSize + j | 0) === _ULongArray___get_size__impl__ju6dtr(dividend)) {
|
|
5174
5174
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5175
5175
|
tmp_1 = _ULongArray___init__impl__twm1l3(longArrayOf([ULongArray__get_impl_pr71q9(dividend, (divisorSize + j | 0) - 1 | 0)]));
|
|
5176
5176
|
} else {
|
|
5177
|
-
tmp_1 = this.
|
|
5177
|
+
tmp_1 = this.um_1;
|
|
5178
5178
|
}
|
|
5179
5179
|
tmp_0 = tmp_1;
|
|
5180
5180
|
}
|
|
5181
5181
|
var twoDigit = tmp_0;
|
|
5182
5182
|
var tmp_2 = BigInteger32Arithmetic_getInstance();
|
|
5183
|
-
var tmp_3 = this.
|
|
5183
|
+
var tmp_3 = this.or(twoDigit);
|
|
5184
5184
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5185
5185
|
var tmp$ret$6 = _ULongArray___init__impl__twm1l3(longArrayOf([ULongArray__get_impl_pr71q9(divisor, divisorSize - 1 | 0)]));
|
|
5186
|
-
var convertedResult = tmp_2.
|
|
5187
|
-
qjhat = this.
|
|
5186
|
+
var convertedResult = tmp_2.xp(tmp_3, this.or(tmp$ret$6));
|
|
5187
|
+
qjhat = this.pr(convertedResult.mc_1.df_1);
|
|
5188
5188
|
var tmp_4 = quotient;
|
|
5189
5189
|
var tmp_5;
|
|
5190
5190
|
var tmp_6 = qjhat;
|
|
5191
5191
|
// Inline function 'kotlin.ULong.minus' call
|
|
5192
|
-
var this_2 = this.
|
|
5192
|
+
var this_2 = this.bn_1;
|
|
5193
5193
|
var other_1 = _ULong___init__impl__c78o9k(new Long(1, 0));
|
|
5194
5194
|
var tmp$ret$7 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_2).n9(_ULong___get_data__impl__fggpzb(other_1)));
|
|
5195
|
-
if (this.
|
|
5195
|
+
if (this.qr(tmp_6, tmp$ret$7) < 0) {
|
|
5196
5196
|
tmp_5 = ULongArray__get_impl_pr71q9(qjhat, 0);
|
|
5197
5197
|
} else {
|
|
5198
|
-
tmp_5 = this.
|
|
5198
|
+
tmp_5 = this.bn_1;
|
|
5199
5199
|
}
|
|
5200
5200
|
ULongArray__set_impl_z19mvh(tmp_4, j, tmp_5);
|
|
5201
|
-
reconstructedQuotient = this.
|
|
5202
|
-
while (this.
|
|
5201
|
+
reconstructedQuotient = this.fq(this.ir(divisor, ULongArray__get_impl_pr71q9(quotient, j), divisorCorrectedSize), imul(j, this.zm_1));
|
|
5202
|
+
while (this.uq(reconstructedQuotient, dividend) > 0) {
|
|
5203
5203
|
var tmp_7 = quotient;
|
|
5204
5204
|
// Inline function 'kotlin.ULong.minus' call
|
|
5205
5205
|
var this_3 = ULongArray__get_impl_pr71q9(quotient, j);
|
|
@@ -5209,22 +5209,22 @@
|
|
|
5209
5209
|
var other_2 = _ULong___init__impl__c78o9k(toLong(_UInt___get_data__impl__f0vqqw(this_4)).w9(new Long(-1, 0)));
|
|
5210
5210
|
var tmp$ret$10 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_3).n9(_ULong___get_data__impl__fggpzb(other_2)));
|
|
5211
5211
|
ULongArray__set_impl_z19mvh(tmp_7, j, tmp$ret$10);
|
|
5212
|
-
reconstructedQuotient = this.
|
|
5212
|
+
reconstructedQuotient = this.fq(this.ir(divisor, ULongArray__get_impl_pr71q9(quotient, j), divisorCorrectedSize), imul(j, this.zm_1));
|
|
5213
5213
|
}
|
|
5214
|
-
dividend = this.
|
|
5214
|
+
dividend = this.tq(dividend, reconstructedQuotient);
|
|
5215
5215
|
}
|
|
5216
5216
|
while (0 <= inductionVariable);
|
|
5217
|
-
while (this.
|
|
5218
|
-
quotient = this.
|
|
5219
|
-
dividend = this.
|
|
5217
|
+
while (this.uq(dividend, divisor) >= 0) {
|
|
5218
|
+
quotient = this.nr(quotient, _ULong___init__impl__c78o9k(new Long(1, 0)));
|
|
5219
|
+
dividend = this.tq(dividend, divisor);
|
|
5220
5220
|
}
|
|
5221
|
-
var denormRemainder = this.
|
|
5222
|
-
return new Pair(new ULongArray(this.
|
|
5221
|
+
var denormRemainder = this.kr(dividend, normalizationShift);
|
|
5222
|
+
return new Pair(new ULongArray(this.ln(quotient)), new ULongArray(denormRemainder));
|
|
5223
5223
|
};
|
|
5224
|
-
protoOf(BigInteger63Arithmetic).
|
|
5224
|
+
protoOf(BigInteger63Arithmetic).rr = function (operand) {
|
|
5225
5225
|
if (isZero(operand, this))
|
|
5226
|
-
return this.
|
|
5227
|
-
var length = this.
|
|
5226
|
+
return this.um_1;
|
|
5227
|
+
var length = this.rl(operand);
|
|
5228
5228
|
var tmp;
|
|
5229
5229
|
if ((length % 64 | 0) === 0) {
|
|
5230
5230
|
tmp = length / 64 | 0;
|
|
@@ -5261,10 +5261,10 @@
|
|
|
5261
5261
|
}
|
|
5262
5262
|
}
|
|
5263
5263
|
while (inductionVariable < requiredLength);
|
|
5264
|
-
return this.
|
|
5264
|
+
return this.ln(result);
|
|
5265
5265
|
};
|
|
5266
|
-
protoOf(BigInteger63Arithmetic).
|
|
5267
|
-
var power64Representation = this.
|
|
5266
|
+
protoOf(BigInteger63Arithmetic).sr = function (operand) {
|
|
5267
|
+
var power64Representation = this.rr(operand);
|
|
5268
5268
|
var result = _UIntArray___init__impl__ghjpc6(imul(_ULongArray___get_size__impl__ju6dtr(power64Representation), 2));
|
|
5269
5269
|
var inductionVariable = 0;
|
|
5270
5270
|
var last = _ULongArray___get_size__impl__ju6dtr(power64Representation);
|
|
@@ -5277,7 +5277,7 @@
|
|
|
5277
5277
|
// Inline function 'kotlin.ULong.and' call
|
|
5278
5278
|
var this_0 = ULongArray__get_impl_pr71q9(power64Representation, i);
|
|
5279
5279
|
// Inline function 'kotlin.UInt.toULong' call
|
|
5280
|
-
var this_1 = BigInteger32Arithmetic_getInstance().
|
|
5280
|
+
var this_1 = BigInteger32Arithmetic_getInstance().yo_1;
|
|
5281
5281
|
var other = _ULong___init__impl__c78o9k(toLong(_UInt___get_data__impl__f0vqqw(this_1)).w9(new Long(-1, 0)));
|
|
5282
5282
|
var this_2 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_0).w9(_ULong___get_data__impl__fggpzb(other)));
|
|
5283
5283
|
// Inline function 'kotlin.toUInt' call
|
|
@@ -5295,11 +5295,11 @@
|
|
|
5295
5295
|
UIntArray__set_impl_7f2zu2(result, tmp_0, tmp$ret$6);
|
|
5296
5296
|
}
|
|
5297
5297
|
while (inductionVariable < last);
|
|
5298
|
-
return BigInteger32Arithmetic_getInstance().
|
|
5298
|
+
return BigInteger32Arithmetic_getInstance().lp(result);
|
|
5299
5299
|
};
|
|
5300
|
-
protoOf(BigInteger63Arithmetic).
|
|
5300
|
+
protoOf(BigInteger63Arithmetic).tr = function (operand) {
|
|
5301
5301
|
if (_UIntArray___get_size__impl__r6l8ci(operand) === 0) {
|
|
5302
|
-
return this.
|
|
5302
|
+
return this.um_1;
|
|
5303
5303
|
}
|
|
5304
5304
|
if (_UIntArray___get_size__impl__r6l8ci(operand) === 1) {
|
|
5305
5305
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
@@ -5308,7 +5308,7 @@
|
|
|
5308
5308
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(toLong(_UInt___get_data__impl__f0vqqw(this_0)).w9(new Long(-1, 0)));
|
|
5309
5309
|
return _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$0]));
|
|
5310
5310
|
}
|
|
5311
|
-
var length = BigInteger32Arithmetic_getInstance().
|
|
5311
|
+
var length = BigInteger32Arithmetic_getInstance().jp(operand);
|
|
5312
5312
|
var tmp;
|
|
5313
5313
|
if ((length % 63 | 0) === 0) {
|
|
5314
5314
|
tmp = length / 63 | 0;
|
|
@@ -5337,7 +5337,7 @@
|
|
|
5337
5337
|
var this_3 = UIntArray__get_impl_gp5kza(operand, 1);
|
|
5338
5338
|
var this_4 = _ULong___init__impl__c78o9k(toLong(_UInt___get_data__impl__f0vqqw(this_3)).w9(new Long(-1, 0)));
|
|
5339
5339
|
var this_5 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_4).u9(32));
|
|
5340
|
-
var other = this.
|
|
5340
|
+
var other = this.en_1;
|
|
5341
5341
|
var other_0 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_5).w9(_ULong___get_data__impl__fggpzb(other)));
|
|
5342
5342
|
var tmp$ret$6 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_2).x9(_ULong___get_data__impl__fggpzb(other_0)));
|
|
5343
5343
|
ULongArray__set_impl_z19mvh(result, 0, tmp$ret$6);
|
|
@@ -5398,7 +5398,7 @@
|
|
|
5398
5398
|
var this_23 = UIntArray__get_impl_gp5kza(operand, 1);
|
|
5399
5399
|
var this_24 = _ULong___init__impl__c78o9k(toLong(_UInt___get_data__impl__f0vqqw(this_23)).w9(new Long(-1, 0)));
|
|
5400
5400
|
var this_25 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_24).u9(32));
|
|
5401
|
-
var other_4 = this.
|
|
5401
|
+
var other_4 = this.en_1;
|
|
5402
5402
|
var other_5 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_25).w9(_ULong___get_data__impl__fggpzb(other_4)));
|
|
5403
5403
|
var tmp$ret$26 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_22).x9(_ULong___get_data__impl__fggpzb(other_5)));
|
|
5404
5404
|
ULongArray__set_impl_z19mvh(result, i, tmp$ret$26);
|
|
@@ -5424,7 +5424,7 @@
|
|
|
5424
5424
|
var this_33 = _ULong___init__impl__c78o9k(toLong(_UInt___get_data__impl__f0vqqw(this_32)).w9(new Long(-1, 0)));
|
|
5425
5425
|
var bitCount_0 = 32 + shiftAmount | 0;
|
|
5426
5426
|
var this_34 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_33).u9(bitCount_0));
|
|
5427
|
-
var other_7 = this.
|
|
5427
|
+
var other_7 = this.en_1;
|
|
5428
5428
|
var other_8 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_34).w9(_ULong___get_data__impl__fggpzb(other_7)));
|
|
5429
5429
|
var tmp$ret$35 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_31).x9(_ULong___get_data__impl__fggpzb(other_8)));
|
|
5430
5430
|
ULongArray__set_impl_z19mvh(result, i, tmp$ret$35);
|
|
@@ -5459,32 +5459,32 @@
|
|
|
5459
5459
|
while (inductionVariable < requiredLength);
|
|
5460
5460
|
return result;
|
|
5461
5461
|
};
|
|
5462
|
-
protoOf(BigInteger63Arithmetic).
|
|
5463
|
-
return this.
|
|
5462
|
+
protoOf(BigInteger63Arithmetic).wn = function (first, second) {
|
|
5463
|
+
return this.mr(first, second);
|
|
5464
5464
|
};
|
|
5465
|
-
protoOf(BigInteger63Arithmetic).
|
|
5465
|
+
protoOf(BigInteger63Arithmetic).lq = function (_this__u8e3s4, other) {
|
|
5466
5466
|
return signedAdd(this, _this__u8e3s4, other);
|
|
5467
5467
|
};
|
|
5468
|
-
protoOf(BigInteger63Arithmetic).
|
|
5468
|
+
protoOf(BigInteger63Arithmetic).nq = function (_this__u8e3s4, other) {
|
|
5469
5469
|
return signedSubtract(this, _this__u8e3s4, other);
|
|
5470
5470
|
};
|
|
5471
|
-
protoOf(BigInteger63Arithmetic).
|
|
5471
|
+
protoOf(BigInteger63Arithmetic).kq = function (_this__u8e3s4, other) {
|
|
5472
5472
|
return signedMultiply(this, _this__u8e3s4, other);
|
|
5473
5473
|
};
|
|
5474
|
-
protoOf(BigInteger63Arithmetic).
|
|
5474
|
+
protoOf(BigInteger63Arithmetic).hr = function (_this__u8e3s4, other) {
|
|
5475
5475
|
return signedDivide(this, _this__u8e3s4, other);
|
|
5476
5476
|
};
|
|
5477
|
-
protoOf(BigInteger63Arithmetic).
|
|
5478
|
-
return new SignedULongArray(this.
|
|
5477
|
+
protoOf(BigInteger63Arithmetic).jq = function (_this__u8e3s4, places) {
|
|
5478
|
+
return new SignedULongArray(this.lr(_this__u8e3s4.oq_1, places), _this__u8e3s4.pq_1);
|
|
5479
5479
|
};
|
|
5480
|
-
protoOf(BigInteger63Arithmetic).
|
|
5481
|
-
return new SignedULongArray(this.
|
|
5480
|
+
protoOf(BigInteger63Arithmetic).mq = function (_this__u8e3s4, places) {
|
|
5481
|
+
return new SignedULongArray(this.fq(_this__u8e3s4.oq_1, places), _this__u8e3s4.pq_1);
|
|
5482
5482
|
};
|
|
5483
|
-
protoOf(BigInteger63Arithmetic).
|
|
5484
|
-
return new SignedULongArray(this.
|
|
5483
|
+
protoOf(BigInteger63Arithmetic).iq = function (_this__u8e3s4, operand) {
|
|
5484
|
+
return new SignedULongArray(this.ur(_this__u8e3s4.oq_1, operand), _this__u8e3s4.pq_1);
|
|
5485
5485
|
};
|
|
5486
|
-
protoOf(BigInteger63Arithmetic).
|
|
5487
|
-
var parsed = this.
|
|
5486
|
+
protoOf(BigInteger63Arithmetic).im = function (number, base) {
|
|
5487
|
+
var parsed = this.um_1;
|
|
5488
5488
|
// Inline function 'kotlin.text.forEach' call
|
|
5489
5489
|
// Inline function 'kotlin.text.toLowerCase' call
|
|
5490
5490
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -5499,15 +5499,15 @@
|
|
|
5499
5499
|
var tmp_1 = parsed;
|
|
5500
5500
|
// Inline function 'kotlin.toULong' call
|
|
5501
5501
|
var tmp$ret$2 = _ULong___init__impl__c78o9k(toLong(base));
|
|
5502
|
-
var tmp_2 = tmp_0.
|
|
5502
|
+
var tmp_2 = tmp_0.vr(tmp_1, tmp$ret$2);
|
|
5503
5503
|
// Inline function 'kotlin.toULong' call
|
|
5504
5504
|
var this_0 = toDigit(element, base);
|
|
5505
5505
|
var tmp$ret$3 = _ULong___init__impl__c78o9k(toLong(this_0));
|
|
5506
|
-
parsed = tmp.
|
|
5506
|
+
parsed = tmp.nr(tmp_2, tmp$ret$3);
|
|
5507
5507
|
}
|
|
5508
|
-
return this.
|
|
5508
|
+
return this.ln(parsed);
|
|
5509
5509
|
};
|
|
5510
|
-
protoOf(BigInteger63Arithmetic).
|
|
5510
|
+
protoOf(BigInteger63Arithmetic).do = function (operand, base) {
|
|
5511
5511
|
// Inline function 'kotlin.collections.copyOf' call
|
|
5512
5512
|
var copy = _ULongArray___init__impl__twm1l3(copyOf(_ULongArray___get_storage__impl__28e64j(operand)));
|
|
5513
5513
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
@@ -5515,8 +5515,8 @@
|
|
|
5515
5515
|
var tmp$ret$1 = _ULong___init__impl__c78o9k(toLong(base));
|
|
5516
5516
|
var baseArray = _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$1]));
|
|
5517
5517
|
var stringBuilder = StringBuilder_init_$Create$();
|
|
5518
|
-
while (!equals(copy, this.
|
|
5519
|
-
var divremResult = this.
|
|
5518
|
+
while (!equals(copy, this.um_1)) {
|
|
5519
|
+
var divremResult = this.wr(copy, baseArray);
|
|
5520
5520
|
if (ULongArray__isEmpty_impl_c3yngu(divremResult.nc_1.of_1)) {
|
|
5521
5521
|
stringBuilder.p4(0);
|
|
5522
5522
|
} else {
|
|
@@ -5528,7 +5528,7 @@
|
|
|
5528
5528
|
var this_0 = stringBuilder.toString();
|
|
5529
5529
|
return toString(reversed(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
5530
5530
|
};
|
|
5531
|
-
protoOf(BigInteger63Arithmetic).
|
|
5531
|
+
protoOf(BigInteger63Arithmetic).ur = function (operand, mask) {
|
|
5532
5532
|
var tmp;
|
|
5533
5533
|
if (_ULongArray___get_size__impl__ju6dtr(operand) > _ULongArray___get_size__impl__ju6dtr(mask)) {
|
|
5534
5534
|
tmp = new Pair(new ULongArray(operand), new ULongArray(mask));
|
|
@@ -5555,63 +5555,63 @@
|
|
|
5555
5555
|
}
|
|
5556
5556
|
return _ULongArray___init__impl__twm1l3(tmp_2);
|
|
5557
5557
|
};
|
|
5558
|
-
protoOf(BigInteger63Arithmetic).
|
|
5559
|
-
return this.ar(_this__u8e3s4, places);
|
|
5560
|
-
};
|
|
5561
|
-
protoOf(BigInteger63Arithmetic).kr = function (_this__u8e3s4, places) {
|
|
5558
|
+
protoOf(BigInteger63Arithmetic).fq = function (_this__u8e3s4, places) {
|
|
5562
5559
|
return this.br(_this__u8e3s4, places);
|
|
5563
5560
|
};
|
|
5564
|
-
protoOf(BigInteger63Arithmetic).
|
|
5565
|
-
return this.
|
|
5561
|
+
protoOf(BigInteger63Arithmetic).lr = function (_this__u8e3s4, places) {
|
|
5562
|
+
return this.cr(_this__u8e3s4, places);
|
|
5566
5563
|
};
|
|
5567
|
-
protoOf(BigInteger63Arithmetic).
|
|
5568
|
-
return this.
|
|
5564
|
+
protoOf(BigInteger63Arithmetic).gq = function (_this__u8e3s4, other) {
|
|
5565
|
+
return this.on(_this__u8e3s4, other);
|
|
5569
5566
|
};
|
|
5570
|
-
protoOf(BigInteger63Arithmetic).
|
|
5571
|
-
return this.
|
|
5567
|
+
protoOf(BigInteger63Arithmetic).tq = function (_this__u8e3s4, other) {
|
|
5568
|
+
return this.nn(_this__u8e3s4, other);
|
|
5569
|
+
};
|
|
5570
|
+
protoOf(BigInteger63Arithmetic).vq = function (_this__u8e3s4, other) {
|
|
5571
|
+
return this.un(_this__u8e3s4, other);
|
|
5572
5572
|
};
|
|
5573
|
-
protoOf(BigInteger63Arithmetic).
|
|
5573
|
+
protoOf(BigInteger63Arithmetic).nr = function (_this__u8e3s4, other) {
|
|
5574
5574
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5575
5575
|
var tmp$ret$0 = _ULongArray___init__impl__twm1l3(longArrayOf([other]));
|
|
5576
|
-
return this.
|
|
5576
|
+
return this.on(_this__u8e3s4, tmp$ret$0);
|
|
5577
5577
|
};
|
|
5578
|
-
protoOf(BigInteger63Arithmetic).
|
|
5578
|
+
protoOf(BigInteger63Arithmetic).hq = function (_this__u8e3s4, other) {
|
|
5579
5579
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5580
5580
|
var tmp$ret$0 = _ULongArray___init__impl__twm1l3(longArrayOf([other]));
|
|
5581
|
-
return this.
|
|
5581
|
+
return this.nn(_this__u8e3s4, tmp$ret$0);
|
|
5582
5582
|
};
|
|
5583
|
-
protoOf(BigInteger63Arithmetic).
|
|
5584
|
-
return this.
|
|
5583
|
+
protoOf(BigInteger63Arithmetic).vr = function (_this__u8e3s4, other) {
|
|
5584
|
+
return this.eq(_this__u8e3s4, other);
|
|
5585
5585
|
};
|
|
5586
|
-
protoOf(BigInteger63Arithmetic).
|
|
5587
|
-
return this.
|
|
5586
|
+
protoOf(BigInteger63Arithmetic).wq = function (_this__u8e3s4, other) {
|
|
5587
|
+
return this.wn(_this__u8e3s4, other).mc_1.of_1;
|
|
5588
5588
|
};
|
|
5589
|
-
protoOf(BigInteger63Arithmetic).
|
|
5590
|
-
return this.
|
|
5589
|
+
protoOf(BigInteger63Arithmetic).wr = function (_this__u8e3s4, other) {
|
|
5590
|
+
return this.wn(_this__u8e3s4, other);
|
|
5591
5591
|
};
|
|
5592
|
-
protoOf(BigInteger63Arithmetic).
|
|
5593
|
-
return this.
|
|
5592
|
+
protoOf(BigInteger63Arithmetic).uq = function (_this__u8e3s4, other) {
|
|
5593
|
+
return this.rm(_this__u8e3s4, other);
|
|
5594
5594
|
};
|
|
5595
|
-
protoOf(BigInteger63Arithmetic).
|
|
5595
|
+
protoOf(BigInteger63Arithmetic).qr = function (_this__u8e3s4, other) {
|
|
5596
5596
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5597
5597
|
var tmp$ret$0 = _ULongArray___init__impl__twm1l3(longArrayOf([other]));
|
|
5598
|
-
return this.
|
|
5599
|
-
};
|
|
5600
|
-
protoOf(BigInteger63Arithmetic).nr = function (_this__u8e3s4) {
|
|
5601
|
-
return this.rr(_this__u8e3s4);
|
|
5598
|
+
return this.rm(_this__u8e3s4, tmp$ret$0);
|
|
5602
5599
|
};
|
|
5603
5600
|
protoOf(BigInteger63Arithmetic).or = function (_this__u8e3s4) {
|
|
5604
5601
|
return this.sr(_this__u8e3s4);
|
|
5605
5602
|
};
|
|
5606
|
-
protoOf(BigInteger63Arithmetic).
|
|
5603
|
+
protoOf(BigInteger63Arithmetic).pr = function (_this__u8e3s4) {
|
|
5604
|
+
return this.tr(_this__u8e3s4);
|
|
5605
|
+
};
|
|
5606
|
+
protoOf(BigInteger63Arithmetic).km = function (uLong) {
|
|
5607
5607
|
var tmp;
|
|
5608
5608
|
// Inline function 'kotlin.ULong.and' call
|
|
5609
|
-
var other = this.
|
|
5609
|
+
var other = this.fn_1;
|
|
5610
5610
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(uLong).w9(_ULong___get_data__impl__fggpzb(other)));
|
|
5611
5611
|
if (!equals(tmp$ret$0, _ULong___init__impl__c78o9k(new Long(0, 0)))) {
|
|
5612
5612
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5613
5613
|
// Inline function 'kotlin.ULong.and' call
|
|
5614
|
-
var other_0 = this.
|
|
5614
|
+
var other_0 = this.bn_1;
|
|
5615
5615
|
var tmp$ret$1 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(uLong).w9(_ULong___get_data__impl__fggpzb(other_0)));
|
|
5616
5616
|
tmp = _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$1, _ULong___init__impl__c78o9k(new Long(1, 0))]));
|
|
5617
5617
|
} else {
|
|
@@ -5620,25 +5620,25 @@
|
|
|
5620
5620
|
}
|
|
5621
5621
|
return tmp;
|
|
5622
5622
|
};
|
|
5623
|
-
protoOf(BigInteger63Arithmetic).
|
|
5623
|
+
protoOf(BigInteger63Arithmetic).mm = function (uInt) {
|
|
5624
5624
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5625
5625
|
// Inline function 'kotlin.UInt.toULong' call
|
|
5626
5626
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(toLong(_UInt___get_data__impl__f0vqqw(uInt)).w9(new Long(-1, 0)));
|
|
5627
5627
|
return _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$0]));
|
|
5628
5628
|
};
|
|
5629
|
-
protoOf(BigInteger63Arithmetic).
|
|
5629
|
+
protoOf(BigInteger63Arithmetic).om = function (uShort) {
|
|
5630
5630
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5631
5631
|
// Inline function 'kotlin.UShort.toULong' call
|
|
5632
5632
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(toLong(_UShort___get_data__impl__g0245(uShort)).w9(new Long(65535, 0)));
|
|
5633
5633
|
return _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$0]));
|
|
5634
5634
|
};
|
|
5635
|
-
protoOf(BigInteger63Arithmetic).
|
|
5635
|
+
protoOf(BigInteger63Arithmetic).qm = function (uByte) {
|
|
5636
5636
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5637
5637
|
// Inline function 'kotlin.UByte.toULong' call
|
|
5638
5638
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(toLong(_UByte___get_data__impl__jof9qr(uByte)).w9(new Long(255, 0)));
|
|
5639
5639
|
return _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$0]));
|
|
5640
5640
|
};
|
|
5641
|
-
protoOf(BigInteger63Arithmetic).
|
|
5641
|
+
protoOf(BigInteger63Arithmetic).am = function (long) {
|
|
5642
5642
|
Companion_getInstance();
|
|
5643
5643
|
if (long.equals(new Long(0, -2147483648))) {
|
|
5644
5644
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
@@ -5650,11 +5650,11 @@
|
|
|
5650
5650
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
5651
5651
|
var this_0 = abs(long);
|
|
5652
5652
|
var this_1 = _ULong___init__impl__c78o9k(this_0);
|
|
5653
|
-
var other = this.
|
|
5653
|
+
var other = this.bn_1;
|
|
5654
5654
|
var tmp$ret$3 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_1).w9(_ULong___get_data__impl__fggpzb(other)));
|
|
5655
5655
|
return _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$3]));
|
|
5656
5656
|
};
|
|
5657
|
-
protoOf(BigInteger63Arithmetic).
|
|
5657
|
+
protoOf(BigInteger63Arithmetic).bm = function (int) {
|
|
5658
5658
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5659
5659
|
// Inline function 'kotlin.toULong' call
|
|
5660
5660
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
@@ -5663,7 +5663,7 @@
|
|
|
5663
5663
|
var tmp$ret$1 = _ULong___init__impl__c78o9k(this_1);
|
|
5664
5664
|
return _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$1]));
|
|
5665
5665
|
};
|
|
5666
|
-
protoOf(BigInteger63Arithmetic).
|
|
5666
|
+
protoOf(BigInteger63Arithmetic).cm = function (short) {
|
|
5667
5667
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5668
5668
|
// Inline function 'kotlin.toULong' call
|
|
5669
5669
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
@@ -5671,7 +5671,7 @@
|
|
|
5671
5671
|
var tmp$ret$1 = _ULong___init__impl__c78o9k(toLong(this_0));
|
|
5672
5672
|
return _ULongArray___init__impl__twm1l3(longArrayOf([tmp$ret$1]));
|
|
5673
5673
|
};
|
|
5674
|
-
protoOf(BigInteger63Arithmetic).
|
|
5674
|
+
protoOf(BigInteger63Arithmetic).dm = function (byte) {
|
|
5675
5675
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5676
5676
|
// Inline function 'kotlin.toULong' call
|
|
5677
5677
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
@@ -5711,7 +5711,7 @@
|
|
|
5711
5711
|
}
|
|
5712
5712
|
function RuntimePlatform() {
|
|
5713
5713
|
}
|
|
5714
|
-
protoOf(RuntimePlatform).
|
|
5714
|
+
protoOf(RuntimePlatform).ul = function () {
|
|
5715
5715
|
return Platform_JS_getInstance();
|
|
5716
5716
|
};
|
|
5717
5717
|
var RuntimePlatform_instance;
|
|
@@ -5719,22 +5719,22 @@
|
|
|
5719
5719
|
return RuntimePlatform_instance;
|
|
5720
5720
|
}
|
|
5721
5721
|
//region block: post-declaration
|
|
5722
|
-
protoOf(Companion).
|
|
5723
|
-
protoOf(Companion).
|
|
5724
|
-
protoOf(Companion).
|
|
5725
|
-
protoOf(BigDecimal).
|
|
5726
|
-
protoOf(BigDecimal).
|
|
5727
|
-
protoOf(BigDecimal).
|
|
5728
|
-
protoOf(Companion_1).
|
|
5729
|
-
protoOf(Companion_1).
|
|
5730
|
-
protoOf(Companion_1).
|
|
5731
|
-
protoOf(BigInteger).
|
|
5732
|
-
protoOf(BigInteger).
|
|
5733
|
-
protoOf(BigInteger).
|
|
5734
|
-
protoOf(BigInteger).
|
|
5735
|
-
protoOf(BigInteger).
|
|
5736
|
-
protoOf(BigInteger).
|
|
5737
|
-
protoOf(BigInteger).
|
|
5722
|
+
protoOf(Companion).nh = tryFromFloat$default;
|
|
5723
|
+
protoOf(Companion).ph = tryFromDouble$default;
|
|
5724
|
+
protoOf(Companion).kh = parseString$default;
|
|
5725
|
+
protoOf(BigDecimal).ai = plus_1;
|
|
5726
|
+
protoOf(BigDecimal).ci = minus_0;
|
|
5727
|
+
protoOf(BigDecimal).bi = times_0;
|
|
5728
|
+
protoOf(Companion_1).kh = parseString$default;
|
|
5729
|
+
protoOf(Companion_1).nh = tryFromFloat$default;
|
|
5730
|
+
protoOf(Companion_1).ph = tryFromDouble$default;
|
|
5731
|
+
protoOf(BigInteger).sh = plus_0;
|
|
5732
|
+
protoOf(BigInteger).uh = minus;
|
|
5733
|
+
protoOf(BigInteger).wh = times;
|
|
5734
|
+
protoOf(BigInteger).bi = times_0;
|
|
5735
|
+
protoOf(BigInteger).yh = div;
|
|
5736
|
+
protoOf(BigInteger).di = div_0;
|
|
5737
|
+
protoOf(BigInteger).ei = rem;
|
|
5738
5738
|
//endregion
|
|
5739
5739
|
//region block: init
|
|
5740
5740
|
RuntimePlatform_instance = new RuntimePlatform();
|