@solibo/solibo-sdk 1.0.30 → 1.0.31
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/KmLogging-logging.js +91 -91
- package/KotlinBigInteger-bignum.js +1111 -1111
- package/MultiplatformSettings-multiplatform-settings.js +16 -16
- package/Stately-stately-concurrency.js +4 -4
- package/cryptography-kotlin-cryptography-bigint.js +28 -28
- package/cryptography-kotlin-cryptography-core.js +47 -47
- package/cryptography-kotlin-cryptography-provider-base.js +8 -8
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +136 -136
- package/cryptography-kotlin-cryptography-random.js +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js +118 -118
- package/cryptography-kotlin-cryptography-serialization-asn1.js +256 -256
- package/cryptography-kotlin-cryptography-serialization-pem.js +15 -15
- package/kotlin-kotlin-stdlib.js +14 -14
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +621 -606
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-auth.js +224 -224
- package/ktor-ktor-client-core.js +39 -39
- package/ktor-ktor-client-logging.js +519 -519
- package/ktor-ktor-http-cio.js +3 -3
- package/ktor-ktor-http.js +6 -6
- package/ktor-ktor-serialization.js +1 -1
- package/ktor-ktor-utils.js +7 -7
- package/ktor-ktor-websockets.js +2 -2
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.js +17163 -17108
- package/solibo-sdk-sdk-home-api.js.map +1 -1
- package/solibo-sdk-sdk.d.ts +25 -25
- package/solibo-sdk-sdk.js +1397 -1397
|
@@ -150,46 +150,46 @@
|
|
|
150
150
|
//region block: pre-declaration
|
|
151
151
|
function parseString$default(string, base, $super) {
|
|
152
152
|
base = base === VOID ? 10 : base;
|
|
153
|
-
return $super === VOID ? this.
|
|
153
|
+
return $super === VOID ? this.enh(string, base) : $super.enh.call(this, string, base);
|
|
154
154
|
}
|
|
155
155
|
function tryFromFloat$default(float, exactRequired, $super) {
|
|
156
156
|
exactRequired = exactRequired === VOID ? false : exactRequired;
|
|
157
|
-
return $super === VOID ? this.
|
|
157
|
+
return $super === VOID ? this.hnh(float, exactRequired) : $super.hnh.call(this, float, exactRequired);
|
|
158
158
|
}
|
|
159
159
|
function tryFromDouble$default(double, exactRequired, $super) {
|
|
160
160
|
exactRequired = exactRequired === VOID ? false : exactRequired;
|
|
161
|
-
return $super === VOID ? this.
|
|
161
|
+
return $super === VOID ? this.jnh(double, exactRequired) : $super.jnh.call(this, double, exactRequired);
|
|
162
162
|
}
|
|
163
163
|
initMetadataForInterface(Creator, 'Creator');
|
|
164
164
|
function plus_0(other) {
|
|
165
|
-
return this.
|
|
165
|
+
return this.mnh().onh(other);
|
|
166
166
|
}
|
|
167
167
|
function minus(other) {
|
|
168
|
-
return this.
|
|
168
|
+
return this.mnh().qnh(other);
|
|
169
169
|
}
|
|
170
170
|
function times(other) {
|
|
171
|
-
return this.
|
|
171
|
+
return this.mnh().snh(other);
|
|
172
172
|
}
|
|
173
173
|
function div(other) {
|
|
174
|
-
return this.
|
|
174
|
+
return this.mnh().unh(other);
|
|
175
175
|
}
|
|
176
176
|
function rem(other) {
|
|
177
|
-
return this.
|
|
177
|
+
return this.mnh().wnh(other);
|
|
178
178
|
}
|
|
179
179
|
function plus_1(int) {
|
|
180
|
-
return this.
|
|
180
|
+
return this.mnh().onh(this.lnh().gnh(int));
|
|
181
181
|
}
|
|
182
182
|
function times_0(int) {
|
|
183
|
-
return this.
|
|
183
|
+
return this.mnh().snh(this.lnh().gnh(int));
|
|
184
184
|
}
|
|
185
185
|
function minus_0(int) {
|
|
186
|
-
return this.
|
|
186
|
+
return this.mnh().qnh(this.lnh().gnh(int));
|
|
187
187
|
}
|
|
188
188
|
function div_0(int) {
|
|
189
|
-
return this.
|
|
189
|
+
return this.mnh().unh(this.lnh().gnh(int));
|
|
190
190
|
}
|
|
191
191
|
function rem_0(int) {
|
|
192
|
-
return this.
|
|
192
|
+
return this.mnh().wnh(this.lnh().gnh(int));
|
|
193
193
|
}
|
|
194
194
|
initMetadataForInterface(CommonBigNumberOperations, 'CommonBigNumberOperations');
|
|
195
195
|
initMetadataForClass(SignificantDecider, 'SignificantDecider', VOID, Enum);
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
}
|
|
231
231
|
function roundOrDont($this, significand, exponent, decimalMode) {
|
|
232
232
|
var tmp;
|
|
233
|
-
if (decimalMode.
|
|
233
|
+
if (decimalMode.eni_1) {
|
|
234
234
|
tmp = new BigDecimal(significand, exponent);
|
|
235
235
|
} else {
|
|
236
236
|
tmp = roundSignificand($this, significand, exponent, decimalMode);
|
|
@@ -241,18 +241,18 @@
|
|
|
241
241
|
Enum.call(this, name, ordinal);
|
|
242
242
|
}
|
|
243
243
|
function determineDecider($this, discarded) {
|
|
244
|
-
var tmp = Companion_getInstance_1().
|
|
244
|
+
var tmp = Companion_getInstance_1().kni_1;
|
|
245
245
|
// Inline function 'kotlin.Long.minus' call
|
|
246
|
-
var this_0 = discarded.
|
|
246
|
+
var this_0 = discarded.qni();
|
|
247
247
|
var tmp$ret$0 = subtract(this_0, fromInt(1));
|
|
248
|
-
var scale = tmp.
|
|
249
|
-
var divrem = discarded.
|
|
250
|
-
var significant = divrem.
|
|
251
|
-
var rest = divrem.
|
|
248
|
+
var scale = tmp.rni(tmp$ret$0);
|
|
249
|
+
var divrem = discarded.sni(scale);
|
|
250
|
+
var significant = divrem.tni_1.vni().wni(true);
|
|
251
|
+
var rest = divrem.uni_1.vni();
|
|
252
252
|
var tmp_0;
|
|
253
253
|
if (significant === 5) {
|
|
254
254
|
var tmp_1;
|
|
255
|
-
if (rest.equals(Companion_getInstance_1().
|
|
255
|
+
if (rest.equals(Companion_getInstance_1().hni_1)) {
|
|
256
256
|
tmp_1 = SignificantDecider_FIVE_getInstance();
|
|
257
257
|
} else {
|
|
258
258
|
tmp_1 = SignificantDecider_MORE_THAN_FIVE_getInstance();
|
|
@@ -268,11 +268,11 @@
|
|
|
268
268
|
return tmp_0;
|
|
269
269
|
}
|
|
270
270
|
function roundDiscarded($this, significand, discarded, decimalMode) {
|
|
271
|
-
var toDiscard = subtract(significand.
|
|
271
|
+
var toDiscard = subtract(significand.qni(), decimalMode.bni_1);
|
|
272
272
|
var tmp;
|
|
273
273
|
if (toDiscard > 0n) {
|
|
274
|
-
var additionallyDiscarded = significand.
|
|
275
|
-
tmp = new Pair(additionallyDiscarded.
|
|
274
|
+
var additionallyDiscarded = significand.sni(Companion_getInstance_1().kni_1.rni(toDiscard));
|
|
275
|
+
tmp = new Pair(additionallyDiscarded.tni_1, additionallyDiscarded.uni_1);
|
|
276
276
|
} else {
|
|
277
277
|
tmp = new Pair(significand, discarded);
|
|
278
278
|
}
|
|
@@ -280,28 +280,28 @@
|
|
|
280
280
|
var result = _destruct__k2r9zo.xg();
|
|
281
281
|
var remainder = _destruct__k2r9zo.yg();
|
|
282
282
|
var tmp_0;
|
|
283
|
-
if (significand.equals(Companion_getInstance_1().
|
|
284
|
-
tmp_0 = discarded.
|
|
283
|
+
if (significand.equals(Companion_getInstance_1().hni_1)) {
|
|
284
|
+
tmp_0 = discarded.nni_1;
|
|
285
285
|
} else {
|
|
286
|
-
tmp_0 = significand.
|
|
286
|
+
tmp_0 = significand.nni_1;
|
|
287
287
|
}
|
|
288
288
|
var sign = tmp_0;
|
|
289
|
-
if (!decimalMode.
|
|
290
|
-
if (remainder.
|
|
289
|
+
if (!decimalMode.cni_1.equals(RoundingMode_AWAY_FROM_ZERO_getInstance()) && !decimalMode.cni_1.equals(RoundingMode_TOWARDS_ZERO_getInstance())) {
|
|
290
|
+
if (remainder.xni()) {
|
|
291
291
|
return result;
|
|
292
292
|
}
|
|
293
293
|
} else {
|
|
294
|
-
if (remainder.
|
|
294
|
+
if (remainder.xni() && discarded.xni()) {
|
|
295
295
|
return result;
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
var decider = determineDecider($this, remainder);
|
|
299
|
-
switch (decimalMode.
|
|
299
|
+
switch (decimalMode.cni_1.a1_1) {
|
|
300
300
|
case 2:
|
|
301
301
|
if (sign.equals(Sign_POSITIVE_getInstance())) {
|
|
302
|
-
result = result.
|
|
302
|
+
result = result.zni();
|
|
303
303
|
} else {
|
|
304
|
-
result = result.
|
|
304
|
+
result = result.yni();
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
break;
|
|
@@ -309,13 +309,13 @@
|
|
|
309
309
|
break;
|
|
310
310
|
case 1:
|
|
311
311
|
if (sign.equals(Sign_POSITIVE_getInstance())) {
|
|
312
|
-
result = result.
|
|
312
|
+
result = result.zni();
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
break;
|
|
316
316
|
case 0:
|
|
317
317
|
if (!sign.equals(Sign_POSITIVE_getInstance())) {
|
|
318
|
-
result = result.
|
|
318
|
+
result = result.yni();
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
break;
|
|
@@ -323,13 +323,13 @@
|
|
|
323
323
|
switch (sign.a1_1) {
|
|
324
324
|
case 0:
|
|
325
325
|
if (!decider.equals(SignificantDecider_LESS_THAN_FIVE_getInstance())) {
|
|
326
|
-
result = result.
|
|
326
|
+
result = result.zni();
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
break;
|
|
330
330
|
case 1:
|
|
331
331
|
if (!decider.equals(SignificantDecider_LESS_THAN_FIVE_getInstance())) {
|
|
332
|
-
result = result.
|
|
332
|
+
result = result.yni();
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
break;
|
|
@@ -345,13 +345,13 @@
|
|
|
345
345
|
switch (sign.a1_1) {
|
|
346
346
|
case 0:
|
|
347
347
|
if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
348
|
-
result = result.
|
|
348
|
+
result = result.zni();
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
break;
|
|
352
352
|
case 1:
|
|
353
353
|
if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
354
|
-
result = result.
|
|
354
|
+
result = result.yni();
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
break;
|
|
@@ -367,13 +367,13 @@
|
|
|
367
367
|
switch (sign.a1_1) {
|
|
368
368
|
case 0:
|
|
369
369
|
if (!decider.equals(SignificantDecider_LESS_THAN_FIVE_getInstance())) {
|
|
370
|
-
result = result.
|
|
370
|
+
result = result.zni();
|
|
371
371
|
}
|
|
372
372
|
|
|
373
373
|
break;
|
|
374
374
|
case 1:
|
|
375
375
|
if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
376
|
-
result = result.
|
|
376
|
+
result = result.yni();
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
break;
|
|
@@ -389,13 +389,13 @@
|
|
|
389
389
|
switch (sign.a1_1) {
|
|
390
390
|
case 0:
|
|
391
391
|
if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
392
|
-
result = result.
|
|
392
|
+
result = result.zni();
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
break;
|
|
396
396
|
case 1:
|
|
397
397
|
if (!decider.equals(SignificantDecider_LESS_THAN_FIVE_getInstance())) {
|
|
398
|
-
result = result.
|
|
398
|
+
result = result.yni();
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
break;
|
|
@@ -409,13 +409,13 @@
|
|
|
409
409
|
break;
|
|
410
410
|
case 9:
|
|
411
411
|
if (decider.equals(SignificantDecider_FIVE_getInstance())) {
|
|
412
|
-
if (significand.
|
|
412
|
+
if (significand.ani(2).vni().equals(Companion_getInstance_1().ini_1)) {
|
|
413
413
|
switch (sign.a1_1) {
|
|
414
414
|
case 0:
|
|
415
|
-
result = result.
|
|
415
|
+
result = result.zni();
|
|
416
416
|
break;
|
|
417
417
|
case 1:
|
|
418
|
-
result = result.
|
|
418
|
+
result = result.yni();
|
|
419
419
|
break;
|
|
420
420
|
case 2:
|
|
421
421
|
break;
|
|
@@ -426,23 +426,23 @@
|
|
|
426
426
|
}
|
|
427
427
|
} else if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
428
428
|
if (sign.equals(Sign_POSITIVE_getInstance())) {
|
|
429
|
-
result = result.
|
|
429
|
+
result = result.zni();
|
|
430
430
|
}
|
|
431
431
|
if (sign.equals(Sign_NEGATIVE_getInstance())) {
|
|
432
|
-
result = result.
|
|
432
|
+
result = result.yni();
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
|
|
436
436
|
break;
|
|
437
437
|
case 10:
|
|
438
438
|
if (decider.equals(SignificantDecider_FIVE_getInstance())) {
|
|
439
|
-
if (significand.
|
|
439
|
+
if (significand.ani(2).equals(Companion_getInstance_1().hni_1)) {
|
|
440
440
|
switch (sign.a1_1) {
|
|
441
441
|
case 0:
|
|
442
|
-
result = result.
|
|
442
|
+
result = result.zni();
|
|
443
443
|
break;
|
|
444
444
|
case 1:
|
|
445
|
-
result = result.
|
|
445
|
+
result = result.yni();
|
|
446
446
|
break;
|
|
447
447
|
case 2:
|
|
448
448
|
break;
|
|
@@ -453,10 +453,10 @@
|
|
|
453
453
|
}
|
|
454
454
|
} else if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
455
455
|
if (sign.equals(Sign_POSITIVE_getInstance())) {
|
|
456
|
-
result = result.
|
|
456
|
+
result = result.zni();
|
|
457
457
|
}
|
|
458
458
|
if (sign.equals(Sign_NEGATIVE_getInstance())) {
|
|
459
|
-
result = result.
|
|
459
|
+
result = result.yni();
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
|
|
@@ -470,34 +470,34 @@
|
|
|
470
470
|
return result;
|
|
471
471
|
}
|
|
472
472
|
function roundSignificand($this, significand, exponent, decimalMode) {
|
|
473
|
-
if (significand.
|
|
474
|
-
return new BigDecimal(Companion_getInstance_1().
|
|
473
|
+
if (significand.xni()) {
|
|
474
|
+
return new BigDecimal(Companion_getInstance_1().hni_1, exponent, decimalMode);
|
|
475
475
|
}
|
|
476
|
-
var significandDigits = significand.
|
|
476
|
+
var significandDigits = significand.qni();
|
|
477
477
|
var tmp;
|
|
478
|
-
if (decimalMode.
|
|
479
|
-
tmp = add(decimalMode.
|
|
478
|
+
if (decimalMode.fni_1) {
|
|
479
|
+
tmp = add(decimalMode.bni_1, decimalMode.dni_1);
|
|
480
480
|
} else {
|
|
481
|
-
tmp = decimalMode.
|
|
481
|
+
tmp = decimalMode.bni_1;
|
|
482
482
|
}
|
|
483
483
|
var desiredPrecision = tmp;
|
|
484
484
|
var tmp_0;
|
|
485
|
-
if (desiredPrecision > significandDigits && !decimalMode.
|
|
486
|
-
var extendedSignificand = significand.
|
|
485
|
+
if (desiredPrecision > significandDigits && !decimalMode.fni_1) {
|
|
486
|
+
var extendedSignificand = significand.rnh(Companion_getInstance_1().kni_1.rni(subtract(desiredPrecision, significandDigits)));
|
|
487
487
|
tmp_0 = new BigDecimal(extendedSignificand, exponent, decimalMode);
|
|
488
488
|
} else if (desiredPrecision < significandDigits) {
|
|
489
|
-
var divRem = significand.
|
|
490
|
-
var resolvedRemainder = divRem.
|
|
491
|
-
if (divRem.
|
|
492
|
-
return new BigDecimal(divRem.
|
|
489
|
+
var divRem = significand.sni(Companion_getInstance_1().kni_1.rni(subtract(significandDigits, desiredPrecision)));
|
|
490
|
+
var resolvedRemainder = divRem.uni_1;
|
|
491
|
+
if (divRem.uni_1.equals(Companion_getInstance_1().hni_1)) {
|
|
492
|
+
return new BigDecimal(divRem.tni_1, exponent, decimalMode);
|
|
493
493
|
}
|
|
494
494
|
var tmp_1;
|
|
495
|
-
if (significand.
|
|
496
|
-
var newSignificand = roundDiscarded($this, divRem.
|
|
497
|
-
var exponentModifier = subtract(newSignificand.
|
|
495
|
+
if (significand.qni() === add(divRem.tni_1.qni(), divRem.uni_1.qni())) {
|
|
496
|
+
var newSignificand = roundDiscarded($this, divRem.tni_1, resolvedRemainder, decimalMode);
|
|
497
|
+
var exponentModifier = subtract(newSignificand.qni(), divRem.tni_1.qni());
|
|
498
498
|
tmp_1 = new BigDecimal(newSignificand, add(exponent, exponentModifier), decimalMode);
|
|
499
499
|
} else {
|
|
500
|
-
tmp_1 = $this.
|
|
500
|
+
tmp_1 = $this.lnj(divRem.tni_1, exponent, decimalMode);
|
|
501
501
|
}
|
|
502
502
|
tmp_0 = tmp_1;
|
|
503
503
|
} else {
|
|
@@ -506,20 +506,20 @@
|
|
|
506
506
|
return tmp_0;
|
|
507
507
|
}
|
|
508
508
|
function applyScale($this, significand, exponent, decimalMode) {
|
|
509
|
-
if (!decimalMode.
|
|
509
|
+
if (!decimalMode.fni_1) {
|
|
510
510
|
return new BigDecimal(significand, exponent, decimalMode);
|
|
511
511
|
}
|
|
512
512
|
var tmp;
|
|
513
513
|
if (exponent >= 0n) {
|
|
514
514
|
// Inline function 'kotlin.Long.plus' call
|
|
515
|
-
var this_0 = add(exponent, decimalMode.
|
|
515
|
+
var this_0 = add(exponent, decimalMode.dni_1);
|
|
516
516
|
var tmp$ret$0 = add(this_0, fromInt(1));
|
|
517
|
-
tmp = new DecimalMode(tmp$ret$0, decimalMode.
|
|
517
|
+
tmp = new DecimalMode(tmp$ret$0, decimalMode.cni_1);
|
|
518
518
|
} else if (exponent < 0n) {
|
|
519
519
|
// Inline function 'kotlin.Long.plus' call
|
|
520
|
-
var this_1 = decimalMode.
|
|
520
|
+
var this_1 = decimalMode.dni_1;
|
|
521
521
|
var tmp$ret$1 = add(this_1, fromInt(1));
|
|
522
|
-
tmp = new DecimalMode(tmp$ret$1, decimalMode.
|
|
522
|
+
tmp = new DecimalMode(tmp$ret$1, decimalMode.cni_1);
|
|
523
523
|
} else {
|
|
524
524
|
throw RuntimeException_init_$Create$('Unexpected state');
|
|
525
525
|
}
|
|
@@ -529,12 +529,12 @@
|
|
|
529
529
|
tmp_0 = roundSignificand($this, significand, exponent, workMode);
|
|
530
530
|
} else {
|
|
531
531
|
var tmp_1;
|
|
532
|
-
if (decimalMode.
|
|
533
|
-
var temp = (new BigDecimal(significand, exponent)).
|
|
534
|
-
tmp_1 = roundSignificand($this, temp.
|
|
532
|
+
if (decimalMode.cni_1.equals(RoundingMode_ROUND_HALF_TO_EVEN_getInstance())) {
|
|
533
|
+
var temp = (new BigDecimal(significand, exponent)).xnh(imul(significand.mnj(), 2));
|
|
534
|
+
tmp_1 = roundSignificand($this, temp.onj_1, temp.pnj_1, workMode).ynh(imul(significand.mnj(), 2));
|
|
535
535
|
} else {
|
|
536
|
-
var temp_0 = (new BigDecimal(significand, exponent)).
|
|
537
|
-
tmp_1 = roundSignificand($this, temp_0.
|
|
536
|
+
var temp_0 = (new BigDecimal(significand, exponent)).xnh(significand.mnj());
|
|
537
|
+
tmp_1 = roundSignificand($this, temp_0.onj_1, temp_0.pnj_1, workMode).ynh(significand.mnj());
|
|
538
538
|
}
|
|
539
539
|
tmp_0 = tmp_1;
|
|
540
540
|
}
|
|
@@ -554,11 +554,11 @@
|
|
|
554
554
|
if (secondDecimalMode == null && !(firstDecimalMode == null)) {
|
|
555
555
|
return firstDecimalMode;
|
|
556
556
|
}
|
|
557
|
-
if (!ensureNotNull(firstDecimalMode).
|
|
558
|
-
throw ArithmeticException_init_$Create$('Different rounding modes! This: ' + firstDecimalMode.
|
|
557
|
+
if (!ensureNotNull(firstDecimalMode).cni_1.equals(ensureNotNull(secondDecimalMode).cni_1)) {
|
|
558
|
+
throw ArithmeticException_init_$Create$('Different rounding modes! This: ' + firstDecimalMode.cni_1.toString() + ' Other: ' + secondDecimalMode.cni_1.toString());
|
|
559
559
|
}
|
|
560
560
|
var tmp_0;
|
|
561
|
-
if (firstDecimalMode.
|
|
561
|
+
if (firstDecimalMode.bni_1 >= secondDecimalMode.bni_1) {
|
|
562
562
|
tmp_0 = firstDecimalMode;
|
|
563
563
|
} else {
|
|
564
564
|
tmp_0 = secondDecimalMode;
|
|
@@ -594,31 +594,31 @@
|
|
|
594
594
|
}
|
|
595
595
|
function Companion() {
|
|
596
596
|
Companion_instance = this;
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
601
|
-
this.
|
|
597
|
+
this.anj_1 = new BigDecimal(Companion_getInstance_1().hni_1);
|
|
598
|
+
this.bnj_1 = new BigDecimal(Companion_getInstance_1().ini_1);
|
|
599
|
+
this.cnj_1 = new BigDecimal(Companion_getInstance_1().jni_1);
|
|
600
|
+
this.dnj_1 = new BigDecimal(Companion_getInstance_1().kni_1, 1n);
|
|
601
|
+
this.enj_1 = false;
|
|
602
602
|
var tmp = this;
|
|
603
603
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
604
|
-
tmp.
|
|
605
|
-
this.
|
|
606
|
-
this.
|
|
604
|
+
tmp.fnj_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]);
|
|
605
|
+
this.gnj_1 = this.vnj(1.7976931348623157E308);
|
|
606
|
+
this.hnj_1 = this.vnj(4.9E-324);
|
|
607
607
|
var tmp_0 = this;
|
|
608
608
|
// Inline function 'kotlin.floatArrayOf' call
|
|
609
|
-
tmp_0.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
609
|
+
tmp_0.inj_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]);
|
|
610
|
+
this.jnj_1 = this.wnj(3.4028235E38);
|
|
611
|
+
this.knj_1 = this.wnj(1.4E-45);
|
|
612
612
|
}
|
|
613
|
-
protoOf(Companion).
|
|
613
|
+
protoOf(Companion).lnj = function (significand, exponent, decimalMode) {
|
|
614
614
|
var tmp;
|
|
615
|
-
if (significand.
|
|
615
|
+
if (significand.nni_1.equals(Sign_POSITIVE_getInstance())) {
|
|
616
616
|
var tmp_0;
|
|
617
|
-
switch (decimalMode.
|
|
617
|
+
switch (decimalMode.cni_1.a1_1) {
|
|
618
618
|
case 1:
|
|
619
619
|
case 2:
|
|
620
|
-
var increasedSignificand = significand.
|
|
621
|
-
var exponentModifier = subtract(increasedSignificand.
|
|
620
|
+
var increasedSignificand = significand.zni();
|
|
621
|
+
var exponentModifier = subtract(increasedSignificand.qni(), significand.qni());
|
|
622
622
|
tmp_0 = new BigDecimal(increasedSignificand, add(exponent, exponentModifier), decimalMode);
|
|
623
623
|
break;
|
|
624
624
|
default:
|
|
@@ -626,13 +626,13 @@
|
|
|
626
626
|
break;
|
|
627
627
|
}
|
|
628
628
|
tmp = tmp_0;
|
|
629
|
-
} else if (significand.
|
|
629
|
+
} else if (significand.nni_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
630
630
|
var tmp_1;
|
|
631
|
-
switch (decimalMode.
|
|
631
|
+
switch (decimalMode.cni_1.a1_1) {
|
|
632
632
|
case 0:
|
|
633
633
|
case 2:
|
|
634
|
-
var increasedSignificand_0 = significand.
|
|
635
|
-
var exponentModifier_0 = subtract(increasedSignificand_0.
|
|
634
|
+
var increasedSignificand_0 = significand.yni();
|
|
635
|
+
var exponentModifier_0 = subtract(increasedSignificand_0.qni(), significand.qni());
|
|
636
636
|
tmp_1 = new BigDecimal(increasedSignificand_0, add(exponent, exponentModifier_0), decimalMode);
|
|
637
637
|
break;
|
|
638
638
|
default:
|
|
@@ -645,35 +645,35 @@
|
|
|
645
645
|
}
|
|
646
646
|
return tmp;
|
|
647
647
|
};
|
|
648
|
-
protoOf(Companion).
|
|
649
|
-
var bigint = Companion_getInstance_1().
|
|
648
|
+
protoOf(Companion).xnj = function (long, decimalMode) {
|
|
649
|
+
var bigint = Companion_getInstance_1().ynj(long);
|
|
650
650
|
// Inline function 'kotlin.Long.minus' call
|
|
651
|
-
var this_0 = bigint.
|
|
651
|
+
var this_0 = bigint.qni();
|
|
652
652
|
var tmp$ret$0 = subtract(this_0, fromInt(1));
|
|
653
|
-
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).
|
|
653
|
+
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).znj(decimalMode);
|
|
654
654
|
};
|
|
655
|
-
protoOf(Companion).
|
|
656
|
-
var bigint = Companion_getInstance_1().
|
|
655
|
+
protoOf(Companion).ank = function (int, decimalMode) {
|
|
656
|
+
var bigint = Companion_getInstance_1().gnh(int);
|
|
657
657
|
// Inline function 'kotlin.Long.minus' call
|
|
658
|
-
var this_0 = bigint.
|
|
658
|
+
var this_0 = bigint.qni();
|
|
659
659
|
var tmp$ret$0 = subtract(this_0, fromInt(1));
|
|
660
|
-
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).
|
|
660
|
+
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).znj(decimalMode);
|
|
661
661
|
};
|
|
662
|
-
protoOf(Companion).
|
|
663
|
-
var bigint = Companion_getInstance_1().
|
|
662
|
+
protoOf(Companion).bnk = function (short, decimalMode) {
|
|
663
|
+
var bigint = Companion_getInstance_1().cnk(short);
|
|
664
664
|
// Inline function 'kotlin.Long.minus' call
|
|
665
|
-
var this_0 = bigint.
|
|
665
|
+
var this_0 = bigint.qni();
|
|
666
666
|
var tmp$ret$0 = subtract(this_0, fromInt(1));
|
|
667
|
-
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).
|
|
667
|
+
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).znj(decimalMode);
|
|
668
668
|
};
|
|
669
|
-
protoOf(Companion).
|
|
670
|
-
var bigint = Companion_getInstance_1().
|
|
669
|
+
protoOf(Companion).dnk = function (byte, decimalMode) {
|
|
670
|
+
var bigint = Companion_getInstance_1().enk(byte);
|
|
671
671
|
// Inline function 'kotlin.Long.minus' call
|
|
672
|
-
var this_0 = bigint.
|
|
672
|
+
var this_0 = bigint.qni();
|
|
673
673
|
var tmp$ret$0 = subtract(this_0, fromInt(1));
|
|
674
|
-
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).
|
|
674
|
+
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).znj(decimalMode);
|
|
675
675
|
};
|
|
676
|
-
protoOf(Companion).
|
|
676
|
+
protoOf(Companion).fnk = function (float, decimalMode) {
|
|
677
677
|
var floatString = float.toString();
|
|
678
678
|
var tmp;
|
|
679
679
|
if (contains(floatString, _Char___init__impl__6a9atx(46)) && !contains(floatString, _Char___init__impl__6a9atx(69), true)) {
|
|
@@ -693,17 +693,17 @@
|
|
|
693
693
|
while (0 <= inductionVariable);
|
|
694
694
|
tmp$ret$1 = '';
|
|
695
695
|
}
|
|
696
|
-
tmp = this.
|
|
696
|
+
tmp = this.gnk(tmp$ret$1, decimalMode).znj(decimalMode);
|
|
697
697
|
} else {
|
|
698
|
-
tmp = this.
|
|
698
|
+
tmp = this.gnk(floatString, decimalMode).znj(decimalMode);
|
|
699
699
|
}
|
|
700
700
|
return tmp;
|
|
701
701
|
};
|
|
702
|
-
protoOf(Companion).
|
|
702
|
+
protoOf(Companion).wnj = function (float, decimalMode, $super) {
|
|
703
703
|
decimalMode = decimalMode === VOID ? null : decimalMode;
|
|
704
|
-
return $super === VOID ? this.
|
|
704
|
+
return $super === VOID ? this.fnk(float, decimalMode) : $super.fnk.call(this, float, decimalMode);
|
|
705
705
|
};
|
|
706
|
-
protoOf(Companion).
|
|
706
|
+
protoOf(Companion).hnk = function (double, decimalMode) {
|
|
707
707
|
var doubleString = double.toString();
|
|
708
708
|
var tmp;
|
|
709
709
|
if (contains(doubleString, _Char___init__impl__6a9atx(46)) && !contains(doubleString, _Char___init__impl__6a9atx(69), true)) {
|
|
@@ -723,41 +723,41 @@
|
|
|
723
723
|
while (0 <= inductionVariable);
|
|
724
724
|
tmp$ret$1 = '';
|
|
725
725
|
}
|
|
726
|
-
tmp = this.
|
|
726
|
+
tmp = this.gnk(tmp$ret$1, decimalMode).znj(decimalMode);
|
|
727
727
|
} else {
|
|
728
|
-
tmp = this.
|
|
728
|
+
tmp = this.gnk(doubleString, decimalMode).znj(decimalMode).znj(decimalMode);
|
|
729
729
|
}
|
|
730
730
|
return tmp;
|
|
731
731
|
};
|
|
732
|
-
protoOf(Companion).
|
|
732
|
+
protoOf(Companion).vnj = function (double, decimalMode, $super) {
|
|
733
733
|
decimalMode = decimalMode === VOID ? null : decimalMode;
|
|
734
|
-
return $super === VOID ? this.
|
|
734
|
+
return $super === VOID ? this.hnk(double, decimalMode) : $super.hnk.call(this, double, decimalMode);
|
|
735
735
|
};
|
|
736
|
-
protoOf(Companion).
|
|
737
|
-
return this.
|
|
736
|
+
protoOf(Companion).ynj = function (long) {
|
|
737
|
+
return this.xnj(long, null);
|
|
738
738
|
};
|
|
739
|
-
protoOf(Companion).
|
|
740
|
-
return this.
|
|
739
|
+
protoOf(Companion).gnh = function (int) {
|
|
740
|
+
return this.ank(int, null);
|
|
741
741
|
};
|
|
742
|
-
protoOf(Companion).
|
|
743
|
-
return this.
|
|
742
|
+
protoOf(Companion).cnk = function (short) {
|
|
743
|
+
return this.bnk(short, null);
|
|
744
744
|
};
|
|
745
|
-
protoOf(Companion).
|
|
746
|
-
return this.
|
|
745
|
+
protoOf(Companion).enk = function (byte) {
|
|
746
|
+
return this.dnk(byte, null);
|
|
747
747
|
};
|
|
748
|
-
protoOf(Companion).
|
|
749
|
-
return this.
|
|
748
|
+
protoOf(Companion).hnh = function (float, exactRequired) {
|
|
749
|
+
return this.fnk(float, null);
|
|
750
750
|
};
|
|
751
|
-
protoOf(Companion).
|
|
752
|
-
return this.
|
|
751
|
+
protoOf(Companion).jnh = function (double, exactRequired) {
|
|
752
|
+
return this.hnk(double, null);
|
|
753
753
|
};
|
|
754
|
-
protoOf(Companion).
|
|
755
|
-
return this.
|
|
754
|
+
protoOf(Companion).enh = function (string, base) {
|
|
755
|
+
return this.gnk(string, null);
|
|
756
756
|
};
|
|
757
|
-
protoOf(Companion).
|
|
758
|
-
return this.
|
|
757
|
+
protoOf(Companion).ink = function (string) {
|
|
758
|
+
return this.jnk(string);
|
|
759
759
|
};
|
|
760
|
-
protoOf(Companion).
|
|
760
|
+
protoOf(Companion).gnk = function (floatingPointString, decimalMode) {
|
|
761
761
|
// Inline function 'kotlin.text.isEmpty' call
|
|
762
762
|
if (charSequenceLength(floatingPointString) === 0) {
|
|
763
763
|
throw ArithmeticException_init_$Create$('Empty string is not a valid decimal number');
|
|
@@ -865,12 +865,12 @@
|
|
|
865
865
|
}
|
|
866
866
|
var leftTruncated = substring(left, leftFirstNonZero, left.length);
|
|
867
867
|
var rightTruncated = substring(right, 0, rightLastNonZero + 1 | 0);
|
|
868
|
-
var significand = Companion_getInstance_1().
|
|
869
|
-
if (significand.equals(Companion_getInstance_1().
|
|
868
|
+
var significand = Companion_getInstance_1().enh(leftTruncated + rightTruncated, 10);
|
|
869
|
+
if (significand.equals(Companion_getInstance_1().hni_1)) {
|
|
870
870
|
sign = Sign_ZERO_getInstance();
|
|
871
871
|
}
|
|
872
872
|
if (sign.equals(Sign_NEGATIVE_getInstance())) {
|
|
873
|
-
significand = significand.
|
|
873
|
+
significand = significand.knk();
|
|
874
874
|
}
|
|
875
875
|
var tmp_6;
|
|
876
876
|
if (!(leftTruncated === '0')) {
|
|
@@ -881,7 +881,7 @@
|
|
|
881
881
|
tmp_6 = subtract(this_1, fromInt(1));
|
|
882
882
|
} else {
|
|
883
883
|
// Inline function 'kotlin.Long.minus' call
|
|
884
|
-
var this_2 = subtract(exponent, subtract(numberToLong(rightTruncated.length), significand.
|
|
884
|
+
var this_2 = subtract(exponent, subtract(numberToLong(rightTruncated.length), significand.qni()));
|
|
885
885
|
tmp_6 = subtract(this_2, fromInt(1));
|
|
886
886
|
}
|
|
887
887
|
var exponentModifiedByFloatingPointPosition = tmp_6;
|
|
@@ -958,7 +958,7 @@
|
|
|
958
958
|
}
|
|
959
959
|
var leftTruncated_0 = substring(left_0, leftFirstNonZero_0, left_0.length);
|
|
960
960
|
var rightTruncated_0 = substring(right_0, 0, rightLastNonZero_0 + 1 | 0);
|
|
961
|
-
var significand_0 = Companion_getInstance_1().
|
|
961
|
+
var significand_0 = Companion_getInstance_1().enh(leftTruncated_0 + rightTruncated_0, 10);
|
|
962
962
|
var tmp_10;
|
|
963
963
|
var tmp_11;
|
|
964
964
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
@@ -990,27 +990,27 @@
|
|
|
990
990
|
tmp_10 = imul(tmp$ret$15 + 1 | 0, -1);
|
|
991
991
|
}
|
|
992
992
|
var exponent_0 = tmp_10;
|
|
993
|
-
if (significand_0.equals(Companion_getInstance_1().
|
|
993
|
+
if (significand_0.equals(Companion_getInstance_1().hni_1)) {
|
|
994
994
|
sign_0 = Sign_ZERO_getInstance();
|
|
995
995
|
}
|
|
996
996
|
if (sign_0.equals(Sign_NEGATIVE_getInstance())) {
|
|
997
|
-
significand_0 = significand_0.
|
|
997
|
+
significand_0 = significand_0.knk();
|
|
998
998
|
}
|
|
999
999
|
return new BigDecimal(significand_0, fromInt(exponent_0), decimalMode);
|
|
1000
1000
|
} else
|
|
1001
1001
|
throw ArithmeticException_init_$Create$('Invalid (or unsupported) floating point number format: ' + floatingPointString);
|
|
1002
1002
|
} else {
|
|
1003
|
-
var significand_1 = Companion_getInstance_1().
|
|
1003
|
+
var significand_1 = Companion_getInstance_1().enh(floatingPointString, 10);
|
|
1004
1004
|
// Inline function 'kotlin.Long.minus' call
|
|
1005
|
-
var this_3 = significand_1.
|
|
1005
|
+
var this_3 = significand_1.qni();
|
|
1006
1006
|
var tmp$ret$16 = subtract(this_3, fromInt(1));
|
|
1007
1007
|
return new BigDecimal(significand_1, tmp$ret$16, decimalMode);
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
1010
1010
|
};
|
|
1011
|
-
protoOf(Companion).
|
|
1011
|
+
protoOf(Companion).jnk = function (floatingPointString, decimalMode, $super) {
|
|
1012
1012
|
decimalMode = decimalMode === VOID ? null : decimalMode;
|
|
1013
|
-
return $super === VOID ? this.
|
|
1013
|
+
return $super === VOID ? this.gnk(floatingPointString, decimalMode) : $super.gnk.call(this, floatingPointString, decimalMode);
|
|
1014
1014
|
};
|
|
1015
1015
|
var Companion_instance;
|
|
1016
1016
|
function Companion_getInstance() {
|
|
@@ -1019,51 +1019,51 @@
|
|
|
1019
1019
|
return Companion_instance;
|
|
1020
1020
|
}
|
|
1021
1021
|
function removeTrailingZeroes($this, bigDecimal) {
|
|
1022
|
-
if (bigDecimal.
|
|
1022
|
+
if (bigDecimal.xni())
|
|
1023
1023
|
return $this;
|
|
1024
|
-
var significand = bigDecimal.
|
|
1025
|
-
var divisionResult = new QuotientAndRemainder(bigDecimal.
|
|
1024
|
+
var significand = bigDecimal.onj_1;
|
|
1025
|
+
var divisionResult = new QuotientAndRemainder(bigDecimal.onj_1, Companion_getInstance_1().hni_1);
|
|
1026
1026
|
do {
|
|
1027
|
-
divisionResult = divisionResult.
|
|
1028
|
-
if (divisionResult.
|
|
1029
|
-
significand = divisionResult.
|
|
1027
|
+
divisionResult = divisionResult.tni_1.sni(Companion_getInstance_1().kni_1);
|
|
1028
|
+
if (divisionResult.uni_1.equals(Companion_getInstance_1().hni_1)) {
|
|
1029
|
+
significand = divisionResult.tni_1;
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
|
-
while (divisionResult.
|
|
1033
|
-
return new BigDecimal(significand, bigDecimal.
|
|
1032
|
+
while (divisionResult.uni_1.equals(Companion_getInstance_1().hni_1));
|
|
1033
|
+
return new BigDecimal(significand, bigDecimal.pnj_1);
|
|
1034
1034
|
}
|
|
1035
1035
|
function ScaleOps(name, ordinal) {
|
|
1036
1036
|
Enum.call(this, name, ordinal);
|
|
1037
1037
|
}
|
|
1038
1038
|
function computeMode($this, other, op) {
|
|
1039
1039
|
var tmp;
|
|
1040
|
-
if ($this.
|
|
1041
|
-
tmp = Companion_getInstance_0().
|
|
1040
|
+
if ($this.qnj_1 == null || $this.qnj_1.eni_1 || other.qnj_1 == null || other.qnj_1.eni_1) {
|
|
1041
|
+
tmp = Companion_getInstance_0().lnk_1;
|
|
1042
1042
|
} else {
|
|
1043
|
-
var tmp0 = $this.
|
|
1043
|
+
var tmp0 = $this.qnj_1.bni_1;
|
|
1044
1044
|
// Inline function 'kotlin.math.max' call
|
|
1045
|
-
var b = other.
|
|
1045
|
+
var b = other.qnj_1.bni_1;
|
|
1046
1046
|
var tmp_0 = tmp0 >= b ? tmp0 : b;
|
|
1047
1047
|
var tmp_1;
|
|
1048
|
-
if ($this.
|
|
1048
|
+
if ($this.qnj_1.fni_1 && other.qnj_1.fni_1) {
|
|
1049
1049
|
var tmp_2;
|
|
1050
1050
|
switch (op.a1_1) {
|
|
1051
1051
|
case 0:
|
|
1052
|
-
var tmp0_0 = $this.
|
|
1052
|
+
var tmp0_0 = $this.qnj_1.dni_1;
|
|
1053
1053
|
// Inline function 'kotlin.math.max' call
|
|
1054
1054
|
|
|
1055
|
-
var b_0 = other.
|
|
1055
|
+
var b_0 = other.qnj_1.dni_1;
|
|
1056
1056
|
tmp_2 = tmp0_0 >= b_0 ? tmp0_0 : b_0;
|
|
1057
1057
|
break;
|
|
1058
1058
|
case 1:
|
|
1059
|
-
var tmp0_1 = $this.
|
|
1059
|
+
var tmp0_1 = $this.qnj_1.dni_1;
|
|
1060
1060
|
// Inline function 'kotlin.math.min' call
|
|
1061
1061
|
|
|
1062
|
-
var b_1 = other.
|
|
1062
|
+
var b_1 = other.qnj_1.dni_1;
|
|
1063
1063
|
tmp_2 = tmp0_1 <= b_1 ? tmp0_1 : b_1;
|
|
1064
1064
|
break;
|
|
1065
1065
|
case 2:
|
|
1066
|
-
tmp_2 = add($this.
|
|
1066
|
+
tmp_2 = add($this.qnj_1.dni_1, other.qnj_1.dni_1);
|
|
1067
1067
|
break;
|
|
1068
1068
|
default:
|
|
1069
1069
|
noWhenBranchMatchedException();
|
|
@@ -1073,68 +1073,68 @@
|
|
|
1073
1073
|
} else {
|
|
1074
1074
|
tmp_1 = -1n;
|
|
1075
1075
|
}
|
|
1076
|
-
tmp = new DecimalMode(tmp_0, $this.
|
|
1076
|
+
tmp = new DecimalMode(tmp_0, $this.qnj_1.cni_1, tmp_1);
|
|
1077
1077
|
}
|
|
1078
1078
|
return tmp;
|
|
1079
1079
|
}
|
|
1080
1080
|
function getRidOfRadix($this, bigDecimal) {
|
|
1081
|
-
var precision = bigDecimal.
|
|
1081
|
+
var precision = bigDecimal.onj_1.qni();
|
|
1082
1082
|
// Inline function 'kotlin.Long.plus' call
|
|
1083
|
-
var this_0 = subtract(bigDecimal.
|
|
1083
|
+
var this_0 = subtract(bigDecimal.pnj_1, precision);
|
|
1084
1084
|
var newExponent = add(this_0, fromInt(1));
|
|
1085
|
-
return new BigDecimal(bigDecimal.
|
|
1085
|
+
return new BigDecimal(bigDecimal.onj_1, newExponent);
|
|
1086
1086
|
}
|
|
1087
1087
|
function bringSignificandToSameExponent($this, first, second) {
|
|
1088
1088
|
var firstPrepared = getRidOfRadix($this, first);
|
|
1089
1089
|
var secondPrepared = getRidOfRadix($this, second);
|
|
1090
|
-
var firstPreparedExponent = firstPrepared.
|
|
1091
|
-
var secondPreparedExponent = secondPrepared.
|
|
1090
|
+
var firstPreparedExponent = firstPrepared.pnj_1;
|
|
1091
|
+
var secondPreparedExponent = secondPrepared.pnj_1;
|
|
1092
1092
|
var tmp;
|
|
1093
|
-
if (first.
|
|
1093
|
+
if (first.pnj_1 > second.pnj_1) {
|
|
1094
1094
|
var moveFirstBy = subtract(firstPreparedExponent, secondPreparedExponent);
|
|
1095
1095
|
var tmp_0;
|
|
1096
1096
|
if (moveFirstBy >= 0n) {
|
|
1097
|
-
var movedFirst = firstPrepared.
|
|
1098
|
-
return new Triple(movedFirst, second.
|
|
1097
|
+
var movedFirst = firstPrepared.onj_1.rnh(toBigInteger(10).rni(moveFirstBy));
|
|
1098
|
+
return new Triple(movedFirst, second.onj_1, secondPreparedExponent);
|
|
1099
1099
|
} else {
|
|
1100
1100
|
var tmp_1 = toBigInteger(10);
|
|
1101
1101
|
// Inline function 'kotlin.Long.times' call
|
|
1102
1102
|
var tmp$ret$0 = multiply(moveFirstBy, fromInt(-1));
|
|
1103
|
-
var movedSecond = secondPrepared.
|
|
1104
|
-
tmp_0 = new Triple(first.
|
|
1103
|
+
var movedSecond = secondPrepared.onj_1.rnh(tmp_1.rni(tmp$ret$0));
|
|
1104
|
+
tmp_0 = new Triple(first.onj_1, movedSecond, firstPreparedExponent);
|
|
1105
1105
|
}
|
|
1106
1106
|
tmp = tmp_0;
|
|
1107
|
-
} else if (first.
|
|
1107
|
+
} else if (first.pnj_1 < second.pnj_1) {
|
|
1108
1108
|
var moveSecondBy = subtract(secondPreparedExponent, firstPreparedExponent);
|
|
1109
1109
|
var tmp_2;
|
|
1110
1110
|
if (moveSecondBy >= 0n) {
|
|
1111
|
-
var movedSecond_0 = secondPrepared.
|
|
1112
|
-
tmp_2 = new Triple(first.
|
|
1111
|
+
var movedSecond_0 = secondPrepared.onj_1.rnh(toBigInteger(10).rni(moveSecondBy));
|
|
1112
|
+
tmp_2 = new Triple(first.onj_1, movedSecond_0, firstPreparedExponent);
|
|
1113
1113
|
} else {
|
|
1114
1114
|
var tmp_3 = toBigInteger(10);
|
|
1115
1115
|
// Inline function 'kotlin.Long.times' call
|
|
1116
1116
|
var tmp$ret$1 = multiply(moveSecondBy, fromInt(-1));
|
|
1117
|
-
var movedFirst_0 = firstPrepared.
|
|
1118
|
-
tmp_2 = new Triple(movedFirst_0, second.
|
|
1117
|
+
var movedFirst_0 = firstPrepared.onj_1.rnh(tmp_3.rni(tmp$ret$1));
|
|
1118
|
+
tmp_2 = new Triple(movedFirst_0, second.onj_1, firstPreparedExponent);
|
|
1119
1119
|
}
|
|
1120
1120
|
return tmp_2;
|
|
1121
|
-
} else if (first.
|
|
1121
|
+
} else if (first.pnj_1 === second.pnj_1) {
|
|
1122
1122
|
var delta = subtract(firstPreparedExponent, secondPreparedExponent);
|
|
1123
1123
|
var tmp_4;
|
|
1124
1124
|
if (delta > 0n) {
|
|
1125
|
-
var movedFirst_1 = first.
|
|
1126
|
-
tmp_4 = new Triple(movedFirst_1, second.
|
|
1125
|
+
var movedFirst_1 = first.onj_1.rnh(toBigInteger(10).rni(delta));
|
|
1126
|
+
tmp_4 = new Triple(movedFirst_1, second.onj_1, firstPreparedExponent);
|
|
1127
1127
|
} else {
|
|
1128
1128
|
if (delta < 0n) {
|
|
1129
1129
|
var tmp_5 = toBigInteger(10);
|
|
1130
1130
|
// Inline function 'kotlin.Long.times' call
|
|
1131
1131
|
var tmp$ret$2 = multiply(delta, fromInt(-1));
|
|
1132
|
-
var movedSecond_1 = second.
|
|
1133
|
-
tmp_4 = new Triple(first.
|
|
1132
|
+
var movedSecond_1 = second.onj_1.rnh(tmp_5.rni(tmp$ret$2));
|
|
1133
|
+
tmp_4 = new Triple(first.onj_1, movedSecond_1, firstPreparedExponent);
|
|
1134
1134
|
} else {
|
|
1135
1135
|
// Inline function 'kotlin.Long.compareTo' call
|
|
1136
1136
|
if (compareTo(delta, fromInt(0)) === 0) {
|
|
1137
|
-
tmp_4 = new Triple(first.
|
|
1137
|
+
tmp_4 = new Triple(first.onj_1, second.onj_1, firstPreparedExponent);
|
|
1138
1138
|
} else {
|
|
1139
1139
|
throw RuntimeException_init_$Create$('Invalid delta: ' + delta.toString());
|
|
1140
1140
|
}
|
|
@@ -1142,7 +1142,7 @@
|
|
|
1142
1142
|
}
|
|
1143
1143
|
return tmp_4;
|
|
1144
1144
|
} else {
|
|
1145
|
-
throw RuntimeException_init_$Create$('Invalid comparison state BigInteger: ' + first.
|
|
1145
|
+
throw RuntimeException_init_$Create$('Invalid comparison state BigInteger: ' + first.pnj_1.toString() + ', ' + second.pnj_1.toString());
|
|
1146
1146
|
}
|
|
1147
1147
|
return tmp;
|
|
1148
1148
|
}
|
|
@@ -1150,11 +1150,11 @@
|
|
|
1150
1150
|
var double = numberToDouble(number);
|
|
1151
1151
|
var tmp;
|
|
1152
1152
|
if (double > toNumber(9223372036854775807n)) {
|
|
1153
|
-
tmp = $this.
|
|
1153
|
+
tmp = $this.nnk(Companion_getInstance().ink(double.toString()));
|
|
1154
1154
|
} else if (double % 1 === 0.0) {
|
|
1155
|
-
tmp = $this.
|
|
1155
|
+
tmp = $this.nnk(Companion_getInstance().ynj(numberToLong(number)));
|
|
1156
1156
|
} else {
|
|
1157
|
-
tmp = $this.
|
|
1157
|
+
tmp = $this.nnk(toBigDecimal(numberToDouble(number)));
|
|
1158
1158
|
}
|
|
1159
1159
|
return tmp;
|
|
1160
1160
|
}
|
|
@@ -1217,67 +1217,67 @@
|
|
|
1217
1217
|
Companion_getInstance();
|
|
1218
1218
|
_exponent = _exponent === VOID ? 0n : _exponent;
|
|
1219
1219
|
_decimalMode = _decimalMode === VOID ? null : _decimalMode;
|
|
1220
|
-
if (!(_decimalMode == null) && _decimalMode.
|
|
1220
|
+
if (!(_decimalMode == null) && _decimalMode.fni_1) {
|
|
1221
1221
|
var wrk = applyScale(Companion_getInstance(), _significand, _exponent, _decimalMode);
|
|
1222
|
-
if (!wrk.
|
|
1223
|
-
this.
|
|
1224
|
-
this.
|
|
1225
|
-
var newPrecision = this.
|
|
1226
|
-
this.
|
|
1227
|
-
this.
|
|
1222
|
+
if (!wrk.xni()) {
|
|
1223
|
+
this.onj_1 = wrk.onj_1;
|
|
1224
|
+
this.pnj_1 = wrk.pnj_1;
|
|
1225
|
+
var newPrecision = this.onj_1.qni();
|
|
1226
|
+
this.nnj_1 = newPrecision;
|
|
1227
|
+
this.qnj_1 = _decimalMode.onk(newPrecision);
|
|
1228
1228
|
} else {
|
|
1229
|
-
this.
|
|
1230
|
-
this.
|
|
1231
|
-
this.
|
|
1232
|
-
this.
|
|
1229
|
+
this.onj_1 = wrk.onj_1;
|
|
1230
|
+
this.pnj_1 = multiply(wrk.pnj_1, add(_decimalMode.bni_1, _decimalMode.dni_1));
|
|
1231
|
+
this.nnj_1 = add(_decimalMode.bni_1, _decimalMode.dni_1);
|
|
1232
|
+
this.qnj_1 = _decimalMode.onk(this.nnj_1);
|
|
1233
1233
|
}
|
|
1234
1234
|
} else {
|
|
1235
|
-
this.
|
|
1236
|
-
this.
|
|
1237
|
-
this.
|
|
1238
|
-
this.
|
|
1235
|
+
this.onj_1 = _significand;
|
|
1236
|
+
this.nnj_1 = _significand.qni();
|
|
1237
|
+
this.pnj_1 = _exponent;
|
|
1238
|
+
this.qnj_1 = _decimalMode;
|
|
1239
1239
|
}
|
|
1240
1240
|
var tmp = this;
|
|
1241
|
-
var tmp0_safe_receiver = this.
|
|
1242
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1243
|
-
tmp.
|
|
1241
|
+
var tmp0_safe_receiver = this.qnj_1;
|
|
1242
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bni_1;
|
|
1243
|
+
tmp.rnj_1 = tmp0_elvis_lhs == null ? 0n : tmp0_elvis_lhs;
|
|
1244
1244
|
var tmp_0 = this;
|
|
1245
|
-
var tmp1_safe_receiver = this.
|
|
1246
|
-
var tmp0_elvis_lhs_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1247
|
-
tmp_0.
|
|
1245
|
+
var tmp1_safe_receiver = this.qnj_1;
|
|
1246
|
+
var tmp0_elvis_lhs_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.cni_1;
|
|
1247
|
+
tmp_0.snj_1 = tmp0_elvis_lhs_0 == null ? RoundingMode_NONE_getInstance() : tmp0_elvis_lhs_0;
|
|
1248
1248
|
var tmp_1 = this;
|
|
1249
|
-
var tmp13_safe_receiver = this.
|
|
1250
|
-
var tmp0_elvis_lhs_1 = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.
|
|
1251
|
-
tmp_1.
|
|
1252
|
-
this.
|
|
1249
|
+
var tmp13_safe_receiver = this.qnj_1;
|
|
1250
|
+
var tmp0_elvis_lhs_1 = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.dni_1;
|
|
1251
|
+
tmp_1.tnj_1 = tmp0_elvis_lhs_1 == null ? -1n : tmp0_elvis_lhs_1;
|
|
1252
|
+
this.unj_1 = this.tnj_1 >= 0n;
|
|
1253
1253
|
}
|
|
1254
|
-
protoOf(BigDecimal).
|
|
1254
|
+
protoOf(BigDecimal).lnh = function () {
|
|
1255
1255
|
return Companion_getInstance();
|
|
1256
1256
|
};
|
|
1257
|
-
protoOf(BigDecimal).
|
|
1257
|
+
protoOf(BigDecimal).mnh = function () {
|
|
1258
1258
|
return this;
|
|
1259
1259
|
};
|
|
1260
|
-
protoOf(BigDecimal).
|
|
1261
|
-
return this.
|
|
1260
|
+
protoOf(BigDecimal).pnk = function (other) {
|
|
1261
|
+
return this.qnk(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1262
1262
|
};
|
|
1263
|
-
protoOf(BigDecimal).
|
|
1264
|
-
return this.
|
|
1263
|
+
protoOf(BigDecimal).onh = function (other) {
|
|
1264
|
+
return this.pnk(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1265
1265
|
};
|
|
1266
|
-
protoOf(BigDecimal).
|
|
1267
|
-
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.
|
|
1268
|
-
if (this.
|
|
1269
|
-
return roundOrDont(Companion_getInstance(), other.
|
|
1266
|
+
protoOf(BigDecimal).qnk = function (other, decimalMode) {
|
|
1267
|
+
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.qnj_1, other.qnj_1, decimalMode);
|
|
1268
|
+
if (this.xni()) {
|
|
1269
|
+
return roundOrDont(Companion_getInstance(), other.onj_1, other.pnj_1, resolvedDecimalMode);
|
|
1270
1270
|
}
|
|
1271
|
-
if (other.
|
|
1272
|
-
return roundOrDont(Companion_getInstance(), this.
|
|
1271
|
+
if (other.xni()) {
|
|
1272
|
+
return roundOrDont(Companion_getInstance(), this.onj_1, this.pnj_1, resolvedDecimalMode);
|
|
1273
1273
|
}
|
|
1274
1274
|
var _destruct__k2r9zo = bringSignificandToSameExponent(this, this, other);
|
|
1275
1275
|
var first = _destruct__k2r9zo.xg();
|
|
1276
1276
|
var second = _destruct__k2r9zo.yg();
|
|
1277
|
-
var firstNumOfDigits = first.
|
|
1278
|
-
var secondNumOfDigits = second.
|
|
1279
|
-
var newSignificand = first.
|
|
1280
|
-
var newSignificandNumOfDigit = newSignificand.
|
|
1277
|
+
var firstNumOfDigits = first.qni();
|
|
1278
|
+
var secondNumOfDigits = second.qni();
|
|
1279
|
+
var newSignificand = first.nnh(second);
|
|
1280
|
+
var newSignificandNumOfDigit = newSignificand.qni();
|
|
1281
1281
|
var tmp;
|
|
1282
1282
|
if (firstNumOfDigits > secondNumOfDigits) {
|
|
1283
1283
|
tmp = firstNumOfDigits;
|
|
@@ -1286,40 +1286,40 @@
|
|
|
1286
1286
|
}
|
|
1287
1287
|
var largerOperand = tmp;
|
|
1288
1288
|
var carryDetected = subtract(newSignificandNumOfDigit, largerOperand);
|
|
1289
|
-
var tmp0 = this.
|
|
1289
|
+
var tmp0 = this.pnj_1;
|
|
1290
1290
|
// Inline function 'kotlin.math.max' call
|
|
1291
|
-
var b = other.
|
|
1291
|
+
var b = other.pnj_1;
|
|
1292
1292
|
var tmp$ret$0 = tmp0 >= b ? tmp0 : b;
|
|
1293
1293
|
var newExponent = add(tmp$ret$0, carryDetected);
|
|
1294
1294
|
var tmp_0;
|
|
1295
|
-
if (resolvedDecimalMode.
|
|
1296
|
-
tmp_0 = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.
|
|
1295
|
+
if (resolvedDecimalMode.fni_1) {
|
|
1296
|
+
tmp_0 = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.onk(newSignificandNumOfDigit));
|
|
1297
1297
|
} else {
|
|
1298
1298
|
tmp_0 = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode);
|
|
1299
1299
|
}
|
|
1300
1300
|
return tmp_0;
|
|
1301
1301
|
};
|
|
1302
|
-
protoOf(BigDecimal).
|
|
1303
|
-
return this.
|
|
1302
|
+
protoOf(BigDecimal).rnk = function (other) {
|
|
1303
|
+
return this.snk(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1304
1304
|
};
|
|
1305
|
-
protoOf(BigDecimal).
|
|
1306
|
-
return this.
|
|
1305
|
+
protoOf(BigDecimal).qnh = function (other) {
|
|
1306
|
+
return this.rnk(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1307
1307
|
};
|
|
1308
|
-
protoOf(BigDecimal).
|
|
1309
|
-
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.
|
|
1310
|
-
if (this.
|
|
1311
|
-
return roundOrDont(Companion_getInstance(), other.
|
|
1308
|
+
protoOf(BigDecimal).snk = function (other, decimalMode) {
|
|
1309
|
+
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.qnj_1, other.qnj_1, decimalMode);
|
|
1310
|
+
if (this.xni()) {
|
|
1311
|
+
return roundOrDont(Companion_getInstance(), other.onj_1.knk(), other.pnj_1, resolvedDecimalMode);
|
|
1312
1312
|
}
|
|
1313
|
-
if (other.
|
|
1314
|
-
return roundOrDont(Companion_getInstance(), this.
|
|
1313
|
+
if (other.xni()) {
|
|
1314
|
+
return roundOrDont(Companion_getInstance(), this.onj_1, this.pnj_1, resolvedDecimalMode);
|
|
1315
1315
|
}
|
|
1316
1316
|
var _destruct__k2r9zo = bringSignificandToSameExponent(this, this, other);
|
|
1317
1317
|
var first = _destruct__k2r9zo.xg();
|
|
1318
1318
|
var second = _destruct__k2r9zo.yg();
|
|
1319
|
-
var firstNumOfDigits = first.
|
|
1320
|
-
var secondNumOfDigits = second.
|
|
1321
|
-
var newSignificand = first.
|
|
1322
|
-
var newSignificandNumOfDigit = newSignificand.
|
|
1319
|
+
var firstNumOfDigits = first.qni();
|
|
1320
|
+
var secondNumOfDigits = second.qni();
|
|
1321
|
+
var newSignificand = first.pnh(second);
|
|
1322
|
+
var newSignificandNumOfDigit = newSignificand.qni();
|
|
1323
1323
|
var tmp;
|
|
1324
1324
|
if (firstNumOfDigits > secondNumOfDigits) {
|
|
1325
1325
|
tmp = firstNumOfDigits;
|
|
@@ -1328,170 +1328,170 @@
|
|
|
1328
1328
|
}
|
|
1329
1329
|
var largerOperand = tmp;
|
|
1330
1330
|
var borrowDetected = subtract(newSignificandNumOfDigit, largerOperand);
|
|
1331
|
-
var tmp0 = this.
|
|
1331
|
+
var tmp0 = this.pnj_1;
|
|
1332
1332
|
// Inline function 'kotlin.math.max' call
|
|
1333
|
-
var b = other.
|
|
1333
|
+
var b = other.pnj_1;
|
|
1334
1334
|
var tmp$ret$0 = tmp0 >= b ? tmp0 : b;
|
|
1335
1335
|
var newExponent = add(tmp$ret$0, borrowDetected);
|
|
1336
|
-
if (this.
|
|
1337
|
-
return roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.
|
|
1336
|
+
if (this.unj_1) {
|
|
1337
|
+
return roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.onk(newSignificandNumOfDigit));
|
|
1338
1338
|
} else {
|
|
1339
1339
|
return roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode);
|
|
1340
1340
|
}
|
|
1341
1341
|
};
|
|
1342
|
-
protoOf(BigDecimal).
|
|
1343
|
-
return this.
|
|
1342
|
+
protoOf(BigDecimal).tnk = function (other) {
|
|
1343
|
+
return this.unk(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1344
1344
|
};
|
|
1345
|
-
protoOf(BigDecimal).
|
|
1346
|
-
return this.
|
|
1345
|
+
protoOf(BigDecimal).snh = function (other) {
|
|
1346
|
+
return this.tnk(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1347
1347
|
};
|
|
1348
|
-
protoOf(BigDecimal).
|
|
1349
|
-
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.
|
|
1350
|
-
var firstNumOfDigits = this.
|
|
1351
|
-
var secondNumOfDigits = other.
|
|
1352
|
-
var newSignificand = this.
|
|
1353
|
-
var newSignificandNumOfDigit = newSignificand.
|
|
1348
|
+
protoOf(BigDecimal).unk = function (other, decimalMode) {
|
|
1349
|
+
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.qnj_1, other.qnj_1, decimalMode);
|
|
1350
|
+
var firstNumOfDigits = this.onj_1.qni();
|
|
1351
|
+
var secondNumOfDigits = other.onj_1.qni();
|
|
1352
|
+
var newSignificand = this.onj_1.rnh(other.onj_1);
|
|
1353
|
+
var newSignificandNumOfDigit = newSignificand.qni();
|
|
1354
1354
|
var moveExponent = subtract(newSignificandNumOfDigit, add(firstNumOfDigits, secondNumOfDigits));
|
|
1355
1355
|
// Inline function 'kotlin.Long.plus' call
|
|
1356
|
-
var this_0 = add(add(this.
|
|
1356
|
+
var this_0 = add(add(this.pnj_1, other.pnj_1), moveExponent);
|
|
1357
1357
|
var newExponent = add(this_0, fromInt(1));
|
|
1358
1358
|
var tmp;
|
|
1359
|
-
if (resolvedDecimalMode.
|
|
1360
|
-
tmp = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.
|
|
1359
|
+
if (resolvedDecimalMode.fni_1) {
|
|
1360
|
+
tmp = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.onk(newSignificandNumOfDigit));
|
|
1361
1361
|
} else {
|
|
1362
1362
|
tmp = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode);
|
|
1363
1363
|
}
|
|
1364
1364
|
return tmp;
|
|
1365
1365
|
};
|
|
1366
|
-
protoOf(BigDecimal).
|
|
1367
|
-
return this.
|
|
1366
|
+
protoOf(BigDecimal).vnk = function (other) {
|
|
1367
|
+
return this.wnk(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1368
1368
|
};
|
|
1369
|
-
protoOf(BigDecimal).
|
|
1370
|
-
return this.
|
|
1369
|
+
protoOf(BigDecimal).unh = function (other) {
|
|
1370
|
+
return this.vnk(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1371
1371
|
};
|
|
1372
|
-
protoOf(BigDecimal).
|
|
1373
|
-
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.
|
|
1374
|
-
if (resolvedDecimalMode.
|
|
1375
|
-
var newExponent = subtract(this.
|
|
1372
|
+
protoOf(BigDecimal).wnk = function (other, decimalMode) {
|
|
1373
|
+
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.qnj_1, other.qnj_1, decimalMode);
|
|
1374
|
+
if (resolvedDecimalMode.eni_1 && !resolvedDecimalMode.fni_1) {
|
|
1375
|
+
var newExponent = subtract(this.pnj_1, other.pnj_1);
|
|
1376
1376
|
// Inline function 'kotlin.Long.times' call
|
|
1377
|
-
var this_0 = other.
|
|
1377
|
+
var this_0 = other.nnj_1;
|
|
1378
1378
|
// Inline function 'kotlin.Long.plus' call
|
|
1379
1379
|
var this_1 = multiply(this_0, fromInt(2));
|
|
1380
1380
|
var power = add(this_1, fromInt(6));
|
|
1381
|
-
var thisPrepared = this.
|
|
1382
|
-
var divRem = thisPrepared.
|
|
1383
|
-
var result = divRem.
|
|
1381
|
+
var thisPrepared = this.onj_1.rnh(Companion_getInstance_1().kni_1.rni(power));
|
|
1382
|
+
var divRem = thisPrepared.sni(other.onj_1);
|
|
1383
|
+
var result = divRem.tni_1;
|
|
1384
1384
|
// Inline function 'kotlin.Long.minus' call
|
|
1385
|
-
var this_2 = other.
|
|
1385
|
+
var this_2 = other.nnj_1;
|
|
1386
1386
|
var expectedDiff = subtract(this_2, fromInt(1));
|
|
1387
|
-
var exponentModifier = add(expectedDiff, subtract(result.
|
|
1388
|
-
if (!divRem.
|
|
1387
|
+
var exponentModifier = add(expectedDiff, subtract(result.qni(), thisPrepared.qni()));
|
|
1388
|
+
if (!divRem.uni_1.equals(Companion_getInstance_1().hni_1)) {
|
|
1389
1389
|
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.');
|
|
1390
1390
|
}
|
|
1391
1391
|
return new BigDecimal(result, add(newExponent, exponentModifier), resolvedDecimalMode);
|
|
1392
1392
|
} else {
|
|
1393
1393
|
// Inline function 'kotlin.Long.minus' call
|
|
1394
|
-
var this_3 = subtract(this.
|
|
1394
|
+
var this_3 = subtract(this.pnj_1, other.pnj_1);
|
|
1395
1395
|
var newExponent_0 = subtract(this_3, fromInt(1));
|
|
1396
|
-
var desiredPrecision = resolvedDecimalMode.
|
|
1397
|
-
var power_0 = add(subtract(desiredPrecision, this.
|
|
1396
|
+
var desiredPrecision = resolvedDecimalMode.bni_1;
|
|
1397
|
+
var power_0 = add(subtract(desiredPrecision, this.nnj_1), other.nnj_1);
|
|
1398
1398
|
var tmp;
|
|
1399
1399
|
if (power_0 > 0n) {
|
|
1400
|
-
tmp = this.
|
|
1400
|
+
tmp = this.onj_1.rnh(toBigInteger(10).rni(power_0));
|
|
1401
1401
|
} else if (power_0 < 0n) {
|
|
1402
1402
|
var tmp_0 = toBigInteger(10);
|
|
1403
1403
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1404
1404
|
var tmp$ret$4 = abs(power_0);
|
|
1405
|
-
tmp = this.
|
|
1405
|
+
tmp = this.onj_1.tnh(tmp_0.rni(tmp$ret$4));
|
|
1406
1406
|
} else {
|
|
1407
|
-
tmp = this.
|
|
1407
|
+
tmp = this.onj_1;
|
|
1408
1408
|
}
|
|
1409
1409
|
var thisPrepared_0 = tmp;
|
|
1410
|
-
var divRem_0 = thisPrepared_0.
|
|
1411
|
-
var result_0 = divRem_0.
|
|
1412
|
-
if (result_0.equals(Companion_getInstance_1().
|
|
1410
|
+
var divRem_0 = thisPrepared_0.sni(other.onj_1);
|
|
1411
|
+
var result_0 = divRem_0.tni_1;
|
|
1412
|
+
if (result_0.equals(Companion_getInstance_1().hni_1)) {
|
|
1413
1413
|
var _unary__edvuaz = newExponent_0;
|
|
1414
1414
|
newExponent_0 = subtract(_unary__edvuaz, get_ONE());
|
|
1415
1415
|
}
|
|
1416
|
-
var exponentModifier_0 = subtract(result_0.
|
|
1416
|
+
var exponentModifier_0 = subtract(result_0.qni(), resolvedDecimalMode.bni_1);
|
|
1417
1417
|
var tmp_1;
|
|
1418
|
-
if (this.
|
|
1419
|
-
tmp_1 = new BigDecimal(roundDiscarded(Companion_getInstance(), result_0, divRem_0.
|
|
1418
|
+
if (this.unj_1) {
|
|
1419
|
+
tmp_1 = new BigDecimal(roundDiscarded(Companion_getInstance(), result_0, divRem_0.uni_1, resolvedDecimalMode), add(newExponent_0, exponentModifier_0), resolvedDecimalMode.onk(result_0.qni()));
|
|
1420
1420
|
} else {
|
|
1421
|
-
tmp_1 = new BigDecimal(roundDiscarded(Companion_getInstance(), result_0, divRem_0.
|
|
1421
|
+
tmp_1 = new BigDecimal(roundDiscarded(Companion_getInstance(), result_0, divRem_0.uni_1, resolvedDecimalMode), add(newExponent_0, exponentModifier_0), resolvedDecimalMode);
|
|
1422
1422
|
}
|
|
1423
1423
|
return tmp_1;
|
|
1424
1424
|
}
|
|
1425
1425
|
};
|
|
1426
|
-
protoOf(BigDecimal).
|
|
1427
|
-
return this.
|
|
1426
|
+
protoOf(BigDecimal).xnk = function (other) {
|
|
1427
|
+
return this.ynk(other).second;
|
|
1428
1428
|
};
|
|
1429
|
-
protoOf(BigDecimal).
|
|
1430
|
-
return this.
|
|
1429
|
+
protoOf(BigDecimal).wnh = function (other) {
|
|
1430
|
+
return this.xnk(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1431
1431
|
};
|
|
1432
|
-
protoOf(BigDecimal).
|
|
1433
|
-
if (this.
|
|
1434
|
-
return new Pair(Companion_getInstance().
|
|
1432
|
+
protoOf(BigDecimal).ynk = function (other) {
|
|
1433
|
+
if (this.pnj_1 < 0n) {
|
|
1434
|
+
return new Pair(Companion_getInstance().anj_1, this);
|
|
1435
1435
|
}
|
|
1436
|
-
if (other.
|
|
1437
|
-
return new Pair(Companion_getInstance().
|
|
1436
|
+
if (other.vni().znk(this.vni()) > 0) {
|
|
1437
|
+
return new Pair(Companion_getInstance().anj_1, this);
|
|
1438
1438
|
}
|
|
1439
|
-
var tmp16_safe_receiver = this.
|
|
1439
|
+
var tmp16_safe_receiver = this.qnj_1;
|
|
1440
1440
|
var tmp;
|
|
1441
1441
|
if (tmp16_safe_receiver == null) {
|
|
1442
1442
|
tmp = null;
|
|
1443
1443
|
} else {
|
|
1444
1444
|
// Inline function 'kotlin.Long.plus' call
|
|
1445
|
-
var this_0 = subtract(this.
|
|
1445
|
+
var this_0 = subtract(this.pnj_1, other.pnj_1);
|
|
1446
1446
|
var tmp$ret$0 = add(this_0, fromInt(1));
|
|
1447
|
-
tmp = tmp16_safe_receiver.
|
|
1447
|
+
tmp = tmp16_safe_receiver.onk(tmp$ret$0);
|
|
1448
1448
|
}
|
|
1449
1449
|
var tmp0_elvis_lhs = tmp;
|
|
1450
1450
|
var tmp_0;
|
|
1451
1451
|
if (tmp0_elvis_lhs == null) {
|
|
1452
1452
|
// Inline function 'kotlin.Long.plus' call
|
|
1453
|
-
var this_1 = subtract(this.
|
|
1453
|
+
var this_1 = subtract(this.pnj_1, other.pnj_1);
|
|
1454
1454
|
var tmp$ret$1 = add(this_1, fromInt(1));
|
|
1455
1455
|
tmp_0 = new DecimalMode(tmp$ret$1, RoundingMode_FLOOR_getInstance());
|
|
1456
1456
|
} else {
|
|
1457
1457
|
tmp_0 = tmp0_elvis_lhs;
|
|
1458
1458
|
}
|
|
1459
1459
|
var resolvedRoundingMode = tmp_0;
|
|
1460
|
-
var quotient = this.
|
|
1461
|
-
var quotientInfinitePrecision = quotient.
|
|
1462
|
-
var remainder = this.
|
|
1460
|
+
var quotient = this.wnk(other, resolvedRoundingMode);
|
|
1461
|
+
var quotientInfinitePrecision = quotient.anl(VOID, VOID, Companion_getInstance_0().lnk_1);
|
|
1462
|
+
var remainder = this.cnl(quotientInfinitePrecision.bnl(other));
|
|
1463
1463
|
return new Pair(quotient, remainder);
|
|
1464
1464
|
};
|
|
1465
|
-
protoOf(BigDecimal).
|
|
1466
|
-
return this.
|
|
1465
|
+
protoOf(BigDecimal).xni = function () {
|
|
1466
|
+
return this.onj_1.xni();
|
|
1467
1467
|
};
|
|
1468
|
-
protoOf(BigDecimal).
|
|
1468
|
+
protoOf(BigDecimal).dnl = function (significand, exponent, decimalMode) {
|
|
1469
1469
|
return new BigDecimal(significand, exponent, decimalMode);
|
|
1470
1470
|
};
|
|
1471
|
-
protoOf(BigDecimal).
|
|
1472
|
-
significand = significand === VOID ? this.
|
|
1473
|
-
exponent = exponent === VOID ? this.
|
|
1474
|
-
decimalMode = decimalMode === VOID ? this.
|
|
1475
|
-
return $super === VOID ? this.
|
|
1471
|
+
protoOf(BigDecimal).anl = function (significand, exponent, decimalMode, $super) {
|
|
1472
|
+
significand = significand === VOID ? this.onj_1 : significand;
|
|
1473
|
+
exponent = exponent === VOID ? this.pnj_1 : exponent;
|
|
1474
|
+
decimalMode = decimalMode === VOID ? this.qnj_1 : decimalMode;
|
|
1475
|
+
return $super === VOID ? this.dnl(significand, exponent, decimalMode) : $super.dnl.call(this, significand, exponent, decimalMode);
|
|
1476
1476
|
};
|
|
1477
|
-
protoOf(BigDecimal).
|
|
1477
|
+
protoOf(BigDecimal).enl = function (places) {
|
|
1478
1478
|
if (places === 0n) {
|
|
1479
1479
|
return this;
|
|
1480
1480
|
}
|
|
1481
|
-
return this.
|
|
1481
|
+
return this.anl(VOID, add(this.pnj_1, places));
|
|
1482
1482
|
};
|
|
1483
|
-
protoOf(BigDecimal).
|
|
1484
|
-
if (this.
|
|
1483
|
+
protoOf(BigDecimal).fnl = function () {
|
|
1484
|
+
if (this.pnj_1 < 0n) {
|
|
1485
1485
|
var tmp;
|
|
1486
|
-
switch (this.
|
|
1486
|
+
switch (this.onj_1.nni_1.a1_1) {
|
|
1487
1487
|
case 0:
|
|
1488
|
-
tmp = Companion_getInstance().
|
|
1488
|
+
tmp = Companion_getInstance().anj_1;
|
|
1489
1489
|
break;
|
|
1490
1490
|
case 1:
|
|
1491
|
-
tmp = Companion_getInstance().
|
|
1491
|
+
tmp = Companion_getInstance().bnj_1.knk();
|
|
1492
1492
|
break;
|
|
1493
1493
|
case 2:
|
|
1494
|
-
tmp = Companion_getInstance().
|
|
1494
|
+
tmp = Companion_getInstance().anj_1;
|
|
1495
1495
|
break;
|
|
1496
1496
|
default:
|
|
1497
1497
|
noWhenBranchMatchedException();
|
|
@@ -1500,90 +1500,90 @@
|
|
|
1500
1500
|
return tmp;
|
|
1501
1501
|
}
|
|
1502
1502
|
// Inline function 'kotlin.Long.plus' call
|
|
1503
|
-
var this_0 = this.
|
|
1503
|
+
var this_0 = this.pnj_1;
|
|
1504
1504
|
var tmp$ret$0 = add(this_0, fromInt(1));
|
|
1505
|
-
return this.
|
|
1505
|
+
return this.znj(new DecimalMode(tmp$ret$0, RoundingMode_FLOOR_getInstance()));
|
|
1506
1506
|
};
|
|
1507
|
-
protoOf(BigDecimal).
|
|
1508
|
-
if (this.
|
|
1509
|
-
return Companion_getInstance_1().
|
|
1507
|
+
protoOf(BigDecimal).gnl = function () {
|
|
1508
|
+
if (this.pnj_1 < 0n) {
|
|
1509
|
+
return Companion_getInstance_1().hni_1;
|
|
1510
1510
|
}
|
|
1511
|
-
var precisionExponentDiff = subtract(this.
|
|
1511
|
+
var precisionExponentDiff = subtract(this.pnj_1, this.nnj_1);
|
|
1512
1512
|
var tmp;
|
|
1513
1513
|
if (precisionExponentDiff > 0n) {
|
|
1514
1514
|
var tmp_0 = toBigInteger(10);
|
|
1515
1515
|
// Inline function 'kotlin.Long.plus' call
|
|
1516
1516
|
var tmp$ret$0 = add(precisionExponentDiff, fromInt(1));
|
|
1517
|
-
tmp = this.
|
|
1517
|
+
tmp = this.onj_1.rnh(tmp_0.rni(tmp$ret$0));
|
|
1518
1518
|
} else if (precisionExponentDiff < 0n) {
|
|
1519
1519
|
var tmp_1 = toBigInteger(10);
|
|
1520
1520
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1521
1521
|
// Inline function 'kotlin.Long.minus' call
|
|
1522
1522
|
var this_0 = abs(precisionExponentDiff);
|
|
1523
1523
|
var tmp$ret$2 = subtract(this_0, fromInt(1));
|
|
1524
|
-
tmp = this.
|
|
1524
|
+
tmp = this.onj_1.tnh(tmp_1.rni(tmp$ret$2));
|
|
1525
1525
|
} else {
|
|
1526
|
-
tmp = this.
|
|
1526
|
+
tmp = this.onj_1.w1o(10);
|
|
1527
1527
|
}
|
|
1528
1528
|
return tmp;
|
|
1529
1529
|
};
|
|
1530
|
-
protoOf(BigDecimal).
|
|
1531
|
-
return this.
|
|
1530
|
+
protoOf(BigDecimal).cnl = function (other) {
|
|
1531
|
+
return this.snk(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1532
1532
|
};
|
|
1533
|
-
protoOf(BigDecimal).
|
|
1534
|
-
return this.
|
|
1533
|
+
protoOf(BigDecimal).bnl = function (other) {
|
|
1534
|
+
return this.unk(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1535
1535
|
};
|
|
1536
|
-
protoOf(BigDecimal).
|
|
1537
|
-
return new BigDecimal(this.
|
|
1536
|
+
protoOf(BigDecimal).vni = function () {
|
|
1537
|
+
return new BigDecimal(this.onj_1.vni(), this.pnj_1, this.qnj_1);
|
|
1538
1538
|
};
|
|
1539
|
-
protoOf(BigDecimal).
|
|
1540
|
-
return new BigDecimal(this.
|
|
1539
|
+
protoOf(BigDecimal).knk = function () {
|
|
1540
|
+
return new BigDecimal(this.onj_1.knk(), this.pnj_1, this.qnj_1);
|
|
1541
1541
|
};
|
|
1542
|
-
protoOf(BigDecimal).
|
|
1542
|
+
protoOf(BigDecimal).znj = function (decimalMode) {
|
|
1543
1543
|
if (decimalMode == null) {
|
|
1544
1544
|
return this;
|
|
1545
1545
|
}
|
|
1546
|
-
return roundSignificand(Companion_getInstance(), this.
|
|
1546
|
+
return roundSignificand(Companion_getInstance(), this.onj_1, this.pnj_1, decimalMode);
|
|
1547
1547
|
};
|
|
1548
|
-
protoOf(BigDecimal).
|
|
1548
|
+
protoOf(BigDecimal).nnk = function (other) {
|
|
1549
1549
|
var tmp;
|
|
1550
|
-
if (this.
|
|
1551
|
-
tmp = this.
|
|
1550
|
+
if (this.pnj_1 === other.pnj_1 && this.nnj_1 === other.nnj_1) {
|
|
1551
|
+
tmp = this.onj_1.hnl(other.onj_1);
|
|
1552
1552
|
} else {
|
|
1553
1553
|
var _destruct__k2r9zo = bringSignificandToSameExponent(this, this, other);
|
|
1554
1554
|
var preparedFirst = _destruct__k2r9zo.xg();
|
|
1555
1555
|
var preparedSecond = _destruct__k2r9zo.yg();
|
|
1556
|
-
tmp = preparedFirst.
|
|
1556
|
+
tmp = preparedFirst.hnl(preparedSecond);
|
|
1557
1557
|
}
|
|
1558
1558
|
return tmp;
|
|
1559
1559
|
};
|
|
1560
|
-
protoOf(BigDecimal).
|
|
1560
|
+
protoOf(BigDecimal).znk = function (other) {
|
|
1561
1561
|
if (isNumber(other)) {
|
|
1562
|
-
if (RuntimePlatform_instance.
|
|
1562
|
+
if (RuntimePlatform_instance.inl().equals(Platform_JS_getInstance()) || RuntimePlatform_instance.inl().equals(Platform_WASMJS_getInstance())) {
|
|
1563
1563
|
return javascriptNumberComparison(this, other);
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
1566
|
var tmp;
|
|
1567
1567
|
if (other instanceof BigDecimal) {
|
|
1568
|
-
tmp = this.
|
|
1568
|
+
tmp = this.nnk(other);
|
|
1569
1569
|
} else {
|
|
1570
1570
|
if (typeof other === 'bigint') {
|
|
1571
|
-
tmp = this.
|
|
1571
|
+
tmp = this.nnk(Companion_getInstance().ynj(other));
|
|
1572
1572
|
} else {
|
|
1573
1573
|
if (typeof other === 'number') {
|
|
1574
|
-
tmp = this.
|
|
1574
|
+
tmp = this.nnk(Companion_getInstance().gnh(other));
|
|
1575
1575
|
} else {
|
|
1576
1576
|
if (typeof other === 'number') {
|
|
1577
|
-
tmp = this.
|
|
1577
|
+
tmp = this.nnk(Companion_getInstance().cnk(other));
|
|
1578
1578
|
} else {
|
|
1579
1579
|
if (typeof other === 'number') {
|
|
1580
|
-
tmp = this.
|
|
1580
|
+
tmp = this.nnk(Companion_getInstance().enk(other));
|
|
1581
1581
|
} else {
|
|
1582
1582
|
if (typeof other === 'number') {
|
|
1583
|
-
tmp = this.
|
|
1583
|
+
tmp = this.nnk(Companion_getInstance().vnj(other));
|
|
1584
1584
|
} else {
|
|
1585
1585
|
if (typeof other === 'number') {
|
|
1586
|
-
tmp = this.
|
|
1586
|
+
tmp = this.nnk(Companion_getInstance().wnj(other));
|
|
1587
1587
|
} else {
|
|
1588
1588
|
throw RuntimeException_init_$Create$('Invalid comparison type for BigDecimal: ' + getKClassFromExpression(other).o());
|
|
1589
1589
|
}
|
|
@@ -1596,30 +1596,30 @@
|
|
|
1596
1596
|
return tmp;
|
|
1597
1597
|
};
|
|
1598
1598
|
protoOf(BigDecimal).d = function (other) {
|
|
1599
|
-
return this.
|
|
1599
|
+
return this.znk(!(other == null) ? other : THROW_CCE());
|
|
1600
1600
|
};
|
|
1601
1601
|
protoOf(BigDecimal).equals = function (other) {
|
|
1602
1602
|
var tmp;
|
|
1603
1603
|
if (other instanceof BigDecimal) {
|
|
1604
|
-
tmp = this.
|
|
1604
|
+
tmp = this.nnk(other);
|
|
1605
1605
|
} else {
|
|
1606
1606
|
if (!(other == null) ? typeof other === 'bigint' : false) {
|
|
1607
|
-
tmp = this.
|
|
1607
|
+
tmp = this.nnk(Companion_getInstance().ynj(other));
|
|
1608
1608
|
} else {
|
|
1609
1609
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1610
|
-
tmp = this.
|
|
1610
|
+
tmp = this.nnk(Companion_getInstance().gnh(other));
|
|
1611
1611
|
} else {
|
|
1612
1612
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1613
|
-
tmp = this.
|
|
1613
|
+
tmp = this.nnk(Companion_getInstance().cnk(other));
|
|
1614
1614
|
} else {
|
|
1615
1615
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1616
|
-
tmp = this.
|
|
1616
|
+
tmp = this.nnk(Companion_getInstance().enk(other));
|
|
1617
1617
|
} else {
|
|
1618
1618
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1619
|
-
tmp = this.
|
|
1619
|
+
tmp = this.nnk(Companion_getInstance().vnj(other));
|
|
1620
1620
|
} else {
|
|
1621
1621
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1622
|
-
tmp = this.
|
|
1622
|
+
tmp = this.nnk(Companion_getInstance().wnj(other));
|
|
1623
1623
|
} else {
|
|
1624
1624
|
tmp = -1;
|
|
1625
1625
|
}
|
|
@@ -1633,25 +1633,25 @@
|
|
|
1633
1633
|
return comparison === 0;
|
|
1634
1634
|
};
|
|
1635
1635
|
protoOf(BigDecimal).hashCode = function () {
|
|
1636
|
-
if (this.
|
|
1636
|
+
if (this.xni()) {
|
|
1637
1637
|
return 0;
|
|
1638
1638
|
}
|
|
1639
|
-
return removeTrailingZeroes(this, this).
|
|
1639
|
+
return removeTrailingZeroes(this, this).onj_1.hashCode() + getBigIntHashCode(this.pnj_1) | 0;
|
|
1640
1640
|
};
|
|
1641
1641
|
protoOf(BigDecimal).toString = function () {
|
|
1642
|
-
if (Companion_getInstance().
|
|
1643
|
-
return this.
|
|
1642
|
+
if (Companion_getInstance().enj_1) {
|
|
1643
|
+
return this.jnl();
|
|
1644
1644
|
}
|
|
1645
|
-
var significandString = this.
|
|
1645
|
+
var significandString = this.onj_1.knl(10);
|
|
1646
1646
|
var tmp;
|
|
1647
|
-
if (this.
|
|
1647
|
+
if (this.onj_1.znk(0) < 0) {
|
|
1648
1648
|
tmp = 2;
|
|
1649
1649
|
} else {
|
|
1650
1650
|
tmp = 1;
|
|
1651
1651
|
}
|
|
1652
1652
|
var modifier = tmp;
|
|
1653
1653
|
var tmp_0;
|
|
1654
|
-
var tmp0 = this.
|
|
1654
|
+
var tmp0 = this.onj_1.toString();
|
|
1655
1655
|
var tmp$ret$1;
|
|
1656
1656
|
$l$block: {
|
|
1657
1657
|
// Inline function 'kotlin.text.dropLastWhile' call
|
|
@@ -1675,62 +1675,62 @@
|
|
|
1675
1675
|
}
|
|
1676
1676
|
var expand = tmp_0;
|
|
1677
1677
|
var tmp_1;
|
|
1678
|
-
if (this.
|
|
1679
|
-
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E+' + this.
|
|
1680
|
-
} else if (this.
|
|
1681
|
-
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E' + this.
|
|
1682
|
-
} else if (this.
|
|
1678
|
+
if (this.pnj_1 > 0n) {
|
|
1679
|
+
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E+' + this.pnj_1.toString();
|
|
1680
|
+
} else if (this.pnj_1 < 0n) {
|
|
1681
|
+
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E' + this.pnj_1.toString();
|
|
1682
|
+
} else if (this.pnj_1 === 0n) {
|
|
1683
1683
|
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand;
|
|
1684
1684
|
} else {
|
|
1685
1685
|
throw RuntimeException_init_$Create$('Invalid state, please report a bug (Integer compareTo invalid)');
|
|
1686
1686
|
}
|
|
1687
1687
|
return tmp_1;
|
|
1688
1688
|
};
|
|
1689
|
-
protoOf(BigDecimal).
|
|
1690
|
-
if (this.
|
|
1689
|
+
protoOf(BigDecimal).jnl = function () {
|
|
1690
|
+
if (this.xni()) {
|
|
1691
1691
|
return '0';
|
|
1692
1692
|
}
|
|
1693
|
-
var digits = this.
|
|
1694
|
-
if (this.
|
|
1693
|
+
var digits = this.onj_1.qni();
|
|
1694
|
+
if (this.pnj_1 > 2147483647n) {
|
|
1695
1695
|
throw RuntimeException_init_$Create$('Invalid toStringExpanded request (exponent > Int.MAX_VALUE)');
|
|
1696
1696
|
}
|
|
1697
|
-
var significandString = this.
|
|
1697
|
+
var significandString = this.onj_1.lnl(10);
|
|
1698
1698
|
var tmp;
|
|
1699
|
-
if (this.
|
|
1699
|
+
if (this.onj_1.nni_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
1700
1700
|
tmp = '-';
|
|
1701
1701
|
} else {
|
|
1702
1702
|
tmp = '';
|
|
1703
1703
|
}
|
|
1704
1704
|
var sign = tmp;
|
|
1705
1705
|
var tmp_0;
|
|
1706
|
-
if (this.
|
|
1706
|
+
if (this.pnj_1 > 0n) {
|
|
1707
1707
|
// Inline function 'kotlin.Long.plus' call
|
|
1708
|
-
var this_0 = subtract(this.
|
|
1708
|
+
var this_0 = subtract(this.pnj_1, digits);
|
|
1709
1709
|
var diffBigInt = add(this_0, fromInt(1));
|
|
1710
1710
|
var tmp_1;
|
|
1711
1711
|
if (diffBigInt > 0n) {
|
|
1712
|
-
var expandZeros = this.
|
|
1712
|
+
var expandZeros = this.mnl(diffBigInt, _Char___init__impl__6a9atx(48));
|
|
1713
1713
|
tmp_1 = significandString + expandZeros;
|
|
1714
1714
|
} else {
|
|
1715
|
-
tmp_1 = placeADotInStringExpanded(this, significandString, (significandString.length - convertToInt(this.
|
|
1715
|
+
tmp_1 = placeADotInStringExpanded(this, significandString, (significandString.length - convertToInt(this.pnj_1) | 0) - 1 | 0);
|
|
1716
1716
|
}
|
|
1717
1717
|
tmp_0 = tmp_1;
|
|
1718
|
-
} else if (this.
|
|
1718
|
+
} else if (this.pnj_1 < 0n) {
|
|
1719
1719
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1720
|
-
var this_1 = convertToInt(this.
|
|
1720
|
+
var this_1 = convertToInt(this.pnj_1);
|
|
1721
1721
|
var diffInt = abs_0(this_1);
|
|
1722
1722
|
var tmp_2;
|
|
1723
1723
|
if (diffInt > 0) {
|
|
1724
1724
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1725
|
-
var this_2 = this.
|
|
1725
|
+
var this_2 = this.pnj_1;
|
|
1726
1726
|
var tmp$ret$2 = abs(this_2);
|
|
1727
|
-
var expandZeros_0 = this.
|
|
1727
|
+
var expandZeros_0 = this.mnl(tmp$ret$2, _Char___init__impl__6a9atx(48));
|
|
1728
1728
|
tmp_2 = placeADotInStringExpanded(this, expandZeros_0 + significandString, (diffInt + significandString.length | 0) - 1 | 0);
|
|
1729
1729
|
} else {
|
|
1730
1730
|
tmp_2 = placeADotInStringExpanded(this, significandString, significandString.length - 1 | 0);
|
|
1731
1731
|
}
|
|
1732
1732
|
tmp_0 = tmp_2;
|
|
1733
|
-
} else if (this.
|
|
1733
|
+
} else if (this.pnj_1 === 0n) {
|
|
1734
1734
|
if (digits === 1n) {
|
|
1735
1735
|
return sign + significandString;
|
|
1736
1736
|
}
|
|
@@ -1741,7 +1741,7 @@
|
|
|
1741
1741
|
var adjusted = tmp_0;
|
|
1742
1742
|
return sign + adjusted;
|
|
1743
1743
|
};
|
|
1744
|
-
protoOf(BigDecimal).
|
|
1744
|
+
protoOf(BigDecimal).mnl = function (_this__u8e3s4, char) {
|
|
1745
1745
|
if (_this__u8e3s4 < 0n) {
|
|
1746
1746
|
throw RuntimeException_init_$Create$('Char cannot be multiplied with negative number');
|
|
1747
1747
|
}
|
|
@@ -1757,13 +1757,13 @@
|
|
|
1757
1757
|
function toBigDecimal(_this__u8e3s4, exponentModifier, decimalMode) {
|
|
1758
1758
|
exponentModifier = exponentModifier === VOID ? null : exponentModifier;
|
|
1759
1759
|
decimalMode = decimalMode === VOID ? null : decimalMode;
|
|
1760
|
-
var tmp = Companion_getInstance().
|
|
1761
|
-
return tmp.
|
|
1760
|
+
var tmp = Companion_getInstance().hnk(_this__u8e3s4, decimalMode);
|
|
1761
|
+
return tmp.enl(exponentModifier == null ? 0n : exponentModifier);
|
|
1762
1762
|
}
|
|
1763
1763
|
function Companion_0() {
|
|
1764
1764
|
Companion_instance_0 = this;
|
|
1765
|
-
this.
|
|
1766
|
-
this.
|
|
1765
|
+
this.lnk_1 = new DecimalMode();
|
|
1766
|
+
this.mnk_1 = new DecimalMode(30n, RoundingMode_ROUND_HALF_AWAY_FROM_ZERO_getInstance(), 2n);
|
|
1767
1767
|
}
|
|
1768
1768
|
var Companion_instance_0;
|
|
1769
1769
|
function Companion_getInstance_0() {
|
|
@@ -1776,40 +1776,40 @@
|
|
|
1776
1776
|
decimalPrecision = decimalPrecision === VOID ? 0n : decimalPrecision;
|
|
1777
1777
|
roundingMode = roundingMode === VOID ? RoundingMode_NONE_getInstance() : roundingMode;
|
|
1778
1778
|
scale = scale === VOID ? -1n : scale;
|
|
1779
|
-
this.
|
|
1780
|
-
this.
|
|
1781
|
-
this.
|
|
1782
|
-
if (this.
|
|
1779
|
+
this.bni_1 = decimalPrecision;
|
|
1780
|
+
this.cni_1 = roundingMode;
|
|
1781
|
+
this.dni_1 = scale;
|
|
1782
|
+
if (this.bni_1 < 0n) {
|
|
1783
1783
|
throw ArithmeticException_init_$Create$('Negative decimal precision is not allowed.');
|
|
1784
1784
|
}
|
|
1785
|
-
this.
|
|
1786
|
-
this.
|
|
1787
|
-
if (!this.
|
|
1785
|
+
this.eni_1 = this.bni_1 === 0n;
|
|
1786
|
+
this.fni_1 = this.dni_1 >= 0n;
|
|
1787
|
+
if (!this.fni_1 && this.bni_1 === 0n && !this.cni_1.equals(RoundingMode_NONE_getInstance())) {
|
|
1788
1788
|
throw ArithmeticException_init_$Create$('Rounding mode with 0 digits precision.');
|
|
1789
1789
|
}
|
|
1790
|
-
if (this.
|
|
1790
|
+
if (this.dni_1 < -1n) {
|
|
1791
1791
|
throw ArithmeticException_init_$Create$('Negative Scale is unsupported.');
|
|
1792
1792
|
}
|
|
1793
|
-
if (this.
|
|
1794
|
-
throw ArithmeticException_init_$Create$('Scale of ' + this.
|
|
1793
|
+
if (this.fni_1 && this.cni_1.equals(RoundingMode_NONE_getInstance())) {
|
|
1794
|
+
throw ArithmeticException_init_$Create$('Scale of ' + this.dni_1.toString() + ' digits to the right of the decimal requires a RoundingMode that is not NONE.');
|
|
1795
1795
|
}
|
|
1796
1796
|
}
|
|
1797
|
-
protoOf(DecimalMode).
|
|
1797
|
+
protoOf(DecimalMode).nnl = function (decimalPrecision, roundingMode, scale) {
|
|
1798
1798
|
return new DecimalMode(decimalPrecision, roundingMode, scale);
|
|
1799
1799
|
};
|
|
1800
|
-
protoOf(DecimalMode).
|
|
1801
|
-
decimalPrecision = decimalPrecision === VOID ? this.
|
|
1802
|
-
roundingMode = roundingMode === VOID ? this.
|
|
1803
|
-
scale = scale === VOID ? this.
|
|
1804
|
-
return $super === VOID ? this.
|
|
1800
|
+
protoOf(DecimalMode).onk = function (decimalPrecision, roundingMode, scale, $super) {
|
|
1801
|
+
decimalPrecision = decimalPrecision === VOID ? this.bni_1 : decimalPrecision;
|
|
1802
|
+
roundingMode = roundingMode === VOID ? this.cni_1 : roundingMode;
|
|
1803
|
+
scale = scale === VOID ? this.dni_1 : scale;
|
|
1804
|
+
return $super === VOID ? this.nnl(decimalPrecision, roundingMode, scale) : $super.nnl.call(this, decimalPrecision, roundingMode, scale);
|
|
1805
1805
|
};
|
|
1806
1806
|
protoOf(DecimalMode).toString = function () {
|
|
1807
|
-
return 'DecimalMode(decimalPrecision=' + this.
|
|
1807
|
+
return 'DecimalMode(decimalPrecision=' + this.bni_1.toString() + ', roundingMode=' + this.cni_1.toString() + ', scale=' + this.dni_1.toString() + ')';
|
|
1808
1808
|
};
|
|
1809
1809
|
protoOf(DecimalMode).hashCode = function () {
|
|
1810
|
-
var result = getBigIntHashCode(this.
|
|
1811
|
-
result = imul(result, 31) + this.
|
|
1812
|
-
result = imul(result, 31) + getBigIntHashCode(this.
|
|
1810
|
+
var result = getBigIntHashCode(this.bni_1);
|
|
1811
|
+
result = imul(result, 31) + this.cni_1.hashCode() | 0;
|
|
1812
|
+
result = imul(result, 31) + getBigIntHashCode(this.dni_1) | 0;
|
|
1813
1813
|
return result;
|
|
1814
1814
|
};
|
|
1815
1815
|
protoOf(DecimalMode).equals = function (other) {
|
|
@@ -1818,11 +1818,11 @@
|
|
|
1818
1818
|
if (!(other instanceof DecimalMode))
|
|
1819
1819
|
return false;
|
|
1820
1820
|
var tmp0_other_with_cast = other instanceof DecimalMode ? other : THROW_CCE();
|
|
1821
|
-
if (!(this.
|
|
1821
|
+
if (!(this.bni_1 === tmp0_other_with_cast.bni_1))
|
|
1822
1822
|
return false;
|
|
1823
|
-
if (!this.
|
|
1823
|
+
if (!this.cni_1.equals(tmp0_other_with_cast.cni_1))
|
|
1824
1824
|
return false;
|
|
1825
|
-
if (!(this.
|
|
1825
|
+
if (!(this.dni_1 === tmp0_other_with_cast.dni_1))
|
|
1826
1826
|
return false;
|
|
1827
1827
|
return true;
|
|
1828
1828
|
};
|
|
@@ -1882,7 +1882,7 @@
|
|
|
1882
1882
|
return RoundingMode_ROUND_HALF_TO_EVEN_instance;
|
|
1883
1883
|
}
|
|
1884
1884
|
function BigInteger_init_$Init$(long, $this) {
|
|
1885
|
-
var tmp = Companion_getInstance_1().
|
|
1885
|
+
var tmp = Companion_getInstance_1().gni_1.onl(long);
|
|
1886
1886
|
// Inline function 'com.ionspin.kotlin.bignum.integer.Companion.determinSignFromNumber' call
|
|
1887
1887
|
Companion_getInstance_1();
|
|
1888
1888
|
var tmp22_subject = PrimitiveClasses_getInstance().ic();
|
|
@@ -1926,7 +1926,7 @@
|
|
|
1926
1926
|
return BigInteger_init_$Init$(long, objectCreate(protoOf(BigInteger)));
|
|
1927
1927
|
}
|
|
1928
1928
|
function BigInteger_init_$Init$_0(int, $this) {
|
|
1929
|
-
var tmp = Companion_getInstance_1().
|
|
1929
|
+
var tmp = Companion_getInstance_1().gni_1.pnl(int);
|
|
1930
1930
|
// Inline function 'com.ionspin.kotlin.bignum.integer.Companion.determinSignFromNumber' call
|
|
1931
1931
|
Companion_getInstance_1();
|
|
1932
1932
|
var tmp22_subject = PrimitiveClasses_getInstance().hc();
|
|
@@ -1970,7 +1970,7 @@
|
|
|
1970
1970
|
return BigInteger_init_$Init$_0(int, objectCreate(protoOf(BigInteger)));
|
|
1971
1971
|
}
|
|
1972
1972
|
function BigInteger_init_$Init$_1(short, $this) {
|
|
1973
|
-
var tmp = Companion_getInstance_1().
|
|
1973
|
+
var tmp = Companion_getInstance_1().gni_1.qnl(short);
|
|
1974
1974
|
// Inline function 'com.ionspin.kotlin.bignum.integer.Companion.determinSignFromNumber' call
|
|
1975
1975
|
Companion_getInstance_1();
|
|
1976
1976
|
var tmp22_subject = PrimitiveClasses_getInstance().gc();
|
|
@@ -2014,7 +2014,7 @@
|
|
|
2014
2014
|
return BigInteger_init_$Init$_1(short, objectCreate(protoOf(BigInteger)));
|
|
2015
2015
|
}
|
|
2016
2016
|
function BigInteger_init_$Init$_2(byte, $this) {
|
|
2017
|
-
var tmp = Companion_getInstance_1().
|
|
2017
|
+
var tmp = Companion_getInstance_1().gni_1.rnl(byte);
|
|
2018
2018
|
// Inline function 'com.ionspin.kotlin.bignum.integer.Companion.determinSignFromNumber' call
|
|
2019
2019
|
Companion_getInstance_1();
|
|
2020
2020
|
var tmp22_subject = PrimitiveClasses_getInstance().fc();
|
|
@@ -2059,27 +2059,27 @@
|
|
|
2059
2059
|
}
|
|
2060
2060
|
function Companion_1() {
|
|
2061
2061
|
Companion_instance_1 = this;
|
|
2062
|
-
this.
|
|
2063
|
-
this.
|
|
2064
|
-
this.
|
|
2065
|
-
this.
|
|
2066
|
-
this.
|
|
2062
|
+
this.gni_1 = get_chosenArithmetic();
|
|
2063
|
+
this.hni_1 = new BigInteger(this.gni_1.snl(), Sign_ZERO_getInstance());
|
|
2064
|
+
this.ini_1 = new BigInteger(this.gni_1.tnl(), Sign_POSITIVE_getInstance());
|
|
2065
|
+
this.jni_1 = new BigInteger(this.gni_1.unl(), Sign_POSITIVE_getInstance());
|
|
2066
|
+
this.kni_1 = new BigInteger(this.gni_1.vnl(), Sign_POSITIVE_getInstance());
|
|
2067
2067
|
var tmp = this;
|
|
2068
2068
|
// Inline function 'kotlin.math.log10' call
|
|
2069
|
-
tmp.
|
|
2069
|
+
tmp.lni_1 = log10(2.0);
|
|
2070
2070
|
}
|
|
2071
|
-
protoOf(Companion_1).
|
|
2071
|
+
protoOf(Companion_1).enh = function (string, base) {
|
|
2072
2072
|
if (base < 2 || base > 36) {
|
|
2073
2073
|
throw NumberFormatException_init_$Create$('Unsupported base: ' + base + '. Supported base range is from 2 to 36');
|
|
2074
2074
|
}
|
|
2075
2075
|
var decimal = contains(string, _Char___init__impl__6a9atx(46));
|
|
2076
2076
|
if (decimal) {
|
|
2077
|
-
var bigDecimal = Companion_getInstance().
|
|
2078
|
-
var isActuallyDecimal = bigDecimal.
|
|
2077
|
+
var bigDecimal = Companion_getInstance().ink(string);
|
|
2078
|
+
var isActuallyDecimal = bigDecimal.cnl(bigDecimal.fnl()).znk(0) > 0;
|
|
2079
2079
|
if (isActuallyDecimal) {
|
|
2080
2080
|
throw NumberFormatException_init_$Create$('Supplied string is decimal, which cannot be converted to BigInteger without precision loss.');
|
|
2081
2081
|
}
|
|
2082
|
-
return bigDecimal.
|
|
2082
|
+
return bigDecimal.gnl();
|
|
2083
2083
|
}
|
|
2084
2084
|
var signed = charCodeAt(string, 0) === _Char___init__impl__6a9atx(45) || charCodeAt(string, 0) === _Char___init__impl__6a9atx(43);
|
|
2085
2085
|
var tmp;
|
|
@@ -2095,71 +2095,71 @@
|
|
|
2095
2095
|
}
|
|
2096
2096
|
var isNegative = tmp_0;
|
|
2097
2097
|
if (string.length === 2 && charCodeAt(string, 1) === _Char___init__impl__6a9atx(48)) {
|
|
2098
|
-
return this.
|
|
2098
|
+
return this.hni_1;
|
|
2099
2099
|
}
|
|
2100
|
-
tmp = new BigInteger(this.
|
|
2100
|
+
tmp = new BigInteger(this.gni_1.wnl(substring(string, 1, string.length), base), isNegative);
|
|
2101
2101
|
} else {
|
|
2102
2102
|
if (string.length === 1 && charCodeAt(string, 0) === _Char___init__impl__6a9atx(48)) {
|
|
2103
|
-
return this.
|
|
2103
|
+
return this.hni_1;
|
|
2104
2104
|
}
|
|
2105
|
-
tmp = new BigInteger(this.
|
|
2105
|
+
tmp = new BigInteger(this.gni_1.wnl(string, base), Sign_POSITIVE_getInstance());
|
|
2106
2106
|
}
|
|
2107
2107
|
return tmp;
|
|
2108
2108
|
};
|
|
2109
|
-
protoOf(Companion_1).
|
|
2110
|
-
return new BigInteger(this.
|
|
2109
|
+
protoOf(Companion_1).xnl = function (uLong) {
|
|
2110
|
+
return new BigInteger(this.gni_1.ynl(uLong), Sign_POSITIVE_getInstance());
|
|
2111
2111
|
};
|
|
2112
|
-
protoOf(Companion_1).
|
|
2113
|
-
return new BigInteger(this.
|
|
2112
|
+
protoOf(Companion_1).znl = function (uInt) {
|
|
2113
|
+
return new BigInteger(this.gni_1.anm(uInt), Sign_POSITIVE_getInstance());
|
|
2114
2114
|
};
|
|
2115
|
-
protoOf(Companion_1).
|
|
2116
|
-
return new BigInteger(this.
|
|
2115
|
+
protoOf(Companion_1).bnm = function (uShort) {
|
|
2116
|
+
return new BigInteger(this.gni_1.cnm(uShort), Sign_POSITIVE_getInstance());
|
|
2117
2117
|
};
|
|
2118
|
-
protoOf(Companion_1).
|
|
2119
|
-
return new BigInteger(this.
|
|
2118
|
+
protoOf(Companion_1).dnm = function (uByte) {
|
|
2119
|
+
return new BigInteger(this.gni_1.enm(uByte), Sign_POSITIVE_getInstance());
|
|
2120
2120
|
};
|
|
2121
|
-
protoOf(Companion_1).
|
|
2121
|
+
protoOf(Companion_1).ynj = function (long) {
|
|
2122
2122
|
return BigInteger_init_$Create$(long);
|
|
2123
2123
|
};
|
|
2124
|
-
protoOf(Companion_1).
|
|
2124
|
+
protoOf(Companion_1).gnh = function (int) {
|
|
2125
2125
|
return BigInteger_init_$Create$_0(int);
|
|
2126
2126
|
};
|
|
2127
|
-
protoOf(Companion_1).
|
|
2127
|
+
protoOf(Companion_1).cnk = function (short) {
|
|
2128
2128
|
return BigInteger_init_$Create$_1(short);
|
|
2129
2129
|
};
|
|
2130
|
-
protoOf(Companion_1).
|
|
2130
|
+
protoOf(Companion_1).enk = function (byte) {
|
|
2131
2131
|
return BigInteger_init_$Create$_2(byte);
|
|
2132
2132
|
};
|
|
2133
|
-
protoOf(Companion_1).
|
|
2133
|
+
protoOf(Companion_1).hnh = function (float, exactRequired) {
|
|
2134
2134
|
// Inline function 'kotlin.math.floor' call
|
|
2135
2135
|
var floatDecimalPart = float - Math.floor(float);
|
|
2136
2136
|
var tmp = Companion_getInstance();
|
|
2137
2137
|
// Inline function 'kotlin.math.floor' call
|
|
2138
2138
|
var tmp$ret$1 = Math.floor(float);
|
|
2139
|
-
var bigDecimal = tmp.
|
|
2139
|
+
var bigDecimal = tmp.fnk(tmp$ret$1, null);
|
|
2140
2140
|
if (exactRequired) {
|
|
2141
2141
|
if (floatDecimalPart > 0) {
|
|
2142
2142
|
throw ArithmeticException_init_$Create$('Cant create BigInteger without precision loss, and exact value was required');
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
2145
|
-
return bigDecimal.
|
|
2145
|
+
return bigDecimal.gnl();
|
|
2146
2146
|
};
|
|
2147
|
-
protoOf(Companion_1).
|
|
2147
|
+
protoOf(Companion_1).jnh = function (double, exactRequired) {
|
|
2148
2148
|
// Inline function 'kotlin.math.floor' call
|
|
2149
2149
|
var doubleDecimalPart = double - Math.floor(double);
|
|
2150
2150
|
var tmp = Companion_getInstance();
|
|
2151
2151
|
// Inline function 'kotlin.math.floor' call
|
|
2152
2152
|
var tmp$ret$1 = Math.floor(double);
|
|
2153
|
-
var bigDecimal = tmp.
|
|
2153
|
+
var bigDecimal = tmp.hnk(tmp$ret$1, null);
|
|
2154
2154
|
if (exactRequired) {
|
|
2155
2155
|
if (doubleDecimalPart > 0) {
|
|
2156
2156
|
throw ArithmeticException_init_$Create$('Cant create BigInteger without precision loss, and exact value was required');
|
|
2157
2157
|
}
|
|
2158
2158
|
}
|
|
2159
|
-
return bigDecimal.
|
|
2159
|
+
return bigDecimal.gnl();
|
|
2160
2160
|
};
|
|
2161
|
-
protoOf(Companion_1).
|
|
2162
|
-
var result = this.
|
|
2161
|
+
protoOf(Companion_1).fnm = function (source, sign) {
|
|
2162
|
+
var result = this.gni_1.gnm(source);
|
|
2163
2163
|
return new BigInteger(result, sign);
|
|
2164
2164
|
};
|
|
2165
2165
|
var Companion_instance_1;
|
|
@@ -2169,31 +2169,31 @@
|
|
|
2169
2169
|
return Companion_instance_1;
|
|
2170
2170
|
}
|
|
2171
2171
|
function isResultZero($this, resultMagnitude) {
|
|
2172
|
-
return Companion_getInstance_1().
|
|
2172
|
+
return Companion_getInstance_1().gni_1.hnm(resultMagnitude, Companion_getInstance_1().gni_1.snl()) === 0;
|
|
2173
2173
|
}
|
|
2174
2174
|
function javascriptNumberComparison_0($this, number) {
|
|
2175
2175
|
var double = numberToDouble(number);
|
|
2176
2176
|
var tmp;
|
|
2177
2177
|
if (double > toNumber(9223372036854775807n)) {
|
|
2178
|
-
tmp = $this.
|
|
2178
|
+
tmp = $this.hnl(Companion_getInstance_1().fnh(double.toString()));
|
|
2179
2179
|
} else if (double % 1 === 0.0) {
|
|
2180
|
-
tmp = $this.
|
|
2180
|
+
tmp = $this.hnl(Companion_getInstance_1().ynj(numberToLong(number)));
|
|
2181
2181
|
} else {
|
|
2182
2182
|
var tmp_0 = numberToDouble(number);
|
|
2183
|
-
tmp = $this.
|
|
2183
|
+
tmp = $this.inm(tmp_0, BigInteger$javascriptNumberComparison$lambda($this));
|
|
2184
2184
|
}
|
|
2185
2185
|
return tmp;
|
|
2186
2186
|
}
|
|
2187
2187
|
function QuotientAndRemainder(quotient, remainder) {
|
|
2188
|
-
this.
|
|
2189
|
-
this.
|
|
2188
|
+
this.tni_1 = quotient;
|
|
2189
|
+
this.uni_1 = remainder;
|
|
2190
2190
|
}
|
|
2191
2191
|
protoOf(QuotientAndRemainder).toString = function () {
|
|
2192
|
-
return 'QuotientAndRemainder(quotient=' + this.
|
|
2192
|
+
return 'QuotientAndRemainder(quotient=' + this.tni_1.toString() + ', remainder=' + this.uni_1.toString() + ')';
|
|
2193
2193
|
};
|
|
2194
2194
|
protoOf(QuotientAndRemainder).hashCode = function () {
|
|
2195
|
-
var result = this.
|
|
2196
|
-
result = imul(result, 31) + this.
|
|
2195
|
+
var result = this.tni_1.hashCode();
|
|
2196
|
+
result = imul(result, 31) + this.uni_1.hashCode() | 0;
|
|
2197
2197
|
return result;
|
|
2198
2198
|
};
|
|
2199
2199
|
protoOf(QuotientAndRemainder).equals = function (other) {
|
|
@@ -2202,25 +2202,25 @@
|
|
|
2202
2202
|
if (!(other instanceof QuotientAndRemainder))
|
|
2203
2203
|
return false;
|
|
2204
2204
|
var tmp0_other_with_cast = other instanceof QuotientAndRemainder ? other : THROW_CCE();
|
|
2205
|
-
if (!this.
|
|
2205
|
+
if (!this.tni_1.equals(tmp0_other_with_cast.tni_1))
|
|
2206
2206
|
return false;
|
|
2207
|
-
if (!this.
|
|
2207
|
+
if (!this.uni_1.equals(tmp0_other_with_cast.uni_1))
|
|
2208
2208
|
return false;
|
|
2209
2209
|
return true;
|
|
2210
2210
|
};
|
|
2211
2211
|
function BigInteger$compareTo$lambda(this$0) {
|
|
2212
2212
|
return function (it) {
|
|
2213
|
-
return this$0.
|
|
2213
|
+
return this$0.hnl(it);
|
|
2214
2214
|
};
|
|
2215
2215
|
}
|
|
2216
2216
|
function BigInteger$compareTo$lambda_0(this$0) {
|
|
2217
2217
|
return function (it) {
|
|
2218
|
-
return this$0.
|
|
2218
|
+
return this$0.hnl(it);
|
|
2219
2219
|
};
|
|
2220
2220
|
}
|
|
2221
2221
|
function BigInteger$javascriptNumberComparison$lambda(this$0) {
|
|
2222
2222
|
return function (it) {
|
|
2223
|
-
return this$0.
|
|
2223
|
+
return this$0.hnl(it);
|
|
2224
2224
|
};
|
|
2225
2225
|
}
|
|
2226
2226
|
function BigInteger(wordArray, requestedSign) {
|
|
@@ -2232,84 +2232,84 @@
|
|
|
2232
2232
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2233
2233
|
}
|
|
2234
2234
|
}
|
|
2235
|
-
this.
|
|
2235
|
+
this.mni_1 = BigInteger63Arithmetic_getInstance().bnn(wordArray);
|
|
2236
2236
|
var tmp = this;
|
|
2237
2237
|
var tmp_0;
|
|
2238
|
-
if (isResultZero(this, this.
|
|
2238
|
+
if (isResultZero(this, this.mni_1)) {
|
|
2239
2239
|
tmp_0 = Sign_ZERO_getInstance();
|
|
2240
2240
|
} else {
|
|
2241
2241
|
tmp_0 = requestedSign;
|
|
2242
2242
|
}
|
|
2243
|
-
tmp.
|
|
2244
|
-
this.
|
|
2245
|
-
this.
|
|
2243
|
+
tmp.nni_1 = tmp_0;
|
|
2244
|
+
this.oni_1 = _ULongArray___get_size__impl__ju6dtr(this.mni_1);
|
|
2245
|
+
this.pni_1 = null;
|
|
2246
2246
|
}
|
|
2247
|
-
protoOf(BigInteger).
|
|
2247
|
+
protoOf(BigInteger).lnh = function () {
|
|
2248
2248
|
return Companion_getInstance_1();
|
|
2249
2249
|
};
|
|
2250
|
-
protoOf(BigInteger).
|
|
2250
|
+
protoOf(BigInteger).mnh = function () {
|
|
2251
2251
|
return this;
|
|
2252
2252
|
};
|
|
2253
|
-
protoOf(BigInteger).
|
|
2254
|
-
return this.
|
|
2253
|
+
protoOf(BigInteger).cnn = function () {
|
|
2254
|
+
return this.nni_1;
|
|
2255
2255
|
};
|
|
2256
|
-
protoOf(BigInteger).
|
|
2257
|
-
var comparison = Companion_getInstance_1().
|
|
2256
|
+
protoOf(BigInteger).dnn = function (other) {
|
|
2257
|
+
var comparison = Companion_getInstance_1().gni_1.hnm(this.mni_1, other.mni_1);
|
|
2258
2258
|
var tmp;
|
|
2259
|
-
if (other.
|
|
2260
|
-
return new BigInteger(Companion_getInstance_1().
|
|
2259
|
+
if (other.nni_1.equals(this.nni_1)) {
|
|
2260
|
+
return new BigInteger(Companion_getInstance_1().gni_1.fnn(this.mni_1, other.mni_1), this.nni_1);
|
|
2261
2261
|
} else {
|
|
2262
2262
|
var tmp_0;
|
|
2263
2263
|
if (comparison > 0) {
|
|
2264
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2264
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().gni_1.enn(this.mni_1, other.mni_1), this.nni_1);
|
|
2265
2265
|
} else if (comparison < 0) {
|
|
2266
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2266
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().gni_1.enn(other.mni_1, this.mni_1), other.nni_1);
|
|
2267
2267
|
} else {
|
|
2268
|
-
tmp_0 = Companion_getInstance_1().
|
|
2268
|
+
tmp_0 = Companion_getInstance_1().hni_1;
|
|
2269
2269
|
}
|
|
2270
2270
|
tmp = tmp_0;
|
|
2271
2271
|
}
|
|
2272
2272
|
return tmp;
|
|
2273
2273
|
};
|
|
2274
|
-
protoOf(BigInteger).
|
|
2275
|
-
return this.
|
|
2274
|
+
protoOf(BigInteger).onh = function (other) {
|
|
2275
|
+
return this.dnn(other instanceof BigInteger ? other : THROW_CCE());
|
|
2276
2276
|
};
|
|
2277
|
-
protoOf(BigInteger).
|
|
2278
|
-
if (this.
|
|
2279
|
-
return other.
|
|
2277
|
+
protoOf(BigInteger).gnn = function (other) {
|
|
2278
|
+
if (this.xni()) {
|
|
2279
|
+
return other.knk();
|
|
2280
2280
|
}
|
|
2281
|
-
if (other.
|
|
2281
|
+
if (other.xni()) {
|
|
2282
2282
|
return this;
|
|
2283
2283
|
}
|
|
2284
2284
|
var tmp;
|
|
2285
|
-
if (other.
|
|
2286
|
-
var comparison = Companion_getInstance_1().
|
|
2285
|
+
if (other.nni_1.equals(this.nni_1)) {
|
|
2286
|
+
var comparison = Companion_getInstance_1().gni_1.hnm(this.mni_1, other.mni_1);
|
|
2287
2287
|
var tmp_0;
|
|
2288
2288
|
if (comparison > 0) {
|
|
2289
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2289
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().gni_1.enn(this.mni_1, other.mni_1), this.nni_1);
|
|
2290
2290
|
} else if (comparison < 0) {
|
|
2291
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2291
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().gni_1.enn(other.mni_1, this.mni_1), this.nni_1.jnn());
|
|
2292
2292
|
} else {
|
|
2293
|
-
tmp_0 = Companion_getInstance_1().
|
|
2293
|
+
tmp_0 = Companion_getInstance_1().hni_1;
|
|
2294
2294
|
}
|
|
2295
2295
|
tmp = tmp_0;
|
|
2296
2296
|
} else {
|
|
2297
|
-
return new BigInteger(Companion_getInstance_1().
|
|
2297
|
+
return new BigInteger(Companion_getInstance_1().gni_1.fnn(this.mni_1, other.mni_1), this.nni_1);
|
|
2298
2298
|
}
|
|
2299
2299
|
return tmp;
|
|
2300
2300
|
};
|
|
2301
|
-
protoOf(BigInteger).
|
|
2302
|
-
return this.
|
|
2301
|
+
protoOf(BigInteger).qnh = function (other) {
|
|
2302
|
+
return this.gnn(other instanceof BigInteger ? other : THROW_CCE());
|
|
2303
2303
|
};
|
|
2304
|
-
protoOf(BigInteger).
|
|
2305
|
-
if (this.
|
|
2306
|
-
return Companion_getInstance_1().
|
|
2304
|
+
protoOf(BigInteger).knn = function (other) {
|
|
2305
|
+
if (this.xni() || other.xni()) {
|
|
2306
|
+
return Companion_getInstance_1().hni_1;
|
|
2307
2307
|
}
|
|
2308
|
-
if (other.equals(Companion_getInstance_1().
|
|
2308
|
+
if (other.equals(Companion_getInstance_1().ini_1)) {
|
|
2309
2309
|
return this;
|
|
2310
2310
|
}
|
|
2311
2311
|
var tmp;
|
|
2312
|
-
if (!this.
|
|
2312
|
+
if (!this.nni_1.equals(other.nni_1)) {
|
|
2313
2313
|
tmp = Sign_NEGATIVE_getInstance();
|
|
2314
2314
|
} else {
|
|
2315
2315
|
tmp = Sign_POSITIVE_getInstance();
|
|
@@ -2317,26 +2317,26 @@
|
|
|
2317
2317
|
var sign = tmp;
|
|
2318
2318
|
var tmp_0;
|
|
2319
2319
|
if (sign.equals(Sign_POSITIVE_getInstance())) {
|
|
2320
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2320
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().gni_1.lnn(this.mni_1, other.mni_1), sign);
|
|
2321
2321
|
} else {
|
|
2322
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2322
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().gni_1.lnn(this.mni_1, other.mni_1), sign);
|
|
2323
2323
|
}
|
|
2324
2324
|
return tmp_0;
|
|
2325
2325
|
};
|
|
2326
|
-
protoOf(BigInteger).
|
|
2327
|
-
return this.
|
|
2326
|
+
protoOf(BigInteger).snh = function (other) {
|
|
2327
|
+
return this.knn(other instanceof BigInteger ? other : THROW_CCE());
|
|
2328
2328
|
};
|
|
2329
|
-
protoOf(BigInteger).
|
|
2330
|
-
if (other.
|
|
2329
|
+
protoOf(BigInteger).mnn = function (other) {
|
|
2330
|
+
if (other.xni()) {
|
|
2331
2331
|
throw ArithmeticException_init_$Create$('Division by zero! ' + this.toString() + ' / ' + other.toString());
|
|
2332
2332
|
}
|
|
2333
|
-
var result = Companion_getInstance_1().
|
|
2333
|
+
var result = Companion_getInstance_1().gni_1.nnn(this.mni_1, other.mni_1).first.xr_1;
|
|
2334
2334
|
var tmp;
|
|
2335
|
-
if (equals(result, Companion_getInstance_1().
|
|
2336
|
-
tmp = Companion_getInstance_1().
|
|
2335
|
+
if (equals(result, Companion_getInstance_1().gni_1.snl())) {
|
|
2336
|
+
tmp = Companion_getInstance_1().hni_1;
|
|
2337
2337
|
} else {
|
|
2338
2338
|
var tmp_0;
|
|
2339
|
-
if (!this.
|
|
2339
|
+
if (!this.nni_1.equals(other.nni_1)) {
|
|
2340
2340
|
tmp_0 = Sign_NEGATIVE_getInstance();
|
|
2341
2341
|
} else {
|
|
2342
2342
|
tmp_0 = Sign_POSITIVE_getInstance();
|
|
@@ -2346,110 +2346,110 @@
|
|
|
2346
2346
|
}
|
|
2347
2347
|
return tmp;
|
|
2348
2348
|
};
|
|
2349
|
-
protoOf(BigInteger).
|
|
2350
|
-
return this.
|
|
2349
|
+
protoOf(BigInteger).unh = function (other) {
|
|
2350
|
+
return this.mnn(other instanceof BigInteger ? other : THROW_CCE());
|
|
2351
2351
|
};
|
|
2352
|
-
protoOf(BigInteger).
|
|
2353
|
-
if (other.
|
|
2352
|
+
protoOf(BigInteger).onn = function (other) {
|
|
2353
|
+
if (other.xni()) {
|
|
2354
2354
|
throw ArithmeticException_init_$Create$('Division by zero! ' + this.toString() + ' / ' + other.toString());
|
|
2355
2355
|
}
|
|
2356
2356
|
var tmp;
|
|
2357
|
-
if (!this.
|
|
2357
|
+
if (!this.nni_1.equals(other.nni_1)) {
|
|
2358
2358
|
tmp = Sign_NEGATIVE_getInstance();
|
|
2359
2359
|
} else {
|
|
2360
2360
|
tmp = Sign_POSITIVE_getInstance();
|
|
2361
2361
|
}
|
|
2362
2362
|
var sign = tmp;
|
|
2363
|
-
var result = Companion_getInstance_1().
|
|
2364
|
-
if (equals(result, Companion_getInstance_1().
|
|
2363
|
+
var result = Companion_getInstance_1().gni_1.nnn(this.mni_1, other.mni_1).second.xr_1;
|
|
2364
|
+
if (equals(result, Companion_getInstance_1().gni_1.snl())) {
|
|
2365
2365
|
sign = Sign_ZERO_getInstance();
|
|
2366
2366
|
}
|
|
2367
2367
|
return new BigInteger(result, sign);
|
|
2368
2368
|
};
|
|
2369
|
-
protoOf(BigInteger).
|
|
2370
|
-
return this.
|
|
2369
|
+
protoOf(BigInteger).wnh = function (other) {
|
|
2370
|
+
return this.onn(other instanceof BigInteger ? other : THROW_CCE());
|
|
2371
2371
|
};
|
|
2372
|
-
protoOf(BigInteger).
|
|
2373
|
-
if (other.
|
|
2372
|
+
protoOf(BigInteger).pnn = function (other) {
|
|
2373
|
+
if (other.xni()) {
|
|
2374
2374
|
throw ArithmeticException_init_$Create$('Division by zero! ' + this.toString() + ' / ' + other.toString());
|
|
2375
2375
|
}
|
|
2376
2376
|
var tmp;
|
|
2377
|
-
if (!this.
|
|
2377
|
+
if (!this.nni_1.equals(other.nni_1)) {
|
|
2378
2378
|
tmp = Sign_NEGATIVE_getInstance();
|
|
2379
2379
|
} else {
|
|
2380
2380
|
tmp = Sign_POSITIVE_getInstance();
|
|
2381
2381
|
}
|
|
2382
2382
|
var sign = tmp;
|
|
2383
|
-
var result = Companion_getInstance_1().
|
|
2383
|
+
var result = Companion_getInstance_1().gni_1.nnn(this.mni_1, other.mni_1);
|
|
2384
2384
|
var tmp_0;
|
|
2385
|
-
if (equals(result.first, new ULongArray(Companion_getInstance_1().
|
|
2386
|
-
tmp_0 = Companion_getInstance_1().
|
|
2385
|
+
if (equals(result.first, new ULongArray(Companion_getInstance_1().gni_1.snl()))) {
|
|
2386
|
+
tmp_0 = Companion_getInstance_1().hni_1;
|
|
2387
2387
|
} else {
|
|
2388
2388
|
tmp_0 = new BigInteger(result.first.xr_1, sign);
|
|
2389
2389
|
}
|
|
2390
2390
|
var quotient = tmp_0;
|
|
2391
2391
|
var tmp_1;
|
|
2392
|
-
if (equals(result.second, new ULongArray(Companion_getInstance_1().
|
|
2393
|
-
tmp_1 = Companion_getInstance_1().
|
|
2392
|
+
if (equals(result.second, new ULongArray(Companion_getInstance_1().gni_1.snl()))) {
|
|
2393
|
+
tmp_1 = Companion_getInstance_1().hni_1;
|
|
2394
2394
|
} else {
|
|
2395
|
-
tmp_1 = new BigInteger(result.second.xr_1, this.
|
|
2395
|
+
tmp_1 = new BigInteger(result.second.xr_1, this.nni_1);
|
|
2396
2396
|
}
|
|
2397
2397
|
var remainder = tmp_1;
|
|
2398
2398
|
return new Pair(quotient, remainder);
|
|
2399
2399
|
};
|
|
2400
|
-
protoOf(BigInteger).
|
|
2401
|
-
var result = this.
|
|
2400
|
+
protoOf(BigInteger).qnn = function (modulo) {
|
|
2401
|
+
var result = this.vnh(modulo);
|
|
2402
2402
|
var tmp;
|
|
2403
|
-
if (result.
|
|
2404
|
-
tmp = result.
|
|
2403
|
+
if (result.znk(0) < 0) {
|
|
2404
|
+
tmp = result.nnh(modulo);
|
|
2405
2405
|
} else {
|
|
2406
2406
|
tmp = result;
|
|
2407
2407
|
}
|
|
2408
2408
|
return tmp;
|
|
2409
2409
|
};
|
|
2410
|
-
protoOf(BigInteger).
|
|
2411
|
-
if (this.
|
|
2410
|
+
protoOf(BigInteger).hnl = function (other) {
|
|
2411
|
+
if (this.xni() && other.xni())
|
|
2412
2412
|
return 0;
|
|
2413
|
-
if (other.
|
|
2413
|
+
if (other.xni() && this.nni_1.equals(Sign_POSITIVE_getInstance()))
|
|
2414
2414
|
return 1;
|
|
2415
|
-
if (other.
|
|
2415
|
+
if (other.xni() && this.nni_1.equals(Sign_NEGATIVE_getInstance()))
|
|
2416
2416
|
return -1;
|
|
2417
|
-
if (this.
|
|
2417
|
+
if (this.xni() && other.nni_1.equals(Sign_POSITIVE_getInstance()))
|
|
2418
2418
|
return -1;
|
|
2419
|
-
if (this.
|
|
2419
|
+
if (this.xni() && other.nni_1.equals(Sign_NEGATIVE_getInstance()))
|
|
2420
2420
|
return 1;
|
|
2421
|
-
if (!this.
|
|
2422
|
-
return this.
|
|
2423
|
-
var result = Companion_getInstance_1().
|
|
2421
|
+
if (!this.nni_1.equals(other.nni_1))
|
|
2422
|
+
return this.nni_1.equals(Sign_POSITIVE_getInstance()) ? 1 : -1;
|
|
2423
|
+
var result = Companion_getInstance_1().gni_1.hnm(this.mni_1, other.mni_1);
|
|
2424
2424
|
var tmp;
|
|
2425
|
-
if (this.
|
|
2425
|
+
if (this.nni_1.equals(Sign_NEGATIVE_getInstance()) && other.nni_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
2426
2426
|
tmp = imul(result, -1);
|
|
2427
2427
|
} else {
|
|
2428
2428
|
tmp = result;
|
|
2429
2429
|
}
|
|
2430
2430
|
return tmp;
|
|
2431
2431
|
};
|
|
2432
|
-
protoOf(BigInteger).
|
|
2433
|
-
return this.
|
|
2432
|
+
protoOf(BigInteger).xni = function () {
|
|
2433
|
+
return this.nni_1.equals(Sign_ZERO_getInstance()) || get_chosenArithmetic().hnm(this.mni_1, get_chosenArithmetic().snl()) === 0;
|
|
2434
2434
|
};
|
|
2435
|
-
protoOf(BigInteger).
|
|
2436
|
-
return new BigInteger(this.
|
|
2435
|
+
protoOf(BigInteger).knk = function () {
|
|
2436
|
+
return new BigInteger(this.mni_1, this.nni_1.jnn());
|
|
2437
2437
|
};
|
|
2438
|
-
protoOf(BigInteger).
|
|
2439
|
-
return new BigInteger(this.
|
|
2438
|
+
protoOf(BigInteger).vni = function () {
|
|
2439
|
+
return new BigInteger(this.mni_1, Sign_POSITIVE_getInstance());
|
|
2440
2440
|
};
|
|
2441
|
-
protoOf(BigInteger).
|
|
2441
|
+
protoOf(BigInteger).rni = function (exponent) {
|
|
2442
2442
|
if (exponent < 0n) {
|
|
2443
2443
|
throw ArithmeticException_init_$Create$('Negative exponent not supported with BigInteger');
|
|
2444
2444
|
}
|
|
2445
2445
|
var tmp;
|
|
2446
|
-
if (this.
|
|
2447
|
-
tmp = Companion_getInstance_1().
|
|
2448
|
-
} else if (this.equals(Companion_getInstance_1().
|
|
2449
|
-
tmp = Companion_getInstance_1().
|
|
2446
|
+
if (this.xni()) {
|
|
2447
|
+
tmp = Companion_getInstance_1().hni_1;
|
|
2448
|
+
} else if (this.equals(Companion_getInstance_1().ini_1)) {
|
|
2449
|
+
tmp = Companion_getInstance_1().ini_1;
|
|
2450
2450
|
} else {
|
|
2451
2451
|
var tmp_0;
|
|
2452
|
-
if (this.
|
|
2452
|
+
if (this.nni_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
2453
2453
|
var tmp_1;
|
|
2454
2454
|
// Inline function 'kotlin.Long.rem' call
|
|
2455
2455
|
if (modulo(exponent, fromInt(2)) === 0n) {
|
|
@@ -2462,16 +2462,16 @@
|
|
|
2462
2462
|
tmp_0 = Sign_POSITIVE_getInstance();
|
|
2463
2463
|
}
|
|
2464
2464
|
var sign = tmp_0;
|
|
2465
|
-
tmp = new BigInteger(Companion_getInstance_1().
|
|
2465
|
+
tmp = new BigInteger(Companion_getInstance_1().gni_1.rnn(this.mni_1, exponent), sign);
|
|
2466
2466
|
}
|
|
2467
2467
|
return tmp;
|
|
2468
2468
|
};
|
|
2469
|
-
protoOf(BigInteger).
|
|
2470
|
-
return this.
|
|
2469
|
+
protoOf(BigInteger).snn = function (exponent) {
|
|
2470
|
+
return this.rni(fromInt(exponent));
|
|
2471
2471
|
};
|
|
2472
|
-
protoOf(BigInteger).
|
|
2472
|
+
protoOf(BigInteger).mnj = function () {
|
|
2473
2473
|
var tmp;
|
|
2474
|
-
switch (this.
|
|
2474
|
+
switch (this.nni_1.a1_1) {
|
|
2475
2475
|
case 0:
|
|
2476
2476
|
tmp = 1;
|
|
2477
2477
|
break;
|
|
@@ -2487,11 +2487,11 @@
|
|
|
2487
2487
|
}
|
|
2488
2488
|
return tmp;
|
|
2489
2489
|
};
|
|
2490
|
-
protoOf(BigInteger).
|
|
2491
|
-
if (this.
|
|
2490
|
+
protoOf(BigInteger).qni = function () {
|
|
2491
|
+
if (this.xni()) {
|
|
2492
2492
|
return 1n;
|
|
2493
2493
|
}
|
|
2494
|
-
var powersOf10 = BigInteger63Arithmetic_getInstance().
|
|
2494
|
+
var powersOf10 = BigInteger63Arithmetic_getInstance().ann_1;
|
|
2495
2495
|
var tmp$ret$1;
|
|
2496
2496
|
$l$block: {
|
|
2497
2497
|
// Inline function 'kotlin.collections.indexOfFirst' call
|
|
@@ -2502,7 +2502,7 @@
|
|
|
2502
2502
|
var index = inductionVariable;
|
|
2503
2503
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2504
2504
|
var it = powersOf10[index].xr_1;
|
|
2505
|
-
if (BigInteger63Arithmetic_getInstance().
|
|
2505
|
+
if (BigInteger63Arithmetic_getInstance().tnn(it, this.mni_1) > 0) {
|
|
2506
2506
|
tmp$ret$1 = index;
|
|
2507
2507
|
break $l$block;
|
|
2508
2508
|
}
|
|
@@ -2514,10 +2514,10 @@
|
|
|
2514
2514
|
if (!(quickSearch === -1)) {
|
|
2515
2515
|
return fromInt(quickSearch);
|
|
2516
2516
|
}
|
|
2517
|
-
var tmp = this.
|
|
2517
|
+
var tmp = this.tnh(Companion_getInstance_1().kni_1.snn(powersOf10.length));
|
|
2518
2518
|
var counter = 0n;
|
|
2519
|
-
while (!tmp.
|
|
2520
|
-
tmp = tmp.
|
|
2519
|
+
while (!tmp.xni()) {
|
|
2520
|
+
tmp = tmp.znh(10);
|
|
2521
2521
|
var _unary__edvuaz = counter;
|
|
2522
2522
|
counter = add(_unary__edvuaz, get_ONE());
|
|
2523
2523
|
}
|
|
@@ -2526,62 +2526,62 @@
|
|
|
2526
2526
|
var other = powersOf10.length;
|
|
2527
2527
|
return add(tmp0, fromInt(other));
|
|
2528
2528
|
};
|
|
2529
|
-
protoOf(BigInteger).
|
|
2530
|
-
var result = new BigInteger(Companion_getInstance_1().
|
|
2531
|
-
if (equals(result.
|
|
2532
|
-
return Companion_getInstance_1().
|
|
2529
|
+
protoOf(BigInteger).unn = function (places) {
|
|
2530
|
+
var result = new BigInteger(Companion_getInstance_1().gni_1.vnn(this.mni_1, places), this.nni_1);
|
|
2531
|
+
if (equals(result.mni_1, Companion_getInstance_1().gni_1.snl())) {
|
|
2532
|
+
return Companion_getInstance_1().hni_1;
|
|
2533
2533
|
}
|
|
2534
2534
|
return result;
|
|
2535
2535
|
};
|
|
2536
|
-
protoOf(BigInteger).
|
|
2537
|
-
return this.
|
|
2536
|
+
protoOf(BigInteger).yni = function () {
|
|
2537
|
+
return this.pnh(Companion_getInstance_1().ini_1);
|
|
2538
2538
|
};
|
|
2539
|
-
protoOf(BigInteger).
|
|
2540
|
-
return this.
|
|
2539
|
+
protoOf(BigInteger).zni = function () {
|
|
2540
|
+
return this.nnh(Companion_getInstance_1().ini_1);
|
|
2541
2541
|
};
|
|
2542
|
-
protoOf(BigInteger).
|
|
2543
|
-
var result = this.
|
|
2542
|
+
protoOf(BigInteger).sni = function (other) {
|
|
2543
|
+
var result = this.pnn(other);
|
|
2544
2544
|
return new QuotientAndRemainder(result.first, result.second);
|
|
2545
2545
|
};
|
|
2546
|
-
protoOf(BigInteger).
|
|
2546
|
+
protoOf(BigInteger).znk = function (other) {
|
|
2547
2547
|
if (isNumber(other)) {
|
|
2548
|
-
if (RuntimePlatform_instance.
|
|
2548
|
+
if (RuntimePlatform_instance.inl().equals(Platform_JS_getInstance())) {
|
|
2549
2549
|
return javascriptNumberComparison_0(this, other);
|
|
2550
2550
|
}
|
|
2551
2551
|
}
|
|
2552
2552
|
var tmp;
|
|
2553
2553
|
if (other instanceof BigInteger) {
|
|
2554
|
-
tmp = this.
|
|
2554
|
+
tmp = this.hnl(other);
|
|
2555
2555
|
} else {
|
|
2556
2556
|
if (typeof other === 'bigint') {
|
|
2557
|
-
tmp = this.
|
|
2557
|
+
tmp = this.hnl(Companion_getInstance_1().ynj(other));
|
|
2558
2558
|
} else {
|
|
2559
2559
|
if (typeof other === 'number') {
|
|
2560
|
-
tmp = this.
|
|
2560
|
+
tmp = this.hnl(Companion_getInstance_1().gnh(other));
|
|
2561
2561
|
} else {
|
|
2562
2562
|
if (typeof other === 'number') {
|
|
2563
|
-
tmp = this.
|
|
2563
|
+
tmp = this.hnl(Companion_getInstance_1().cnk(other));
|
|
2564
2564
|
} else {
|
|
2565
2565
|
if (typeof other === 'number') {
|
|
2566
|
-
tmp = this.
|
|
2566
|
+
tmp = this.hnl(Companion_getInstance_1().enk(other));
|
|
2567
2567
|
} else {
|
|
2568
2568
|
if (other instanceof ULong) {
|
|
2569
|
-
tmp = this.
|
|
2569
|
+
tmp = this.hnl(Companion_getInstance_1().xnl(other.b2_1));
|
|
2570
2570
|
} else {
|
|
2571
2571
|
if (other instanceof UInt) {
|
|
2572
|
-
tmp = this.
|
|
2572
|
+
tmp = this.hnl(Companion_getInstance_1().znl(other.ir_1));
|
|
2573
2573
|
} else {
|
|
2574
2574
|
if (other instanceof UShort) {
|
|
2575
|
-
tmp = this.
|
|
2575
|
+
tmp = this.hnl(Companion_getInstance_1().bnm(other.ds_1));
|
|
2576
2576
|
} else {
|
|
2577
2577
|
if (other instanceof UByte) {
|
|
2578
|
-
tmp = this.
|
|
2578
|
+
tmp = this.hnl(Companion_getInstance_1().dnm(other.c2_1));
|
|
2579
2579
|
} else {
|
|
2580
2580
|
if (typeof other === 'number') {
|
|
2581
|
-
tmp = this.
|
|
2581
|
+
tmp = this.inm(other, BigInteger$compareTo$lambda(this));
|
|
2582
2582
|
} else {
|
|
2583
2583
|
if (typeof other === 'number') {
|
|
2584
|
-
tmp = this.
|
|
2584
|
+
tmp = this.wnn(other, BigInteger$compareTo$lambda_0(this));
|
|
2585
2585
|
} else {
|
|
2586
2586
|
throw RuntimeException_init_$Create$('Invalid comparison type for BigInteger: ' + toString(getKClassFromExpression(other)));
|
|
2587
2587
|
}
|
|
@@ -2598,15 +2598,15 @@
|
|
|
2598
2598
|
return tmp;
|
|
2599
2599
|
};
|
|
2600
2600
|
protoOf(BigInteger).d = function (other) {
|
|
2601
|
-
return this.
|
|
2601
|
+
return this.znk(!(other == null) ? other : THROW_CCE());
|
|
2602
2602
|
};
|
|
2603
|
-
protoOf(BigInteger).
|
|
2603
|
+
protoOf(BigInteger).inm = function (float, comparisonBlock) {
|
|
2604
2604
|
// Inline function 'kotlin.math.floor' call
|
|
2605
2605
|
var withoutDecimalPart = Math.floor(float);
|
|
2606
2606
|
var hasDecimalPart = !(float % 1 === 0.0);
|
|
2607
2607
|
var tmp;
|
|
2608
2608
|
if (hasDecimalPart) {
|
|
2609
|
-
var comparisonResult = comparisonBlock(Companion_getInstance_1().
|
|
2609
|
+
var comparisonResult = comparisonBlock(Companion_getInstance_1().inh(withoutDecimalPart + 1));
|
|
2610
2610
|
var tmp_0;
|
|
2611
2611
|
if (comparisonResult === 0) {
|
|
2612
2612
|
tmp_0 = 1;
|
|
@@ -2615,17 +2615,17 @@
|
|
|
2615
2615
|
}
|
|
2616
2616
|
tmp = tmp_0;
|
|
2617
2617
|
} else {
|
|
2618
|
-
tmp = comparisonBlock(Companion_getInstance_1().
|
|
2618
|
+
tmp = comparisonBlock(Companion_getInstance_1().inh(withoutDecimalPart));
|
|
2619
2619
|
}
|
|
2620
2620
|
return tmp;
|
|
2621
2621
|
};
|
|
2622
|
-
protoOf(BigInteger).
|
|
2622
|
+
protoOf(BigInteger).wnn = function (double, comparisonBlock) {
|
|
2623
2623
|
// Inline function 'kotlin.math.floor' call
|
|
2624
2624
|
var withoutDecimalPart = Math.floor(double);
|
|
2625
2625
|
var hasDecimalPart = !(double % 1 === 0.0);
|
|
2626
2626
|
var tmp;
|
|
2627
2627
|
if (hasDecimalPart) {
|
|
2628
|
-
var comparisonResult = comparisonBlock(Companion_getInstance_1().
|
|
2628
|
+
var comparisonResult = comparisonBlock(Companion_getInstance_1().knh(withoutDecimalPart + 1));
|
|
2629
2629
|
var tmp_0;
|
|
2630
2630
|
if (comparisonResult === 0) {
|
|
2631
2631
|
tmp_0 = 1;
|
|
@@ -2634,38 +2634,38 @@
|
|
|
2634
2634
|
}
|
|
2635
2635
|
tmp = tmp_0;
|
|
2636
2636
|
} else {
|
|
2637
|
-
tmp = comparisonBlock(Companion_getInstance_1().
|
|
2637
|
+
tmp = comparisonBlock(Companion_getInstance_1().knh(withoutDecimalPart));
|
|
2638
2638
|
}
|
|
2639
2639
|
return tmp;
|
|
2640
2640
|
};
|
|
2641
2641
|
protoOf(BigInteger).equals = function (other) {
|
|
2642
2642
|
var tmp;
|
|
2643
2643
|
if (other instanceof BigInteger) {
|
|
2644
|
-
tmp = this.
|
|
2644
|
+
tmp = this.hnl(other);
|
|
2645
2645
|
} else {
|
|
2646
2646
|
if (!(other == null) ? typeof other === 'bigint' : false) {
|
|
2647
|
-
tmp = this.
|
|
2647
|
+
tmp = this.hnl(Companion_getInstance_1().ynj(other));
|
|
2648
2648
|
} else {
|
|
2649
2649
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
2650
|
-
tmp = this.
|
|
2650
|
+
tmp = this.hnl(Companion_getInstance_1().gnh(other));
|
|
2651
2651
|
} else {
|
|
2652
2652
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
2653
|
-
tmp = this.
|
|
2653
|
+
tmp = this.hnl(Companion_getInstance_1().cnk(other));
|
|
2654
2654
|
} else {
|
|
2655
2655
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
2656
|
-
tmp = this.
|
|
2656
|
+
tmp = this.hnl(Companion_getInstance_1().enk(other));
|
|
2657
2657
|
} else {
|
|
2658
2658
|
if (other instanceof ULong) {
|
|
2659
|
-
tmp = this.
|
|
2659
|
+
tmp = this.hnl(Companion_getInstance_1().xnl(other.b2_1));
|
|
2660
2660
|
} else {
|
|
2661
2661
|
if (other instanceof UInt) {
|
|
2662
|
-
tmp = this.
|
|
2662
|
+
tmp = this.hnl(Companion_getInstance_1().znl(other.ir_1));
|
|
2663
2663
|
} else {
|
|
2664
2664
|
if (other instanceof UShort) {
|
|
2665
|
-
tmp = this.
|
|
2665
|
+
tmp = this.hnl(Companion_getInstance_1().bnm(other.ds_1));
|
|
2666
2666
|
} else {
|
|
2667
2667
|
if (other instanceof UByte) {
|
|
2668
|
-
tmp = this.
|
|
2668
|
+
tmp = this.hnl(Companion_getInstance_1().dnm(other.c2_1));
|
|
2669
2669
|
} else {
|
|
2670
2670
|
tmp = -1;
|
|
2671
2671
|
}
|
|
@@ -2682,42 +2682,42 @@
|
|
|
2682
2682
|
};
|
|
2683
2683
|
protoOf(BigInteger).hashCode = function () {
|
|
2684
2684
|
// Inline function 'kotlin.collections.fold' call
|
|
2685
|
-
var this_0 = this.
|
|
2685
|
+
var this_0 = this.mni_1;
|
|
2686
2686
|
var accumulator = 0;
|
|
2687
2687
|
var _iterator__ex2g4s = ULongArray__iterator_impl_cq4d2h(this_0);
|
|
2688
2688
|
while (_iterator__ex2g4s.u()) {
|
|
2689
2689
|
var element = _iterator__ex2g4s.v().b2_1;
|
|
2690
2690
|
accumulator = accumulator + ULong__hashCode_impl_6hv2lb(element) | 0;
|
|
2691
2691
|
}
|
|
2692
|
-
return accumulator + this.
|
|
2692
|
+
return accumulator + this.nni_1.hashCode() | 0;
|
|
2693
2693
|
};
|
|
2694
2694
|
protoOf(BigInteger).toString = function () {
|
|
2695
|
-
return this.
|
|
2695
|
+
return this.knl(10);
|
|
2696
2696
|
};
|
|
2697
|
-
protoOf(BigInteger).
|
|
2697
|
+
protoOf(BigInteger).knl = function (base) {
|
|
2698
2698
|
var tmp;
|
|
2699
|
-
if (this.
|
|
2699
|
+
if (this.nni_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
2700
2700
|
tmp = '-';
|
|
2701
2701
|
} else {
|
|
2702
2702
|
tmp = '';
|
|
2703
2703
|
}
|
|
2704
2704
|
var sign = tmp;
|
|
2705
|
-
return sign + this.
|
|
2705
|
+
return sign + this.lnl(base);
|
|
2706
2706
|
};
|
|
2707
|
-
protoOf(BigInteger).
|
|
2708
|
-
return Companion_getInstance_1().
|
|
2707
|
+
protoOf(BigInteger).lnl = function (base) {
|
|
2708
|
+
return Companion_getInstance_1().gni_1.xnn(this.mni_1, base);
|
|
2709
2709
|
};
|
|
2710
|
-
protoOf(BigInteger).
|
|
2711
|
-
if (exactRequired && (this.
|
|
2710
|
+
protoOf(BigInteger).wni = function (exactRequired) {
|
|
2711
|
+
if (exactRequired && (this.znk(2147483647) > 0 || this.znk(-2147483648) < 0)) {
|
|
2712
2712
|
throw ArithmeticException_init_$Create$('Cannot convert to int and provide exact value');
|
|
2713
2713
|
}
|
|
2714
2714
|
// Inline function 'kotlin.ULong.toInt' call
|
|
2715
|
-
var this_0 = ULongArray__get_impl_pr71q9(this.
|
|
2715
|
+
var this_0 = ULongArray__get_impl_pr71q9(this.mni_1, 0);
|
|
2716
2716
|
var tmp$ret$0 = convertToInt(_ULong___get_data__impl__fggpzb(this_0));
|
|
2717
|
-
return imul(tmp$ret$0, this.
|
|
2717
|
+
return imul(tmp$ret$0, this.mnj());
|
|
2718
2718
|
};
|
|
2719
|
-
protoOf(BigInteger).
|
|
2720
|
-
return Companion_getInstance_1().
|
|
2719
|
+
protoOf(BigInteger).ynn = function () {
|
|
2720
|
+
return Companion_getInstance_1().gni_1.znn(this.mni_1);
|
|
2721
2721
|
};
|
|
2722
2722
|
var Sign_POSITIVE_instance;
|
|
2723
2723
|
var Sign_NEGATIVE_instance;
|
|
@@ -2734,7 +2734,7 @@
|
|
|
2734
2734
|
function Sign(name, ordinal) {
|
|
2735
2735
|
Enum.call(this, name, ordinal);
|
|
2736
2736
|
}
|
|
2737
|
-
protoOf(Sign).
|
|
2737
|
+
protoOf(Sign).jnn = function () {
|
|
2738
2738
|
var tmp;
|
|
2739
2739
|
switch (this.a1_1) {
|
|
2740
2740
|
case 0:
|
|
@@ -2765,7 +2765,7 @@
|
|
|
2765
2765
|
return Sign_ZERO_instance;
|
|
2766
2766
|
}
|
|
2767
2767
|
function toBigInteger(_this__u8e3s4) {
|
|
2768
|
-
return Companion_getInstance_1().
|
|
2768
|
+
return Companion_getInstance_1().gnh(_this__u8e3s4);
|
|
2769
2769
|
}
|
|
2770
2770
|
function get_chosenArithmetic() {
|
|
2771
2771
|
_init_properties_Configuration_kt__48zwcc();
|
|
@@ -2805,41 +2805,41 @@
|
|
|
2805
2805
|
return Platform_WASMJS_instance;
|
|
2806
2806
|
}
|
|
2807
2807
|
function Sextuple(a, b, c, d, e, f) {
|
|
2808
|
-
this.
|
|
2809
|
-
this.
|
|
2810
|
-
this.
|
|
2811
|
-
this.
|
|
2812
|
-
this.
|
|
2813
|
-
this.
|
|
2808
|
+
this.ano_1 = a;
|
|
2809
|
+
this.bno_1 = b;
|
|
2810
|
+
this.cno_1 = c;
|
|
2811
|
+
this.dno_1 = d;
|
|
2812
|
+
this.eno_1 = e;
|
|
2813
|
+
this.fno_1 = f;
|
|
2814
2814
|
}
|
|
2815
2815
|
protoOf(Sextuple).xg = function () {
|
|
2816
|
-
return this.
|
|
2816
|
+
return this.ano_1;
|
|
2817
2817
|
};
|
|
2818
2818
|
protoOf(Sextuple).yg = function () {
|
|
2819
|
-
return this.
|
|
2819
|
+
return this.bno_1;
|
|
2820
2820
|
};
|
|
2821
2821
|
protoOf(Sextuple).lq = function () {
|
|
2822
|
-
return this.
|
|
2822
|
+
return this.cno_1;
|
|
2823
2823
|
};
|
|
2824
2824
|
protoOf(Sextuple).v6i = function () {
|
|
2825
|
-
return this.
|
|
2825
|
+
return this.dno_1;
|
|
2826
2826
|
};
|
|
2827
2827
|
protoOf(Sextuple).w6i = function () {
|
|
2828
|
-
return this.
|
|
2828
|
+
return this.eno_1;
|
|
2829
2829
|
};
|
|
2830
2830
|
protoOf(Sextuple).x6i = function () {
|
|
2831
|
-
return this.
|
|
2831
|
+
return this.fno_1;
|
|
2832
2832
|
};
|
|
2833
2833
|
protoOf(Sextuple).toString = function () {
|
|
2834
|
-
return 'Sextuple(a=' + toString_0(this.
|
|
2834
|
+
return 'Sextuple(a=' + toString_0(this.ano_1) + ', b=' + toString_0(this.bno_1) + ', c=' + toString_0(this.cno_1) + ', d=' + toString_0(this.dno_1) + ', e=' + toString_0(this.eno_1) + ', f=' + toString_0(this.fno_1) + ')';
|
|
2835
2835
|
};
|
|
2836
2836
|
protoOf(Sextuple).hashCode = function () {
|
|
2837
|
-
var result = this.
|
|
2838
|
-
result = imul(result, 31) + (this.ynn_1 == null ? 0 : hashCode(this.ynn_1)) | 0;
|
|
2839
|
-
result = imul(result, 31) + (this.znn_1 == null ? 0 : hashCode(this.znn_1)) | 0;
|
|
2840
|
-
result = imul(result, 31) + (this.ano_1 == null ? 0 : hashCode(this.ano_1)) | 0;
|
|
2837
|
+
var result = this.ano_1 == null ? 0 : hashCode(this.ano_1);
|
|
2841
2838
|
result = imul(result, 31) + (this.bno_1 == null ? 0 : hashCode(this.bno_1)) | 0;
|
|
2842
2839
|
result = imul(result, 31) + (this.cno_1 == null ? 0 : hashCode(this.cno_1)) | 0;
|
|
2840
|
+
result = imul(result, 31) + (this.dno_1 == null ? 0 : hashCode(this.dno_1)) | 0;
|
|
2841
|
+
result = imul(result, 31) + (this.eno_1 == null ? 0 : hashCode(this.eno_1)) | 0;
|
|
2842
|
+
result = imul(result, 31) + (this.fno_1 == null ? 0 : hashCode(this.fno_1)) | 0;
|
|
2843
2843
|
return result;
|
|
2844
2844
|
};
|
|
2845
2845
|
protoOf(Sextuple).equals = function (other) {
|
|
@@ -2848,46 +2848,46 @@
|
|
|
2848
2848
|
if (!(other instanceof Sextuple))
|
|
2849
2849
|
return false;
|
|
2850
2850
|
var tmp0_other_with_cast = other instanceof Sextuple ? other : THROW_CCE();
|
|
2851
|
-
if (!equals(this.xnn_1, tmp0_other_with_cast.xnn_1))
|
|
2852
|
-
return false;
|
|
2853
|
-
if (!equals(this.ynn_1, tmp0_other_with_cast.ynn_1))
|
|
2854
|
-
return false;
|
|
2855
|
-
if (!equals(this.znn_1, tmp0_other_with_cast.znn_1))
|
|
2856
|
-
return false;
|
|
2857
2851
|
if (!equals(this.ano_1, tmp0_other_with_cast.ano_1))
|
|
2858
2852
|
return false;
|
|
2859
2853
|
if (!equals(this.bno_1, tmp0_other_with_cast.bno_1))
|
|
2860
2854
|
return false;
|
|
2861
2855
|
if (!equals(this.cno_1, tmp0_other_with_cast.cno_1))
|
|
2862
2856
|
return false;
|
|
2857
|
+
if (!equals(this.dno_1, tmp0_other_with_cast.dno_1))
|
|
2858
|
+
return false;
|
|
2859
|
+
if (!equals(this.eno_1, tmp0_other_with_cast.eno_1))
|
|
2860
|
+
return false;
|
|
2861
|
+
if (!equals(this.fno_1, tmp0_other_with_cast.fno_1))
|
|
2862
|
+
return false;
|
|
2863
2863
|
return true;
|
|
2864
2864
|
};
|
|
2865
2865
|
function Quadruple(a, b, c, d) {
|
|
2866
|
-
this.
|
|
2867
|
-
this.
|
|
2868
|
-
this.
|
|
2869
|
-
this.
|
|
2866
|
+
this.gno_1 = a;
|
|
2867
|
+
this.hno_1 = b;
|
|
2868
|
+
this.ino_1 = c;
|
|
2869
|
+
this.jno_1 = d;
|
|
2870
2870
|
}
|
|
2871
2871
|
protoOf(Quadruple).xg = function () {
|
|
2872
|
-
return this.
|
|
2872
|
+
return this.gno_1;
|
|
2873
2873
|
};
|
|
2874
2874
|
protoOf(Quadruple).yg = function () {
|
|
2875
|
-
return this.
|
|
2875
|
+
return this.hno_1;
|
|
2876
2876
|
};
|
|
2877
2877
|
protoOf(Quadruple).lq = function () {
|
|
2878
|
-
return this.
|
|
2878
|
+
return this.ino_1;
|
|
2879
2879
|
};
|
|
2880
2880
|
protoOf(Quadruple).v6i = function () {
|
|
2881
|
-
return this.
|
|
2881
|
+
return this.jno_1;
|
|
2882
2882
|
};
|
|
2883
2883
|
protoOf(Quadruple).toString = function () {
|
|
2884
|
-
return 'Quadruple(a=' + toString_0(this.
|
|
2884
|
+
return 'Quadruple(a=' + toString_0(this.gno_1) + ', b=' + toString_0(this.hno_1) + ', c=' + toString_0(this.ino_1) + ', d=' + toString_0(this.jno_1) + ')';
|
|
2885
2885
|
};
|
|
2886
2886
|
protoOf(Quadruple).hashCode = function () {
|
|
2887
|
-
var result = this.
|
|
2888
|
-
result = imul(result, 31) + (this.
|
|
2889
|
-
result = imul(result, 31) + (this.
|
|
2890
|
-
result = imul(result, 31) + (this.
|
|
2887
|
+
var result = this.gno_1 == null ? 0 : hashCode(this.gno_1);
|
|
2888
|
+
result = imul(result, 31) + (this.hno_1 == null ? 0 : hashCode(this.hno_1)) | 0;
|
|
2889
|
+
result = imul(result, 31) + (this.ino_1 == null ? 0 : hashCode(this.ino_1)) | 0;
|
|
2890
|
+
result = imul(result, 31) + (this.jno_1 == null ? 0 : hashCode(this.jno_1)) | 0;
|
|
2891
2891
|
return result;
|
|
2892
2892
|
};
|
|
2893
2893
|
protoOf(Quadruple).equals = function (other) {
|
|
@@ -2896,26 +2896,26 @@
|
|
|
2896
2896
|
if (!(other instanceof Quadruple))
|
|
2897
2897
|
return false;
|
|
2898
2898
|
var tmp0_other_with_cast = other instanceof Quadruple ? other : THROW_CCE();
|
|
2899
|
-
if (!equals(this.
|
|
2899
|
+
if (!equals(this.gno_1, tmp0_other_with_cast.gno_1))
|
|
2900
2900
|
return false;
|
|
2901
|
-
if (!equals(this.
|
|
2901
|
+
if (!equals(this.hno_1, tmp0_other_with_cast.hno_1))
|
|
2902
2902
|
return false;
|
|
2903
|
-
if (!equals(this.
|
|
2903
|
+
if (!equals(this.ino_1, tmp0_other_with_cast.ino_1))
|
|
2904
2904
|
return false;
|
|
2905
|
-
if (!equals(this.
|
|
2905
|
+
if (!equals(this.jno_1, tmp0_other_with_cast.jno_1))
|
|
2906
2906
|
return false;
|
|
2907
2907
|
return true;
|
|
2908
2908
|
};
|
|
2909
2909
|
function SignedUIntArray(unsignedValue, sign) {
|
|
2910
|
-
this.
|
|
2911
|
-
this.
|
|
2910
|
+
this.kno_1 = unsignedValue;
|
|
2911
|
+
this.lno_1 = sign;
|
|
2912
2912
|
}
|
|
2913
2913
|
protoOf(SignedUIntArray).toString = function () {
|
|
2914
|
-
return 'SignedUIntArray(unsignedValue=' + UIntArray__toString_impl_3zy802(this.
|
|
2914
|
+
return 'SignedUIntArray(unsignedValue=' + UIntArray__toString_impl_3zy802(this.kno_1) + ', sign=' + this.lno_1 + ')';
|
|
2915
2915
|
};
|
|
2916
2916
|
protoOf(SignedUIntArray).hashCode = function () {
|
|
2917
|
-
var result = UIntArray__hashCode_impl_hr7ost(this.
|
|
2918
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2917
|
+
var result = UIntArray__hashCode_impl_hr7ost(this.kno_1);
|
|
2918
|
+
result = imul(result, 31) + getBooleanHashCode(this.lno_1) | 0;
|
|
2919
2919
|
return result;
|
|
2920
2920
|
};
|
|
2921
2921
|
protoOf(SignedUIntArray).equals = function (other) {
|
|
@@ -2924,9 +2924,9 @@
|
|
|
2924
2924
|
if (!(other instanceof SignedUIntArray))
|
|
2925
2925
|
return false;
|
|
2926
2926
|
var tmp0_other_with_cast = other instanceof SignedUIntArray ? other : THROW_CCE();
|
|
2927
|
-
if (!equals(this.
|
|
2927
|
+
if (!equals(this.kno_1, tmp0_other_with_cast.kno_1))
|
|
2928
2928
|
return false;
|
|
2929
|
-
if (!(this.
|
|
2929
|
+
if (!(this.lno_1 === tmp0_other_with_cast.lno_1))
|
|
2930
2930
|
return false;
|
|
2931
2931
|
return true;
|
|
2932
2932
|
};
|
|
@@ -2934,15 +2934,15 @@
|
|
|
2934
2934
|
BigInteger32Arithmetic_instance = this;
|
|
2935
2935
|
var tmp = this;
|
|
2936
2936
|
// Inline function 'kotlin.intArrayOf' call
|
|
2937
|
-
tmp.
|
|
2938
|
-
this.
|
|
2939
|
-
this.lno_1 = _UInt___init__impl__l7qpdl(-1);
|
|
2940
|
-
this.mno_1 = _ULong___init__impl__c78o9k(4294967296n);
|
|
2941
|
-
this.nno_1 = _ULong___init__impl__c78o9k(65535n);
|
|
2937
|
+
tmp.mno_1 = new Int32Array([]);
|
|
2938
|
+
this.nno_1 = _ULong___init__impl__c78o9k(4294967295n);
|
|
2942
2939
|
this.ono_1 = _UInt___init__impl__l7qpdl(-1);
|
|
2943
|
-
this.pno_1 =
|
|
2944
|
-
this.qno_1 =
|
|
2945
|
-
this.rno_1 =
|
|
2940
|
+
this.pno_1 = _ULong___init__impl__c78o9k(4294967296n);
|
|
2941
|
+
this.qno_1 = _ULong___init__impl__c78o9k(65535n);
|
|
2942
|
+
this.rno_1 = _UInt___init__impl__l7qpdl(-1);
|
|
2943
|
+
this.sno_1 = 32;
|
|
2944
|
+
this.tno_1 = 32;
|
|
2945
|
+
this.uno_1 = _UIntArray___init__impl__ghjpc6(0);
|
|
2946
2946
|
var tmp_0 = this;
|
|
2947
2947
|
// Inline function 'kotlin.UIntArray' call
|
|
2948
2948
|
var tmp_1 = 0;
|
|
@@ -2954,7 +2954,7 @@
|
|
|
2954
2954
|
tmp_2[tmp_3] = _UInt___get_data__impl__f0vqqw(this_0);
|
|
2955
2955
|
tmp_1 = tmp_1 + 1 | 0;
|
|
2956
2956
|
}
|
|
2957
|
-
tmp_0.
|
|
2957
|
+
tmp_0.vno_1 = _UIntArray___init__impl__ghjpc6_0(tmp_2);
|
|
2958
2958
|
var tmp_4 = this;
|
|
2959
2959
|
// Inline function 'kotlin.UIntArray' call
|
|
2960
2960
|
var tmp_5 = 0;
|
|
@@ -2966,7 +2966,7 @@
|
|
|
2966
2966
|
tmp_6[tmp_7] = _UInt___get_data__impl__f0vqqw(this_1);
|
|
2967
2967
|
tmp_5 = tmp_5 + 1 | 0;
|
|
2968
2968
|
}
|
|
2969
|
-
tmp_4.
|
|
2969
|
+
tmp_4.wno_1 = _UIntArray___init__impl__ghjpc6_0(tmp_6);
|
|
2970
2970
|
var tmp_8 = this;
|
|
2971
2971
|
// Inline function 'kotlin.UIntArray' call
|
|
2972
2972
|
var tmp_9 = 0;
|
|
@@ -2978,15 +2978,15 @@
|
|
|
2978
2978
|
tmp_10[tmp_11] = _UInt___get_data__impl__f0vqqw(this_2);
|
|
2979
2979
|
tmp_9 = tmp_9 + 1 | 0;
|
|
2980
2980
|
}
|
|
2981
|
-
tmp_8.
|
|
2982
|
-
this.
|
|
2983
|
-
this.
|
|
2984
|
-
this.
|
|
2981
|
+
tmp_8.xno_1 = _UIntArray___init__impl__ghjpc6_0(tmp_10);
|
|
2982
|
+
this.yno_1 = 60;
|
|
2983
|
+
this.zno_1 = 15000;
|
|
2984
|
+
this.anp_1 = new SignedUIntArray(this.wno_1, true);
|
|
2985
2985
|
}
|
|
2986
|
-
protoOf(BigInteger32Arithmetic).
|
|
2986
|
+
protoOf(BigInteger32Arithmetic).bnp = function (value) {
|
|
2987
2987
|
var x = value;
|
|
2988
2988
|
var y;
|
|
2989
|
-
var n = this.
|
|
2989
|
+
var n = this.sno_1;
|
|
2990
2990
|
// Inline function 'kotlin.UInt.shr' call
|
|
2991
2991
|
var this_0 = x;
|
|
2992
2992
|
y = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_0) >>> 16 | 0);
|
|
@@ -3026,17 +3026,17 @@
|
|
|
3026
3026
|
var this_5 = x;
|
|
3027
3027
|
return tmp - _UInt___get_data__impl__f0vqqw(this_5) | 0;
|
|
3028
3028
|
};
|
|
3029
|
-
protoOf(BigInteger32Arithmetic).
|
|
3029
|
+
protoOf(BigInteger32Arithmetic).cnp = function (value) {
|
|
3030
3030
|
if (UIntArray__isEmpty_impl_vd8j4n(value)) {
|
|
3031
3031
|
return 0;
|
|
3032
3032
|
}
|
|
3033
3033
|
var mostSignificant = UIntArray__get_impl_gp5kza(value, _UIntArray___get_size__impl__r6l8ci(value) - 1 | 0);
|
|
3034
|
-
return this.
|
|
3034
|
+
return this.dnp(mostSignificant) + imul(_UIntArray___get_size__impl__r6l8ci(value) - 1 | 0, this.sno_1) | 0;
|
|
3035
3035
|
};
|
|
3036
|
-
protoOf(BigInteger32Arithmetic).
|
|
3037
|
-
return this.
|
|
3036
|
+
protoOf(BigInteger32Arithmetic).dnp = function (value) {
|
|
3037
|
+
return this.sno_1 - this.bnp(value) | 0;
|
|
3038
3038
|
};
|
|
3039
|
-
protoOf(BigInteger32Arithmetic).
|
|
3039
|
+
protoOf(BigInteger32Arithmetic).enp = function (bigInteger) {
|
|
3040
3040
|
// Inline function 'kotlin.collections.indexOfLast' call
|
|
3041
3041
|
var tmp0 = _UIntArray___get_storage__impl__92a0v0(bigInteger);
|
|
3042
3042
|
var tmp$ret$3;
|
|
@@ -3059,12 +3059,12 @@
|
|
|
3059
3059
|
}
|
|
3060
3060
|
var firstEmpty = tmp$ret$3 + 1 | 0;
|
|
3061
3061
|
if (firstEmpty === -1 || firstEmpty === 0) {
|
|
3062
|
-
return this.
|
|
3062
|
+
return this.uno_1;
|
|
3063
3063
|
}
|
|
3064
3064
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
3065
3065
|
return _UIntArray___init__impl__ghjpc6_0(copyOfRange(_UIntArray___get_storage__impl__92a0v0(bigInteger), 0, firstEmpty));
|
|
3066
3066
|
};
|
|
3067
|
-
protoOf(BigInteger32Arithmetic).
|
|
3067
|
+
protoOf(BigInteger32Arithmetic).fnp = function (bigInteger) {
|
|
3068
3068
|
var lastNonEmptyIndex = _UIntArray___get_size__impl__r6l8ci(bigInteger) - 1 | 0;
|
|
3069
3069
|
if (lastNonEmptyIndex <= 0) {
|
|
3070
3070
|
return 0;
|
|
@@ -3079,14 +3079,14 @@
|
|
|
3079
3079
|
}
|
|
3080
3080
|
return (_UIntArray___get_size__impl__r6l8ci(bigInteger) - lastNonEmptyIndex | 0) - 1 | 0;
|
|
3081
3081
|
};
|
|
3082
|
-
protoOf(BigInteger32Arithmetic).
|
|
3082
|
+
protoOf(BigInteger32Arithmetic).gnp = function (operand, places) {
|
|
3083
3083
|
if (UIntArray__isEmpty_impl_vd8j4n(operand) || places === 0) {
|
|
3084
3084
|
return operand;
|
|
3085
3085
|
}
|
|
3086
3086
|
var originalSize = _UIntArray___get_size__impl__r6l8ci(operand);
|
|
3087
|
-
var leadingZeros = this.
|
|
3088
|
-
var shiftWords = places / this.
|
|
3089
|
-
var shiftBits = places % this.
|
|
3087
|
+
var leadingZeros = this.bnp(UIntArray__get_impl_gp5kza(operand, _UIntArray___get_size__impl__r6l8ci(operand) - 1 | 0));
|
|
3088
|
+
var shiftWords = places / this.sno_1 | 0;
|
|
3089
|
+
var shiftBits = places % this.sno_1 | 0;
|
|
3090
3090
|
var tmp;
|
|
3091
3091
|
if (shiftBits > leadingZeros) {
|
|
3092
3092
|
tmp = shiftWords + 1 | 0;
|
|
@@ -3130,7 +3130,7 @@
|
|
|
3130
3130
|
var tmp0 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_2) << shiftBits);
|
|
3131
3131
|
var tmp0_0 = UIntArray__get_impl_gp5kza(operand, (tmp_7 - shiftWords | 0) - 1 | 0);
|
|
3132
3132
|
// Inline function 'kotlin.UInt.shr' call
|
|
3133
|
-
var bitCount = BigInteger32Arithmetic_getInstance().
|
|
3133
|
+
var bitCount = BigInteger32Arithmetic_getInstance().sno_1 - shiftBits | 0;
|
|
3134
3134
|
// Inline function 'kotlin.UInt.or' call
|
|
3135
3135
|
var other = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_0) >>> bitCount | 0);
|
|
3136
3136
|
tmp_8 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0) | _UInt___get_data__impl__f0vqqw(other));
|
|
@@ -3138,7 +3138,7 @@
|
|
|
3138
3138
|
if (tmp_7 === ((originalSize + wordsNeeded | 0) - 1 | 0)) {
|
|
3139
3139
|
var tmp0_1 = UIntArray__get_impl_gp5kza(operand, tmp_7 - wordsNeeded | 0);
|
|
3140
3140
|
// Inline function 'kotlin.UInt.shr' call
|
|
3141
|
-
var bitCount_0 = BigInteger32Arithmetic_getInstance().
|
|
3141
|
+
var bitCount_0 = BigInteger32Arithmetic_getInstance().sno_1 - shiftBits | 0;
|
|
3142
3142
|
tmp_8 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_1) >>> bitCount_0 | 0);
|
|
3143
3143
|
} else {
|
|
3144
3144
|
throw RuntimeException_init_$Create$('Invalid case ' + tmp_7);
|
|
@@ -3153,14 +3153,14 @@
|
|
|
3153
3153
|
}
|
|
3154
3154
|
return _UIntArray___init__impl__ghjpc6_0(tmp_6);
|
|
3155
3155
|
};
|
|
3156
|
-
protoOf(BigInteger32Arithmetic).
|
|
3156
|
+
protoOf(BigInteger32Arithmetic).hnp = function (operand, places) {
|
|
3157
3157
|
if (UIntArray__isEmpty_impl_vd8j4n(operand) || places === 0) {
|
|
3158
3158
|
return operand;
|
|
3159
3159
|
}
|
|
3160
|
-
var shiftBits = places % this.
|
|
3161
|
-
var wordsToDiscard = places / this.
|
|
3160
|
+
var shiftBits = places % this.sno_1 | 0;
|
|
3161
|
+
var wordsToDiscard = places / this.sno_1 | 0;
|
|
3162
3162
|
if (wordsToDiscard >= _UIntArray___get_size__impl__r6l8ci(operand)) {
|
|
3163
|
-
return this.
|
|
3163
|
+
return this.uno_1;
|
|
3164
3164
|
}
|
|
3165
3165
|
if (shiftBits === 0) {
|
|
3166
3166
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
@@ -3187,7 +3187,7 @@
|
|
|
3187
3187
|
var tmp0 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_1) >>> shiftBits | 0);
|
|
3188
3188
|
var tmp0_0 = UIntArray__get_impl_gp5kza(operand, (tmp_2 + wordsToDiscard | 0) + 1 | 0);
|
|
3189
3189
|
// Inline function 'kotlin.UInt.shl' call
|
|
3190
|
-
var bitCount = BigInteger32Arithmetic_getInstance().
|
|
3190
|
+
var bitCount = BigInteger32Arithmetic_getInstance().sno_1 - shiftBits | 0;
|
|
3191
3191
|
// Inline function 'kotlin.UInt.or' call
|
|
3192
3192
|
var other = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_0) << bitCount);
|
|
3193
3193
|
tmp_3 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0) | _UInt___get_data__impl__f0vqqw(other));
|
|
@@ -3204,22 +3204,22 @@
|
|
|
3204
3204
|
tmp = tmp + 1 | 0;
|
|
3205
3205
|
}
|
|
3206
3206
|
var result = _UIntArray___init__impl__ghjpc6_0(tmp_1);
|
|
3207
|
-
return this.
|
|
3207
|
+
return this.enp(result);
|
|
3208
3208
|
};
|
|
3209
|
-
protoOf(BigInteger32Arithmetic).
|
|
3209
|
+
protoOf(BigInteger32Arithmetic).inp = function (dividend, divisor) {
|
|
3210
3210
|
var divisorSize = _UIntArray___get_size__impl__r6l8ci(divisor);
|
|
3211
|
-
var normalizationShift = this.
|
|
3212
|
-
var divisorNormalized = this.
|
|
3213
|
-
var dividendNormalized = this.
|
|
3211
|
+
var normalizationShift = this.bnp(UIntArray__get_impl_gp5kza(divisor, divisorSize - 1 | 0));
|
|
3212
|
+
var divisorNormalized = this.jnp(divisor, normalizationShift);
|
|
3213
|
+
var dividendNormalized = this.jnp(dividend, normalizationShift);
|
|
3214
3214
|
return new Triple(new UIntArray(dividendNormalized), new UIntArray(divisorNormalized), normalizationShift);
|
|
3215
3215
|
};
|
|
3216
|
-
protoOf(BigInteger32Arithmetic).
|
|
3217
|
-
var remainder = this.
|
|
3216
|
+
protoOf(BigInteger32Arithmetic).knp = function (remainderNormalized, normalizationShift) {
|
|
3217
|
+
var remainder = this.lnp(remainderNormalized, normalizationShift);
|
|
3218
3218
|
return remainder;
|
|
3219
3219
|
};
|
|
3220
|
-
protoOf(BigInteger32Arithmetic).
|
|
3221
|
-
var firstStart = _UIntArray___get_size__impl__r6l8ci(first) - this.
|
|
3222
|
-
var secondStart = _UIntArray___get_size__impl__r6l8ci(second) - this.
|
|
3220
|
+
protoOf(BigInteger32Arithmetic).mnp = function (first, second) {
|
|
3221
|
+
var firstStart = _UIntArray___get_size__impl__r6l8ci(first) - this.fnp(first) | 0;
|
|
3222
|
+
var secondStart = _UIntArray___get_size__impl__r6l8ci(second) - this.fnp(second) | 0;
|
|
3223
3223
|
if (firstStart > secondStart) {
|
|
3224
3224
|
return 1;
|
|
3225
3225
|
}
|
|
@@ -3257,7 +3257,7 @@
|
|
|
3257
3257
|
return -1;
|
|
3258
3258
|
}
|
|
3259
3259
|
};
|
|
3260
|
-
protoOf(BigInteger32Arithmetic).
|
|
3260
|
+
protoOf(BigInteger32Arithmetic).nnp = function (first, second) {
|
|
3261
3261
|
if (_UIntArray___get_size__impl__r6l8ci(first) === 1 && UIntArray__get_impl_gp5kza(first, 0) === _UInt___init__impl__l7qpdl(0))
|
|
3262
3262
|
return second;
|
|
3263
3263
|
if (_UIntArray___get_size__impl__r6l8ci(second) === 1 && UIntArray__get_impl_gp5kza(second, 0) === _UInt___init__impl__l7qpdl(0))
|
|
@@ -3312,7 +3312,7 @@
|
|
|
3312
3312
|
var tmp_4 = i;
|
|
3313
3313
|
var tmp0_1 = sum;
|
|
3314
3314
|
// Inline function 'kotlin.ULong.and' call
|
|
3315
|
-
var other_1 = this.
|
|
3315
|
+
var other_1 = this.nno_1;
|
|
3316
3316
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3317
3317
|
var this_3 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_1) & _ULong___get_data__impl__fggpzb(other_1));
|
|
3318
3318
|
// Inline function 'kotlin.toUInt' call
|
|
@@ -3321,7 +3321,7 @@
|
|
|
3321
3321
|
UIntArray__set_impl_7f2zu2(result, tmp_4, tmp$ret$16);
|
|
3322
3322
|
var tmp0_2 = sum;
|
|
3323
3323
|
// Inline function 'kotlin.ULong.shr' call
|
|
3324
|
-
var bitCount = this.
|
|
3324
|
+
var bitCount = this.sno_1;
|
|
3325
3325
|
sum = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_2), bitCount));
|
|
3326
3326
|
i = i + 1 | 0;
|
|
3327
3327
|
}
|
|
@@ -3364,7 +3364,7 @@
|
|
|
3364
3364
|
var tmp_6 = i;
|
|
3365
3365
|
var tmp0_4 = sum;
|
|
3366
3366
|
// Inline function 'kotlin.ULong.and' call
|
|
3367
|
-
var other_3 = this.
|
|
3367
|
+
var other_3 = this.nno_1;
|
|
3368
3368
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3369
3369
|
var this_8 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_4) & _ULong___get_data__impl__fggpzb(other_3));
|
|
3370
3370
|
// Inline function 'kotlin.toUInt' call
|
|
@@ -3373,15 +3373,15 @@
|
|
|
3373
3373
|
UIntArray__set_impl_7f2zu2(result, tmp_6, tmp$ret$28);
|
|
3374
3374
|
var tmp0_5 = sum;
|
|
3375
3375
|
// Inline function 'kotlin.ULong.shr' call
|
|
3376
|
-
var bitCount_0 = this.
|
|
3376
|
+
var bitCount_0 = this.sno_1;
|
|
3377
3377
|
sum = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_5), bitCount_0));
|
|
3378
3378
|
i = i + 1 | 0;
|
|
3379
3379
|
}
|
|
3380
3380
|
};
|
|
3381
|
-
protoOf(BigInteger32Arithmetic).
|
|
3382
|
-
var firstWithoutLeadingZeroes = this.
|
|
3383
|
-
var secondWithoutLeadingZeroes = this.
|
|
3384
|
-
var firstIsLarger = this.
|
|
3381
|
+
protoOf(BigInteger32Arithmetic).onp = function (first, second) {
|
|
3382
|
+
var firstWithoutLeadingZeroes = this.enp(first);
|
|
3383
|
+
var secondWithoutLeadingZeroes = this.enp(second);
|
|
3384
|
+
var firstIsLarger = this.mnp(firstWithoutLeadingZeroes, secondWithoutLeadingZeroes) === 1;
|
|
3385
3385
|
var tmp;
|
|
3386
3386
|
if (firstIsLarger) {
|
|
3387
3387
|
tmp = new Quadruple(_UIntArray___get_size__impl__r6l8ci(firstWithoutLeadingZeroes), _UIntArray___get_size__impl__r6l8ci(secondWithoutLeadingZeroes), new UIntArray(firstWithoutLeadingZeroes), new UIntArray(secondWithoutLeadingZeroes));
|
|
@@ -3443,10 +3443,10 @@
|
|
|
3443
3443
|
UIntArray__set_impl_7f2zu2(result, tmp_4, tmp$ret$14);
|
|
3444
3444
|
var tmp0_1 = diff;
|
|
3445
3445
|
// Inline function 'kotlin.ULong.and' call
|
|
3446
|
-
var other_1 = this.
|
|
3446
|
+
var other_1 = this.pno_1;
|
|
3447
3447
|
var tmp0_2 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_1) & _ULong___get_data__impl__fggpzb(other_1));
|
|
3448
3448
|
// Inline function 'kotlin.ULong.shr' call
|
|
3449
|
-
var bitCount = this.
|
|
3449
|
+
var bitCount = this.tno_1;
|
|
3450
3450
|
diff = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_2), bitCount));
|
|
3451
3451
|
i = i + 1 | 0;
|
|
3452
3452
|
}
|
|
@@ -3469,15 +3469,15 @@
|
|
|
3469
3469
|
var this_7 = _ULong___get_data__impl__fggpzb(this_6);
|
|
3470
3470
|
var tmp0_4 = _UInt___init__impl__l7qpdl(convertToInt(this_7));
|
|
3471
3471
|
// Inline function 'kotlin.UInt.and' call
|
|
3472
|
-
var other_3 = this.
|
|
3472
|
+
var other_3 = this.ono_1;
|
|
3473
3473
|
var tmp$ret$24 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_4) & _UInt___get_data__impl__f0vqqw(other_3));
|
|
3474
3474
|
UIntArray__set_impl_7f2zu2(result, tmp_5, tmp$ret$24);
|
|
3475
3475
|
var tmp0_5 = diff;
|
|
3476
3476
|
// Inline function 'kotlin.ULong.and' call
|
|
3477
|
-
var other_4 = this.
|
|
3477
|
+
var other_4 = this.pno_1;
|
|
3478
3478
|
var tmp0_6 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_5) & _ULong___get_data__impl__fggpzb(other_4));
|
|
3479
3479
|
// Inline function 'kotlin.ULong.shr' call
|
|
3480
|
-
var bitCount_0 = this.
|
|
3480
|
+
var bitCount_0 = this.tno_1;
|
|
3481
3481
|
diff = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_6), bitCount_0));
|
|
3482
3482
|
i = i + 1 | 0;
|
|
3483
3483
|
}
|
|
@@ -3496,7 +3496,7 @@
|
|
|
3496
3496
|
}
|
|
3497
3497
|
}
|
|
3498
3498
|
if (destination.r()) {
|
|
3499
|
-
return this.
|
|
3499
|
+
return this.uno_1;
|
|
3500
3500
|
}
|
|
3501
3501
|
// Inline function 'kotlin.collections.indexOfLast' call
|
|
3502
3502
|
var tmp0_7 = _UIntArray___get_storage__impl__92a0v0(result);
|
|
@@ -3522,7 +3522,7 @@
|
|
|
3522
3522
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
3523
3523
|
return _UIntArray___init__impl__ghjpc6_0(copyOfRange(_UIntArray___get_storage__impl__92a0v0(result), 0, firstEmpty));
|
|
3524
3524
|
};
|
|
3525
|
-
protoOf(BigInteger32Arithmetic).
|
|
3525
|
+
protoOf(BigInteger32Arithmetic).pnp = function (first, second) {
|
|
3526
3526
|
var result = _UIntArray___init__impl__ghjpc6(_UIntArray___get_size__impl__r6l8ci(first) + 1 | 0);
|
|
3527
3527
|
var product;
|
|
3528
3528
|
var sum;
|
|
@@ -3556,7 +3556,7 @@
|
|
|
3556
3556
|
var tmp$ret$8 = fromInt(value_1) & 4294967295n;
|
|
3557
3557
|
var tmp0_0 = _ULong___init__impl__c78o9k(tmp$ret$8);
|
|
3558
3558
|
// Inline function 'kotlin.ULong.and' call
|
|
3559
|
-
var other_0 = this.
|
|
3559
|
+
var other_0 = this.nno_1;
|
|
3560
3560
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3561
3561
|
var this_2 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(product) & _ULong___get_data__impl__fggpzb(other_0));
|
|
3562
3562
|
// Inline function 'kotlin.toUInt' call
|
|
@@ -3573,7 +3573,7 @@
|
|
|
3573
3573
|
sum = _ULong___init__impl__c78o9k(add(_ULong___get_data__impl__fggpzb(tmp0_0), _ULong___get_data__impl__fggpzb(other_1)));
|
|
3574
3574
|
var tmp0_1 = sum;
|
|
3575
3575
|
// Inline function 'kotlin.ULong.and' call
|
|
3576
|
-
var other_2 = this.
|
|
3576
|
+
var other_2 = this.nno_1;
|
|
3577
3577
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3578
3578
|
var this_5 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_1) & _ULong___get_data__impl__fggpzb(other_2));
|
|
3579
3579
|
// Inline function 'kotlin.toUInt' call
|
|
@@ -3582,11 +3582,11 @@
|
|
|
3582
3582
|
UIntArray__set_impl_7f2zu2(result, i, tmp$ret$21);
|
|
3583
3583
|
var tmp0_2 = sum;
|
|
3584
3584
|
// Inline function 'kotlin.ULong.shr' call
|
|
3585
|
-
var bitCount = this.
|
|
3585
|
+
var bitCount = this.sno_1;
|
|
3586
3586
|
sum = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_2), bitCount));
|
|
3587
3587
|
var tmp = i + 1 | 0;
|
|
3588
3588
|
// Inline function 'kotlin.ULong.shr' call
|
|
3589
|
-
var bitCount_0 = this.
|
|
3589
|
+
var bitCount_0 = this.sno_1;
|
|
3590
3590
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3591
3591
|
var this_7 = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(product), bitCount_0));
|
|
3592
3592
|
// Inline function 'kotlin.toUInt' call
|
|
@@ -3602,14 +3602,14 @@
|
|
|
3602
3602
|
UIntArray__set_impl_7f2zu2(result, tmp, tmp$ret$28);
|
|
3603
3603
|
}
|
|
3604
3604
|
while (inductionVariable < last);
|
|
3605
|
-
return this.
|
|
3605
|
+
return this.enp(result);
|
|
3606
3606
|
};
|
|
3607
|
-
protoOf(BigInteger32Arithmetic).
|
|
3608
|
-
return this.
|
|
3607
|
+
protoOf(BigInteger32Arithmetic).qnp = function (first, second) {
|
|
3608
|
+
return this.rnp(first, second);
|
|
3609
3609
|
};
|
|
3610
|
-
protoOf(BigInteger32Arithmetic).
|
|
3611
|
-
if (this.
|
|
3612
|
-
return new Pair(new UIntArray(this.
|
|
3610
|
+
protoOf(BigInteger32Arithmetic).rnp = function (unnormalizedDividend, unnormalizedDivisor) {
|
|
3611
|
+
if (this.snp(unnormalizedDivisor, unnormalizedDividend) > 0) {
|
|
3612
|
+
return new Pair(new UIntArray(this.uno_1), new UIntArray(unnormalizedDividend));
|
|
3613
3613
|
}
|
|
3614
3614
|
if (_UIntArray___get_size__impl__r6l8ci(unnormalizedDivisor) === 1 && _UIntArray___get_size__impl__r6l8ci(unnormalizedDividend) === 1) {
|
|
3615
3615
|
var tmp0 = UIntArray__get_impl_gp5kza(unnormalizedDividend, 0);
|
|
@@ -3618,22 +3618,22 @@
|
|
|
3618
3618
|
var tmp$ret$0 = uintDivide(tmp0, other);
|
|
3619
3619
|
// Inline function 'kotlin.uintArrayOf' call
|
|
3620
3620
|
var tmp$ret$1 = _UIntArray___init__impl__ghjpc6_0(new Int32Array([tmp$ret$0]));
|
|
3621
|
-
var tmp = this.
|
|
3621
|
+
var tmp = this.enp(tmp$ret$1);
|
|
3622
3622
|
var tmp0_0 = UIntArray__get_impl_gp5kza(unnormalizedDividend, 0);
|
|
3623
3623
|
// Inline function 'kotlin.UInt.rem' call
|
|
3624
3624
|
var other_0 = UIntArray__get_impl_gp5kza(unnormalizedDivisor, 0);
|
|
3625
3625
|
var tmp$ret$2 = uintRemainder(tmp0_0, other_0);
|
|
3626
3626
|
// Inline function 'kotlin.uintArrayOf' call
|
|
3627
3627
|
var tmp$ret$3 = _UIntArray___init__impl__ghjpc6_0(new Int32Array([tmp$ret$2]));
|
|
3628
|
-
return new Pair(new UIntArray(tmp), new UIntArray(this.
|
|
3628
|
+
return new Pair(new UIntArray(tmp), new UIntArray(this.enp(tmp$ret$3)));
|
|
3629
3629
|
}
|
|
3630
|
-
var bitPrecision = this.
|
|
3630
|
+
var bitPrecision = this.cnp(unnormalizedDividend) - this.cnp(unnormalizedDivisor) | 0;
|
|
3631
3631
|
if (bitPrecision === 0) {
|
|
3632
3632
|
// Inline function 'kotlin.uintArrayOf' call
|
|
3633
3633
|
var tmp$ret$4 = _UIntArray___init__impl__ghjpc6_0(new Int32Array([_UInt___init__impl__l7qpdl(1)]));
|
|
3634
|
-
return new Pair(new UIntArray(tmp$ret$4), new UIntArray(this.
|
|
3634
|
+
return new Pair(new UIntArray(tmp$ret$4), new UIntArray(this.tnp(unnormalizedDividend, unnormalizedDivisor)));
|
|
3635
3635
|
}
|
|
3636
|
-
var _destruct__k2r9zo = this.
|
|
3636
|
+
var _destruct__k2r9zo = this.inp(unnormalizedDividend, unnormalizedDivisor);
|
|
3637
3637
|
var dividend = _destruct__k2r9zo.xg().nr_1;
|
|
3638
3638
|
var divisor = _destruct__k2r9zo.yg().nr_1;
|
|
3639
3639
|
var normalizationShift = _destruct__k2r9zo.lq();
|
|
@@ -3643,11 +3643,11 @@
|
|
|
3643
3643
|
var qjhat;
|
|
3644
3644
|
var reconstructedQuotient;
|
|
3645
3645
|
var quotient = _UIntArray___init__impl__ghjpc6(wordPrecision);
|
|
3646
|
-
var divisorTimesBaseToPowerOfM = this.
|
|
3647
|
-
if (this.
|
|
3646
|
+
var divisorTimesBaseToPowerOfM = this.jnp(divisor, imul(wordPrecision, this.sno_1));
|
|
3647
|
+
if (this.snp(dividend, divisorTimesBaseToPowerOfM) >= 0) {
|
|
3648
3648
|
quotient = _UIntArray___init__impl__ghjpc6(wordPrecision + 1 | 0);
|
|
3649
3649
|
UIntArray__set_impl_7f2zu2(quotient, wordPrecision, _UInt___init__impl__l7qpdl(1));
|
|
3650
|
-
dividend = this.
|
|
3650
|
+
dividend = this.tnp(dividend, divisorTimesBaseToPowerOfM);
|
|
3651
3651
|
}
|
|
3652
3652
|
var inductionVariable = wordPrecision - 1 | 0;
|
|
3653
3653
|
if (0 <= inductionVariable)
|
|
@@ -3664,7 +3664,7 @@
|
|
|
3664
3664
|
var tmp$ret$5 = fromInt(value) & 4294967295n;
|
|
3665
3665
|
var tmp0_1 = _ULong___init__impl__c78o9k(tmp$ret$5);
|
|
3666
3666
|
// Inline function 'kotlin.ULong.shl' call
|
|
3667
|
-
var bitCount = this.
|
|
3667
|
+
var bitCount = this.sno_1;
|
|
3668
3668
|
var tmp0_2 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(tmp0_1), bitCount));
|
|
3669
3669
|
// Inline function 'kotlin.ULong.plus' call
|
|
3670
3670
|
// Inline function 'kotlin.UInt.toULong' call
|
|
@@ -3707,7 +3707,7 @@
|
|
|
3707
3707
|
qjhat = tmp_0;
|
|
3708
3708
|
var tmp_2 = quotient;
|
|
3709
3709
|
var tmp_3;
|
|
3710
|
-
var tmp0_5 = this.
|
|
3710
|
+
var tmp0_5 = this.rno_1;
|
|
3711
3711
|
// Inline function 'kotlin.UInt.minus' call
|
|
3712
3712
|
var other_4 = _ULong___init__impl__c78o9k(1n);
|
|
3713
3713
|
// Inline function 'kotlin.UInt.toULong' call
|
|
@@ -3725,51 +3725,51 @@
|
|
|
3725
3725
|
var this_5 = _ULong___get_data__impl__fggpzb(qjhat);
|
|
3726
3726
|
tmp_3 = _UInt___init__impl__l7qpdl(convertToInt(this_5));
|
|
3727
3727
|
} else {
|
|
3728
|
-
var tmp0_6 = this.
|
|
3728
|
+
var tmp0_6 = this.rno_1;
|
|
3729
3729
|
// Inline function 'kotlin.UInt.minus' call
|
|
3730
3730
|
var other_6 = _UInt___init__impl__l7qpdl(1);
|
|
3731
3731
|
tmp_3 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_6) - _UInt___get_data__impl__f0vqqw(other_6) | 0);
|
|
3732
3732
|
}
|
|
3733
3733
|
UIntArray__set_impl_7f2zu2(tmp_2, j, tmp_3);
|
|
3734
|
-
reconstructedQuotient = this.
|
|
3735
|
-
while (this.
|
|
3734
|
+
reconstructedQuotient = this.jnp(this.unp(divisor, UIntArray__get_impl_gp5kza(quotient, j)), imul(j, this.sno_1));
|
|
3735
|
+
while (this.snp(reconstructedQuotient, dividend) > 0) {
|
|
3736
3736
|
var tmp_4 = quotient;
|
|
3737
3737
|
var tmp0_7 = UIntArray__get_impl_gp5kza(quotient, j);
|
|
3738
3738
|
// Inline function 'kotlin.UInt.minus' call
|
|
3739
3739
|
var other_7 = _UInt___init__impl__l7qpdl(1);
|
|
3740
3740
|
var tmp$ret$32 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_7) - _UInt___get_data__impl__f0vqqw(other_7) | 0);
|
|
3741
3741
|
UIntArray__set_impl_7f2zu2(tmp_4, j, tmp$ret$32);
|
|
3742
|
-
reconstructedQuotient = this.
|
|
3742
|
+
reconstructedQuotient = this.jnp(this.unp(divisor, UIntArray__get_impl_gp5kza(quotient, j)), imul(j, this.sno_1));
|
|
3743
3743
|
}
|
|
3744
|
-
dividend = this.
|
|
3744
|
+
dividend = this.tnp(dividend, reconstructedQuotient);
|
|
3745
3745
|
}
|
|
3746
3746
|
while (0 <= inductionVariable);
|
|
3747
|
-
while (this.
|
|
3748
|
-
quotient = this.
|
|
3749
|
-
dividend = this.
|
|
3747
|
+
while (this.snp(dividend, divisor) >= 0) {
|
|
3748
|
+
quotient = this.vnp(quotient, _UInt___init__impl__l7qpdl(1));
|
|
3749
|
+
dividend = this.tnp(dividend, divisor);
|
|
3750
3750
|
}
|
|
3751
|
-
var denormRemainder = this.
|
|
3752
|
-
return new Pair(new UIntArray(this.
|
|
3751
|
+
var denormRemainder = this.knp(dividend, normalizationShift);
|
|
3752
|
+
return new Pair(new UIntArray(this.enp(quotient)), new UIntArray(denormRemainder));
|
|
3753
3753
|
};
|
|
3754
|
-
protoOf(BigInteger32Arithmetic).
|
|
3755
|
-
return this.
|
|
3754
|
+
protoOf(BigInteger32Arithmetic).jnp = function (_this__u8e3s4, places) {
|
|
3755
|
+
return this.gnp(_this__u8e3s4, places);
|
|
3756
3756
|
};
|
|
3757
|
-
protoOf(BigInteger32Arithmetic).
|
|
3758
|
-
return this.
|
|
3757
|
+
protoOf(BigInteger32Arithmetic).lnp = function (_this__u8e3s4, places) {
|
|
3758
|
+
return this.hnp(_this__u8e3s4, places);
|
|
3759
3759
|
};
|
|
3760
|
-
protoOf(BigInteger32Arithmetic).
|
|
3761
|
-
return this.
|
|
3760
|
+
protoOf(BigInteger32Arithmetic).tnp = function (_this__u8e3s4, other) {
|
|
3761
|
+
return this.onp(_this__u8e3s4, other);
|
|
3762
3762
|
};
|
|
3763
|
-
protoOf(BigInteger32Arithmetic).
|
|
3763
|
+
protoOf(BigInteger32Arithmetic).vnp = function (_this__u8e3s4, other) {
|
|
3764
3764
|
// Inline function 'kotlin.uintArrayOf' call
|
|
3765
3765
|
var tmp$ret$0 = _UIntArray___init__impl__ghjpc6_0(new Int32Array([other]));
|
|
3766
|
-
return this.
|
|
3766
|
+
return this.nnp(_this__u8e3s4, tmp$ret$0);
|
|
3767
3767
|
};
|
|
3768
|
-
protoOf(BigInteger32Arithmetic).
|
|
3769
|
-
return this.
|
|
3768
|
+
protoOf(BigInteger32Arithmetic).unp = function (_this__u8e3s4, other) {
|
|
3769
|
+
return this.pnp(_this__u8e3s4, other);
|
|
3770
3770
|
};
|
|
3771
|
-
protoOf(BigInteger32Arithmetic).
|
|
3772
|
-
return this.
|
|
3771
|
+
protoOf(BigInteger32Arithmetic).snp = function (_this__u8e3s4, other) {
|
|
3772
|
+
return this.mnp(_this__u8e3s4, other);
|
|
3773
3773
|
};
|
|
3774
3774
|
var BigInteger32Arithmetic_instance;
|
|
3775
3775
|
function BigInteger32Arithmetic_getInstance() {
|
|
@@ -3779,18 +3779,18 @@
|
|
|
3779
3779
|
}
|
|
3780
3780
|
function multiplyWithCorrectedSize($this, first, second, firstCorrectedSize, secondCorrectedSize) {
|
|
3781
3781
|
if (isZero($this, first) || isZero($this, second)) {
|
|
3782
|
-
return $this.
|
|
3782
|
+
return $this.knm_1;
|
|
3783
3783
|
}
|
|
3784
3784
|
if ((firstCorrectedSize >= 120 || secondCorrectedSize >= 120) && (firstCorrectedSize <= 15000 || secondCorrectedSize < 15000)) {
|
|
3785
3785
|
return karatsubaMultiplyWithCorrectedSizes($this, first, second, firstCorrectedSize, secondCorrectedSize);
|
|
3786
3786
|
}
|
|
3787
3787
|
if (firstCorrectedSize >= 15000 && secondCorrectedSize >= 15000) {
|
|
3788
|
-
return $this.
|
|
3788
|
+
return $this.wnp(first, second);
|
|
3789
3789
|
}
|
|
3790
3790
|
return basecaseMultiplyWithCorrectedSize($this, first, second, firstCorrectedSize, secondCorrectedSize);
|
|
3791
3791
|
}
|
|
3792
3792
|
function basecaseMultiplyWithCorrectedSize($this, first, second, firstCorrectedSizeStart, secondCorrectedSizeStart) {
|
|
3793
|
-
var resultArray = $this.
|
|
3793
|
+
var resultArray = $this.knm_1;
|
|
3794
3794
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
3795
3795
|
var index = 0;
|
|
3796
3796
|
var _iterator__ex2g4s = ULongArray__iterator_impl_cq4d2h(second);
|
|
@@ -3801,7 +3801,7 @@
|
|
|
3801
3801
|
if (_unary__edvuaz > secondCorrectedSizeStart) {
|
|
3802
3802
|
new ULongArray(resultArray);
|
|
3803
3803
|
} else {
|
|
3804
|
-
resultArray = BigInteger63Arithmetic_getInstance().
|
|
3804
|
+
resultArray = BigInteger63Arithmetic_getInstance().znp(resultArray, BigInteger63Arithmetic_getInstance().ynp(BigInteger63Arithmetic_getInstance().xnp(first, item), imul(_unary__edvuaz, BigInteger63Arithmetic_getInstance().pnm_1)));
|
|
3805
3805
|
}
|
|
3806
3806
|
}
|
|
3807
3807
|
return resultArray;
|
|
@@ -3811,44 +3811,44 @@
|
|
|
3811
3811
|
var second = new SignedULongArray(secondUnsigned, true);
|
|
3812
3812
|
// Inline function 'kotlin.math.max' call
|
|
3813
3813
|
var halfLength = (Math.max(firstCorrectedSize, secondCorrectedSize) + 1 | 0) / 2 | 0;
|
|
3814
|
-
var mask = $this.
|
|
3815
|
-
var firstLower = $this.
|
|
3816
|
-
var firstHigher = $this.
|
|
3817
|
-
var secondLower = $this.
|
|
3818
|
-
var secondHigher = $this.
|
|
3819
|
-
var higherProduct = $this.
|
|
3820
|
-
var lowerProduct = $this.
|
|
3821
|
-
var middleProduct = $this.
|
|
3822
|
-
var result = $this.
|
|
3823
|
-
return result.
|
|
3814
|
+
var mask = $this.anq($this.ynp($this.lnm_1, imul(halfLength, $this.qnm_1)), _ULong___init__impl__c78o9k(1n));
|
|
3815
|
+
var firstLower = $this.bnq(first, mask);
|
|
3816
|
+
var firstHigher = $this.cnq(first, imul(halfLength, $this.qnm_1));
|
|
3817
|
+
var secondLower = $this.bnq(second, mask);
|
|
3818
|
+
var secondHigher = $this.cnq(second, imul(halfLength, $this.qnm_1));
|
|
3819
|
+
var higherProduct = $this.dnq(firstHigher, secondHigher);
|
|
3820
|
+
var lowerProduct = $this.dnq(firstLower, secondLower);
|
|
3821
|
+
var middleProduct = $this.dnq($this.enq(firstHigher, firstLower), $this.enq(secondHigher, secondLower));
|
|
3822
|
+
var result = $this.enq($this.enq($this.fnq(higherProduct, imul(imul(2, $this.qnm_1), halfLength)), $this.fnq($this.gnq($this.gnq(middleProduct, higherProduct), lowerProduct), imul($this.qnm_1, halfLength))), lowerProduct);
|
|
3823
|
+
return result.hnq_1;
|
|
3824
3824
|
}
|
|
3825
3825
|
function isZero($this, _this__u8e3s4) {
|
|
3826
|
-
if (equals(_this__u8e3s4, $this.
|
|
3826
|
+
if (equals(_this__u8e3s4, $this.knm_1))
|
|
3827
3827
|
return true;
|
|
3828
3828
|
if (_ULongArray___get_size__impl__ju6dtr(_this__u8e3s4) === 1 && ULongArray__get_impl_pr71q9(_this__u8e3s4, 0) === _ULong___init__impl__c78o9k(0n))
|
|
3829
3829
|
return true;
|
|
3830
|
-
if ((_ULongArray___get_size__impl__ju6dtr(_this__u8e3s4) - $this.
|
|
3830
|
+
if ((_ULongArray___get_size__impl__ju6dtr(_this__u8e3s4) - $this.jnq(_this__u8e3s4) | 0) === 0)
|
|
3831
3831
|
return true;
|
|
3832
3832
|
return false;
|
|
3833
3833
|
}
|
|
3834
3834
|
function SignedULongArray(unsignedValue, sign) {
|
|
3835
|
-
this.
|
|
3836
|
-
this.
|
|
3835
|
+
this.hnq_1 = unsignedValue;
|
|
3836
|
+
this.inq_1 = sign;
|
|
3837
3837
|
}
|
|
3838
|
-
protoOf(SignedULongArray).
|
|
3838
|
+
protoOf(SignedULongArray).knq = function (unsignedValue, sign) {
|
|
3839
3839
|
return new SignedULongArray(unsignedValue, sign);
|
|
3840
3840
|
};
|
|
3841
|
-
protoOf(SignedULongArray).
|
|
3842
|
-
unsignedValue = unsignedValue === VOID ? this.
|
|
3843
|
-
sign = sign === VOID ? this.
|
|
3844
|
-
return $super === VOID ? this.
|
|
3841
|
+
protoOf(SignedULongArray).lnq = function (unsignedValue, sign, $super) {
|
|
3842
|
+
unsignedValue = unsignedValue === VOID ? this.hnq_1 : unsignedValue;
|
|
3843
|
+
sign = sign === VOID ? this.inq_1 : sign;
|
|
3844
|
+
return $super === VOID ? this.knq(unsignedValue, sign) : $super.knq.call(this, new ULongArray(unsignedValue), sign);
|
|
3845
3845
|
};
|
|
3846
3846
|
protoOf(SignedULongArray).toString = function () {
|
|
3847
|
-
return 'SignedULongArray(unsignedValue=' + ULongArray__toString_impl_wqk1p5(this.
|
|
3847
|
+
return 'SignedULongArray(unsignedValue=' + ULongArray__toString_impl_wqk1p5(this.hnq_1) + ', sign=' + this.inq_1 + ')';
|
|
3848
3848
|
};
|
|
3849
3849
|
protoOf(SignedULongArray).hashCode = function () {
|
|
3850
|
-
var result = ULongArray__hashCode_impl_aze4wa(this.
|
|
3851
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3850
|
+
var result = ULongArray__hashCode_impl_aze4wa(this.hnq_1);
|
|
3851
|
+
result = imul(result, 31) + getBooleanHashCode(this.inq_1) | 0;
|
|
3852
3852
|
return result;
|
|
3853
3853
|
};
|
|
3854
3854
|
protoOf(SignedULongArray).equals = function (other) {
|
|
@@ -3857,69 +3857,69 @@
|
|
|
3857
3857
|
if (!(other instanceof SignedULongArray))
|
|
3858
3858
|
return false;
|
|
3859
3859
|
var tmp0_other_with_cast = other instanceof SignedULongArray ? other : THROW_CCE();
|
|
3860
|
-
if (!equals(this.
|
|
3860
|
+
if (!equals(this.hnq_1, tmp0_other_with_cast.hnq_1))
|
|
3861
3861
|
return false;
|
|
3862
|
-
if (!(this.
|
|
3862
|
+
if (!(this.inq_1 === tmp0_other_with_cast.inq_1))
|
|
3863
3863
|
return false;
|
|
3864
3864
|
return true;
|
|
3865
3865
|
};
|
|
3866
3866
|
function signedAdd($this, first, second) {
|
|
3867
3867
|
var tmp;
|
|
3868
|
-
if (!!(first.
|
|
3868
|
+
if (!!(first.inq_1 ^ second.inq_1)) {
|
|
3869
3869
|
var tmp_0;
|
|
3870
|
-
if ($this.
|
|
3871
|
-
tmp_0 = new SignedULongArray($this.
|
|
3870
|
+
if ($this.tnn(first.hnq_1, second.hnq_1) > 0) {
|
|
3871
|
+
tmp_0 = new SignedULongArray($this.mnq(first.hnq_1, second.hnq_1), first.inq_1);
|
|
3872
3872
|
} else {
|
|
3873
|
-
tmp_0 = new SignedULongArray($this.
|
|
3873
|
+
tmp_0 = new SignedULongArray($this.mnq(second.hnq_1, first.hnq_1), second.inq_1);
|
|
3874
3874
|
}
|
|
3875
3875
|
tmp = tmp_0;
|
|
3876
3876
|
} else {
|
|
3877
|
-
tmp = new SignedULongArray($this.
|
|
3877
|
+
tmp = new SignedULongArray($this.znp(first.hnq_1, second.hnq_1), first.inq_1);
|
|
3878
3878
|
}
|
|
3879
3879
|
return tmp;
|
|
3880
3880
|
}
|
|
3881
3881
|
function signedSubtract($this, first, second) {
|
|
3882
|
-
return signedAdd($this, first, second.
|
|
3882
|
+
return signedAdd($this, first, second.lnq(VOID, !second.inq_1));
|
|
3883
3883
|
}
|
|
3884
3884
|
function signedMultiply($this, first, second) {
|
|
3885
|
-
return new SignedULongArray($this.
|
|
3885
|
+
return new SignedULongArray($this.nnq(first.hnq_1, second.hnq_1), !!!(first.inq_1 ^ second.inq_1));
|
|
3886
3886
|
}
|
|
3887
3887
|
function signedDivide($this, first, second) {
|
|
3888
|
-
return new SignedULongArray($this.
|
|
3888
|
+
return new SignedULongArray($this.onq(first.hnq_1, second.hnq_1), !!!(first.inq_1 ^ second.inq_1));
|
|
3889
3889
|
}
|
|
3890
3890
|
function BigInteger63Arithmetic() {
|
|
3891
3891
|
BigInteger63Arithmetic_instance = this;
|
|
3892
3892
|
var tmp = this;
|
|
3893
3893
|
// Inline function 'kotlin.longArrayOf' call
|
|
3894
|
-
tmp.
|
|
3894
|
+
tmp.jnm_1 = new BigInt64Array([]);
|
|
3895
3895
|
var tmp_0 = this;
|
|
3896
3896
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3897
|
-
tmp_0.
|
|
3897
|
+
tmp_0.knm_1 = _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(0n)]));
|
|
3898
3898
|
var tmp_1 = this;
|
|
3899
3899
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3900
|
-
tmp_1.
|
|
3900
|
+
tmp_1.lnm_1 = _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(1n)]));
|
|
3901
3901
|
var tmp_2 = this;
|
|
3902
3902
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3903
|
-
tmp_2.
|
|
3903
|
+
tmp_2.mnm_1 = _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(2n)]));
|
|
3904
3904
|
var tmp_3 = this;
|
|
3905
3905
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3906
|
-
tmp_3.
|
|
3906
|
+
tmp_3.nnm_1 = _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(10n)]));
|
|
3907
3907
|
var tmp_4 = this;
|
|
3908
3908
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3909
|
-
tmp_4.
|
|
3910
|
-
this.
|
|
3911
|
-
this.
|
|
3912
|
-
this.
|
|
3909
|
+
tmp_4.onm_1 = _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(3074457345618258603n)]));
|
|
3910
|
+
this.pnm_1 = 63;
|
|
3911
|
+
this.qnm_1 = 63;
|
|
3912
|
+
this.rnm_1 = _ULong___init__impl__c78o9k(9223372036854775807n);
|
|
3913
3913
|
var tmp_5 = this;
|
|
3914
3914
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3915
|
-
tmp_5.
|
|
3916
|
-
this.
|
|
3917
|
-
this.
|
|
3918
|
-
this.
|
|
3919
|
-
this.
|
|
3920
|
-
this.
|
|
3921
|
-
this.
|
|
3922
|
-
this.
|
|
3915
|
+
tmp_5.snm_1 = _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(9223372036854775807n)]));
|
|
3916
|
+
this.tnm_1 = _ULong___init__impl__c78o9k(4294967295n);
|
|
3917
|
+
this.unm_1 = _ULong___init__impl__c78o9k(9223372032559808512n);
|
|
3918
|
+
this.vnm_1 = _ULong___init__impl__c78o9k(-9223372036854775808n);
|
|
3919
|
+
this.wnm_1 = 120;
|
|
3920
|
+
this.xnm_1 = 15000;
|
|
3921
|
+
this.ynm_1 = false;
|
|
3922
|
+
this.znm_1 = new SignedULongArray(BigInteger63Arithmetic_getInstance().mnm_1, true);
|
|
3923
3923
|
var tmp_6 = this;
|
|
3924
3924
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3925
3925
|
var tmp_7 = _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(1n)]));
|
|
@@ -4126,21 +4126,21 @@
|
|
|
4126
4126
|
// Inline function 'kotlin.arrayOf' call
|
|
4127
4127
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
4128
4128
|
// Inline function 'kotlin.js.asDynamic' call
|
|
4129
|
-
tmp_6.
|
|
4129
|
+
tmp_6.ann_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)];
|
|
4130
4130
|
}
|
|
4131
|
-
protoOf(BigInteger63Arithmetic).
|
|
4132
|
-
return this.
|
|
4131
|
+
protoOf(BigInteger63Arithmetic).snl = function () {
|
|
4132
|
+
return this.knm_1;
|
|
4133
4133
|
};
|
|
4134
|
-
protoOf(BigInteger63Arithmetic).
|
|
4135
|
-
return this.
|
|
4134
|
+
protoOf(BigInteger63Arithmetic).tnl = function () {
|
|
4135
|
+
return this.lnm_1;
|
|
4136
4136
|
};
|
|
4137
|
-
protoOf(BigInteger63Arithmetic).
|
|
4138
|
-
return this.
|
|
4137
|
+
protoOf(BigInteger63Arithmetic).unl = function () {
|
|
4138
|
+
return this.mnm_1;
|
|
4139
4139
|
};
|
|
4140
|
-
protoOf(BigInteger63Arithmetic).
|
|
4141
|
-
return this.
|
|
4140
|
+
protoOf(BigInteger63Arithmetic).vnl = function () {
|
|
4141
|
+
return this.nnm_1;
|
|
4142
4142
|
};
|
|
4143
|
-
protoOf(BigInteger63Arithmetic).
|
|
4143
|
+
protoOf(BigInteger63Arithmetic).pnq = function (value) {
|
|
4144
4144
|
var x = value;
|
|
4145
4145
|
var y;
|
|
4146
4146
|
var n = 63;
|
|
@@ -4190,7 +4190,7 @@
|
|
|
4190
4190
|
var this_6 = x;
|
|
4191
4191
|
return tmp - convertToInt(_ULong___get_data__impl__fggpzb(this_6)) | 0;
|
|
4192
4192
|
};
|
|
4193
|
-
protoOf(BigInteger63Arithmetic).
|
|
4193
|
+
protoOf(BigInteger63Arithmetic).qnq = function (value) {
|
|
4194
4194
|
var x = value;
|
|
4195
4195
|
var y;
|
|
4196
4196
|
var n = 64;
|
|
@@ -4240,31 +4240,31 @@
|
|
|
4240
4240
|
var this_6 = x;
|
|
4241
4241
|
return tmp - convertToInt(_ULong___get_data__impl__fggpzb(this_6)) | 0;
|
|
4242
4242
|
};
|
|
4243
|
-
protoOf(BigInteger63Arithmetic).
|
|
4243
|
+
protoOf(BigInteger63Arithmetic).rnq = function (value) {
|
|
4244
4244
|
if (isZero(this, value)) {
|
|
4245
4245
|
return 0;
|
|
4246
4246
|
}
|
|
4247
|
-
var start = (_ULongArray___get_size__impl__ju6dtr(value) - this.
|
|
4247
|
+
var start = (_ULongArray___get_size__impl__ju6dtr(value) - this.jnq(value) | 0) - 1 | 0;
|
|
4248
4248
|
var mostSignificant = ULongArray__get_impl_pr71q9(value, start);
|
|
4249
|
-
return this.
|
|
4249
|
+
return this.snq(mostSignificant) + imul(start, 63) | 0;
|
|
4250
4250
|
};
|
|
4251
|
-
protoOf(BigInteger63Arithmetic).
|
|
4251
|
+
protoOf(BigInteger63Arithmetic).tnq = function (value) {
|
|
4252
4252
|
if (isZero(this, value)) {
|
|
4253
4253
|
return 0;
|
|
4254
4254
|
}
|
|
4255
4255
|
var mostSignificant = ULongArray__get_impl_pr71q9(value, _ULongArray___get_size__impl__ju6dtr(value) - 1 | 0);
|
|
4256
|
-
return this.
|
|
4256
|
+
return this.unq(mostSignificant) + imul(_ULongArray___get_size__impl__ju6dtr(value) - 1 | 0, 64) | 0;
|
|
4257
4257
|
};
|
|
4258
|
-
protoOf(BigInteger63Arithmetic).
|
|
4259
|
-
return 63 - this.
|
|
4258
|
+
protoOf(BigInteger63Arithmetic).snq = function (value) {
|
|
4259
|
+
return 63 - this.pnq(value) | 0;
|
|
4260
4260
|
};
|
|
4261
|
-
protoOf(BigInteger63Arithmetic).
|
|
4262
|
-
return 64 - this.
|
|
4261
|
+
protoOf(BigInteger63Arithmetic).unq = function (value) {
|
|
4262
|
+
return 64 - this.qnq(value) | 0;
|
|
4263
4263
|
};
|
|
4264
|
-
protoOf(BigInteger63Arithmetic).
|
|
4265
|
-
var correctedSize = _ULongArray___get_size__impl__ju6dtr(bigInteger) - this.
|
|
4264
|
+
protoOf(BigInteger63Arithmetic).bnn = function (bigInteger) {
|
|
4265
|
+
var correctedSize = _ULongArray___get_size__impl__ju6dtr(bigInteger) - this.jnq(bigInteger) | 0;
|
|
4266
4266
|
if (correctedSize === 0) {
|
|
4267
|
-
return this.
|
|
4267
|
+
return this.knm_1;
|
|
4268
4268
|
}
|
|
4269
4269
|
if (_ULongArray___get_size__impl__ju6dtr(bigInteger) === correctedSize) {
|
|
4270
4270
|
return bigInteger;
|
|
@@ -4275,7 +4275,7 @@
|
|
|
4275
4275
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
4276
4276
|
return _ULongArray___init__impl__twm1l3(copyOfRange_0(_ULongArray___get_storage__impl__28e64j(bigInteger), 0, correctedSize));
|
|
4277
4277
|
};
|
|
4278
|
-
protoOf(BigInteger63Arithmetic).
|
|
4278
|
+
protoOf(BigInteger63Arithmetic).jnq = function (bigInteger) {
|
|
4279
4279
|
var lastNonEmptyIndex = _ULongArray___get_size__impl__ju6dtr(bigInteger) - 1 | 0;
|
|
4280
4280
|
if (lastNonEmptyIndex <= 0) {
|
|
4281
4281
|
return 0;
|
|
@@ -4290,7 +4290,7 @@
|
|
|
4290
4290
|
}
|
|
4291
4291
|
return (_ULongArray___get_size__impl__ju6dtr(bigInteger) - lastNonEmptyIndex | 0) - 1 | 0;
|
|
4292
4292
|
};
|
|
4293
|
-
protoOf(BigInteger63Arithmetic).
|
|
4293
|
+
protoOf(BigInteger63Arithmetic).vnq = function (operand, places) {
|
|
4294
4294
|
if (isZero(this, operand)) {
|
|
4295
4295
|
return operand;
|
|
4296
4296
|
}
|
|
@@ -4298,16 +4298,16 @@
|
|
|
4298
4298
|
return operand;
|
|
4299
4299
|
}
|
|
4300
4300
|
if (ULongArray__isEmpty_impl_c3yngu(operand)) {
|
|
4301
|
-
return this.
|
|
4301
|
+
return this.knm_1;
|
|
4302
4302
|
}
|
|
4303
|
-
var leadingZeroWords = this.
|
|
4303
|
+
var leadingZeroWords = this.jnq(operand);
|
|
4304
4304
|
if (_ULongArray___get_size__impl__ju6dtr(operand) === leadingZeroWords) {
|
|
4305
|
-
return this.
|
|
4305
|
+
return this.knm_1;
|
|
4306
4306
|
}
|
|
4307
4307
|
var originalSize = _ULongArray___get_size__impl__ju6dtr(operand) - leadingZeroWords | 0;
|
|
4308
|
-
var leadingZeros = this.
|
|
4309
|
-
var shiftWords = places / this.
|
|
4310
|
-
var shiftBits = places % this.
|
|
4308
|
+
var leadingZeros = this.pnq(ULongArray__get_impl_pr71q9(operand, originalSize - 1 | 0));
|
|
4309
|
+
var shiftWords = places / this.pnm_1 | 0;
|
|
4310
|
+
var shiftBits = places % this.pnm_1 | 0;
|
|
4311
4311
|
var tmp;
|
|
4312
4312
|
if (shiftBits > leadingZeros) {
|
|
4313
4313
|
tmp = shiftWords + 1 | 0;
|
|
@@ -4344,7 +4344,7 @@
|
|
|
4344
4344
|
var this_1 = ULongArray__get_impl_pr71q9(operand, tmp_7 - shiftWords | 0);
|
|
4345
4345
|
var tmp0 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_1), shiftBits));
|
|
4346
4346
|
// Inline function 'kotlin.ULong.and' call
|
|
4347
|
-
var other = BigInteger63Arithmetic_getInstance().
|
|
4347
|
+
var other = BigInteger63Arithmetic_getInstance().rnm_1;
|
|
4348
4348
|
tmp_8 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0) & _ULong___get_data__impl__fggpzb(other));
|
|
4349
4349
|
} else {
|
|
4350
4350
|
var containsLower = shiftWords + 1 | 0;
|
|
@@ -4353,11 +4353,11 @@
|
|
|
4353
4353
|
var this_2 = ULongArray__get_impl_pr71q9(operand, tmp_7 - shiftWords | 0);
|
|
4354
4354
|
var tmp0_0 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_2), shiftBits));
|
|
4355
4355
|
// Inline function 'kotlin.ULong.and' call
|
|
4356
|
-
var other_0 = BigInteger63Arithmetic_getInstance().
|
|
4356
|
+
var other_0 = BigInteger63Arithmetic_getInstance().rnm_1;
|
|
4357
4357
|
var tmp0_1 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_0) & _ULong___get_data__impl__fggpzb(other_0));
|
|
4358
4358
|
var tmp0_2 = ULongArray__get_impl_pr71q9(operand, (tmp_7 - shiftWords | 0) - 1 | 0);
|
|
4359
4359
|
// Inline function 'kotlin.ULong.shr' call
|
|
4360
|
-
var bitCount = BigInteger63Arithmetic_getInstance().
|
|
4360
|
+
var bitCount = BigInteger63Arithmetic_getInstance().pnm_1 - shiftBits | 0;
|
|
4361
4361
|
// Inline function 'kotlin.ULong.or' call
|
|
4362
4362
|
var other_1 = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_2), bitCount));
|
|
4363
4363
|
tmp_8 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_1) | _ULong___get_data__impl__fggpzb(other_1));
|
|
@@ -4365,7 +4365,7 @@
|
|
|
4365
4365
|
if (tmp_7 === ((originalSize + wordsNeeded | 0) - 1 | 0)) {
|
|
4366
4366
|
var tmp0_3 = ULongArray__get_impl_pr71q9(operand, tmp_7 - wordsNeeded | 0);
|
|
4367
4367
|
// Inline function 'kotlin.ULong.shr' call
|
|
4368
|
-
var bitCount_0 = BigInteger63Arithmetic_getInstance().
|
|
4368
|
+
var bitCount_0 = BigInteger63Arithmetic_getInstance().pnm_1 - shiftBits | 0;
|
|
4369
4369
|
tmp_8 = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_3), bitCount_0));
|
|
4370
4370
|
} else {
|
|
4371
4371
|
throw RuntimeException_init_$Create$('Invalid case ' + tmp_7);
|
|
@@ -4380,16 +4380,16 @@
|
|
|
4380
4380
|
}
|
|
4381
4381
|
return _ULongArray___init__impl__twm1l3(tmp_6);
|
|
4382
4382
|
};
|
|
4383
|
-
protoOf(BigInteger63Arithmetic).
|
|
4383
|
+
protoOf(BigInteger63Arithmetic).vnn = function (operand, places) {
|
|
4384
4384
|
if (ULongArray__isEmpty_impl_c3yngu(operand) || places === 0) {
|
|
4385
4385
|
return operand;
|
|
4386
4386
|
}
|
|
4387
|
-
var leadingZeroWords = this.
|
|
4387
|
+
var leadingZeroWords = this.jnq(operand);
|
|
4388
4388
|
var realOperandSize = _ULongArray___get_size__impl__ju6dtr(operand) - leadingZeroWords | 0;
|
|
4389
|
-
var shiftBits = places % this.
|
|
4390
|
-
var wordsToDiscard = places / this.
|
|
4389
|
+
var shiftBits = places % this.pnm_1 | 0;
|
|
4390
|
+
var wordsToDiscard = places / this.pnm_1 | 0;
|
|
4391
4391
|
if (wordsToDiscard >= realOperandSize) {
|
|
4392
|
-
return this.
|
|
4392
|
+
return this.knm_1;
|
|
4393
4393
|
}
|
|
4394
4394
|
if (shiftBits === 0) {
|
|
4395
4395
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
@@ -4405,7 +4405,7 @@
|
|
|
4405
4405
|
}
|
|
4406
4406
|
var newLength = realOperandSize - wordsToDiscard | 0;
|
|
4407
4407
|
if (newLength === 0) {
|
|
4408
|
-
return this.
|
|
4408
|
+
return this.knm_1;
|
|
4409
4409
|
}
|
|
4410
4410
|
// Inline function 'kotlin.ULongArray' call
|
|
4411
4411
|
var tmp = 0;
|
|
@@ -4420,10 +4420,10 @@
|
|
|
4420
4420
|
var tmp0 = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(this_1), shiftBits));
|
|
4421
4421
|
var tmp0_0 = ULongArray__get_impl_pr71q9(operand, (tmp_2 + wordsToDiscard | 0) + 1 | 0);
|
|
4422
4422
|
// Inline function 'kotlin.ULong.shl' call
|
|
4423
|
-
var bitCount = BigInteger63Arithmetic_getInstance().
|
|
4423
|
+
var bitCount = BigInteger63Arithmetic_getInstance().pnm_1 - shiftBits | 0;
|
|
4424
4424
|
var tmp0_1 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(tmp0_0), bitCount));
|
|
4425
4425
|
// Inline function 'kotlin.ULong.and' call
|
|
4426
|
-
var other = BigInteger63Arithmetic_getInstance().
|
|
4426
|
+
var other = BigInteger63Arithmetic_getInstance().rnm_1;
|
|
4427
4427
|
// Inline function 'kotlin.ULong.or' call
|
|
4428
4428
|
var other_0 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_1) & _ULong___get_data__impl__fggpzb(other));
|
|
4429
4429
|
tmp_3 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0) | _ULong___get_data__impl__fggpzb(other_0));
|
|
@@ -4442,7 +4442,7 @@
|
|
|
4442
4442
|
var result = _ULongArray___init__impl__twm1l3(tmp_1);
|
|
4443
4443
|
return result;
|
|
4444
4444
|
};
|
|
4445
|
-
protoOf(BigInteger63Arithmetic).
|
|
4445
|
+
protoOf(BigInteger63Arithmetic).wnq = function (first, second, firstStart, secondStart) {
|
|
4446
4446
|
if (firstStart > secondStart) {
|
|
4447
4447
|
return 1;
|
|
4448
4448
|
}
|
|
@@ -4480,12 +4480,12 @@
|
|
|
4480
4480
|
return -1;
|
|
4481
4481
|
}
|
|
4482
4482
|
};
|
|
4483
|
-
protoOf(BigInteger63Arithmetic).
|
|
4484
|
-
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4485
|
-
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4486
|
-
return this.
|
|
4483
|
+
protoOf(BigInteger63Arithmetic).hnm = function (first, second) {
|
|
4484
|
+
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.jnq(first) | 0;
|
|
4485
|
+
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.jnq(second) | 0;
|
|
4486
|
+
return this.wnq(first, second, firstStart, secondStart);
|
|
4487
4487
|
};
|
|
4488
|
-
protoOf(BigInteger63Arithmetic).
|
|
4488
|
+
protoOf(BigInteger63Arithmetic).xnq = function (resultArray, resultArrayStart, first, second) {
|
|
4489
4489
|
if (isZero(this, first)) {
|
|
4490
4490
|
// Inline function 'kotlin.collections.copyInto' call
|
|
4491
4491
|
var endIndex = _ULongArray___get_size__impl__ju6dtr(first);
|
|
@@ -4514,8 +4514,8 @@
|
|
|
4514
4514
|
arrayCopy(tmp_0, destination_0, resultArrayStart, 0, endIndex_0);
|
|
4515
4515
|
return Unit_instance;
|
|
4516
4516
|
}
|
|
4517
|
-
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4518
|
-
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4517
|
+
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.jnq(first) | 0;
|
|
4518
|
+
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.jnq(second) | 0;
|
|
4519
4519
|
var tmp_1;
|
|
4520
4520
|
if (firstStart > secondStart) {
|
|
4521
4521
|
tmp_1 = new Sextuple(_ULongArray___get_size__impl__ju6dtr(first), _ULongArray___get_size__impl__ju6dtr(second), new ULongArray(first), new ULongArray(second), firstStart, secondStart);
|
|
@@ -4542,7 +4542,7 @@
|
|
|
4542
4542
|
var tmp_2 = i + resultArrayStart | 0;
|
|
4543
4543
|
var tmp0_3 = sum;
|
|
4544
4544
|
// Inline function 'kotlin.ULong.and' call
|
|
4545
|
-
var other_1 = this.
|
|
4545
|
+
var other_1 = this.rnm_1;
|
|
4546
4546
|
var tmp$ret$14 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_3) & _ULong___get_data__impl__fggpzb(other_1));
|
|
4547
4547
|
ULongArray__set_impl_z19mvh(resultArray, tmp_2, tmp$ret$14);
|
|
4548
4548
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -4569,7 +4569,7 @@
|
|
|
4569
4569
|
var tmp_3 = i;
|
|
4570
4570
|
var tmp0_5 = sum;
|
|
4571
4571
|
// Inline function 'kotlin.ULong.and' call
|
|
4572
|
-
var other_3 = this.
|
|
4572
|
+
var other_3 = this.rnm_1;
|
|
4573
4573
|
var tmp$ret$17 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_5) & _ULong___get_data__impl__fggpzb(other_3));
|
|
4574
4574
|
ULongArray__set_impl_z19mvh(resultArray, tmp_3, tmp$ret$17);
|
|
4575
4575
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -4578,13 +4578,13 @@
|
|
|
4578
4578
|
i = i + 1 | 0;
|
|
4579
4579
|
}
|
|
4580
4580
|
};
|
|
4581
|
-
protoOf(BigInteger63Arithmetic).
|
|
4581
|
+
protoOf(BigInteger63Arithmetic).fnn = function (first, second) {
|
|
4582
4582
|
if (isZero(this, first))
|
|
4583
4583
|
return second;
|
|
4584
4584
|
if (isZero(this, second))
|
|
4585
4585
|
return first;
|
|
4586
|
-
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4587
|
-
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4586
|
+
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.jnq(first) | 0;
|
|
4587
|
+
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.jnq(second) | 0;
|
|
4588
4588
|
var tmp;
|
|
4589
4589
|
if (firstStart > secondStart) {
|
|
4590
4590
|
tmp = new Sextuple(_ULongArray___get_size__impl__ju6dtr(first), _ULongArray___get_size__impl__ju6dtr(second), new ULongArray(first), new ULongArray(second), firstStart, secondStart);
|
|
@@ -4641,22 +4641,22 @@
|
|
|
4641
4641
|
tmp_1 = _ULongArray___init__impl__twm1l3(tmp_7);
|
|
4642
4642
|
}
|
|
4643
4643
|
var result = tmp_1;
|
|
4644
|
-
this.
|
|
4644
|
+
this.xnq(result, 0, first, second);
|
|
4645
4645
|
var tmp_9;
|
|
4646
4646
|
if (possibleOverflow_0) {
|
|
4647
|
-
tmp_9 = this.
|
|
4647
|
+
tmp_9 = this.bnn(result);
|
|
4648
4648
|
} else {
|
|
4649
4649
|
tmp_9 = result;
|
|
4650
4650
|
}
|
|
4651
4651
|
return tmp_9;
|
|
4652
4652
|
};
|
|
4653
|
-
protoOf(BigInteger63Arithmetic).
|
|
4654
|
-
var comparison = this.
|
|
4653
|
+
protoOf(BigInteger63Arithmetic).ynq = function (first, second, firstStart, secondStart) {
|
|
4654
|
+
var comparison = this.wnq(first, second, firstStart, secondStart);
|
|
4655
4655
|
var firstSize = firstStart + 1 | 0;
|
|
4656
4656
|
var secondSize = secondStart + 1 | 0;
|
|
4657
4657
|
var firstIsLarger = comparison === 1;
|
|
4658
4658
|
if (comparison === 0)
|
|
4659
|
-
return this.
|
|
4659
|
+
return this.knm_1;
|
|
4660
4660
|
if (secondSize === 1 && ULongArray__get_impl_pr71q9(second, 0) === _ULong___init__impl__c78o9k(0n)) {
|
|
4661
4661
|
return first;
|
|
4662
4662
|
}
|
|
@@ -4698,7 +4698,7 @@
|
|
|
4698
4698
|
var tmp_3 = i;
|
|
4699
4699
|
var tmp0_1 = diff;
|
|
4700
4700
|
// Inline function 'kotlin.ULong.and' call
|
|
4701
|
-
var other_1 = this.
|
|
4701
|
+
var other_1 = this.rnm_1;
|
|
4702
4702
|
var tmp$ret$6 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_1) & _ULong___get_data__impl__fggpzb(other_1));
|
|
4703
4703
|
ULongArray__set_impl_z19mvh(result, tmp_3, tmp$ret$6);
|
|
4704
4704
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -4714,7 +4714,7 @@
|
|
|
4714
4714
|
var tmp_4 = i;
|
|
4715
4715
|
var tmp0_3 = diff;
|
|
4716
4716
|
// Inline function 'kotlin.ULong.and' call
|
|
4717
|
-
var other_3 = this.
|
|
4717
|
+
var other_3 = this.rnm_1;
|
|
4718
4718
|
var tmp$ret$9 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_3) & _ULong___get_data__impl__fggpzb(other_3));
|
|
4719
4719
|
ULongArray__set_impl_z19mvh(result, tmp_4, tmp$ret$9);
|
|
4720
4720
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -4726,22 +4726,22 @@
|
|
|
4726
4726
|
ULongArray__set_impl_z19mvh(result, i, ULongArray__get_impl_pr71q9(largerData, i));
|
|
4727
4727
|
i = i + 1 | 0;
|
|
4728
4728
|
}
|
|
4729
|
-
if (this.
|
|
4730
|
-
return this.
|
|
4729
|
+
if (this.jnq(result) === (_ULongArray___get_size__impl__ju6dtr(result) - 1 | 0) && ULongArray__get_impl_pr71q9(result, 0) === _ULong___init__impl__c78o9k(0n)) {
|
|
4730
|
+
return this.knm_1;
|
|
4731
4731
|
}
|
|
4732
|
-
return this.
|
|
4732
|
+
return this.bnn(result);
|
|
4733
4733
|
};
|
|
4734
|
-
protoOf(BigInteger63Arithmetic).
|
|
4735
|
-
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4736
|
-
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4737
|
-
return this.
|
|
4734
|
+
protoOf(BigInteger63Arithmetic).enn = function (first, second) {
|
|
4735
|
+
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.jnq(first) | 0;
|
|
4736
|
+
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.jnq(second) | 0;
|
|
4737
|
+
return this.ynq(first, second, firstStart, secondStart);
|
|
4738
4738
|
};
|
|
4739
|
-
protoOf(BigInteger63Arithmetic).
|
|
4740
|
-
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4741
|
-
var secondCorrectedSize = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4739
|
+
protoOf(BigInteger63Arithmetic).lnn = function (first, second) {
|
|
4740
|
+
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(first) - this.jnq(first) | 0;
|
|
4741
|
+
var secondCorrectedSize = _ULongArray___get_size__impl__ju6dtr(second) - this.jnq(second) | 0;
|
|
4742
4742
|
return multiplyWithCorrectedSize(this, first, second, firstCorrectedSize, secondCorrectedSize);
|
|
4743
4743
|
};
|
|
4744
|
-
protoOf(BigInteger63Arithmetic).
|
|
4744
|
+
protoOf(BigInteger63Arithmetic).znq = function (original, numberOfWords, value) {
|
|
4745
4745
|
// Inline function 'kotlin.ULongArray' call
|
|
4746
4746
|
var tmp = 0;
|
|
4747
4747
|
var tmp_0 = _ULongArray___get_size__impl__ju6dtr(original) + numberOfWords | 0;
|
|
@@ -4755,7 +4755,7 @@
|
|
|
4755
4755
|
}
|
|
4756
4756
|
return _ULongArray___init__impl__twm1l3(tmp_1);
|
|
4757
4757
|
};
|
|
4758
|
-
protoOf(BigInteger63Arithmetic).
|
|
4758
|
+
protoOf(BigInteger63Arithmetic).wnp = function (firstUnchecked, secondUnchecked) {
|
|
4759
4759
|
var tmp;
|
|
4760
4760
|
if (!((_ULongArray___get_size__impl__ju6dtr(firstUnchecked) % 3 | 0) === 0)) {
|
|
4761
4761
|
// Inline function 'kotlin.ULongArray' call
|
|
@@ -4802,10 +4802,10 @@
|
|
|
4802
4802
|
var secondLength = _ULongArray___get_size__impl__ju6dtr(second);
|
|
4803
4803
|
var tmp_9;
|
|
4804
4804
|
if (firstLength > secondLength) {
|
|
4805
|
-
var prepared = this.
|
|
4805
|
+
var prepared = this.znq(second, firstLength - secondLength | 0, _ULong___init__impl__c78o9k(0n));
|
|
4806
4806
|
tmp_9 = new Pair(new ULongArray(first), new ULongArray(prepared));
|
|
4807
4807
|
} else if (firstLength < secondLength) {
|
|
4808
|
-
var prepared_0 = this.
|
|
4808
|
+
var prepared_0 = this.znq(first, secondLength - firstLength | 0, _ULong___init__impl__c78o9k(0n));
|
|
4809
4809
|
tmp_9 = new Pair(new ULongArray(prepared_0), new ULongArray(second));
|
|
4810
4810
|
} else {
|
|
4811
4811
|
tmp_9 = new Pair(new ULongArray(first), new ULongArray(second));
|
|
@@ -4824,56 +4824,56 @@
|
|
|
4824
4824
|
var n0 = new SignedULongArray(toULongArray(slice(secondPrepared, until(0, extendedDigit))), true);
|
|
4825
4825
|
var n1 = new SignedULongArray(toULongArray(slice(secondPrepared, until(extendedDigit, imul(extendedDigit, 2)))), true);
|
|
4826
4826
|
var n2 = new SignedULongArray(toULongArray(slice(secondPrepared, until(imul(extendedDigit, 2), imul(extendedDigit, 3)))), true);
|
|
4827
|
-
var p0 = this.
|
|
4827
|
+
var p0 = this.enq(m0, m2);
|
|
4828
4828
|
var pe0 = m0;
|
|
4829
|
-
var pe1 = this.
|
|
4830
|
-
var pem1 = this.
|
|
4831
|
-
var doublePemM2 = this.
|
|
4832
|
-
var pem2 = this.
|
|
4829
|
+
var pe1 = this.enq(p0, m1);
|
|
4830
|
+
var pem1 = this.gnq(p0, m1);
|
|
4831
|
+
var doublePemM2 = this.dnq(this.enq(pem1, m2), this.znm_1);
|
|
4832
|
+
var pem2 = this.gnq(doublePemM2, m0);
|
|
4833
4833
|
var pinf = m2;
|
|
4834
|
-
var q0 = this.
|
|
4834
|
+
var q0 = this.enq(n0, n2);
|
|
4835
4835
|
var qe0 = n0;
|
|
4836
|
-
var qe1 = this.
|
|
4837
|
-
var qem1 = this.
|
|
4838
|
-
var doubleQemN2 = this.
|
|
4839
|
-
var qem2 = this.
|
|
4836
|
+
var qe1 = this.enq(q0, n1);
|
|
4837
|
+
var qem1 = this.gnq(q0, n1);
|
|
4838
|
+
var doubleQemN2 = this.dnq(this.enq(qem1, n2), this.znm_1);
|
|
4839
|
+
var qem2 = this.gnq(doubleQemN2, n0);
|
|
4840
4840
|
var qinf = n2;
|
|
4841
|
-
var re0 = this.
|
|
4842
|
-
var re1 = this.
|
|
4843
|
-
var rem1 = this.
|
|
4844
|
-
var rem2 = this.
|
|
4845
|
-
var rinf = this.
|
|
4841
|
+
var re0 = this.dnq(pe0, qe0);
|
|
4842
|
+
var re1 = this.dnq(pe1, qe1);
|
|
4843
|
+
var rem1 = this.dnq(pem1, qem1);
|
|
4844
|
+
var rem2 = this.dnq(pem2, qem2);
|
|
4845
|
+
var rinf = this.dnq(pinf, qinf);
|
|
4846
4846
|
var r0 = re0;
|
|
4847
4847
|
var r4 = rinf;
|
|
4848
|
-
var rem2re1diff = this.
|
|
4848
|
+
var rem2re1diff = this.gnq(rem2, re1);
|
|
4849
4849
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
4850
4850
|
var tmp$ret$11 = _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(3n)]));
|
|
4851
|
-
var r3 = this.
|
|
4852
|
-
var r1 = this.
|
|
4853
|
-
var r2 = this.
|
|
4854
|
-
r3 = this.
|
|
4855
|
-
r2 = this.
|
|
4856
|
-
r1 = this.
|
|
4851
|
+
var r3 = this.cnr(rem2re1diff, new SignedULongArray(tmp$ret$11, true));
|
|
4852
|
+
var r1 = this.cnq(this.gnq(re1, rem1), 1);
|
|
4853
|
+
var r2 = this.gnq(rem1, r0);
|
|
4854
|
+
r3 = this.enq(this.cnq(this.gnq(r2, r3), 1), this.dnq(this.znm_1, rinf));
|
|
4855
|
+
r2 = this.gnq(this.enq(r2, r1), r4);
|
|
4856
|
+
r1 = this.gnq(r1, r3);
|
|
4857
4857
|
var bShiftAmount = imul(extendedDigit, 63);
|
|
4858
4858
|
var rb0 = r0;
|
|
4859
|
-
var rb1 = this.
|
|
4860
|
-
var rb2 = this.
|
|
4861
|
-
var rb3 = this.
|
|
4862
|
-
var rb4 = this.
|
|
4863
|
-
var rb = this.
|
|
4864
|
-
return rb.
|
|
4865
|
-
};
|
|
4866
|
-
protoOf(BigInteger63Arithmetic).
|
|
4867
|
-
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4868
|
-
return this.
|
|
4869
|
-
};
|
|
4870
|
-
protoOf(BigInteger63Arithmetic).
|
|
4859
|
+
var rb1 = this.fnq(r1, bShiftAmount);
|
|
4860
|
+
var rb2 = this.fnq(r2, imul(bShiftAmount, 2));
|
|
4861
|
+
var rb3 = this.fnq(r3, imul(bShiftAmount, 3));
|
|
4862
|
+
var rb4 = this.fnq(r4, imul(bShiftAmount, 4));
|
|
4863
|
+
var rb = this.enq(this.enq(this.enq(this.enq(rb0, rb1), rb2), rb3), rb4);
|
|
4864
|
+
return rb.hnq_1;
|
|
4865
|
+
};
|
|
4866
|
+
protoOf(BigInteger63Arithmetic).xnp = function (first, second) {
|
|
4867
|
+
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(first) - this.jnq(first) | 0;
|
|
4868
|
+
return this.dnr(first, second, firstCorrectedSize);
|
|
4869
|
+
};
|
|
4870
|
+
protoOf(BigInteger63Arithmetic).dnr = function (first, second, firstCorrectedSize) {
|
|
4871
4871
|
// Inline function 'kotlin.ULong.and' call
|
|
4872
|
-
var other = this.
|
|
4872
|
+
var other = this.tnm_1;
|
|
4873
4873
|
var secondLow = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(second) & _ULong___get_data__impl__fggpzb(other));
|
|
4874
4874
|
// Inline function 'kotlin.ULong.shr' call
|
|
4875
4875
|
var secondHigh = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(second), 32));
|
|
4876
|
-
var requiredBits = this.
|
|
4876
|
+
var requiredBits = this.rnq(first) + this.snq(second) | 0;
|
|
4877
4877
|
var tmp;
|
|
4878
4878
|
if (!((requiredBits % 63 | 0) === 0)) {
|
|
4879
4879
|
tmp = (requiredBits / 63 | 0) + 1 | 0;
|
|
@@ -4888,7 +4888,7 @@
|
|
|
4888
4888
|
while (i < firstCorrectedSize) {
|
|
4889
4889
|
var tmp0 = ULongArray__get_impl_pr71q9(first, i);
|
|
4890
4890
|
// Inline function 'kotlin.ULong.and' call
|
|
4891
|
-
var other_0 = this.
|
|
4891
|
+
var other_0 = this.tnm_1;
|
|
4892
4892
|
var firstLow = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0) & _ULong___get_data__impl__fggpzb(other_0));
|
|
4893
4893
|
// Inline function 'kotlin.ULong.shr' call
|
|
4894
4894
|
var this_0 = ULongArray__get_impl_pr71q9(first, i);
|
|
@@ -4900,7 +4900,7 @@
|
|
|
4900
4900
|
var lowerCarry = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(lowerProduct), 63));
|
|
4901
4901
|
var tmp0_0 = carryIntoNextRound;
|
|
4902
4902
|
// Inline function 'kotlin.ULong.and' call
|
|
4903
|
-
var other_1 = this.
|
|
4903
|
+
var other_1 = this.rnm_1;
|
|
4904
4904
|
// Inline function 'kotlin.ULong.plus' call
|
|
4905
4905
|
var other_2 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(lowerProduct) & _ULong___get_data__impl__fggpzb(other_1));
|
|
4906
4906
|
var lowResult = _ULong___init__impl__c78o9k(add(_ULong___get_data__impl__fggpzb(tmp0_0), _ULong___get_data__impl__fggpzb(other_2)));
|
|
@@ -4912,7 +4912,7 @@
|
|
|
4912
4912
|
lowerCarry = _ULong___init__impl__c78o9k(add(_ULong___get_data__impl__fggpzb(tmp0_1), _ULong___get_data__impl__fggpzb(other_3)));
|
|
4913
4913
|
var tmp0_2 = lowResult;
|
|
4914
4914
|
// Inline function 'kotlin.ULong.and' call
|
|
4915
|
-
var other_4 = this.
|
|
4915
|
+
var other_4 = this.rnm_1;
|
|
4916
4916
|
lowResult = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_2) & _ULong___get_data__impl__fggpzb(other_4));
|
|
4917
4917
|
// Inline function 'kotlin.ULong.times' call
|
|
4918
4918
|
var tmp0_3 = _ULong___init__impl__c78o9k(multiply(_ULong___get_data__impl__fggpzb(firstLow), _ULong___get_data__impl__fggpzb(secondHigh)));
|
|
@@ -4930,7 +4930,7 @@
|
|
|
4930
4930
|
// Inline function 'kotlin.ULong.shl' call
|
|
4931
4931
|
var tmp0_6 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(middleProduct), 32));
|
|
4932
4932
|
// Inline function 'kotlin.ULong.and' call
|
|
4933
|
-
var other_7 = this.
|
|
4933
|
+
var other_7 = this.rnm_1;
|
|
4934
4934
|
// Inline function 'kotlin.ULong.plus' call
|
|
4935
4935
|
var other_8 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_6) & _ULong___get_data__impl__fggpzb(other_7));
|
|
4936
4936
|
lowResult = _ULong___init__impl__c78o9k(add(_ULong___get_data__impl__fggpzb(tmp0_5), _ULong___get_data__impl__fggpzb(other_8)));
|
|
@@ -4943,7 +4943,7 @@
|
|
|
4943
4943
|
var tmp_0 = j;
|
|
4944
4944
|
var tmp0_8 = lowResult;
|
|
4945
4945
|
// Inline function 'kotlin.ULong.and' call
|
|
4946
|
-
var other_10 = this.
|
|
4946
|
+
var other_10 = this.rnm_1;
|
|
4947
4947
|
var tmp$ret$21 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_8) & _ULong___get_data__impl__fggpzb(other_10));
|
|
4948
4948
|
ULongArray__set_impl_z19mvh(result, tmp_0, tmp$ret$21);
|
|
4949
4949
|
var highResult = middleCarry;
|
|
@@ -4962,31 +4962,31 @@
|
|
|
4962
4962
|
}
|
|
4963
4963
|
return result;
|
|
4964
4964
|
};
|
|
4965
|
-
protoOf(BigInteger63Arithmetic).
|
|
4965
|
+
protoOf(BigInteger63Arithmetic).rnn = function (base, exponent) {
|
|
4966
4966
|
if (exponent === 0n) {
|
|
4967
|
-
return this.
|
|
4967
|
+
return this.lnm_1;
|
|
4968
4968
|
}
|
|
4969
4969
|
if (exponent === 1n) {
|
|
4970
4970
|
return base;
|
|
4971
4971
|
}
|
|
4972
|
-
if (_ULongArray___get_size__impl__ju6dtr(base) === 1 && ULongArray__get_impl_pr71q9(base, 0) === _ULong___init__impl__c78o9k(10n) && exponent < fromInt(this.
|
|
4973
|
-
return this.
|
|
4972
|
+
if (_ULongArray___get_size__impl__ju6dtr(base) === 1 && ULongArray__get_impl_pr71q9(base, 0) === _ULong___init__impl__c78o9k(10n) && exponent < fromInt(this.ann_1.length)) {
|
|
4973
|
+
return this.ann_1[convertToInt(exponent)].xr_1;
|
|
4974
4974
|
}
|
|
4975
|
-
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(base) - this.
|
|
4976
|
-
var helperVar = this.
|
|
4975
|
+
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(base) - this.jnq(base) | 0;
|
|
4976
|
+
var helperVar = this.lnm_1;
|
|
4977
4977
|
var exponentVar = exponent;
|
|
4978
4978
|
var baseVar = base;
|
|
4979
4979
|
while (exponentVar > 1n) {
|
|
4980
4980
|
// Inline function 'kotlin.Long.rem' call
|
|
4981
4981
|
var this_0 = exponentVar;
|
|
4982
4982
|
if (modulo(this_0, fromInt(2)) === 0n) {
|
|
4983
|
-
baseVar = this.
|
|
4983
|
+
baseVar = this.nnq(baseVar, baseVar);
|
|
4984
4984
|
// Inline function 'kotlin.Long.div' call
|
|
4985
4985
|
var this_1 = exponentVar;
|
|
4986
4986
|
exponentVar = divide(this_1, fromInt(2));
|
|
4987
4987
|
} else {
|
|
4988
|
-
helperVar = this.
|
|
4989
|
-
baseVar = this.
|
|
4988
|
+
helperVar = this.nnq(baseVar, helperVar);
|
|
4989
|
+
baseVar = this.nnq(baseVar, baseVar);
|
|
4990
4990
|
// Inline function 'kotlin.Long.minus' call
|
|
4991
4991
|
var this_2 = exponentVar;
|
|
4992
4992
|
// Inline function 'kotlin.Long.div' call
|
|
@@ -4994,22 +4994,22 @@
|
|
|
4994
4994
|
exponentVar = divide(this_3, fromInt(2));
|
|
4995
4995
|
}
|
|
4996
4996
|
}
|
|
4997
|
-
return this.
|
|
4997
|
+
return this.nnq(helperVar, baseVar);
|
|
4998
4998
|
};
|
|
4999
|
-
protoOf(BigInteger63Arithmetic).
|
|
4999
|
+
protoOf(BigInteger63Arithmetic).enr = function (dividend, divisor) {
|
|
5000
5000
|
var divisorSize = _ULongArray___get_size__impl__ju6dtr(divisor);
|
|
5001
|
-
var normalizationShift = this.
|
|
5002
|
-
var divisorNormalized = this.
|
|
5003
|
-
var dividendNormalized = this.
|
|
5001
|
+
var normalizationShift = this.pnq(ULongArray__get_impl_pr71q9(divisor, divisorSize - 1 | 0));
|
|
5002
|
+
var divisorNormalized = this.ynp(divisor, normalizationShift);
|
|
5003
|
+
var dividendNormalized = this.ynp(dividend, normalizationShift);
|
|
5004
5004
|
return new Triple(new ULongArray(dividendNormalized), new ULongArray(divisorNormalized), normalizationShift);
|
|
5005
5005
|
};
|
|
5006
|
-
protoOf(BigInteger63Arithmetic).
|
|
5007
|
-
var remainder = this.
|
|
5006
|
+
protoOf(BigInteger63Arithmetic).inr = function (remainderNormalized, normalizationShift) {
|
|
5007
|
+
var remainder = this.jnr(remainderNormalized, normalizationShift);
|
|
5008
5008
|
return remainder;
|
|
5009
5009
|
};
|
|
5010
|
-
protoOf(BigInteger63Arithmetic).
|
|
5011
|
-
if (this.
|
|
5012
|
-
return new Pair(new ULongArray(this.
|
|
5010
|
+
protoOf(BigInteger63Arithmetic).lnr = function (unnormalizedDividend, unnormalizedDivisor) {
|
|
5011
|
+
if (this.tnn(unnormalizedDivisor, unnormalizedDividend) > 0) {
|
|
5012
|
+
return new Pair(new ULongArray(this.knm_1), new ULongArray(unnormalizedDividend));
|
|
5013
5013
|
}
|
|
5014
5014
|
if (_ULongArray___get_size__impl__ju6dtr(unnormalizedDivisor) === 1 && _ULongArray___get_size__impl__ju6dtr(unnormalizedDividend) === 1) {
|
|
5015
5015
|
var tmp0 = ULongArray__get_impl_pr71q9(unnormalizedDividend, 0);
|
|
@@ -5018,35 +5018,35 @@
|
|
|
5018
5018
|
var tmp$ret$0 = ulongDivide(tmp0, other);
|
|
5019
5019
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5020
5020
|
var tmp$ret$1 = _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$0]));
|
|
5021
|
-
var tmp = this.
|
|
5021
|
+
var tmp = this.bnn(tmp$ret$1);
|
|
5022
5022
|
var tmp0_0 = ULongArray__get_impl_pr71q9(unnormalizedDividend, 0);
|
|
5023
5023
|
// Inline function 'kotlin.ULong.rem' call
|
|
5024
5024
|
var other_0 = ULongArray__get_impl_pr71q9(unnormalizedDivisor, 0);
|
|
5025
5025
|
var tmp$ret$2 = ulongRemainder(tmp0_0, other_0);
|
|
5026
5026
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5027
5027
|
var tmp$ret$3 = _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$2]));
|
|
5028
|
-
return new Pair(new ULongArray(tmp), new ULongArray(this.
|
|
5028
|
+
return new Pair(new ULongArray(tmp), new ULongArray(this.bnn(tmp$ret$3)));
|
|
5029
5029
|
}
|
|
5030
|
-
var bitPrecision = this.
|
|
5030
|
+
var bitPrecision = this.rnq(unnormalizedDividend) - this.rnq(unnormalizedDivisor) | 0;
|
|
5031
5031
|
if (bitPrecision === 0) {
|
|
5032
|
-
return new Pair(new ULongArray(this.
|
|
5032
|
+
return new Pair(new ULongArray(this.lnm_1), new ULongArray(this.mnq(unnormalizedDividend, unnormalizedDivisor)));
|
|
5033
5033
|
}
|
|
5034
|
-
var _destruct__k2r9zo = this.
|
|
5034
|
+
var _destruct__k2r9zo = this.enr(unnormalizedDividend, unnormalizedDivisor);
|
|
5035
5035
|
var dividend = _destruct__k2r9zo.xg().xr_1;
|
|
5036
5036
|
var divisor = _destruct__k2r9zo.yg().xr_1;
|
|
5037
5037
|
var normalizationShift = _destruct__k2r9zo.lq();
|
|
5038
5038
|
var dividendSize = _ULongArray___get_size__impl__ju6dtr(dividend);
|
|
5039
5039
|
var divisorSize = _ULongArray___get_size__impl__ju6dtr(divisor);
|
|
5040
|
-
var divisorCorrectedSize = _ULongArray___get_size__impl__ju6dtr(divisor) - this.
|
|
5040
|
+
var divisorCorrectedSize = _ULongArray___get_size__impl__ju6dtr(divisor) - this.jnq(divisor) | 0;
|
|
5041
5041
|
var wordPrecision = dividendSize - divisorSize | 0;
|
|
5042
5042
|
var qjhat;
|
|
5043
5043
|
var reconstructedQuotient;
|
|
5044
5044
|
var quotient = _ULongArray___init__impl__twm1l3_0(wordPrecision);
|
|
5045
|
-
var divisorTimesBaseToPowerOfM = this.
|
|
5046
|
-
if (this.
|
|
5045
|
+
var divisorTimesBaseToPowerOfM = this.ynp(divisor, imul(wordPrecision, this.pnm_1));
|
|
5046
|
+
if (this.tnn(dividend, divisorTimesBaseToPowerOfM) >= 0) {
|
|
5047
5047
|
quotient = _ULongArray___init__impl__twm1l3_0(wordPrecision + 1 | 0);
|
|
5048
5048
|
ULongArray__set_impl_z19mvh(quotient, wordPrecision, _ULong___init__impl__c78o9k(1n));
|
|
5049
|
-
dividend = this.
|
|
5049
|
+
dividend = this.mnq(dividend, divisorTimesBaseToPowerOfM);
|
|
5050
5050
|
}
|
|
5051
5051
|
var inductionVariable = wordPrecision - 1 | 0;
|
|
5052
5052
|
if (0 <= inductionVariable)
|
|
@@ -5057,39 +5057,39 @@
|
|
|
5057
5057
|
if ((divisorSize + j | 0) < _ULongArray___get_size__impl__ju6dtr(dividend)) {
|
|
5058
5058
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5059
5059
|
var tmp$ret$4 = _ULongArray___init__impl__twm1l3(new BigInt64Array([ULongArray__get_impl_pr71q9(dividend, divisorSize + j | 0)]));
|
|
5060
|
-
tmp_0 = this.
|
|
5060
|
+
tmp_0 = this.mnr(this.ynp(tmp$ret$4, this.pnm_1), ULongArray__get_impl_pr71q9(dividend, (divisorSize + j | 0) - 1 | 0));
|
|
5061
5061
|
} else {
|
|
5062
5062
|
var tmp_1;
|
|
5063
5063
|
if ((divisorSize + j | 0) === _ULongArray___get_size__impl__ju6dtr(dividend)) {
|
|
5064
5064
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5065
5065
|
tmp_1 = _ULongArray___init__impl__twm1l3(new BigInt64Array([ULongArray__get_impl_pr71q9(dividend, (divisorSize + j | 0) - 1 | 0)]));
|
|
5066
5066
|
} else {
|
|
5067
|
-
tmp_1 = this.
|
|
5067
|
+
tmp_1 = this.knm_1;
|
|
5068
5068
|
}
|
|
5069
5069
|
tmp_0 = tmp_1;
|
|
5070
5070
|
}
|
|
5071
5071
|
var twoDigit = tmp_0;
|
|
5072
5072
|
var tmp_2 = BigInteger32Arithmetic_getInstance();
|
|
5073
|
-
var tmp_3 = this.
|
|
5073
|
+
var tmp_3 = this.nnr(twoDigit);
|
|
5074
5074
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5075
5075
|
var tmp$ret$6 = _ULongArray___init__impl__twm1l3(new BigInt64Array([ULongArray__get_impl_pr71q9(divisor, divisorSize - 1 | 0)]));
|
|
5076
|
-
var convertedResult = tmp_2.
|
|
5077
|
-
qjhat = this.
|
|
5076
|
+
var convertedResult = tmp_2.qnp(tmp_3, this.nnr(tmp$ret$6));
|
|
5077
|
+
qjhat = this.onr(convertedResult.first.nr_1);
|
|
5078
5078
|
var tmp_4 = quotient;
|
|
5079
5079
|
var tmp_5;
|
|
5080
5080
|
var tmp_6 = qjhat;
|
|
5081
|
-
var tmp0_1 = this.
|
|
5081
|
+
var tmp0_1 = this.rnm_1;
|
|
5082
5082
|
// Inline function 'kotlin.ULong.minus' call
|
|
5083
5083
|
var other_1 = _ULong___init__impl__c78o9k(1n);
|
|
5084
5084
|
var tmp$ret$7 = _ULong___init__impl__c78o9k(subtract(_ULong___get_data__impl__fggpzb(tmp0_1), _ULong___get_data__impl__fggpzb(other_1)));
|
|
5085
|
-
if (this.
|
|
5085
|
+
if (this.qnr(tmp_6, tmp$ret$7) < 0) {
|
|
5086
5086
|
tmp_5 = ULongArray__get_impl_pr71q9(qjhat, 0);
|
|
5087
5087
|
} else {
|
|
5088
|
-
tmp_5 = this.
|
|
5088
|
+
tmp_5 = this.rnm_1;
|
|
5089
5089
|
}
|
|
5090
5090
|
ULongArray__set_impl_z19mvh(tmp_4, j, tmp_5);
|
|
5091
|
-
reconstructedQuotient = this.
|
|
5092
|
-
while (this.
|
|
5091
|
+
reconstructedQuotient = this.ynp(this.dnr(divisor, ULongArray__get_impl_pr71q9(quotient, j), divisorCorrectedSize), imul(j, this.pnm_1));
|
|
5092
|
+
while (this.tnn(reconstructedQuotient, dividend) > 0) {
|
|
5093
5093
|
var tmp_7 = quotient;
|
|
5094
5094
|
var tmp0_2 = ULongArray__get_impl_pr71q9(quotient, j);
|
|
5095
5095
|
// Inline function 'kotlin.ULong.minus' call
|
|
@@ -5103,22 +5103,22 @@
|
|
|
5103
5103
|
var other_2 = _ULong___init__impl__c78o9k(tmp$ret$8);
|
|
5104
5104
|
var tmp$ret$12 = _ULong___init__impl__c78o9k(subtract(_ULong___get_data__impl__fggpzb(tmp0_2), _ULong___get_data__impl__fggpzb(other_2)));
|
|
5105
5105
|
ULongArray__set_impl_z19mvh(tmp_7, j, tmp$ret$12);
|
|
5106
|
-
reconstructedQuotient = this.
|
|
5106
|
+
reconstructedQuotient = this.ynp(this.dnr(divisor, ULongArray__get_impl_pr71q9(quotient, j), divisorCorrectedSize), imul(j, this.pnm_1));
|
|
5107
5107
|
}
|
|
5108
|
-
dividend = this.
|
|
5108
|
+
dividend = this.mnq(dividend, reconstructedQuotient);
|
|
5109
5109
|
}
|
|
5110
5110
|
while (0 <= inductionVariable);
|
|
5111
|
-
while (this.
|
|
5112
|
-
quotient = this.
|
|
5113
|
-
dividend = this.
|
|
5111
|
+
while (this.tnn(dividend, divisor) >= 0) {
|
|
5112
|
+
quotient = this.mnr(quotient, _ULong___init__impl__c78o9k(1n));
|
|
5113
|
+
dividend = this.mnq(dividend, divisor);
|
|
5114
5114
|
}
|
|
5115
|
-
var denormRemainder = this.
|
|
5116
|
-
return new Pair(new ULongArray(this.
|
|
5115
|
+
var denormRemainder = this.inr(dividend, normalizationShift);
|
|
5116
|
+
return new Pair(new ULongArray(this.bnn(quotient)), new ULongArray(denormRemainder));
|
|
5117
5117
|
};
|
|
5118
|
-
protoOf(BigInteger63Arithmetic).
|
|
5118
|
+
protoOf(BigInteger63Arithmetic).rnr = function (operand) {
|
|
5119
5119
|
if (isZero(this, operand))
|
|
5120
|
-
return this.
|
|
5121
|
-
var length = this.
|
|
5120
|
+
return this.knm_1;
|
|
5121
|
+
var length = this.rnq(operand);
|
|
5122
5122
|
var tmp;
|
|
5123
5123
|
if ((length % 64 | 0) === 0) {
|
|
5124
5124
|
tmp = length / 64 | 0;
|
|
@@ -5155,10 +5155,10 @@
|
|
|
5155
5155
|
}
|
|
5156
5156
|
}
|
|
5157
5157
|
while (inductionVariable < requiredLength);
|
|
5158
|
-
return this.
|
|
5158
|
+
return this.bnn(result);
|
|
5159
5159
|
};
|
|
5160
|
-
protoOf(BigInteger63Arithmetic).
|
|
5161
|
-
var power64Representation = this.
|
|
5160
|
+
protoOf(BigInteger63Arithmetic).tnr = function (operand) {
|
|
5161
|
+
var power64Representation = this.rnr(operand);
|
|
5162
5162
|
var result = _UIntArray___init__impl__ghjpc6(imul(_ULongArray___get_size__impl__ju6dtr(power64Representation), 2));
|
|
5163
5163
|
var inductionVariable = 0;
|
|
5164
5164
|
var last = _ULongArray___get_size__impl__ju6dtr(power64Representation);
|
|
@@ -5169,7 +5169,7 @@
|
|
|
5169
5169
|
var tmp = imul(2, i);
|
|
5170
5170
|
var tmp0 = ULongArray__get_impl_pr71q9(power64Representation, i);
|
|
5171
5171
|
// Inline function 'kotlin.UInt.toULong' call
|
|
5172
|
-
var this_0 = BigInteger32Arithmetic_getInstance().
|
|
5172
|
+
var this_0 = BigInteger32Arithmetic_getInstance().rno_1;
|
|
5173
5173
|
// Inline function 'kotlin.uintToULong' call
|
|
5174
5174
|
// Inline function 'kotlin.uintToLong' call
|
|
5175
5175
|
var value = _UInt___get_data__impl__f0vqqw(this_0);
|
|
@@ -5193,11 +5193,11 @@
|
|
|
5193
5193
|
UIntArray__set_impl_7f2zu2(result, tmp_0, tmp$ret$8);
|
|
5194
5194
|
}
|
|
5195
5195
|
while (inductionVariable < last);
|
|
5196
|
-
return BigInteger32Arithmetic_getInstance().
|
|
5196
|
+
return BigInteger32Arithmetic_getInstance().enp(result);
|
|
5197
5197
|
};
|
|
5198
|
-
protoOf(BigInteger63Arithmetic).
|
|
5198
|
+
protoOf(BigInteger63Arithmetic).unr = function (operand) {
|
|
5199
5199
|
if (_UIntArray___get_size__impl__r6l8ci(operand) === 0) {
|
|
5200
|
-
return this.
|
|
5200
|
+
return this.knm_1;
|
|
5201
5201
|
}
|
|
5202
5202
|
if (_UIntArray___get_size__impl__r6l8ci(operand) === 1) {
|
|
5203
5203
|
// Inline function 'kotlin.UInt.toULong' call
|
|
@@ -5210,7 +5210,7 @@
|
|
|
5210
5210
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5211
5211
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$2]));
|
|
5212
5212
|
}
|
|
5213
|
-
var length = BigInteger32Arithmetic_getInstance().
|
|
5213
|
+
var length = BigInteger32Arithmetic_getInstance().cnp(operand);
|
|
5214
5214
|
var tmp;
|
|
5215
5215
|
if ((length % 63 | 0) === 0) {
|
|
5216
5216
|
tmp = length / 63 | 0;
|
|
@@ -5246,7 +5246,7 @@
|
|
|
5246
5246
|
var this_3 = _ULong___init__impl__c78o9k(tmp$ret$7);
|
|
5247
5247
|
var tmp0_0 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_3), 32));
|
|
5248
5248
|
// Inline function 'kotlin.ULong.and' call
|
|
5249
|
-
var other = this.
|
|
5249
|
+
var other = this.unm_1;
|
|
5250
5250
|
// Inline function 'kotlin.ULong.or' call
|
|
5251
5251
|
var other_0 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_0) & _ULong___get_data__impl__fggpzb(other));
|
|
5252
5252
|
var tmp$ret$12 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0) | _ULong___get_data__impl__fggpzb(other_0));
|
|
@@ -5339,7 +5339,7 @@
|
|
|
5339
5339
|
var this_18 = _ULong___init__impl__c78o9k(tmp$ret$43);
|
|
5340
5340
|
var tmp0_5 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_18), 32));
|
|
5341
5341
|
// Inline function 'kotlin.ULong.and' call
|
|
5342
|
-
var other_4 = this.
|
|
5342
|
+
var other_4 = this.unm_1;
|
|
5343
5343
|
// Inline function 'kotlin.ULong.or' call
|
|
5344
5344
|
var other_5 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_5) & _ULong___get_data__impl__fggpzb(other_4));
|
|
5345
5345
|
var tmp$ret$48 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_4) | _ULong___get_data__impl__fggpzb(other_5));
|
|
@@ -5377,7 +5377,7 @@
|
|
|
5377
5377
|
var bitCount_0 = 32 + shiftAmount | 0;
|
|
5378
5378
|
var tmp0_10 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(tmp0_9), bitCount_0));
|
|
5379
5379
|
// Inline function 'kotlin.ULong.and' call
|
|
5380
|
-
var other_7 = this.
|
|
5380
|
+
var other_7 = this.unm_1;
|
|
5381
5381
|
// Inline function 'kotlin.ULong.or' call
|
|
5382
5382
|
var other_8 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_10) & _ULong___get_data__impl__fggpzb(other_7));
|
|
5383
5383
|
var tmp$ret$63 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_8) | _ULong___get_data__impl__fggpzb(other_8));
|
|
@@ -5425,15 +5425,15 @@
|
|
|
5425
5425
|
while (inductionVariable < requiredLength);
|
|
5426
5426
|
return result;
|
|
5427
5427
|
};
|
|
5428
|
-
protoOf(BigInteger63Arithmetic).
|
|
5428
|
+
protoOf(BigInteger63Arithmetic).vnr = function (operand) {
|
|
5429
5429
|
if (_ULongArray___get_size__impl__ju6dtr(operand) === 0) {
|
|
5430
|
-
return this.
|
|
5430
|
+
return this.knm_1;
|
|
5431
5431
|
}
|
|
5432
5432
|
if (_ULongArray___get_size__impl__ju6dtr(operand) === 1) {
|
|
5433
5433
|
var result = _ULongArray___init__impl__twm1l3_0(2);
|
|
5434
5434
|
var tmp0 = ULongArray__get_impl_pr71q9(operand, 0);
|
|
5435
5435
|
// Inline function 'kotlin.ULong.and' call
|
|
5436
|
-
var other = this.
|
|
5436
|
+
var other = this.rnm_1;
|
|
5437
5437
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0) & _ULong___get_data__impl__fggpzb(other));
|
|
5438
5438
|
ULongArray__set_impl_z19mvh(result, 0, tmp$ret$0);
|
|
5439
5439
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -5442,7 +5442,7 @@
|
|
|
5442
5442
|
ULongArray__set_impl_z19mvh(result, 1, tmp$ret$1);
|
|
5443
5443
|
return result;
|
|
5444
5444
|
}
|
|
5445
|
-
var length = this.
|
|
5445
|
+
var length = this.tnq(operand);
|
|
5446
5446
|
var tmp;
|
|
5447
5447
|
if ((length % 63 | 0) === 0) {
|
|
5448
5448
|
tmp = length / 63 | 0;
|
|
@@ -5454,7 +5454,7 @@
|
|
|
5454
5454
|
var result_0 = _ULongArray___init__impl__twm1l3_0(2);
|
|
5455
5455
|
var tmp0_0 = ULongArray__get_impl_pr71q9(operand, 0);
|
|
5456
5456
|
// Inline function 'kotlin.ULong.and' call
|
|
5457
|
-
var other_0 = this.
|
|
5457
|
+
var other_0 = this.rnm_1;
|
|
5458
5458
|
var tmp$ret$2 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_0) & _ULong___get_data__impl__fggpzb(other_0));
|
|
5459
5459
|
ULongArray__set_impl_z19mvh(result_0, 0, tmp$ret$2);
|
|
5460
5460
|
// Inline function 'kotlin.ULong.shl' call
|
|
@@ -5481,7 +5481,7 @@
|
|
|
5481
5481
|
if (i === 0) {
|
|
5482
5482
|
var tmp0_2 = ULongArray__get_impl_pr71q9(operand, 0);
|
|
5483
5483
|
// Inline function 'kotlin.ULong.and' call
|
|
5484
|
-
var other_2 = this.
|
|
5484
|
+
var other_2 = this.rnm_1;
|
|
5485
5485
|
var tmp$ret$6 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_2) & _ULong___get_data__impl__fggpzb(other_2));
|
|
5486
5486
|
ULongArray__set_impl_z19mvh(result_1, i, tmp$ret$6);
|
|
5487
5487
|
} else if (1 <= i ? i < (requiredLength - 1 | 0) : false) {
|
|
@@ -5497,14 +5497,14 @@
|
|
|
5497
5497
|
var other_3 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_3), shiftAmount));
|
|
5498
5498
|
var tmp0_5 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_4) | _ULong___get_data__impl__fggpzb(other_3));
|
|
5499
5499
|
// Inline function 'kotlin.ULong.and' call
|
|
5500
|
-
var other_4 = this.
|
|
5500
|
+
var other_4 = this.rnm_1;
|
|
5501
5501
|
tmp_0 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_5) & _ULong___get_data__impl__fggpzb(other_4));
|
|
5502
5502
|
} else {
|
|
5503
5503
|
// Inline function 'kotlin.ULong.shl' call
|
|
5504
5504
|
var this_4 = ULongArray__get_impl_pr71q9(operand, position);
|
|
5505
5505
|
var tmp0_6 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_4), shiftAmount));
|
|
5506
5506
|
// Inline function 'kotlin.ULong.and' call
|
|
5507
|
-
var other_5 = this.
|
|
5507
|
+
var other_5 = this.rnm_1;
|
|
5508
5508
|
tmp_0 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_6) & _ULong___get_data__impl__fggpzb(other_5));
|
|
5509
5509
|
}
|
|
5510
5510
|
ULongArray__set_impl_z19mvh(result_1, i, tmp_0);
|
|
@@ -5522,14 +5522,14 @@
|
|
|
5522
5522
|
var other_6 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_5), shiftAmount));
|
|
5523
5523
|
var tmp0_9 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_8) | _ULong___get_data__impl__fggpzb(other_6));
|
|
5524
5524
|
// Inline function 'kotlin.ULong.and' call
|
|
5525
|
-
var other_7 = this.
|
|
5525
|
+
var other_7 = this.rnm_1;
|
|
5526
5526
|
tmp_1 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_9) & _ULong___get_data__impl__fggpzb(other_7));
|
|
5527
5527
|
} else {
|
|
5528
5528
|
// Inline function 'kotlin.ULong.shl' call
|
|
5529
5529
|
var this_6 = ULongArray__get_impl_pr71q9(operand, position);
|
|
5530
5530
|
var tmp0_10 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_6), shiftAmount));
|
|
5531
5531
|
// Inline function 'kotlin.ULong.and' call
|
|
5532
|
-
var other_8 = this.
|
|
5532
|
+
var other_8 = this.rnm_1;
|
|
5533
5533
|
tmp_1 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_10) & _ULong___get_data__impl__fggpzb(other_8));
|
|
5534
5534
|
}
|
|
5535
5535
|
ULongArray__set_impl_z19mvh(result_1, i, tmp_1);
|
|
@@ -5550,32 +5550,32 @@
|
|
|
5550
5550
|
while (inductionVariable < requiredLength);
|
|
5551
5551
|
return result_1;
|
|
5552
5552
|
};
|
|
5553
|
-
protoOf(BigInteger63Arithmetic).
|
|
5554
|
-
return this.
|
|
5553
|
+
protoOf(BigInteger63Arithmetic).nnn = function (first, second) {
|
|
5554
|
+
return this.lnr(first, second);
|
|
5555
5555
|
};
|
|
5556
|
-
protoOf(BigInteger63Arithmetic).
|
|
5556
|
+
protoOf(BigInteger63Arithmetic).enq = function (_this__u8e3s4, other) {
|
|
5557
5557
|
return signedAdd(this, _this__u8e3s4, other);
|
|
5558
5558
|
};
|
|
5559
|
-
protoOf(BigInteger63Arithmetic).
|
|
5559
|
+
protoOf(BigInteger63Arithmetic).gnq = function (_this__u8e3s4, other) {
|
|
5560
5560
|
return signedSubtract(this, _this__u8e3s4, other);
|
|
5561
5561
|
};
|
|
5562
|
-
protoOf(BigInteger63Arithmetic).
|
|
5562
|
+
protoOf(BigInteger63Arithmetic).dnq = function (_this__u8e3s4, other) {
|
|
5563
5563
|
return signedMultiply(this, _this__u8e3s4, other);
|
|
5564
5564
|
};
|
|
5565
|
-
protoOf(BigInteger63Arithmetic).
|
|
5565
|
+
protoOf(BigInteger63Arithmetic).cnr = function (_this__u8e3s4, other) {
|
|
5566
5566
|
return signedDivide(this, _this__u8e3s4, other);
|
|
5567
5567
|
};
|
|
5568
|
-
protoOf(BigInteger63Arithmetic).znp = function (_this__u8e3s4, places) {
|
|
5569
|
-
return new SignedULongArray(this.dnr(_this__u8e3s4.enq_1, places), _this__u8e3s4.fnq_1);
|
|
5570
|
-
};
|
|
5571
5568
|
protoOf(BigInteger63Arithmetic).cnq = function (_this__u8e3s4, places) {
|
|
5572
|
-
return new SignedULongArray(this.
|
|
5569
|
+
return new SignedULongArray(this.jnr(_this__u8e3s4.hnq_1, places), _this__u8e3s4.inq_1);
|
|
5570
|
+
};
|
|
5571
|
+
protoOf(BigInteger63Arithmetic).fnq = function (_this__u8e3s4, places) {
|
|
5572
|
+
return new SignedULongArray(this.ynp(_this__u8e3s4.hnq_1, places), _this__u8e3s4.inq_1);
|
|
5573
5573
|
};
|
|
5574
|
-
protoOf(BigInteger63Arithmetic).
|
|
5575
|
-
return new SignedULongArray(this.
|
|
5574
|
+
protoOf(BigInteger63Arithmetic).bnq = function (_this__u8e3s4, operand) {
|
|
5575
|
+
return new SignedULongArray(this.wnr(_this__u8e3s4.hnq_1, operand), _this__u8e3s4.inq_1);
|
|
5576
5576
|
};
|
|
5577
|
-
protoOf(BigInteger63Arithmetic).
|
|
5578
|
-
var parsed = this.
|
|
5577
|
+
protoOf(BigInteger63Arithmetic).wnl = function (number, base) {
|
|
5578
|
+
var parsed = this.knm_1;
|
|
5579
5579
|
// Inline function 'kotlin.text.toLowerCase' call
|
|
5580
5580
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5581
5581
|
// Inline function 'kotlin.text.forEach' call
|
|
@@ -5589,15 +5589,15 @@
|
|
|
5589
5589
|
var tmp_1 = parsed;
|
|
5590
5590
|
// Inline function 'kotlin.toULong' call
|
|
5591
5591
|
var tmp$ret$2 = _ULong___init__impl__c78o9k(fromInt(base));
|
|
5592
|
-
var tmp_2 = tmp_0.
|
|
5592
|
+
var tmp_2 = tmp_0.xnr(tmp_1, tmp$ret$2);
|
|
5593
5593
|
// Inline function 'kotlin.toULong' call
|
|
5594
5594
|
var this_0 = toDigit(element, base);
|
|
5595
5595
|
var tmp$ret$3 = _ULong___init__impl__c78o9k(fromInt(this_0));
|
|
5596
|
-
parsed = tmp.
|
|
5596
|
+
parsed = tmp.mnr(tmp_2, tmp$ret$3);
|
|
5597
5597
|
}
|
|
5598
|
-
return this.
|
|
5598
|
+
return this.bnn(parsed);
|
|
5599
5599
|
};
|
|
5600
|
-
protoOf(BigInteger63Arithmetic).
|
|
5600
|
+
protoOf(BigInteger63Arithmetic).xnn = function (operand, base) {
|
|
5601
5601
|
// Inline function 'kotlin.collections.copyOf' call
|
|
5602
5602
|
var copy = _ULongArray___init__impl__twm1l3(copyOf(_ULongArray___get_storage__impl__28e64j(operand)));
|
|
5603
5603
|
// Inline function 'kotlin.toULong' call
|
|
@@ -5605,8 +5605,8 @@
|
|
|
5605
5605
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5606
5606
|
var baseArray = _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$1]));
|
|
5607
5607
|
var stringBuilder = StringBuilder_init_$Create$();
|
|
5608
|
-
while (!equals(copy, this.
|
|
5609
|
-
var divremResult = this.
|
|
5608
|
+
while (!equals(copy, this.knm_1)) {
|
|
5609
|
+
var divremResult = this.ynr(copy, baseArray);
|
|
5610
5610
|
if (ULongArray__isEmpty_impl_c3yngu(divremResult.second.xr_1)) {
|
|
5611
5611
|
stringBuilder.yc(0);
|
|
5612
5612
|
} else {
|
|
@@ -5618,7 +5618,7 @@
|
|
|
5618
5618
|
var this_0 = stringBuilder.toString();
|
|
5619
5619
|
return toString(reversed(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
5620
5620
|
};
|
|
5621
|
-
protoOf(BigInteger63Arithmetic).
|
|
5621
|
+
protoOf(BigInteger63Arithmetic).wnr = function (operand, mask) {
|
|
5622
5622
|
var tmp;
|
|
5623
5623
|
if (_ULongArray___get_size__impl__ju6dtr(operand) > _ULongArray___get_size__impl__ju6dtr(mask)) {
|
|
5624
5624
|
tmp = new Pair(new ULongArray(operand), new ULongArray(mask));
|
|
@@ -5644,61 +5644,61 @@
|
|
|
5644
5644
|
}
|
|
5645
5645
|
return _ULongArray___init__impl__twm1l3(tmp_2);
|
|
5646
5646
|
};
|
|
5647
|
-
protoOf(BigInteger63Arithmetic).
|
|
5648
|
-
return this.
|
|
5647
|
+
protoOf(BigInteger63Arithmetic).ynp = function (_this__u8e3s4, places) {
|
|
5648
|
+
return this.vnq(_this__u8e3s4, places);
|
|
5649
5649
|
};
|
|
5650
|
-
protoOf(BigInteger63Arithmetic).
|
|
5651
|
-
return this.
|
|
5650
|
+
protoOf(BigInteger63Arithmetic).jnr = function (_this__u8e3s4, places) {
|
|
5651
|
+
return this.vnn(_this__u8e3s4, places);
|
|
5652
5652
|
};
|
|
5653
|
-
protoOf(BigInteger63Arithmetic).
|
|
5654
|
-
return this.
|
|
5653
|
+
protoOf(BigInteger63Arithmetic).znp = function (_this__u8e3s4, other) {
|
|
5654
|
+
return this.fnn(_this__u8e3s4, other);
|
|
5655
5655
|
};
|
|
5656
|
-
protoOf(BigInteger63Arithmetic).
|
|
5657
|
-
return this.
|
|
5656
|
+
protoOf(BigInteger63Arithmetic).mnq = function (_this__u8e3s4, other) {
|
|
5657
|
+
return this.enn(_this__u8e3s4, other);
|
|
5658
5658
|
};
|
|
5659
|
-
protoOf(BigInteger63Arithmetic).
|
|
5660
|
-
return this.
|
|
5659
|
+
protoOf(BigInteger63Arithmetic).nnq = function (_this__u8e3s4, other) {
|
|
5660
|
+
return this.lnn(_this__u8e3s4, other);
|
|
5661
5661
|
};
|
|
5662
|
-
protoOf(BigInteger63Arithmetic).
|
|
5662
|
+
protoOf(BigInteger63Arithmetic).mnr = function (_this__u8e3s4, other) {
|
|
5663
5663
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5664
5664
|
var tmp$ret$0 = _ULongArray___init__impl__twm1l3(new BigInt64Array([other]));
|
|
5665
|
-
return this.
|
|
5665
|
+
return this.fnn(_this__u8e3s4, tmp$ret$0);
|
|
5666
5666
|
};
|
|
5667
|
-
protoOf(BigInteger63Arithmetic).
|
|
5667
|
+
protoOf(BigInteger63Arithmetic).anq = function (_this__u8e3s4, other) {
|
|
5668
5668
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5669
5669
|
var tmp$ret$0 = _ULongArray___init__impl__twm1l3(new BigInt64Array([other]));
|
|
5670
|
-
return this.
|
|
5670
|
+
return this.enn(_this__u8e3s4, tmp$ret$0);
|
|
5671
5671
|
};
|
|
5672
|
-
protoOf(BigInteger63Arithmetic).
|
|
5673
|
-
return this.
|
|
5672
|
+
protoOf(BigInteger63Arithmetic).xnr = function (_this__u8e3s4, other) {
|
|
5673
|
+
return this.xnp(_this__u8e3s4, other);
|
|
5674
5674
|
};
|
|
5675
|
-
protoOf(BigInteger63Arithmetic).
|
|
5676
|
-
return this.
|
|
5675
|
+
protoOf(BigInteger63Arithmetic).onq = function (_this__u8e3s4, other) {
|
|
5676
|
+
return this.nnn(_this__u8e3s4, other).first.xr_1;
|
|
5677
5677
|
};
|
|
5678
|
-
protoOf(BigInteger63Arithmetic).
|
|
5679
|
-
return this.
|
|
5678
|
+
protoOf(BigInteger63Arithmetic).ynr = function (_this__u8e3s4, other) {
|
|
5679
|
+
return this.nnn(_this__u8e3s4, other);
|
|
5680
5680
|
};
|
|
5681
|
-
protoOf(BigInteger63Arithmetic).
|
|
5682
|
-
return this.
|
|
5681
|
+
protoOf(BigInteger63Arithmetic).tnn = function (_this__u8e3s4, other) {
|
|
5682
|
+
return this.hnm(_this__u8e3s4, other);
|
|
5683
5683
|
};
|
|
5684
|
-
protoOf(BigInteger63Arithmetic).
|
|
5684
|
+
protoOf(BigInteger63Arithmetic).qnr = function (_this__u8e3s4, other) {
|
|
5685
5685
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5686
5686
|
var tmp$ret$0 = _ULongArray___init__impl__twm1l3(new BigInt64Array([other]));
|
|
5687
|
-
return this.
|
|
5687
|
+
return this.hnm(_this__u8e3s4, tmp$ret$0);
|
|
5688
5688
|
};
|
|
5689
|
-
protoOf(BigInteger63Arithmetic).
|
|
5690
|
-
return this.
|
|
5689
|
+
protoOf(BigInteger63Arithmetic).nnr = function (_this__u8e3s4) {
|
|
5690
|
+
return this.tnr(_this__u8e3s4);
|
|
5691
5691
|
};
|
|
5692
|
-
protoOf(BigInteger63Arithmetic).
|
|
5693
|
-
return this.
|
|
5692
|
+
protoOf(BigInteger63Arithmetic).onr = function (_this__u8e3s4) {
|
|
5693
|
+
return this.unr(_this__u8e3s4);
|
|
5694
5694
|
};
|
|
5695
|
-
protoOf(BigInteger63Arithmetic).
|
|
5695
|
+
protoOf(BigInteger63Arithmetic).ynl = function (uLong) {
|
|
5696
5696
|
var tmp;
|
|
5697
5697
|
// Inline function 'kotlin.ULong.and' call
|
|
5698
|
-
var other = this.
|
|
5698
|
+
var other = this.vnm_1;
|
|
5699
5699
|
if (!(_ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(uLong) & _ULong___get_data__impl__fggpzb(other)) === _ULong___init__impl__c78o9k(0n))) {
|
|
5700
5700
|
// Inline function 'kotlin.ULong.and' call
|
|
5701
|
-
var other_0 = this.
|
|
5701
|
+
var other_0 = this.rnm_1;
|
|
5702
5702
|
var tmp$ret$1 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(uLong) & _ULong___get_data__impl__fggpzb(other_0));
|
|
5703
5703
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5704
5704
|
tmp = _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$1, _ULong___init__impl__c78o9k(1n)]));
|
|
@@ -5708,7 +5708,7 @@
|
|
|
5708
5708
|
}
|
|
5709
5709
|
return tmp;
|
|
5710
5710
|
};
|
|
5711
|
-
protoOf(BigInteger63Arithmetic).
|
|
5711
|
+
protoOf(BigInteger63Arithmetic).anm = function (uInt) {
|
|
5712
5712
|
// Inline function 'kotlin.UInt.toULong' call
|
|
5713
5713
|
// Inline function 'kotlin.uintToULong' call
|
|
5714
5714
|
// Inline function 'kotlin.uintToLong' call
|
|
@@ -5718,19 +5718,19 @@
|
|
|
5718
5718
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5719
5719
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$2]));
|
|
5720
5720
|
};
|
|
5721
|
-
protoOf(BigInteger63Arithmetic).
|
|
5721
|
+
protoOf(BigInteger63Arithmetic).cnm = function (uShort) {
|
|
5722
5722
|
// Inline function 'kotlin.UShort.toULong' call
|
|
5723
5723
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(fromInt(_UShort___get_data__impl__g0245(uShort)) & 65535n);
|
|
5724
5724
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5725
5725
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$0]));
|
|
5726
5726
|
};
|
|
5727
|
-
protoOf(BigInteger63Arithmetic).
|
|
5727
|
+
protoOf(BigInteger63Arithmetic).enm = function (uByte) {
|
|
5728
5728
|
// Inline function 'kotlin.UByte.toULong' call
|
|
5729
5729
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(fromInt(_UByte___get_data__impl__jof9qr(uByte)) & 255n);
|
|
5730
5730
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5731
5731
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$0]));
|
|
5732
5732
|
};
|
|
5733
|
-
protoOf(BigInteger63Arithmetic).
|
|
5733
|
+
protoOf(BigInteger63Arithmetic).onl = function (long) {
|
|
5734
5734
|
if (long === -9223372036854775808n) {
|
|
5735
5735
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5736
5736
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(0n), _ULong___init__impl__c78o9k(1n)]));
|
|
@@ -5740,12 +5740,12 @@
|
|
|
5740
5740
|
var this_0 = abs(long);
|
|
5741
5741
|
var tmp0 = _ULong___init__impl__c78o9k(this_0);
|
|
5742
5742
|
// Inline function 'kotlin.ULong.and' call
|
|
5743
|
-
var other = this.
|
|
5743
|
+
var other = this.rnm_1;
|
|
5744
5744
|
var tmp$ret$3 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0) & _ULong___get_data__impl__fggpzb(other));
|
|
5745
5745
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5746
5746
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$3]));
|
|
5747
5747
|
};
|
|
5748
|
-
protoOf(BigInteger63Arithmetic).
|
|
5748
|
+
protoOf(BigInteger63Arithmetic).pnl = function (int) {
|
|
5749
5749
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
5750
5750
|
var this_0 = fromInt(int);
|
|
5751
5751
|
// Inline function 'kotlin.toULong' call
|
|
@@ -5754,7 +5754,7 @@
|
|
|
5754
5754
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5755
5755
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$1]));
|
|
5756
5756
|
};
|
|
5757
|
-
protoOf(BigInteger63Arithmetic).
|
|
5757
|
+
protoOf(BigInteger63Arithmetic).qnl = function (short) {
|
|
5758
5758
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
5759
5759
|
// Inline function 'kotlin.toULong' call
|
|
5760
5760
|
var this_0 = abs_0(short);
|
|
@@ -5762,7 +5762,7 @@
|
|
|
5762
5762
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5763
5763
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$1]));
|
|
5764
5764
|
};
|
|
5765
|
-
protoOf(BigInteger63Arithmetic).
|
|
5765
|
+
protoOf(BigInteger63Arithmetic).rnl = function (byte) {
|
|
5766
5766
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
5767
5767
|
// Inline function 'kotlin.toULong' call
|
|
5768
5768
|
var this_0 = abs_0(byte);
|
|
@@ -5770,7 +5770,7 @@
|
|
|
5770
5770
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5771
5771
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$1]));
|
|
5772
5772
|
};
|
|
5773
|
-
protoOf(BigInteger63Arithmetic).
|
|
5773
|
+
protoOf(BigInteger63Arithmetic).znr = function (source) {
|
|
5774
5774
|
var padLength = 8 - (_UByteArray___get_size__impl__h6pkdv(source) % 8 | 0) | 0;
|
|
5775
5775
|
// Inline function 'kotlin.collections.plus' call
|
|
5776
5776
|
var this_0 = _UByteArray___init__impl__ip4y9n(padLength);
|
|
@@ -5842,16 +5842,16 @@
|
|
|
5842
5842
|
while (0 <= inductionVariable_2);
|
|
5843
5843
|
tmp$ret$10 = emptyList();
|
|
5844
5844
|
}
|
|
5845
|
-
var result = this.
|
|
5845
|
+
var result = this.vnr(toULongArray(tmp$ret$10));
|
|
5846
5846
|
return result;
|
|
5847
5847
|
};
|
|
5848
|
-
protoOf(BigInteger63Arithmetic).
|
|
5848
|
+
protoOf(BigInteger63Arithmetic).gnm = function (source) {
|
|
5849
5849
|
// Inline function 'kotlin.collections.asUByteArray' call
|
|
5850
5850
|
var tmp$ret$0 = _UByteArray___init__impl__ip4y9n_0(source);
|
|
5851
|
-
return this.
|
|
5851
|
+
return this.znr(tmp$ret$0);
|
|
5852
5852
|
};
|
|
5853
|
-
protoOf(BigInteger63Arithmetic).
|
|
5854
|
-
if (equals(operand, this.
|
|
5853
|
+
protoOf(BigInteger63Arithmetic).znn = function (operand) {
|
|
5854
|
+
if (equals(operand, this.knm_1)) {
|
|
5855
5855
|
// Inline function 'kotlin.UByteArray' call
|
|
5856
5856
|
var tmp = 0;
|
|
5857
5857
|
var tmp_0 = new Int8Array(1);
|
|
@@ -5865,7 +5865,7 @@
|
|
|
5865
5865
|
return _UByteArray___init__impl__ip4y9n_0(tmp_0);
|
|
5866
5866
|
}
|
|
5867
5867
|
// Inline function 'kotlin.collections.reversedArray' call
|
|
5868
|
-
var this_1 = this.
|
|
5868
|
+
var this_1 = this.rnr(operand);
|
|
5869
5869
|
var as64Bit = _ULongArray___init__impl__twm1l3(reversedArray(_ULongArray___get_storage__impl__28e64j(this_1)));
|
|
5870
5870
|
var result = _UByteArray___init__impl__ip4y9n(imul(_ULongArray___get_size__impl__ju6dtr(as64Bit), 8));
|
|
5871
5871
|
var inductionVariable = 0;
|
|
@@ -5960,7 +5960,7 @@
|
|
|
5960
5960
|
}
|
|
5961
5961
|
function RuntimePlatform() {
|
|
5962
5962
|
}
|
|
5963
|
-
protoOf(RuntimePlatform).
|
|
5963
|
+
protoOf(RuntimePlatform).inl = function () {
|
|
5964
5964
|
return Platform_JS_getInstance();
|
|
5965
5965
|
};
|
|
5966
5966
|
var RuntimePlatform_instance;
|
|
@@ -5968,22 +5968,22 @@
|
|
|
5968
5968
|
return RuntimePlatform_instance;
|
|
5969
5969
|
}
|
|
5970
5970
|
//region block: post-declaration
|
|
5971
|
-
protoOf(Companion).
|
|
5972
|
-
protoOf(Companion).
|
|
5973
|
-
protoOf(Companion).
|
|
5974
|
-
protoOf(BigDecimal).
|
|
5975
|
-
protoOf(BigDecimal).
|
|
5976
|
-
protoOf(Companion_1).
|
|
5977
|
-
protoOf(Companion_1).
|
|
5978
|
-
protoOf(Companion_1).
|
|
5979
|
-
protoOf(BigInteger).
|
|
5980
|
-
protoOf(BigInteger).
|
|
5981
|
-
protoOf(BigInteger).
|
|
5971
|
+
protoOf(Companion).inh = tryFromFloat$default;
|
|
5972
|
+
protoOf(Companion).knh = tryFromDouble$default;
|
|
5973
|
+
protoOf(Companion).fnh = parseString$default;
|
|
5974
|
+
protoOf(BigDecimal).xnh = plus_1;
|
|
5975
|
+
protoOf(BigDecimal).ynh = minus_0;
|
|
5976
|
+
protoOf(Companion_1).fnh = parseString$default;
|
|
5977
|
+
protoOf(Companion_1).inh = tryFromFloat$default;
|
|
5978
|
+
protoOf(Companion_1).knh = tryFromDouble$default;
|
|
5979
|
+
protoOf(BigInteger).nnh = plus_0;
|
|
5980
|
+
protoOf(BigInteger).pnh = minus;
|
|
5981
|
+
protoOf(BigInteger).rnh = times;
|
|
5982
5982
|
protoOf(BigInteger).w1o = times_0;
|
|
5983
|
-
protoOf(BigInteger).
|
|
5984
|
-
protoOf(BigInteger).
|
|
5985
|
-
protoOf(BigInteger).
|
|
5986
|
-
protoOf(BigInteger).
|
|
5983
|
+
protoOf(BigInteger).tnh = div;
|
|
5984
|
+
protoOf(BigInteger).znh = div_0;
|
|
5985
|
+
protoOf(BigInteger).vnh = rem;
|
|
5986
|
+
protoOf(BigInteger).ani = rem_0;
|
|
5987
5987
|
//endregion
|
|
5988
5988
|
//region block: init
|
|
5989
5989
|
RuntimePlatform_instance = new RuntimePlatform();
|