@solibo/solibo-sdk 1.1.12 → 1.1.13
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.mjs +99 -99
- package/KotlinBigInteger-bignum.mjs +1114 -1114
- package/MultiplatformSettings-multiplatform-settings.mjs +16 -16
- package/Stately-stately-concurrency.mjs +4 -4
- package/cryptography-kotlin-cryptography-bigint.mjs +27 -27
- package/cryptography-kotlin-cryptography-core.mjs +47 -47
- package/cryptography-kotlin-cryptography-provider-base.mjs +4 -4
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +135 -135
- package/cryptography-kotlin-cryptography-random.mjs +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +112 -112
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +240 -240
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +15 -15
- package/kotlin-kotlin-stdlib.mjs +11 -11
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +1 -1
- package/ktor-ktor-client-auth.mjs +224 -224
- package/ktor-ktor-client-logging.mjs +516 -516
- package/ktor-ktor-client-mock.mjs +39 -39
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +18823 -18393
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
- package/solibo-sdk-sdk.d.mts +42 -15
- package/solibo-sdk-sdk.mjs +2163 -2163
|
@@ -139,46 +139,46 @@ var log10 = Math.log10;
|
|
|
139
139
|
//region block: pre-declaration
|
|
140
140
|
function parseString$default(string, base, $super) {
|
|
141
141
|
base = base === VOID ? 10 : base;
|
|
142
|
-
return $super === VOID ? this.
|
|
142
|
+
return $super === VOID ? this.kom(string, base) : $super.kom.call(this, string, base);
|
|
143
143
|
}
|
|
144
144
|
function tryFromFloat$default(float, exactRequired, $super) {
|
|
145
145
|
exactRequired = exactRequired === VOID ? false : exactRequired;
|
|
146
|
-
return $super === VOID ? this.
|
|
146
|
+
return $super === VOID ? this.nom(float, exactRequired) : $super.nom.call(this, float, exactRequired);
|
|
147
147
|
}
|
|
148
148
|
function tryFromDouble$default(double, exactRequired, $super) {
|
|
149
149
|
exactRequired = exactRequired === VOID ? false : exactRequired;
|
|
150
|
-
return $super === VOID ? this.
|
|
150
|
+
return $super === VOID ? this.pom(double, exactRequired) : $super.pom.call(this, double, exactRequired);
|
|
151
151
|
}
|
|
152
152
|
initMetadataForInterface(Creator, 'Creator');
|
|
153
153
|
function plus_0(other) {
|
|
154
|
-
return this.
|
|
154
|
+
return this.som().uom(other);
|
|
155
155
|
}
|
|
156
156
|
function minus(other) {
|
|
157
|
-
return this.
|
|
157
|
+
return this.som().wom(other);
|
|
158
158
|
}
|
|
159
159
|
function times(other) {
|
|
160
|
-
return this.
|
|
160
|
+
return this.som().yom(other);
|
|
161
161
|
}
|
|
162
162
|
function div(other) {
|
|
163
|
-
return this.
|
|
163
|
+
return this.som().aon(other);
|
|
164
164
|
}
|
|
165
165
|
function rem(other) {
|
|
166
|
-
return this.
|
|
166
|
+
return this.som().con(other);
|
|
167
167
|
}
|
|
168
168
|
function plus_1(int) {
|
|
169
|
-
return this.
|
|
169
|
+
return this.som().uom(this.rom().mom(int));
|
|
170
170
|
}
|
|
171
171
|
function times_0(int) {
|
|
172
|
-
return this.
|
|
172
|
+
return this.som().yom(this.rom().mom(int));
|
|
173
173
|
}
|
|
174
174
|
function minus_0(int) {
|
|
175
|
-
return this.
|
|
175
|
+
return this.som().wom(this.rom().mom(int));
|
|
176
176
|
}
|
|
177
177
|
function div_0(int) {
|
|
178
|
-
return this.
|
|
178
|
+
return this.som().aon(this.rom().mom(int));
|
|
179
179
|
}
|
|
180
180
|
function rem_0(int) {
|
|
181
|
-
return this.
|
|
181
|
+
return this.som().con(this.rom().mom(int));
|
|
182
182
|
}
|
|
183
183
|
initMetadataForInterface(CommonBigNumberOperations, 'CommonBigNumberOperations');
|
|
184
184
|
initMetadataForClass(SignificantDecider, 'SignificantDecider', VOID, Enum);
|
|
@@ -219,7 +219,7 @@ function SignificantDecider_initEntries() {
|
|
|
219
219
|
}
|
|
220
220
|
function roundOrDont($this, significand, exponent, decimalMode) {
|
|
221
221
|
var tmp;
|
|
222
|
-
if (decimalMode.
|
|
222
|
+
if (decimalMode.kon_1) {
|
|
223
223
|
tmp = new BigDecimal(significand, exponent);
|
|
224
224
|
} else {
|
|
225
225
|
tmp = roundSignificand($this, significand, exponent, decimalMode);
|
|
@@ -230,18 +230,18 @@ function SignificantDecider(name, ordinal) {
|
|
|
230
230
|
Enum.call(this, name, ordinal);
|
|
231
231
|
}
|
|
232
232
|
function determineDecider($this, discarded) {
|
|
233
|
-
var tmp = Companion_getInstance_1().
|
|
233
|
+
var tmp = Companion_getInstance_1().qon_1;
|
|
234
234
|
// Inline function 'kotlin.Long.minus' call
|
|
235
|
-
var this_0 = discarded.
|
|
235
|
+
var this_0 = discarded.won();
|
|
236
236
|
var tmp$ret$0 = subtract(this_0, fromInt(1));
|
|
237
|
-
var scale = tmp.
|
|
238
|
-
var divrem = discarded.
|
|
239
|
-
var significant = divrem.
|
|
240
|
-
var rest = divrem.
|
|
237
|
+
var scale = tmp.xon(tmp$ret$0);
|
|
238
|
+
var divrem = discarded.yon(scale);
|
|
239
|
+
var significant = divrem.zon_1.boo().coo(true);
|
|
240
|
+
var rest = divrem.aoo_1.boo();
|
|
241
241
|
var tmp_0;
|
|
242
242
|
if (significant === 5) {
|
|
243
243
|
var tmp_1;
|
|
244
|
-
if (rest.equals(Companion_getInstance_1().
|
|
244
|
+
if (rest.equals(Companion_getInstance_1().non_1)) {
|
|
245
245
|
tmp_1 = SignificantDecider_FIVE_getInstance();
|
|
246
246
|
} else {
|
|
247
247
|
tmp_1 = SignificantDecider_MORE_THAN_FIVE_getInstance();
|
|
@@ -257,11 +257,11 @@ function determineDecider($this, discarded) {
|
|
|
257
257
|
return tmp_0;
|
|
258
258
|
}
|
|
259
259
|
function roundDiscarded($this, significand, discarded, decimalMode) {
|
|
260
|
-
var toDiscard = subtract(significand.
|
|
260
|
+
var toDiscard = subtract(significand.won(), decimalMode.hon_1);
|
|
261
261
|
var tmp;
|
|
262
262
|
if (toDiscard > 0n) {
|
|
263
|
-
var additionallyDiscarded = significand.
|
|
264
|
-
tmp = new Pair(additionallyDiscarded.
|
|
263
|
+
var additionallyDiscarded = significand.yon(Companion_getInstance_1().qon_1.xon(toDiscard));
|
|
264
|
+
tmp = new Pair(additionallyDiscarded.zon_1, additionallyDiscarded.aoo_1);
|
|
265
265
|
} else {
|
|
266
266
|
tmp = new Pair(significand, discarded);
|
|
267
267
|
}
|
|
@@ -269,28 +269,28 @@ function roundDiscarded($this, significand, discarded, decimalMode) {
|
|
|
269
269
|
var result = _destruct__k2r9zo.dh();
|
|
270
270
|
var remainder = _destruct__k2r9zo.eh();
|
|
271
271
|
var tmp_0;
|
|
272
|
-
if (significand.equals(Companion_getInstance_1().
|
|
273
|
-
tmp_0 = discarded.
|
|
272
|
+
if (significand.equals(Companion_getInstance_1().non_1)) {
|
|
273
|
+
tmp_0 = discarded.ton_1;
|
|
274
274
|
} else {
|
|
275
|
-
tmp_0 = significand.
|
|
275
|
+
tmp_0 = significand.ton_1;
|
|
276
276
|
}
|
|
277
277
|
var sign = tmp_0;
|
|
278
|
-
if (!decimalMode.
|
|
279
|
-
if (remainder.
|
|
278
|
+
if (!decimalMode.ion_1.equals(RoundingMode_AWAY_FROM_ZERO_getInstance()) && !decimalMode.ion_1.equals(RoundingMode_TOWARDS_ZERO_getInstance())) {
|
|
279
|
+
if (remainder.doo()) {
|
|
280
280
|
return result;
|
|
281
281
|
}
|
|
282
282
|
} else {
|
|
283
|
-
if (remainder.
|
|
283
|
+
if (remainder.doo() && discarded.doo()) {
|
|
284
284
|
return result;
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
var decider = determineDecider($this, remainder);
|
|
288
|
-
switch (decimalMode.
|
|
288
|
+
switch (decimalMode.ion_1.a1_1) {
|
|
289
289
|
case 2:
|
|
290
290
|
if (sign.equals(Sign_POSITIVE_getInstance())) {
|
|
291
|
-
result = result.
|
|
291
|
+
result = result.foo();
|
|
292
292
|
} else {
|
|
293
|
-
result = result.
|
|
293
|
+
result = result.eoo();
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
break;
|
|
@@ -298,13 +298,13 @@ function roundDiscarded($this, significand, discarded, decimalMode) {
|
|
|
298
298
|
break;
|
|
299
299
|
case 1:
|
|
300
300
|
if (sign.equals(Sign_POSITIVE_getInstance())) {
|
|
301
|
-
result = result.
|
|
301
|
+
result = result.foo();
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
break;
|
|
305
305
|
case 0:
|
|
306
306
|
if (!sign.equals(Sign_POSITIVE_getInstance())) {
|
|
307
|
-
result = result.
|
|
307
|
+
result = result.eoo();
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
break;
|
|
@@ -312,13 +312,13 @@ function roundDiscarded($this, significand, discarded, decimalMode) {
|
|
|
312
312
|
switch (sign.a1_1) {
|
|
313
313
|
case 0:
|
|
314
314
|
if (!decider.equals(SignificantDecider_LESS_THAN_FIVE_getInstance())) {
|
|
315
|
-
result = result.
|
|
315
|
+
result = result.foo();
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
break;
|
|
319
319
|
case 1:
|
|
320
320
|
if (!decider.equals(SignificantDecider_LESS_THAN_FIVE_getInstance())) {
|
|
321
|
-
result = result.
|
|
321
|
+
result = result.eoo();
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
break;
|
|
@@ -334,13 +334,13 @@ function roundDiscarded($this, significand, discarded, decimalMode) {
|
|
|
334
334
|
switch (sign.a1_1) {
|
|
335
335
|
case 0:
|
|
336
336
|
if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
337
|
-
result = result.
|
|
337
|
+
result = result.foo();
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
break;
|
|
341
341
|
case 1:
|
|
342
342
|
if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
343
|
-
result = result.
|
|
343
|
+
result = result.eoo();
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
break;
|
|
@@ -356,13 +356,13 @@ function roundDiscarded($this, significand, discarded, decimalMode) {
|
|
|
356
356
|
switch (sign.a1_1) {
|
|
357
357
|
case 0:
|
|
358
358
|
if (!decider.equals(SignificantDecider_LESS_THAN_FIVE_getInstance())) {
|
|
359
|
-
result = result.
|
|
359
|
+
result = result.foo();
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
break;
|
|
363
363
|
case 1:
|
|
364
364
|
if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
365
|
-
result = result.
|
|
365
|
+
result = result.eoo();
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
break;
|
|
@@ -378,13 +378,13 @@ function roundDiscarded($this, significand, discarded, decimalMode) {
|
|
|
378
378
|
switch (sign.a1_1) {
|
|
379
379
|
case 0:
|
|
380
380
|
if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
381
|
-
result = result.
|
|
381
|
+
result = result.foo();
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
break;
|
|
385
385
|
case 1:
|
|
386
386
|
if (!decider.equals(SignificantDecider_LESS_THAN_FIVE_getInstance())) {
|
|
387
|
-
result = result.
|
|
387
|
+
result = result.eoo();
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
break;
|
|
@@ -398,13 +398,13 @@ function roundDiscarded($this, significand, discarded, decimalMode) {
|
|
|
398
398
|
break;
|
|
399
399
|
case 9:
|
|
400
400
|
if (decider.equals(SignificantDecider_FIVE_getInstance())) {
|
|
401
|
-
if (significand.
|
|
401
|
+
if (significand.gon(2).boo().equals(Companion_getInstance_1().oon_1)) {
|
|
402
402
|
switch (sign.a1_1) {
|
|
403
403
|
case 0:
|
|
404
|
-
result = result.
|
|
404
|
+
result = result.foo();
|
|
405
405
|
break;
|
|
406
406
|
case 1:
|
|
407
|
-
result = result.
|
|
407
|
+
result = result.eoo();
|
|
408
408
|
break;
|
|
409
409
|
case 2:
|
|
410
410
|
break;
|
|
@@ -415,23 +415,23 @@ function roundDiscarded($this, significand, discarded, decimalMode) {
|
|
|
415
415
|
}
|
|
416
416
|
} else if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
417
417
|
if (sign.equals(Sign_POSITIVE_getInstance())) {
|
|
418
|
-
result = result.
|
|
418
|
+
result = result.foo();
|
|
419
419
|
}
|
|
420
420
|
if (sign.equals(Sign_NEGATIVE_getInstance())) {
|
|
421
|
-
result = result.
|
|
421
|
+
result = result.eoo();
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
break;
|
|
426
426
|
case 10:
|
|
427
427
|
if (decider.equals(SignificantDecider_FIVE_getInstance())) {
|
|
428
|
-
if (significand.
|
|
428
|
+
if (significand.gon(2).equals(Companion_getInstance_1().non_1)) {
|
|
429
429
|
switch (sign.a1_1) {
|
|
430
430
|
case 0:
|
|
431
|
-
result = result.
|
|
431
|
+
result = result.foo();
|
|
432
432
|
break;
|
|
433
433
|
case 1:
|
|
434
|
-
result = result.
|
|
434
|
+
result = result.eoo();
|
|
435
435
|
break;
|
|
436
436
|
case 2:
|
|
437
437
|
break;
|
|
@@ -442,10 +442,10 @@ function roundDiscarded($this, significand, discarded, decimalMode) {
|
|
|
442
442
|
}
|
|
443
443
|
} else if (decider.equals(SignificantDecider_MORE_THAN_FIVE_getInstance())) {
|
|
444
444
|
if (sign.equals(Sign_POSITIVE_getInstance())) {
|
|
445
|
-
result = result.
|
|
445
|
+
result = result.foo();
|
|
446
446
|
}
|
|
447
447
|
if (sign.equals(Sign_NEGATIVE_getInstance())) {
|
|
448
|
-
result = result.
|
|
448
|
+
result = result.eoo();
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
|
|
@@ -459,34 +459,34 @@ function roundDiscarded($this, significand, discarded, decimalMode) {
|
|
|
459
459
|
return result;
|
|
460
460
|
}
|
|
461
461
|
function roundSignificand($this, significand, exponent, decimalMode) {
|
|
462
|
-
if (significand.
|
|
463
|
-
return new BigDecimal(Companion_getInstance_1().
|
|
462
|
+
if (significand.doo()) {
|
|
463
|
+
return new BigDecimal(Companion_getInstance_1().non_1, exponent, decimalMode);
|
|
464
464
|
}
|
|
465
|
-
var significandDigits = significand.
|
|
465
|
+
var significandDigits = significand.won();
|
|
466
466
|
var tmp;
|
|
467
|
-
if (decimalMode.
|
|
468
|
-
tmp = add(decimalMode.
|
|
467
|
+
if (decimalMode.lon_1) {
|
|
468
|
+
tmp = add(decimalMode.hon_1, decimalMode.jon_1);
|
|
469
469
|
} else {
|
|
470
|
-
tmp = decimalMode.
|
|
470
|
+
tmp = decimalMode.hon_1;
|
|
471
471
|
}
|
|
472
472
|
var desiredPrecision = tmp;
|
|
473
473
|
var tmp_0;
|
|
474
|
-
if (desiredPrecision > significandDigits && !decimalMode.
|
|
475
|
-
var extendedSignificand = significand.
|
|
474
|
+
if (desiredPrecision > significandDigits && !decimalMode.lon_1) {
|
|
475
|
+
var extendedSignificand = significand.xom(Companion_getInstance_1().qon_1.xon(subtract(desiredPrecision, significandDigits)));
|
|
476
476
|
tmp_0 = new BigDecimal(extendedSignificand, exponent, decimalMode);
|
|
477
477
|
} else if (desiredPrecision < significandDigits) {
|
|
478
|
-
var divRem = significand.
|
|
479
|
-
var resolvedRemainder = divRem.
|
|
480
|
-
if (divRem.
|
|
481
|
-
return new BigDecimal(divRem.
|
|
478
|
+
var divRem = significand.yon(Companion_getInstance_1().qon_1.xon(subtract(significandDigits, desiredPrecision)));
|
|
479
|
+
var resolvedRemainder = divRem.aoo_1;
|
|
480
|
+
if (divRem.aoo_1.equals(Companion_getInstance_1().non_1)) {
|
|
481
|
+
return new BigDecimal(divRem.zon_1, exponent, decimalMode);
|
|
482
482
|
}
|
|
483
483
|
var tmp_1;
|
|
484
|
-
if (significand.
|
|
485
|
-
var newSignificand = roundDiscarded($this, divRem.
|
|
486
|
-
var exponentModifier = subtract(newSignificand.
|
|
484
|
+
if (significand.won() === add(divRem.zon_1.won(), divRem.aoo_1.won())) {
|
|
485
|
+
var newSignificand = roundDiscarded($this, divRem.zon_1, resolvedRemainder, decimalMode);
|
|
486
|
+
var exponentModifier = subtract(newSignificand.won(), divRem.zon_1.won());
|
|
487
487
|
tmp_1 = new BigDecimal(newSignificand, add(exponent, exponentModifier), decimalMode);
|
|
488
488
|
} else {
|
|
489
|
-
tmp_1 = $this.
|
|
489
|
+
tmp_1 = $this.roo(divRem.zon_1, exponent, decimalMode);
|
|
490
490
|
}
|
|
491
491
|
tmp_0 = tmp_1;
|
|
492
492
|
} else {
|
|
@@ -495,20 +495,20 @@ function roundSignificand($this, significand, exponent, decimalMode) {
|
|
|
495
495
|
return tmp_0;
|
|
496
496
|
}
|
|
497
497
|
function applyScale($this, significand, exponent, decimalMode) {
|
|
498
|
-
if (!decimalMode.
|
|
498
|
+
if (!decimalMode.lon_1) {
|
|
499
499
|
return new BigDecimal(significand, exponent, decimalMode);
|
|
500
500
|
}
|
|
501
501
|
var tmp;
|
|
502
502
|
if (exponent >= 0n) {
|
|
503
503
|
// Inline function 'kotlin.Long.plus' call
|
|
504
|
-
var this_0 = add(exponent, decimalMode.
|
|
504
|
+
var this_0 = add(exponent, decimalMode.jon_1);
|
|
505
505
|
var tmp$ret$0 = add(this_0, fromInt(1));
|
|
506
|
-
tmp = new DecimalMode(tmp$ret$0, decimalMode.
|
|
506
|
+
tmp = new DecimalMode(tmp$ret$0, decimalMode.ion_1);
|
|
507
507
|
} else if (exponent < 0n) {
|
|
508
508
|
// Inline function 'kotlin.Long.plus' call
|
|
509
|
-
var this_1 = decimalMode.
|
|
509
|
+
var this_1 = decimalMode.jon_1;
|
|
510
510
|
var tmp$ret$1 = add(this_1, fromInt(1));
|
|
511
|
-
tmp = new DecimalMode(tmp$ret$1, decimalMode.
|
|
511
|
+
tmp = new DecimalMode(tmp$ret$1, decimalMode.ion_1);
|
|
512
512
|
} else {
|
|
513
513
|
throw RuntimeException_init_$Create$('Unexpected state');
|
|
514
514
|
}
|
|
@@ -518,12 +518,12 @@ function applyScale($this, significand, exponent, decimalMode) {
|
|
|
518
518
|
tmp_0 = roundSignificand($this, significand, exponent, workMode);
|
|
519
519
|
} else {
|
|
520
520
|
var tmp_1;
|
|
521
|
-
if (decimalMode.
|
|
522
|
-
var temp = (new BigDecimal(significand, exponent)).
|
|
523
|
-
tmp_1 = roundSignificand($this, temp.
|
|
521
|
+
if (decimalMode.ion_1.equals(RoundingMode_ROUND_HALF_TO_EVEN_getInstance())) {
|
|
522
|
+
var temp = (new BigDecimal(significand, exponent)).don(imul(significand.soo(), 2));
|
|
523
|
+
tmp_1 = roundSignificand($this, temp.uoo_1, temp.voo_1, workMode).eon(imul(significand.soo(), 2));
|
|
524
524
|
} else {
|
|
525
|
-
var temp_0 = (new BigDecimal(significand, exponent)).
|
|
526
|
-
tmp_1 = roundSignificand($this, temp_0.
|
|
525
|
+
var temp_0 = (new BigDecimal(significand, exponent)).don(significand.soo());
|
|
526
|
+
tmp_1 = roundSignificand($this, temp_0.uoo_1, temp_0.voo_1, workMode).eon(significand.soo());
|
|
527
527
|
}
|
|
528
528
|
tmp_0 = tmp_1;
|
|
529
529
|
}
|
|
@@ -543,11 +543,11 @@ function resolveDecimalMode($this, firstDecimalMode, secondDecimalMode, supplied
|
|
|
543
543
|
if (secondDecimalMode == null && !(firstDecimalMode == null)) {
|
|
544
544
|
return firstDecimalMode;
|
|
545
545
|
}
|
|
546
|
-
if (!ensureNotNull(firstDecimalMode).
|
|
547
|
-
throw ArithmeticException_init_$Create$('Different rounding modes! This: ' + firstDecimalMode.
|
|
546
|
+
if (!ensureNotNull(firstDecimalMode).ion_1.equals(ensureNotNull(secondDecimalMode).ion_1)) {
|
|
547
|
+
throw ArithmeticException_init_$Create$('Different rounding modes! This: ' + firstDecimalMode.ion_1.toString() + ' Other: ' + secondDecimalMode.ion_1.toString());
|
|
548
548
|
}
|
|
549
549
|
var tmp_0;
|
|
550
|
-
if (firstDecimalMode.
|
|
550
|
+
if (firstDecimalMode.hon_1 >= secondDecimalMode.hon_1) {
|
|
551
551
|
tmp_0 = firstDecimalMode;
|
|
552
552
|
} else {
|
|
553
553
|
tmp_0 = secondDecimalMode;
|
|
@@ -583,31 +583,31 @@ function ScaleOps_initEntries() {
|
|
|
583
583
|
}
|
|
584
584
|
function Companion() {
|
|
585
585
|
Companion_instance = this;
|
|
586
|
-
this.
|
|
587
|
-
this.
|
|
588
|
-
this.
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
586
|
+
this.goo_1 = new BigDecimal(Companion_getInstance_1().non_1);
|
|
587
|
+
this.hoo_1 = new BigDecimal(Companion_getInstance_1().oon_1);
|
|
588
|
+
this.ioo_1 = new BigDecimal(Companion_getInstance_1().pon_1);
|
|
589
|
+
this.joo_1 = new BigDecimal(Companion_getInstance_1().qon_1, 1n);
|
|
590
|
+
this.koo_1 = false;
|
|
591
591
|
var tmp = this;
|
|
592
592
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
593
|
-
tmp.
|
|
594
|
-
this.
|
|
595
|
-
this.
|
|
593
|
+
tmp.loo_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]);
|
|
594
|
+
this.moo_1 = this.bop(1.7976931348623157E308);
|
|
595
|
+
this.noo_1 = this.bop(4.9E-324);
|
|
596
596
|
var tmp_0 = this;
|
|
597
597
|
// Inline function 'kotlin.floatArrayOf' call
|
|
598
|
-
tmp_0.
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
598
|
+
tmp_0.ooo_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]);
|
|
599
|
+
this.poo_1 = this.cop(3.4028235E38);
|
|
600
|
+
this.qoo_1 = this.cop(1.4E-45);
|
|
601
601
|
}
|
|
602
|
-
protoOf(Companion).
|
|
602
|
+
protoOf(Companion).roo = function (significand, exponent, decimalMode) {
|
|
603
603
|
var tmp;
|
|
604
|
-
if (significand.
|
|
604
|
+
if (significand.ton_1.equals(Sign_POSITIVE_getInstance())) {
|
|
605
605
|
var tmp_0;
|
|
606
|
-
switch (decimalMode.
|
|
606
|
+
switch (decimalMode.ion_1.a1_1) {
|
|
607
607
|
case 1:
|
|
608
608
|
case 2:
|
|
609
|
-
var increasedSignificand = significand.
|
|
610
|
-
var exponentModifier = subtract(increasedSignificand.
|
|
609
|
+
var increasedSignificand = significand.foo();
|
|
610
|
+
var exponentModifier = subtract(increasedSignificand.won(), significand.won());
|
|
611
611
|
tmp_0 = new BigDecimal(increasedSignificand, add(exponent, exponentModifier), decimalMode);
|
|
612
612
|
break;
|
|
613
613
|
default:
|
|
@@ -615,13 +615,13 @@ protoOf(Companion).fon = function (significand, exponent, decimalMode) {
|
|
|
615
615
|
break;
|
|
616
616
|
}
|
|
617
617
|
tmp = tmp_0;
|
|
618
|
-
} else if (significand.
|
|
618
|
+
} else if (significand.ton_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
619
619
|
var tmp_1;
|
|
620
|
-
switch (decimalMode.
|
|
620
|
+
switch (decimalMode.ion_1.a1_1) {
|
|
621
621
|
case 0:
|
|
622
622
|
case 2:
|
|
623
|
-
var increasedSignificand_0 = significand.
|
|
624
|
-
var exponentModifier_0 = subtract(increasedSignificand_0.
|
|
623
|
+
var increasedSignificand_0 = significand.eoo();
|
|
624
|
+
var exponentModifier_0 = subtract(increasedSignificand_0.won(), significand.won());
|
|
625
625
|
tmp_1 = new BigDecimal(increasedSignificand_0, add(exponent, exponentModifier_0), decimalMode);
|
|
626
626
|
break;
|
|
627
627
|
default:
|
|
@@ -634,35 +634,35 @@ protoOf(Companion).fon = function (significand, exponent, decimalMode) {
|
|
|
634
634
|
}
|
|
635
635
|
return tmp;
|
|
636
636
|
};
|
|
637
|
-
protoOf(Companion).
|
|
638
|
-
var bigint = Companion_getInstance_1().
|
|
637
|
+
protoOf(Companion).dop = function (long, decimalMode) {
|
|
638
|
+
var bigint = Companion_getInstance_1().eop(long);
|
|
639
639
|
// Inline function 'kotlin.Long.minus' call
|
|
640
|
-
var this_0 = bigint.
|
|
640
|
+
var this_0 = bigint.won();
|
|
641
641
|
var tmp$ret$0 = subtract(this_0, fromInt(1));
|
|
642
|
-
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).
|
|
642
|
+
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).fop(decimalMode);
|
|
643
643
|
};
|
|
644
|
-
protoOf(Companion).
|
|
645
|
-
var bigint = Companion_getInstance_1().
|
|
644
|
+
protoOf(Companion).gop = function (int, decimalMode) {
|
|
645
|
+
var bigint = Companion_getInstance_1().mom(int);
|
|
646
646
|
// Inline function 'kotlin.Long.minus' call
|
|
647
|
-
var this_0 = bigint.
|
|
647
|
+
var this_0 = bigint.won();
|
|
648
648
|
var tmp$ret$0 = subtract(this_0, fromInt(1));
|
|
649
|
-
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).
|
|
649
|
+
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).fop(decimalMode);
|
|
650
650
|
};
|
|
651
|
-
protoOf(Companion).
|
|
652
|
-
var bigint = Companion_getInstance_1().
|
|
651
|
+
protoOf(Companion).hop = function (short, decimalMode) {
|
|
652
|
+
var bigint = Companion_getInstance_1().iop(short);
|
|
653
653
|
// Inline function 'kotlin.Long.minus' call
|
|
654
|
-
var this_0 = bigint.
|
|
654
|
+
var this_0 = bigint.won();
|
|
655
655
|
var tmp$ret$0 = subtract(this_0, fromInt(1));
|
|
656
|
-
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).
|
|
656
|
+
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).fop(decimalMode);
|
|
657
657
|
};
|
|
658
|
-
protoOf(Companion).
|
|
659
|
-
var bigint = Companion_getInstance_1().
|
|
658
|
+
protoOf(Companion).jop = function (byte, decimalMode) {
|
|
659
|
+
var bigint = Companion_getInstance_1().kop(byte);
|
|
660
660
|
// Inline function 'kotlin.Long.minus' call
|
|
661
|
-
var this_0 = bigint.
|
|
661
|
+
var this_0 = bigint.won();
|
|
662
662
|
var tmp$ret$0 = subtract(this_0, fromInt(1));
|
|
663
|
-
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).
|
|
663
|
+
return (new BigDecimal(bigint, tmp$ret$0, decimalMode)).fop(decimalMode);
|
|
664
664
|
};
|
|
665
|
-
protoOf(Companion).
|
|
665
|
+
protoOf(Companion).lop = function (float, decimalMode) {
|
|
666
666
|
var floatString = float.toString();
|
|
667
667
|
var tmp;
|
|
668
668
|
if (contains(floatString, _Char___init__impl__6a9atx(46)) && !contains(floatString, _Char___init__impl__6a9atx(69), true)) {
|
|
@@ -682,17 +682,17 @@ protoOf(Companion).zon = function (float, decimalMode) {
|
|
|
682
682
|
while (0 <= inductionVariable);
|
|
683
683
|
tmp$ret$1 = '';
|
|
684
684
|
}
|
|
685
|
-
tmp = this.
|
|
685
|
+
tmp = this.mop(tmp$ret$1, decimalMode).fop(decimalMode);
|
|
686
686
|
} else {
|
|
687
|
-
tmp = this.
|
|
687
|
+
tmp = this.mop(floatString, decimalMode).fop(decimalMode);
|
|
688
688
|
}
|
|
689
689
|
return tmp;
|
|
690
690
|
};
|
|
691
|
-
protoOf(Companion).
|
|
691
|
+
protoOf(Companion).cop = function (float, decimalMode, $super) {
|
|
692
692
|
decimalMode = decimalMode === VOID ? null : decimalMode;
|
|
693
|
-
return $super === VOID ? this.
|
|
693
|
+
return $super === VOID ? this.lop(float, decimalMode) : $super.lop.call(this, float, decimalMode);
|
|
694
694
|
};
|
|
695
|
-
protoOf(Companion).
|
|
695
|
+
protoOf(Companion).nop = function (double, decimalMode) {
|
|
696
696
|
var doubleString = double.toString();
|
|
697
697
|
var tmp;
|
|
698
698
|
if (contains(doubleString, _Char___init__impl__6a9atx(46)) && !contains(doubleString, _Char___init__impl__6a9atx(69), true)) {
|
|
@@ -712,41 +712,41 @@ protoOf(Companion).boo = function (double, decimalMode) {
|
|
|
712
712
|
while (0 <= inductionVariable);
|
|
713
713
|
tmp$ret$1 = '';
|
|
714
714
|
}
|
|
715
|
-
tmp = this.
|
|
715
|
+
tmp = this.mop(tmp$ret$1, decimalMode).fop(decimalMode);
|
|
716
716
|
} else {
|
|
717
|
-
tmp = this.
|
|
717
|
+
tmp = this.mop(doubleString, decimalMode).fop(decimalMode).fop(decimalMode);
|
|
718
718
|
}
|
|
719
719
|
return tmp;
|
|
720
720
|
};
|
|
721
|
-
protoOf(Companion).
|
|
721
|
+
protoOf(Companion).bop = function (double, decimalMode, $super) {
|
|
722
722
|
decimalMode = decimalMode === VOID ? null : decimalMode;
|
|
723
|
-
return $super === VOID ? this.
|
|
723
|
+
return $super === VOID ? this.nop(double, decimalMode) : $super.nop.call(this, double, decimalMode);
|
|
724
724
|
};
|
|
725
|
-
protoOf(Companion).
|
|
726
|
-
return this.
|
|
725
|
+
protoOf(Companion).eop = function (long) {
|
|
726
|
+
return this.dop(long, null);
|
|
727
727
|
};
|
|
728
|
-
protoOf(Companion).
|
|
729
|
-
return this.
|
|
728
|
+
protoOf(Companion).mom = function (int) {
|
|
729
|
+
return this.gop(int, null);
|
|
730
730
|
};
|
|
731
|
-
protoOf(Companion).
|
|
732
|
-
return this.
|
|
731
|
+
protoOf(Companion).iop = function (short) {
|
|
732
|
+
return this.hop(short, null);
|
|
733
733
|
};
|
|
734
|
-
protoOf(Companion).
|
|
735
|
-
return this.
|
|
734
|
+
protoOf(Companion).kop = function (byte) {
|
|
735
|
+
return this.jop(byte, null);
|
|
736
736
|
};
|
|
737
|
-
protoOf(Companion).
|
|
738
|
-
return this.
|
|
737
|
+
protoOf(Companion).nom = function (float, exactRequired) {
|
|
738
|
+
return this.lop(float, null);
|
|
739
739
|
};
|
|
740
|
-
protoOf(Companion).
|
|
741
|
-
return this.
|
|
740
|
+
protoOf(Companion).pom = function (double, exactRequired) {
|
|
741
|
+
return this.nop(double, null);
|
|
742
742
|
};
|
|
743
|
-
protoOf(Companion).
|
|
744
|
-
return this.
|
|
743
|
+
protoOf(Companion).kom = function (string, base) {
|
|
744
|
+
return this.mop(string, null);
|
|
745
745
|
};
|
|
746
|
-
protoOf(Companion).
|
|
747
|
-
return this.
|
|
746
|
+
protoOf(Companion).oop = function (string) {
|
|
747
|
+
return this.pop(string);
|
|
748
748
|
};
|
|
749
|
-
protoOf(Companion).
|
|
749
|
+
protoOf(Companion).mop = function (floatingPointString, decimalMode) {
|
|
750
750
|
// Inline function 'kotlin.text.isEmpty' call
|
|
751
751
|
if (charSequenceLength(floatingPointString) === 0) {
|
|
752
752
|
throw ArithmeticException_init_$Create$('Empty string is not a valid decimal number');
|
|
@@ -854,12 +854,12 @@ protoOf(Companion).aoo = function (floatingPointString, decimalMode) {
|
|
|
854
854
|
}
|
|
855
855
|
var leftTruncated = substring(left, leftFirstNonZero, left.length);
|
|
856
856
|
var rightTruncated = substring(right, 0, rightLastNonZero + 1 | 0);
|
|
857
|
-
var significand = Companion_getInstance_1().
|
|
858
|
-
if (significand.equals(Companion_getInstance_1().
|
|
857
|
+
var significand = Companion_getInstance_1().kom(leftTruncated + rightTruncated, 10);
|
|
858
|
+
if (significand.equals(Companion_getInstance_1().non_1)) {
|
|
859
859
|
sign = Sign_ZERO_getInstance();
|
|
860
860
|
}
|
|
861
861
|
if (sign.equals(Sign_NEGATIVE_getInstance())) {
|
|
862
|
-
significand = significand.
|
|
862
|
+
significand = significand.qop();
|
|
863
863
|
}
|
|
864
864
|
var tmp_6;
|
|
865
865
|
if (!(leftTruncated === '0')) {
|
|
@@ -870,7 +870,7 @@ protoOf(Companion).aoo = function (floatingPointString, decimalMode) {
|
|
|
870
870
|
tmp_6 = subtract(this_1, fromInt(1));
|
|
871
871
|
} else {
|
|
872
872
|
// Inline function 'kotlin.Long.minus' call
|
|
873
|
-
var this_2 = subtract(exponent, subtract(numberToLong(rightTruncated.length), significand.
|
|
873
|
+
var this_2 = subtract(exponent, subtract(numberToLong(rightTruncated.length), significand.won()));
|
|
874
874
|
tmp_6 = subtract(this_2, fromInt(1));
|
|
875
875
|
}
|
|
876
876
|
var exponentModifiedByFloatingPointPosition = tmp_6;
|
|
@@ -947,7 +947,7 @@ protoOf(Companion).aoo = function (floatingPointString, decimalMode) {
|
|
|
947
947
|
}
|
|
948
948
|
var leftTruncated_0 = substring(left_0, leftFirstNonZero_0, left_0.length);
|
|
949
949
|
var rightTruncated_0 = substring(right_0, 0, rightLastNonZero_0 + 1 | 0);
|
|
950
|
-
var significand_0 = Companion_getInstance_1().
|
|
950
|
+
var significand_0 = Companion_getInstance_1().kom(leftTruncated_0 + rightTruncated_0, 10);
|
|
951
951
|
var tmp_10;
|
|
952
952
|
var tmp_11;
|
|
953
953
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
@@ -979,27 +979,27 @@ protoOf(Companion).aoo = function (floatingPointString, decimalMode) {
|
|
|
979
979
|
tmp_10 = imul(tmp$ret$15 + 1 | 0, -1);
|
|
980
980
|
}
|
|
981
981
|
var exponent_0 = tmp_10;
|
|
982
|
-
if (significand_0.equals(Companion_getInstance_1().
|
|
982
|
+
if (significand_0.equals(Companion_getInstance_1().non_1)) {
|
|
983
983
|
sign_0 = Sign_ZERO_getInstance();
|
|
984
984
|
}
|
|
985
985
|
if (sign_0.equals(Sign_NEGATIVE_getInstance())) {
|
|
986
|
-
significand_0 = significand_0.
|
|
986
|
+
significand_0 = significand_0.qop();
|
|
987
987
|
}
|
|
988
988
|
return new BigDecimal(significand_0, fromInt(exponent_0), decimalMode);
|
|
989
989
|
} else
|
|
990
990
|
throw ArithmeticException_init_$Create$('Invalid (or unsupported) floating point number format: ' + floatingPointString);
|
|
991
991
|
} else {
|
|
992
|
-
var significand_1 = Companion_getInstance_1().
|
|
992
|
+
var significand_1 = Companion_getInstance_1().kom(floatingPointString, 10);
|
|
993
993
|
// Inline function 'kotlin.Long.minus' call
|
|
994
|
-
var this_3 = significand_1.
|
|
994
|
+
var this_3 = significand_1.won();
|
|
995
995
|
var tmp$ret$16 = subtract(this_3, fromInt(1));
|
|
996
996
|
return new BigDecimal(significand_1, tmp$ret$16, decimalMode);
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
999
|
};
|
|
1000
|
-
protoOf(Companion).
|
|
1000
|
+
protoOf(Companion).pop = function (floatingPointString, decimalMode, $super) {
|
|
1001
1001
|
decimalMode = decimalMode === VOID ? null : decimalMode;
|
|
1002
|
-
return $super === VOID ? this.
|
|
1002
|
+
return $super === VOID ? this.mop(floatingPointString, decimalMode) : $super.mop.call(this, floatingPointString, decimalMode);
|
|
1003
1003
|
};
|
|
1004
1004
|
var Companion_instance;
|
|
1005
1005
|
function Companion_getInstance() {
|
|
@@ -1008,51 +1008,51 @@ function Companion_getInstance() {
|
|
|
1008
1008
|
return Companion_instance;
|
|
1009
1009
|
}
|
|
1010
1010
|
function removeTrailingZeroes($this, bigDecimal) {
|
|
1011
|
-
if (bigDecimal.
|
|
1011
|
+
if (bigDecimal.doo())
|
|
1012
1012
|
return $this;
|
|
1013
|
-
var significand = bigDecimal.
|
|
1014
|
-
var divisionResult = new QuotientAndRemainder(bigDecimal.
|
|
1013
|
+
var significand = bigDecimal.uoo_1;
|
|
1014
|
+
var divisionResult = new QuotientAndRemainder(bigDecimal.uoo_1, Companion_getInstance_1().non_1);
|
|
1015
1015
|
do {
|
|
1016
|
-
divisionResult = divisionResult.
|
|
1017
|
-
if (divisionResult.
|
|
1018
|
-
significand = divisionResult.
|
|
1016
|
+
divisionResult = divisionResult.zon_1.yon(Companion_getInstance_1().qon_1);
|
|
1017
|
+
if (divisionResult.aoo_1.equals(Companion_getInstance_1().non_1)) {
|
|
1018
|
+
significand = divisionResult.zon_1;
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
|
-
while (divisionResult.
|
|
1022
|
-
return new BigDecimal(significand, bigDecimal.
|
|
1021
|
+
while (divisionResult.aoo_1.equals(Companion_getInstance_1().non_1));
|
|
1022
|
+
return new BigDecimal(significand, bigDecimal.voo_1);
|
|
1023
1023
|
}
|
|
1024
1024
|
function ScaleOps(name, ordinal) {
|
|
1025
1025
|
Enum.call(this, name, ordinal);
|
|
1026
1026
|
}
|
|
1027
1027
|
function computeMode($this, other, op) {
|
|
1028
1028
|
var tmp;
|
|
1029
|
-
if ($this.
|
|
1030
|
-
tmp = Companion_getInstance_0().
|
|
1029
|
+
if ($this.woo_1 == null || $this.woo_1.kon_1 || other.woo_1 == null || other.woo_1.kon_1) {
|
|
1030
|
+
tmp = Companion_getInstance_0().rop_1;
|
|
1031
1031
|
} else {
|
|
1032
|
-
var tmp0 = $this.
|
|
1032
|
+
var tmp0 = $this.woo_1.hon_1;
|
|
1033
1033
|
// Inline function 'kotlin.math.max' call
|
|
1034
|
-
var b = other.
|
|
1034
|
+
var b = other.woo_1.hon_1;
|
|
1035
1035
|
var tmp_0 = tmp0 >= b ? tmp0 : b;
|
|
1036
1036
|
var tmp_1;
|
|
1037
|
-
if ($this.
|
|
1037
|
+
if ($this.woo_1.lon_1 && other.woo_1.lon_1) {
|
|
1038
1038
|
var tmp_2;
|
|
1039
1039
|
switch (op.a1_1) {
|
|
1040
1040
|
case 0:
|
|
1041
|
-
var tmp0_0 = $this.
|
|
1041
|
+
var tmp0_0 = $this.woo_1.jon_1;
|
|
1042
1042
|
// Inline function 'kotlin.math.max' call
|
|
1043
1043
|
|
|
1044
|
-
var b_0 = other.
|
|
1044
|
+
var b_0 = other.woo_1.jon_1;
|
|
1045
1045
|
tmp_2 = tmp0_0 >= b_0 ? tmp0_0 : b_0;
|
|
1046
1046
|
break;
|
|
1047
1047
|
case 1:
|
|
1048
|
-
var tmp0_1 = $this.
|
|
1048
|
+
var tmp0_1 = $this.woo_1.jon_1;
|
|
1049
1049
|
// Inline function 'kotlin.math.min' call
|
|
1050
1050
|
|
|
1051
|
-
var b_1 = other.
|
|
1051
|
+
var b_1 = other.woo_1.jon_1;
|
|
1052
1052
|
tmp_2 = tmp0_1 <= b_1 ? tmp0_1 : b_1;
|
|
1053
1053
|
break;
|
|
1054
1054
|
case 2:
|
|
1055
|
-
tmp_2 = add($this.
|
|
1055
|
+
tmp_2 = add($this.woo_1.jon_1, other.woo_1.jon_1);
|
|
1056
1056
|
break;
|
|
1057
1057
|
default:
|
|
1058
1058
|
noWhenBranchMatchedException();
|
|
@@ -1062,68 +1062,68 @@ function computeMode($this, other, op) {
|
|
|
1062
1062
|
} else {
|
|
1063
1063
|
tmp_1 = -1n;
|
|
1064
1064
|
}
|
|
1065
|
-
tmp = new DecimalMode(tmp_0, $this.
|
|
1065
|
+
tmp = new DecimalMode(tmp_0, $this.woo_1.ion_1, tmp_1);
|
|
1066
1066
|
}
|
|
1067
1067
|
return tmp;
|
|
1068
1068
|
}
|
|
1069
1069
|
function getRidOfRadix($this, bigDecimal) {
|
|
1070
|
-
var precision = bigDecimal.
|
|
1070
|
+
var precision = bigDecimal.uoo_1.won();
|
|
1071
1071
|
// Inline function 'kotlin.Long.plus' call
|
|
1072
|
-
var this_0 = subtract(bigDecimal.
|
|
1072
|
+
var this_0 = subtract(bigDecimal.voo_1, precision);
|
|
1073
1073
|
var newExponent = add(this_0, fromInt(1));
|
|
1074
|
-
return new BigDecimal(bigDecimal.
|
|
1074
|
+
return new BigDecimal(bigDecimal.uoo_1, newExponent);
|
|
1075
1075
|
}
|
|
1076
1076
|
function bringSignificandToSameExponent($this, first, second) {
|
|
1077
1077
|
var firstPrepared = getRidOfRadix($this, first);
|
|
1078
1078
|
var secondPrepared = getRidOfRadix($this, second);
|
|
1079
|
-
var firstPreparedExponent = firstPrepared.
|
|
1080
|
-
var secondPreparedExponent = secondPrepared.
|
|
1079
|
+
var firstPreparedExponent = firstPrepared.voo_1;
|
|
1080
|
+
var secondPreparedExponent = secondPrepared.voo_1;
|
|
1081
1081
|
var tmp;
|
|
1082
|
-
if (first.
|
|
1082
|
+
if (first.voo_1 > second.voo_1) {
|
|
1083
1083
|
var moveFirstBy = subtract(firstPreparedExponent, secondPreparedExponent);
|
|
1084
1084
|
var tmp_0;
|
|
1085
1085
|
if (moveFirstBy >= 0n) {
|
|
1086
|
-
var movedFirst = firstPrepared.
|
|
1087
|
-
return new Triple(movedFirst, second.
|
|
1086
|
+
var movedFirst = firstPrepared.uoo_1.xom(toBigInteger(10).xon(moveFirstBy));
|
|
1087
|
+
return new Triple(movedFirst, second.uoo_1, secondPreparedExponent);
|
|
1088
1088
|
} else {
|
|
1089
1089
|
var tmp_1 = toBigInteger(10);
|
|
1090
1090
|
// Inline function 'kotlin.Long.times' call
|
|
1091
1091
|
var tmp$ret$0 = multiply(moveFirstBy, fromInt(-1));
|
|
1092
|
-
var movedSecond = secondPrepared.
|
|
1093
|
-
tmp_0 = new Triple(first.
|
|
1092
|
+
var movedSecond = secondPrepared.uoo_1.xom(tmp_1.xon(tmp$ret$0));
|
|
1093
|
+
tmp_0 = new Triple(first.uoo_1, movedSecond, firstPreparedExponent);
|
|
1094
1094
|
}
|
|
1095
1095
|
tmp = tmp_0;
|
|
1096
|
-
} else if (first.
|
|
1096
|
+
} else if (first.voo_1 < second.voo_1) {
|
|
1097
1097
|
var moveSecondBy = subtract(secondPreparedExponent, firstPreparedExponent);
|
|
1098
1098
|
var tmp_2;
|
|
1099
1099
|
if (moveSecondBy >= 0n) {
|
|
1100
|
-
var movedSecond_0 = secondPrepared.
|
|
1101
|
-
tmp_2 = new Triple(first.
|
|
1100
|
+
var movedSecond_0 = secondPrepared.uoo_1.xom(toBigInteger(10).xon(moveSecondBy));
|
|
1101
|
+
tmp_2 = new Triple(first.uoo_1, movedSecond_0, firstPreparedExponent);
|
|
1102
1102
|
} else {
|
|
1103
1103
|
var tmp_3 = toBigInteger(10);
|
|
1104
1104
|
// Inline function 'kotlin.Long.times' call
|
|
1105
1105
|
var tmp$ret$1 = multiply(moveSecondBy, fromInt(-1));
|
|
1106
|
-
var movedFirst_0 = firstPrepared.
|
|
1107
|
-
tmp_2 = new Triple(movedFirst_0, second.
|
|
1106
|
+
var movedFirst_0 = firstPrepared.uoo_1.xom(tmp_3.xon(tmp$ret$1));
|
|
1107
|
+
tmp_2 = new Triple(movedFirst_0, second.uoo_1, firstPreparedExponent);
|
|
1108
1108
|
}
|
|
1109
1109
|
return tmp_2;
|
|
1110
|
-
} else if (first.
|
|
1110
|
+
} else if (first.voo_1 === second.voo_1) {
|
|
1111
1111
|
var delta = subtract(firstPreparedExponent, secondPreparedExponent);
|
|
1112
1112
|
var tmp_4;
|
|
1113
1113
|
if (delta > 0n) {
|
|
1114
|
-
var movedFirst_1 = first.
|
|
1115
|
-
tmp_4 = new Triple(movedFirst_1, second.
|
|
1114
|
+
var movedFirst_1 = first.uoo_1.xom(toBigInteger(10).xon(delta));
|
|
1115
|
+
tmp_4 = new Triple(movedFirst_1, second.uoo_1, firstPreparedExponent);
|
|
1116
1116
|
} else {
|
|
1117
1117
|
if (delta < 0n) {
|
|
1118
1118
|
var tmp_5 = toBigInteger(10);
|
|
1119
1119
|
// Inline function 'kotlin.Long.times' call
|
|
1120
1120
|
var tmp$ret$2 = multiply(delta, fromInt(-1));
|
|
1121
|
-
var movedSecond_1 = second.
|
|
1122
|
-
tmp_4 = new Triple(first.
|
|
1121
|
+
var movedSecond_1 = second.uoo_1.xom(tmp_5.xon(tmp$ret$2));
|
|
1122
|
+
tmp_4 = new Triple(first.uoo_1, movedSecond_1, firstPreparedExponent);
|
|
1123
1123
|
} else {
|
|
1124
1124
|
// Inline function 'kotlin.Long.compareTo' call
|
|
1125
1125
|
if (compareTo(delta, fromInt(0)) === 0) {
|
|
1126
|
-
tmp_4 = new Triple(first.
|
|
1126
|
+
tmp_4 = new Triple(first.uoo_1, second.uoo_1, firstPreparedExponent);
|
|
1127
1127
|
} else {
|
|
1128
1128
|
throw RuntimeException_init_$Create$('Invalid delta: ' + delta.toString());
|
|
1129
1129
|
}
|
|
@@ -1131,7 +1131,7 @@ function bringSignificandToSameExponent($this, first, second) {
|
|
|
1131
1131
|
}
|
|
1132
1132
|
return tmp_4;
|
|
1133
1133
|
} else {
|
|
1134
|
-
throw RuntimeException_init_$Create$('Invalid comparison state BigInteger: ' + first.
|
|
1134
|
+
throw RuntimeException_init_$Create$('Invalid comparison state BigInteger: ' + first.voo_1.toString() + ', ' + second.voo_1.toString());
|
|
1135
1135
|
}
|
|
1136
1136
|
return tmp;
|
|
1137
1137
|
}
|
|
@@ -1139,11 +1139,11 @@ function javascriptNumberComparison($this, number) {
|
|
|
1139
1139
|
var double = numberToDouble(number);
|
|
1140
1140
|
var tmp;
|
|
1141
1141
|
if (double > toNumber(9223372036854775807n)) {
|
|
1142
|
-
tmp = $this.
|
|
1142
|
+
tmp = $this.top(Companion_getInstance().oop(double.toString()));
|
|
1143
1143
|
} else if (double % 1 === 0.0) {
|
|
1144
|
-
tmp = $this.
|
|
1144
|
+
tmp = $this.top(Companion_getInstance().eop(numberToLong(number)));
|
|
1145
1145
|
} else {
|
|
1146
|
-
tmp = $this.
|
|
1146
|
+
tmp = $this.top(toBigDecimal(numberToDouble(number)));
|
|
1147
1147
|
}
|
|
1148
1148
|
return tmp;
|
|
1149
1149
|
}
|
|
@@ -1206,67 +1206,67 @@ function BigDecimal(_significand, _exponent, _decimalMode) {
|
|
|
1206
1206
|
Companion_getInstance();
|
|
1207
1207
|
_exponent = _exponent === VOID ? 0n : _exponent;
|
|
1208
1208
|
_decimalMode = _decimalMode === VOID ? null : _decimalMode;
|
|
1209
|
-
if (!(_decimalMode == null) && _decimalMode.
|
|
1209
|
+
if (!(_decimalMode == null) && _decimalMode.lon_1) {
|
|
1210
1210
|
var wrk = applyScale(Companion_getInstance(), _significand, _exponent, _decimalMode);
|
|
1211
|
-
if (!wrk.
|
|
1212
|
-
this.
|
|
1213
|
-
this.
|
|
1214
|
-
var newPrecision = this.
|
|
1215
|
-
this.
|
|
1216
|
-
this.
|
|
1211
|
+
if (!wrk.doo()) {
|
|
1212
|
+
this.uoo_1 = wrk.uoo_1;
|
|
1213
|
+
this.voo_1 = wrk.voo_1;
|
|
1214
|
+
var newPrecision = this.uoo_1.won();
|
|
1215
|
+
this.too_1 = newPrecision;
|
|
1216
|
+
this.woo_1 = _decimalMode.uop(newPrecision);
|
|
1217
1217
|
} else {
|
|
1218
|
-
this.
|
|
1219
|
-
this.
|
|
1220
|
-
this.
|
|
1221
|
-
this.
|
|
1218
|
+
this.uoo_1 = wrk.uoo_1;
|
|
1219
|
+
this.voo_1 = multiply(wrk.voo_1, add(_decimalMode.hon_1, _decimalMode.jon_1));
|
|
1220
|
+
this.too_1 = add(_decimalMode.hon_1, _decimalMode.jon_1);
|
|
1221
|
+
this.woo_1 = _decimalMode.uop(this.too_1);
|
|
1222
1222
|
}
|
|
1223
1223
|
} else {
|
|
1224
|
-
this.
|
|
1225
|
-
this.
|
|
1226
|
-
this.
|
|
1227
|
-
this.
|
|
1224
|
+
this.uoo_1 = _significand;
|
|
1225
|
+
this.too_1 = _significand.won();
|
|
1226
|
+
this.voo_1 = _exponent;
|
|
1227
|
+
this.woo_1 = _decimalMode;
|
|
1228
1228
|
}
|
|
1229
1229
|
var tmp = this;
|
|
1230
|
-
var tmp0_safe_receiver = this.
|
|
1231
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1232
|
-
tmp.
|
|
1230
|
+
var tmp0_safe_receiver = this.woo_1;
|
|
1231
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.hon_1;
|
|
1232
|
+
tmp.xoo_1 = tmp0_elvis_lhs == null ? 0n : tmp0_elvis_lhs;
|
|
1233
1233
|
var tmp_0 = this;
|
|
1234
|
-
var tmp1_safe_receiver = this.
|
|
1235
|
-
var tmp0_elvis_lhs_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1236
|
-
tmp_0.
|
|
1234
|
+
var tmp1_safe_receiver = this.woo_1;
|
|
1235
|
+
var tmp0_elvis_lhs_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ion_1;
|
|
1236
|
+
tmp_0.yoo_1 = tmp0_elvis_lhs_0 == null ? RoundingMode_NONE_getInstance() : tmp0_elvis_lhs_0;
|
|
1237
1237
|
var tmp_1 = this;
|
|
1238
|
-
var tmp13_safe_receiver = this.
|
|
1239
|
-
var tmp0_elvis_lhs_1 = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.
|
|
1240
|
-
tmp_1.
|
|
1241
|
-
this.
|
|
1238
|
+
var tmp13_safe_receiver = this.woo_1;
|
|
1239
|
+
var tmp0_elvis_lhs_1 = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.jon_1;
|
|
1240
|
+
tmp_1.zoo_1 = tmp0_elvis_lhs_1 == null ? -1n : tmp0_elvis_lhs_1;
|
|
1241
|
+
this.aop_1 = this.zoo_1 >= 0n;
|
|
1242
1242
|
}
|
|
1243
|
-
protoOf(BigDecimal).
|
|
1243
|
+
protoOf(BigDecimal).rom = function () {
|
|
1244
1244
|
return Companion_getInstance();
|
|
1245
1245
|
};
|
|
1246
|
-
protoOf(BigDecimal).
|
|
1246
|
+
protoOf(BigDecimal).som = function () {
|
|
1247
1247
|
return this;
|
|
1248
1248
|
};
|
|
1249
|
-
protoOf(BigDecimal).
|
|
1250
|
-
return this.
|
|
1249
|
+
protoOf(BigDecimal).vop = function (other) {
|
|
1250
|
+
return this.wop(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1251
1251
|
};
|
|
1252
|
-
protoOf(BigDecimal).
|
|
1253
|
-
return this.
|
|
1252
|
+
protoOf(BigDecimal).uom = function (other) {
|
|
1253
|
+
return this.vop(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1254
1254
|
};
|
|
1255
|
-
protoOf(BigDecimal).
|
|
1256
|
-
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.
|
|
1257
|
-
if (this.
|
|
1258
|
-
return roundOrDont(Companion_getInstance(), other.
|
|
1255
|
+
protoOf(BigDecimal).wop = function (other, decimalMode) {
|
|
1256
|
+
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.woo_1, other.woo_1, decimalMode);
|
|
1257
|
+
if (this.doo()) {
|
|
1258
|
+
return roundOrDont(Companion_getInstance(), other.uoo_1, other.voo_1, resolvedDecimalMode);
|
|
1259
1259
|
}
|
|
1260
|
-
if (other.
|
|
1261
|
-
return roundOrDont(Companion_getInstance(), this.
|
|
1260
|
+
if (other.doo()) {
|
|
1261
|
+
return roundOrDont(Companion_getInstance(), this.uoo_1, this.voo_1, resolvedDecimalMode);
|
|
1262
1262
|
}
|
|
1263
1263
|
var _destruct__k2r9zo = bringSignificandToSameExponent(this, this, other);
|
|
1264
1264
|
var first = _destruct__k2r9zo.dh();
|
|
1265
1265
|
var second = _destruct__k2r9zo.eh();
|
|
1266
|
-
var firstNumOfDigits = first.
|
|
1267
|
-
var secondNumOfDigits = second.
|
|
1268
|
-
var newSignificand = first.
|
|
1269
|
-
var newSignificandNumOfDigit = newSignificand.
|
|
1266
|
+
var firstNumOfDigits = first.won();
|
|
1267
|
+
var secondNumOfDigits = second.won();
|
|
1268
|
+
var newSignificand = first.tom(second);
|
|
1269
|
+
var newSignificandNumOfDigit = newSignificand.won();
|
|
1270
1270
|
var tmp;
|
|
1271
1271
|
if (firstNumOfDigits > secondNumOfDigits) {
|
|
1272
1272
|
tmp = firstNumOfDigits;
|
|
@@ -1275,40 +1275,40 @@ protoOf(BigDecimal).koo = function (other, decimalMode) {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
var largerOperand = tmp;
|
|
1277
1277
|
var carryDetected = subtract(newSignificandNumOfDigit, largerOperand);
|
|
1278
|
-
var tmp0 = this.
|
|
1278
|
+
var tmp0 = this.voo_1;
|
|
1279
1279
|
// Inline function 'kotlin.math.max' call
|
|
1280
|
-
var b = other.
|
|
1280
|
+
var b = other.voo_1;
|
|
1281
1281
|
var tmp$ret$0 = tmp0 >= b ? tmp0 : b;
|
|
1282
1282
|
var newExponent = add(tmp$ret$0, carryDetected);
|
|
1283
1283
|
var tmp_0;
|
|
1284
|
-
if (resolvedDecimalMode.
|
|
1285
|
-
tmp_0 = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.
|
|
1284
|
+
if (resolvedDecimalMode.lon_1) {
|
|
1285
|
+
tmp_0 = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.uop(newSignificandNumOfDigit));
|
|
1286
1286
|
} else {
|
|
1287
1287
|
tmp_0 = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode);
|
|
1288
1288
|
}
|
|
1289
1289
|
return tmp_0;
|
|
1290
1290
|
};
|
|
1291
|
-
protoOf(BigDecimal).
|
|
1292
|
-
return this.
|
|
1291
|
+
protoOf(BigDecimal).xop = function (other) {
|
|
1292
|
+
return this.yop(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1293
1293
|
};
|
|
1294
|
-
protoOf(BigDecimal).
|
|
1295
|
-
return this.
|
|
1294
|
+
protoOf(BigDecimal).wom = function (other) {
|
|
1295
|
+
return this.xop(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1296
1296
|
};
|
|
1297
|
-
protoOf(BigDecimal).
|
|
1298
|
-
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.
|
|
1299
|
-
if (this.
|
|
1300
|
-
return roundOrDont(Companion_getInstance(), other.
|
|
1297
|
+
protoOf(BigDecimal).yop = function (other, decimalMode) {
|
|
1298
|
+
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.woo_1, other.woo_1, decimalMode);
|
|
1299
|
+
if (this.doo()) {
|
|
1300
|
+
return roundOrDont(Companion_getInstance(), other.uoo_1.qop(), other.voo_1, resolvedDecimalMode);
|
|
1301
1301
|
}
|
|
1302
|
-
if (other.
|
|
1303
|
-
return roundOrDont(Companion_getInstance(), this.
|
|
1302
|
+
if (other.doo()) {
|
|
1303
|
+
return roundOrDont(Companion_getInstance(), this.uoo_1, this.voo_1, resolvedDecimalMode);
|
|
1304
1304
|
}
|
|
1305
1305
|
var _destruct__k2r9zo = bringSignificandToSameExponent(this, this, other);
|
|
1306
1306
|
var first = _destruct__k2r9zo.dh();
|
|
1307
1307
|
var second = _destruct__k2r9zo.eh();
|
|
1308
|
-
var firstNumOfDigits = first.
|
|
1309
|
-
var secondNumOfDigits = second.
|
|
1310
|
-
var newSignificand = first.
|
|
1311
|
-
var newSignificandNumOfDigit = newSignificand.
|
|
1308
|
+
var firstNumOfDigits = first.won();
|
|
1309
|
+
var secondNumOfDigits = second.won();
|
|
1310
|
+
var newSignificand = first.vom(second);
|
|
1311
|
+
var newSignificandNumOfDigit = newSignificand.won();
|
|
1312
1312
|
var tmp;
|
|
1313
1313
|
if (firstNumOfDigits > secondNumOfDigits) {
|
|
1314
1314
|
tmp = firstNumOfDigits;
|
|
@@ -1317,170 +1317,170 @@ protoOf(BigDecimal).moo = function (other, decimalMode) {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
var largerOperand = tmp;
|
|
1319
1319
|
var borrowDetected = subtract(newSignificandNumOfDigit, largerOperand);
|
|
1320
|
-
var tmp0 = this.
|
|
1320
|
+
var tmp0 = this.voo_1;
|
|
1321
1321
|
// Inline function 'kotlin.math.max' call
|
|
1322
|
-
var b = other.
|
|
1322
|
+
var b = other.voo_1;
|
|
1323
1323
|
var tmp$ret$0 = tmp0 >= b ? tmp0 : b;
|
|
1324
1324
|
var newExponent = add(tmp$ret$0, borrowDetected);
|
|
1325
|
-
if (this.
|
|
1326
|
-
return roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.
|
|
1325
|
+
if (this.aop_1) {
|
|
1326
|
+
return roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.uop(newSignificandNumOfDigit));
|
|
1327
1327
|
} else {
|
|
1328
1328
|
return roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode);
|
|
1329
1329
|
}
|
|
1330
1330
|
};
|
|
1331
|
-
protoOf(BigDecimal).
|
|
1332
|
-
return this.
|
|
1331
|
+
protoOf(BigDecimal).zop = function (other) {
|
|
1332
|
+
return this.aoq(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1333
1333
|
};
|
|
1334
|
-
protoOf(BigDecimal).
|
|
1335
|
-
return this.
|
|
1334
|
+
protoOf(BigDecimal).yom = function (other) {
|
|
1335
|
+
return this.zop(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1336
1336
|
};
|
|
1337
|
-
protoOf(BigDecimal).
|
|
1338
|
-
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.
|
|
1339
|
-
var firstNumOfDigits = this.
|
|
1340
|
-
var secondNumOfDigits = other.
|
|
1341
|
-
var newSignificand = this.
|
|
1342
|
-
var newSignificandNumOfDigit = newSignificand.
|
|
1337
|
+
protoOf(BigDecimal).aoq = function (other, decimalMode) {
|
|
1338
|
+
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.woo_1, other.woo_1, decimalMode);
|
|
1339
|
+
var firstNumOfDigits = this.uoo_1.won();
|
|
1340
|
+
var secondNumOfDigits = other.uoo_1.won();
|
|
1341
|
+
var newSignificand = this.uoo_1.xom(other.uoo_1);
|
|
1342
|
+
var newSignificandNumOfDigit = newSignificand.won();
|
|
1343
1343
|
var moveExponent = subtract(newSignificandNumOfDigit, add(firstNumOfDigits, secondNumOfDigits));
|
|
1344
1344
|
// Inline function 'kotlin.Long.plus' call
|
|
1345
|
-
var this_0 = add(add(this.
|
|
1345
|
+
var this_0 = add(add(this.voo_1, other.voo_1), moveExponent);
|
|
1346
1346
|
var newExponent = add(this_0, fromInt(1));
|
|
1347
1347
|
var tmp;
|
|
1348
|
-
if (resolvedDecimalMode.
|
|
1349
|
-
tmp = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.
|
|
1348
|
+
if (resolvedDecimalMode.lon_1) {
|
|
1349
|
+
tmp = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode.uop(newSignificandNumOfDigit));
|
|
1350
1350
|
} else {
|
|
1351
1351
|
tmp = roundOrDont(Companion_getInstance(), newSignificand, newExponent, resolvedDecimalMode);
|
|
1352
1352
|
}
|
|
1353
1353
|
return tmp;
|
|
1354
1354
|
};
|
|
1355
|
-
protoOf(BigDecimal).
|
|
1356
|
-
return this.
|
|
1355
|
+
protoOf(BigDecimal).boq = function (other) {
|
|
1356
|
+
return this.coq(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1357
1357
|
};
|
|
1358
|
-
protoOf(BigDecimal).
|
|
1359
|
-
return this.
|
|
1358
|
+
protoOf(BigDecimal).aon = function (other) {
|
|
1359
|
+
return this.boq(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1360
1360
|
};
|
|
1361
|
-
protoOf(BigDecimal).
|
|
1362
|
-
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.
|
|
1363
|
-
if (resolvedDecimalMode.
|
|
1364
|
-
var newExponent = subtract(this.
|
|
1361
|
+
protoOf(BigDecimal).coq = function (other, decimalMode) {
|
|
1362
|
+
var resolvedDecimalMode = resolveDecimalMode(Companion_getInstance(), this.woo_1, other.woo_1, decimalMode);
|
|
1363
|
+
if (resolvedDecimalMode.kon_1 && !resolvedDecimalMode.lon_1) {
|
|
1364
|
+
var newExponent = subtract(this.voo_1, other.voo_1);
|
|
1365
1365
|
// Inline function 'kotlin.Long.times' call
|
|
1366
|
-
var this_0 = other.
|
|
1366
|
+
var this_0 = other.too_1;
|
|
1367
1367
|
// Inline function 'kotlin.Long.plus' call
|
|
1368
1368
|
var this_1 = multiply(this_0, fromInt(2));
|
|
1369
1369
|
var power = add(this_1, fromInt(6));
|
|
1370
|
-
var thisPrepared = this.
|
|
1371
|
-
var divRem = thisPrepared.
|
|
1372
|
-
var result = divRem.
|
|
1370
|
+
var thisPrepared = this.uoo_1.xom(Companion_getInstance_1().qon_1.xon(power));
|
|
1371
|
+
var divRem = thisPrepared.yon(other.uoo_1);
|
|
1372
|
+
var result = divRem.zon_1;
|
|
1373
1373
|
// Inline function 'kotlin.Long.minus' call
|
|
1374
|
-
var this_2 = other.
|
|
1374
|
+
var this_2 = other.too_1;
|
|
1375
1375
|
var expectedDiff = subtract(this_2, fromInt(1));
|
|
1376
|
-
var exponentModifier = add(expectedDiff, subtract(result.
|
|
1377
|
-
if (!divRem.
|
|
1376
|
+
var exponentModifier = add(expectedDiff, subtract(result.won(), thisPrepared.won()));
|
|
1377
|
+
if (!divRem.aoo_1.equals(Companion_getInstance_1().non_1)) {
|
|
1378
1378
|
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.');
|
|
1379
1379
|
}
|
|
1380
1380
|
return new BigDecimal(result, add(newExponent, exponentModifier), resolvedDecimalMode);
|
|
1381
1381
|
} else {
|
|
1382
1382
|
// Inline function 'kotlin.Long.minus' call
|
|
1383
|
-
var this_3 = subtract(this.
|
|
1383
|
+
var this_3 = subtract(this.voo_1, other.voo_1);
|
|
1384
1384
|
var newExponent_0 = subtract(this_3, fromInt(1));
|
|
1385
|
-
var desiredPrecision = resolvedDecimalMode.
|
|
1386
|
-
var power_0 = add(subtract(desiredPrecision, this.
|
|
1385
|
+
var desiredPrecision = resolvedDecimalMode.hon_1;
|
|
1386
|
+
var power_0 = add(subtract(desiredPrecision, this.too_1), other.too_1);
|
|
1387
1387
|
var tmp;
|
|
1388
1388
|
if (power_0 > 0n) {
|
|
1389
|
-
tmp = this.
|
|
1389
|
+
tmp = this.uoo_1.xom(toBigInteger(10).xon(power_0));
|
|
1390
1390
|
} else if (power_0 < 0n) {
|
|
1391
1391
|
var tmp_0 = toBigInteger(10);
|
|
1392
1392
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1393
1393
|
var tmp$ret$4 = abs(power_0);
|
|
1394
|
-
tmp = this.
|
|
1394
|
+
tmp = this.uoo_1.zom(tmp_0.xon(tmp$ret$4));
|
|
1395
1395
|
} else {
|
|
1396
|
-
tmp = this.
|
|
1396
|
+
tmp = this.uoo_1;
|
|
1397
1397
|
}
|
|
1398
1398
|
var thisPrepared_0 = tmp;
|
|
1399
|
-
var divRem_0 = thisPrepared_0.
|
|
1400
|
-
var result_0 = divRem_0.
|
|
1401
|
-
if (result_0.equals(Companion_getInstance_1().
|
|
1399
|
+
var divRem_0 = thisPrepared_0.yon(other.uoo_1);
|
|
1400
|
+
var result_0 = divRem_0.zon_1;
|
|
1401
|
+
if (result_0.equals(Companion_getInstance_1().non_1)) {
|
|
1402
1402
|
var _unary__edvuaz = newExponent_0;
|
|
1403
1403
|
newExponent_0 = subtract(_unary__edvuaz, get_ONE());
|
|
1404
1404
|
}
|
|
1405
|
-
var exponentModifier_0 = subtract(result_0.
|
|
1405
|
+
var exponentModifier_0 = subtract(result_0.won(), resolvedDecimalMode.hon_1);
|
|
1406
1406
|
var tmp_1;
|
|
1407
|
-
if (this.
|
|
1408
|
-
tmp_1 = new BigDecimal(roundDiscarded(Companion_getInstance(), result_0, divRem_0.
|
|
1407
|
+
if (this.aop_1) {
|
|
1408
|
+
tmp_1 = new BigDecimal(roundDiscarded(Companion_getInstance(), result_0, divRem_0.aoo_1, resolvedDecimalMode), add(newExponent_0, exponentModifier_0), resolvedDecimalMode.uop(result_0.won()));
|
|
1409
1409
|
} else {
|
|
1410
|
-
tmp_1 = new BigDecimal(roundDiscarded(Companion_getInstance(), result_0, divRem_0.
|
|
1410
|
+
tmp_1 = new BigDecimal(roundDiscarded(Companion_getInstance(), result_0, divRem_0.aoo_1, resolvedDecimalMode), add(newExponent_0, exponentModifier_0), resolvedDecimalMode);
|
|
1411
1411
|
}
|
|
1412
1412
|
return tmp_1;
|
|
1413
1413
|
}
|
|
1414
1414
|
};
|
|
1415
|
-
protoOf(BigDecimal).
|
|
1416
|
-
return this.
|
|
1415
|
+
protoOf(BigDecimal).doq = function (other) {
|
|
1416
|
+
return this.eoq(other).second;
|
|
1417
1417
|
};
|
|
1418
|
-
protoOf(BigDecimal).
|
|
1419
|
-
return this.
|
|
1418
|
+
protoOf(BigDecimal).con = function (other) {
|
|
1419
|
+
return this.doq(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1420
1420
|
};
|
|
1421
|
-
protoOf(BigDecimal).
|
|
1422
|
-
if (this.
|
|
1423
|
-
return new Pair(Companion_getInstance().
|
|
1421
|
+
protoOf(BigDecimal).eoq = function (other) {
|
|
1422
|
+
if (this.voo_1 < 0n) {
|
|
1423
|
+
return new Pair(Companion_getInstance().goo_1, this);
|
|
1424
1424
|
}
|
|
1425
|
-
if (other.
|
|
1426
|
-
return new Pair(Companion_getInstance().
|
|
1425
|
+
if (other.boo().foq(this.boo()) > 0) {
|
|
1426
|
+
return new Pair(Companion_getInstance().goo_1, this);
|
|
1427
1427
|
}
|
|
1428
|
-
var tmp16_safe_receiver = this.
|
|
1428
|
+
var tmp16_safe_receiver = this.woo_1;
|
|
1429
1429
|
var tmp;
|
|
1430
1430
|
if (tmp16_safe_receiver == null) {
|
|
1431
1431
|
tmp = null;
|
|
1432
1432
|
} else {
|
|
1433
1433
|
// Inline function 'kotlin.Long.plus' call
|
|
1434
|
-
var this_0 = subtract(this.
|
|
1434
|
+
var this_0 = subtract(this.voo_1, other.voo_1);
|
|
1435
1435
|
var tmp$ret$0 = add(this_0, fromInt(1));
|
|
1436
|
-
tmp = tmp16_safe_receiver.
|
|
1436
|
+
tmp = tmp16_safe_receiver.uop(tmp$ret$0);
|
|
1437
1437
|
}
|
|
1438
1438
|
var tmp0_elvis_lhs = tmp;
|
|
1439
1439
|
var tmp_0;
|
|
1440
1440
|
if (tmp0_elvis_lhs == null) {
|
|
1441
1441
|
// Inline function 'kotlin.Long.plus' call
|
|
1442
|
-
var this_1 = subtract(this.
|
|
1442
|
+
var this_1 = subtract(this.voo_1, other.voo_1);
|
|
1443
1443
|
var tmp$ret$1 = add(this_1, fromInt(1));
|
|
1444
1444
|
tmp_0 = new DecimalMode(tmp$ret$1, RoundingMode_FLOOR_getInstance());
|
|
1445
1445
|
} else {
|
|
1446
1446
|
tmp_0 = tmp0_elvis_lhs;
|
|
1447
1447
|
}
|
|
1448
1448
|
var resolvedRoundingMode = tmp_0;
|
|
1449
|
-
var quotient = this.
|
|
1450
|
-
var quotientInfinitePrecision = quotient.
|
|
1451
|
-
var remainder = this.
|
|
1449
|
+
var quotient = this.coq(other, resolvedRoundingMode);
|
|
1450
|
+
var quotientInfinitePrecision = quotient.goq(VOID, VOID, Companion_getInstance_0().rop_1);
|
|
1451
|
+
var remainder = this.ioq(quotientInfinitePrecision.hoq(other));
|
|
1452
1452
|
return new Pair(quotient, remainder);
|
|
1453
1453
|
};
|
|
1454
|
-
protoOf(BigDecimal).
|
|
1455
|
-
return this.
|
|
1454
|
+
protoOf(BigDecimal).doo = function () {
|
|
1455
|
+
return this.uoo_1.doo();
|
|
1456
1456
|
};
|
|
1457
|
-
protoOf(BigDecimal).
|
|
1457
|
+
protoOf(BigDecimal).joq = function (significand, exponent, decimalMode) {
|
|
1458
1458
|
return new BigDecimal(significand, exponent, decimalMode);
|
|
1459
1459
|
};
|
|
1460
|
-
protoOf(BigDecimal).
|
|
1461
|
-
significand = significand === VOID ? this.
|
|
1462
|
-
exponent = exponent === VOID ? this.
|
|
1463
|
-
decimalMode = decimalMode === VOID ? this.
|
|
1464
|
-
return $super === VOID ? this.
|
|
1460
|
+
protoOf(BigDecimal).goq = function (significand, exponent, decimalMode, $super) {
|
|
1461
|
+
significand = significand === VOID ? this.uoo_1 : significand;
|
|
1462
|
+
exponent = exponent === VOID ? this.voo_1 : exponent;
|
|
1463
|
+
decimalMode = decimalMode === VOID ? this.woo_1 : decimalMode;
|
|
1464
|
+
return $super === VOID ? this.joq(significand, exponent, decimalMode) : $super.joq.call(this, significand, exponent, decimalMode);
|
|
1465
1465
|
};
|
|
1466
|
-
protoOf(BigDecimal).
|
|
1466
|
+
protoOf(BigDecimal).koq = function (places) {
|
|
1467
1467
|
if (places === 0n) {
|
|
1468
1468
|
return this;
|
|
1469
1469
|
}
|
|
1470
|
-
return this.
|
|
1470
|
+
return this.goq(VOID, add(this.voo_1, places));
|
|
1471
1471
|
};
|
|
1472
|
-
protoOf(BigDecimal).
|
|
1473
|
-
if (this.
|
|
1472
|
+
protoOf(BigDecimal).loq = function () {
|
|
1473
|
+
if (this.voo_1 < 0n) {
|
|
1474
1474
|
var tmp;
|
|
1475
|
-
switch (this.
|
|
1475
|
+
switch (this.uoo_1.ton_1.a1_1) {
|
|
1476
1476
|
case 0:
|
|
1477
|
-
tmp = Companion_getInstance().
|
|
1477
|
+
tmp = Companion_getInstance().goo_1;
|
|
1478
1478
|
break;
|
|
1479
1479
|
case 1:
|
|
1480
|
-
tmp = Companion_getInstance().
|
|
1480
|
+
tmp = Companion_getInstance().hoo_1.qop();
|
|
1481
1481
|
break;
|
|
1482
1482
|
case 2:
|
|
1483
|
-
tmp = Companion_getInstance().
|
|
1483
|
+
tmp = Companion_getInstance().goo_1;
|
|
1484
1484
|
break;
|
|
1485
1485
|
default:
|
|
1486
1486
|
noWhenBranchMatchedException();
|
|
@@ -1489,90 +1489,90 @@ protoOf(BigDecimal).zoo = function () {
|
|
|
1489
1489
|
return tmp;
|
|
1490
1490
|
}
|
|
1491
1491
|
// Inline function 'kotlin.Long.plus' call
|
|
1492
|
-
var this_0 = this.
|
|
1492
|
+
var this_0 = this.voo_1;
|
|
1493
1493
|
var tmp$ret$0 = add(this_0, fromInt(1));
|
|
1494
|
-
return this.
|
|
1494
|
+
return this.fop(new DecimalMode(tmp$ret$0, RoundingMode_FLOOR_getInstance()));
|
|
1495
1495
|
};
|
|
1496
|
-
protoOf(BigDecimal).
|
|
1497
|
-
if (this.
|
|
1498
|
-
return Companion_getInstance_1().
|
|
1496
|
+
protoOf(BigDecimal).moq = function () {
|
|
1497
|
+
if (this.voo_1 < 0n) {
|
|
1498
|
+
return Companion_getInstance_1().non_1;
|
|
1499
1499
|
}
|
|
1500
|
-
var precisionExponentDiff = subtract(this.
|
|
1500
|
+
var precisionExponentDiff = subtract(this.voo_1, this.too_1);
|
|
1501
1501
|
var tmp;
|
|
1502
1502
|
if (precisionExponentDiff > 0n) {
|
|
1503
1503
|
var tmp_0 = toBigInteger(10);
|
|
1504
1504
|
// Inline function 'kotlin.Long.plus' call
|
|
1505
1505
|
var tmp$ret$0 = add(precisionExponentDiff, fromInt(1));
|
|
1506
|
-
tmp = this.
|
|
1506
|
+
tmp = this.uoo_1.xom(tmp_0.xon(tmp$ret$0));
|
|
1507
1507
|
} else if (precisionExponentDiff < 0n) {
|
|
1508
1508
|
var tmp_1 = toBigInteger(10);
|
|
1509
1509
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1510
1510
|
// Inline function 'kotlin.Long.minus' call
|
|
1511
1511
|
var this_0 = abs(precisionExponentDiff);
|
|
1512
1512
|
var tmp$ret$2 = subtract(this_0, fromInt(1));
|
|
1513
|
-
tmp = this.
|
|
1513
|
+
tmp = this.uoo_1.zom(tmp_1.xon(tmp$ret$2));
|
|
1514
1514
|
} else {
|
|
1515
|
-
tmp = this.
|
|
1515
|
+
tmp = this.uoo_1.l1e(10);
|
|
1516
1516
|
}
|
|
1517
1517
|
return tmp;
|
|
1518
1518
|
};
|
|
1519
|
-
protoOf(BigDecimal).
|
|
1520
|
-
return this.
|
|
1519
|
+
protoOf(BigDecimal).ioq = function (other) {
|
|
1520
|
+
return this.yop(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1521
1521
|
};
|
|
1522
|
-
protoOf(BigDecimal).
|
|
1523
|
-
return this.
|
|
1522
|
+
protoOf(BigDecimal).hoq = function (other) {
|
|
1523
|
+
return this.aoq(other, computeMode(this, other, ScaleOps_Max_getInstance()));
|
|
1524
1524
|
};
|
|
1525
|
-
protoOf(BigDecimal).
|
|
1526
|
-
return new BigDecimal(this.
|
|
1525
|
+
protoOf(BigDecimal).boo = function () {
|
|
1526
|
+
return new BigDecimal(this.uoo_1.boo(), this.voo_1, this.woo_1);
|
|
1527
1527
|
};
|
|
1528
|
-
protoOf(BigDecimal).
|
|
1529
|
-
return new BigDecimal(this.
|
|
1528
|
+
protoOf(BigDecimal).qop = function () {
|
|
1529
|
+
return new BigDecimal(this.uoo_1.qop(), this.voo_1, this.woo_1);
|
|
1530
1530
|
};
|
|
1531
|
-
protoOf(BigDecimal).
|
|
1531
|
+
protoOf(BigDecimal).fop = function (decimalMode) {
|
|
1532
1532
|
if (decimalMode == null) {
|
|
1533
1533
|
return this;
|
|
1534
1534
|
}
|
|
1535
|
-
return roundSignificand(Companion_getInstance(), this.
|
|
1535
|
+
return roundSignificand(Companion_getInstance(), this.uoo_1, this.voo_1, decimalMode);
|
|
1536
1536
|
};
|
|
1537
|
-
protoOf(BigDecimal).
|
|
1537
|
+
protoOf(BigDecimal).top = function (other) {
|
|
1538
1538
|
var tmp;
|
|
1539
|
-
if (this.
|
|
1540
|
-
tmp = this.
|
|
1539
|
+
if (this.voo_1 === other.voo_1 && this.too_1 === other.too_1) {
|
|
1540
|
+
tmp = this.uoo_1.noq(other.uoo_1);
|
|
1541
1541
|
} else {
|
|
1542
1542
|
var _destruct__k2r9zo = bringSignificandToSameExponent(this, this, other);
|
|
1543
1543
|
var preparedFirst = _destruct__k2r9zo.dh();
|
|
1544
1544
|
var preparedSecond = _destruct__k2r9zo.eh();
|
|
1545
|
-
tmp = preparedFirst.
|
|
1545
|
+
tmp = preparedFirst.noq(preparedSecond);
|
|
1546
1546
|
}
|
|
1547
1547
|
return tmp;
|
|
1548
1548
|
};
|
|
1549
|
-
protoOf(BigDecimal).
|
|
1549
|
+
protoOf(BigDecimal).foq = function (other) {
|
|
1550
1550
|
if (isNumber(other)) {
|
|
1551
|
-
if (RuntimePlatform_instance.
|
|
1551
|
+
if (RuntimePlatform_instance.ooq().equals(Platform_JS_getInstance()) || RuntimePlatform_instance.ooq().equals(Platform_WASMJS_getInstance())) {
|
|
1552
1552
|
return javascriptNumberComparison(this, other);
|
|
1553
1553
|
}
|
|
1554
1554
|
}
|
|
1555
1555
|
var tmp;
|
|
1556
1556
|
if (other instanceof BigDecimal) {
|
|
1557
|
-
tmp = this.
|
|
1557
|
+
tmp = this.top(other);
|
|
1558
1558
|
} else {
|
|
1559
1559
|
if (typeof other === 'bigint') {
|
|
1560
|
-
tmp = this.
|
|
1560
|
+
tmp = this.top(Companion_getInstance().eop(other));
|
|
1561
1561
|
} else {
|
|
1562
1562
|
if (typeof other === 'number') {
|
|
1563
|
-
tmp = this.
|
|
1563
|
+
tmp = this.top(Companion_getInstance().mom(other));
|
|
1564
1564
|
} else {
|
|
1565
1565
|
if (typeof other === 'number') {
|
|
1566
|
-
tmp = this.
|
|
1566
|
+
tmp = this.top(Companion_getInstance().iop(other));
|
|
1567
1567
|
} else {
|
|
1568
1568
|
if (typeof other === 'number') {
|
|
1569
|
-
tmp = this.
|
|
1569
|
+
tmp = this.top(Companion_getInstance().kop(other));
|
|
1570
1570
|
} else {
|
|
1571
1571
|
if (typeof other === 'number') {
|
|
1572
|
-
tmp = this.
|
|
1572
|
+
tmp = this.top(Companion_getInstance().bop(other));
|
|
1573
1573
|
} else {
|
|
1574
1574
|
if (typeof other === 'number') {
|
|
1575
|
-
tmp = this.
|
|
1575
|
+
tmp = this.top(Companion_getInstance().cop(other));
|
|
1576
1576
|
} else {
|
|
1577
1577
|
throw RuntimeException_init_$Create$('Invalid comparison type for BigDecimal: ' + getKClassFromExpression(other).o());
|
|
1578
1578
|
}
|
|
@@ -1585,30 +1585,30 @@ protoOf(BigDecimal).too = function (other) {
|
|
|
1585
1585
|
return tmp;
|
|
1586
1586
|
};
|
|
1587
1587
|
protoOf(BigDecimal).d = function (other) {
|
|
1588
|
-
return this.
|
|
1588
|
+
return this.foq(!(other == null) ? other : THROW_CCE());
|
|
1589
1589
|
};
|
|
1590
1590
|
protoOf(BigDecimal).equals = function (other) {
|
|
1591
1591
|
var tmp;
|
|
1592
1592
|
if (other instanceof BigDecimal) {
|
|
1593
|
-
tmp = this.
|
|
1593
|
+
tmp = this.top(other);
|
|
1594
1594
|
} else {
|
|
1595
1595
|
if (!(other == null) ? typeof other === 'bigint' : false) {
|
|
1596
|
-
tmp = this.
|
|
1596
|
+
tmp = this.top(Companion_getInstance().eop(other));
|
|
1597
1597
|
} else {
|
|
1598
1598
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1599
|
-
tmp = this.
|
|
1599
|
+
tmp = this.top(Companion_getInstance().mom(other));
|
|
1600
1600
|
} else {
|
|
1601
1601
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1602
|
-
tmp = this.
|
|
1602
|
+
tmp = this.top(Companion_getInstance().iop(other));
|
|
1603
1603
|
} else {
|
|
1604
1604
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1605
|
-
tmp = this.
|
|
1605
|
+
tmp = this.top(Companion_getInstance().kop(other));
|
|
1606
1606
|
} else {
|
|
1607
1607
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1608
|
-
tmp = this.
|
|
1608
|
+
tmp = this.top(Companion_getInstance().bop(other));
|
|
1609
1609
|
} else {
|
|
1610
1610
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
1611
|
-
tmp = this.
|
|
1611
|
+
tmp = this.top(Companion_getInstance().cop(other));
|
|
1612
1612
|
} else {
|
|
1613
1613
|
tmp = -1;
|
|
1614
1614
|
}
|
|
@@ -1622,25 +1622,25 @@ protoOf(BigDecimal).equals = function (other) {
|
|
|
1622
1622
|
return comparison === 0;
|
|
1623
1623
|
};
|
|
1624
1624
|
protoOf(BigDecimal).hashCode = function () {
|
|
1625
|
-
if (this.
|
|
1625
|
+
if (this.doo()) {
|
|
1626
1626
|
return 0;
|
|
1627
1627
|
}
|
|
1628
|
-
return removeTrailingZeroes(this, this).
|
|
1628
|
+
return removeTrailingZeroes(this, this).uoo_1.hashCode() + getBigIntHashCode(this.voo_1) | 0;
|
|
1629
1629
|
};
|
|
1630
1630
|
protoOf(BigDecimal).toString = function () {
|
|
1631
|
-
if (Companion_getInstance().
|
|
1632
|
-
return this.
|
|
1631
|
+
if (Companion_getInstance().koo_1) {
|
|
1632
|
+
return this.poq();
|
|
1633
1633
|
}
|
|
1634
|
-
var significandString = this.
|
|
1634
|
+
var significandString = this.uoo_1.qoq(10);
|
|
1635
1635
|
var tmp;
|
|
1636
|
-
if (this.
|
|
1636
|
+
if (this.uoo_1.foq(0) < 0) {
|
|
1637
1637
|
tmp = 2;
|
|
1638
1638
|
} else {
|
|
1639
1639
|
tmp = 1;
|
|
1640
1640
|
}
|
|
1641
1641
|
var modifier = tmp;
|
|
1642
1642
|
var tmp_0;
|
|
1643
|
-
var tmp0 = this.
|
|
1643
|
+
var tmp0 = this.uoo_1.toString();
|
|
1644
1644
|
var tmp$ret$1;
|
|
1645
1645
|
$l$block: {
|
|
1646
1646
|
// Inline function 'kotlin.text.dropLastWhile' call
|
|
@@ -1664,62 +1664,62 @@ protoOf(BigDecimal).toString = function () {
|
|
|
1664
1664
|
}
|
|
1665
1665
|
var expand = tmp_0;
|
|
1666
1666
|
var tmp_1;
|
|
1667
|
-
if (this.
|
|
1668
|
-
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E+' + this.
|
|
1669
|
-
} else if (this.
|
|
1670
|
-
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E' + this.
|
|
1671
|
-
} else if (this.
|
|
1667
|
+
if (this.voo_1 > 0n) {
|
|
1668
|
+
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E+' + this.voo_1.toString();
|
|
1669
|
+
} else if (this.voo_1 < 0n) {
|
|
1670
|
+
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E' + this.voo_1.toString();
|
|
1671
|
+
} else if (this.voo_1 === 0n) {
|
|
1672
1672
|
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand;
|
|
1673
1673
|
} else {
|
|
1674
1674
|
throw RuntimeException_init_$Create$('Invalid state, please report a bug (Integer compareTo invalid)');
|
|
1675
1675
|
}
|
|
1676
1676
|
return tmp_1;
|
|
1677
1677
|
};
|
|
1678
|
-
protoOf(BigDecimal).
|
|
1679
|
-
if (this.
|
|
1678
|
+
protoOf(BigDecimal).poq = function () {
|
|
1679
|
+
if (this.doo()) {
|
|
1680
1680
|
return '0';
|
|
1681
1681
|
}
|
|
1682
|
-
var digits = this.
|
|
1683
|
-
if (this.
|
|
1682
|
+
var digits = this.uoo_1.won();
|
|
1683
|
+
if (this.voo_1 > 2147483647n) {
|
|
1684
1684
|
throw RuntimeException_init_$Create$('Invalid toStringExpanded request (exponent > Int.MAX_VALUE)');
|
|
1685
1685
|
}
|
|
1686
|
-
var significandString = this.
|
|
1686
|
+
var significandString = this.uoo_1.roq(10);
|
|
1687
1687
|
var tmp;
|
|
1688
|
-
if (this.
|
|
1688
|
+
if (this.uoo_1.ton_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
1689
1689
|
tmp = '-';
|
|
1690
1690
|
} else {
|
|
1691
1691
|
tmp = '';
|
|
1692
1692
|
}
|
|
1693
1693
|
var sign = tmp;
|
|
1694
1694
|
var tmp_0;
|
|
1695
|
-
if (this.
|
|
1695
|
+
if (this.voo_1 > 0n) {
|
|
1696
1696
|
// Inline function 'kotlin.Long.plus' call
|
|
1697
|
-
var this_0 = subtract(this.
|
|
1697
|
+
var this_0 = subtract(this.voo_1, digits);
|
|
1698
1698
|
var diffBigInt = add(this_0, fromInt(1));
|
|
1699
1699
|
var tmp_1;
|
|
1700
1700
|
if (diffBigInt > 0n) {
|
|
1701
|
-
var expandZeros = this.
|
|
1701
|
+
var expandZeros = this.soq(diffBigInt, _Char___init__impl__6a9atx(48));
|
|
1702
1702
|
tmp_1 = significandString + expandZeros;
|
|
1703
1703
|
} else {
|
|
1704
|
-
tmp_1 = placeADotInStringExpanded(this, significandString, (significandString.length - convertToInt(this.
|
|
1704
|
+
tmp_1 = placeADotInStringExpanded(this, significandString, (significandString.length - convertToInt(this.voo_1) | 0) - 1 | 0);
|
|
1705
1705
|
}
|
|
1706
1706
|
tmp_0 = tmp_1;
|
|
1707
|
-
} else if (this.
|
|
1707
|
+
} else if (this.voo_1 < 0n) {
|
|
1708
1708
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1709
|
-
var this_1 = convertToInt(this.
|
|
1709
|
+
var this_1 = convertToInt(this.voo_1);
|
|
1710
1710
|
var diffInt = abs_0(this_1);
|
|
1711
1711
|
var tmp_2;
|
|
1712
1712
|
if (diffInt > 0) {
|
|
1713
1713
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1714
|
-
var this_2 = this.
|
|
1714
|
+
var this_2 = this.voo_1;
|
|
1715
1715
|
var tmp$ret$2 = abs(this_2);
|
|
1716
|
-
var expandZeros_0 = this.
|
|
1716
|
+
var expandZeros_0 = this.soq(tmp$ret$2, _Char___init__impl__6a9atx(48));
|
|
1717
1717
|
tmp_2 = placeADotInStringExpanded(this, expandZeros_0 + significandString, (diffInt + significandString.length | 0) - 1 | 0);
|
|
1718
1718
|
} else {
|
|
1719
1719
|
tmp_2 = placeADotInStringExpanded(this, significandString, significandString.length - 1 | 0);
|
|
1720
1720
|
}
|
|
1721
1721
|
tmp_0 = tmp_2;
|
|
1722
|
-
} else if (this.
|
|
1722
|
+
} else if (this.voo_1 === 0n) {
|
|
1723
1723
|
if (digits === 1n) {
|
|
1724
1724
|
return sign + significandString;
|
|
1725
1725
|
}
|
|
@@ -1730,7 +1730,7 @@ protoOf(BigDecimal).dop = function () {
|
|
|
1730
1730
|
var adjusted = tmp_0;
|
|
1731
1731
|
return sign + adjusted;
|
|
1732
1732
|
};
|
|
1733
|
-
protoOf(BigDecimal).
|
|
1733
|
+
protoOf(BigDecimal).soq = function (_this__u8e3s4, char) {
|
|
1734
1734
|
if (_this__u8e3s4 < 0n) {
|
|
1735
1735
|
throw RuntimeException_init_$Create$('Char cannot be multiplied with negative number');
|
|
1736
1736
|
}
|
|
@@ -1746,13 +1746,13 @@ protoOf(BigDecimal).gop = function (_this__u8e3s4, char) {
|
|
|
1746
1746
|
function toBigDecimal(_this__u8e3s4, exponentModifier, decimalMode) {
|
|
1747
1747
|
exponentModifier = exponentModifier === VOID ? null : exponentModifier;
|
|
1748
1748
|
decimalMode = decimalMode === VOID ? null : decimalMode;
|
|
1749
|
-
var tmp = Companion_getInstance().
|
|
1750
|
-
return tmp.
|
|
1749
|
+
var tmp = Companion_getInstance().nop(_this__u8e3s4, decimalMode);
|
|
1750
|
+
return tmp.koq(exponentModifier == null ? 0n : exponentModifier);
|
|
1751
1751
|
}
|
|
1752
1752
|
function Companion_0() {
|
|
1753
1753
|
Companion_instance_0 = this;
|
|
1754
|
-
this.
|
|
1755
|
-
this.
|
|
1754
|
+
this.rop_1 = new DecimalMode();
|
|
1755
|
+
this.sop_1 = new DecimalMode(30n, RoundingMode_ROUND_HALF_AWAY_FROM_ZERO_getInstance(), 2n);
|
|
1756
1756
|
}
|
|
1757
1757
|
var Companion_instance_0;
|
|
1758
1758
|
function Companion_getInstance_0() {
|
|
@@ -1765,40 +1765,40 @@ function DecimalMode(decimalPrecision, roundingMode, scale) {
|
|
|
1765
1765
|
decimalPrecision = decimalPrecision === VOID ? 0n : decimalPrecision;
|
|
1766
1766
|
roundingMode = roundingMode === VOID ? RoundingMode_NONE_getInstance() : roundingMode;
|
|
1767
1767
|
scale = scale === VOID ? -1n : scale;
|
|
1768
|
-
this.
|
|
1769
|
-
this.
|
|
1770
|
-
this.
|
|
1771
|
-
if (this.
|
|
1768
|
+
this.hon_1 = decimalPrecision;
|
|
1769
|
+
this.ion_1 = roundingMode;
|
|
1770
|
+
this.jon_1 = scale;
|
|
1771
|
+
if (this.hon_1 < 0n) {
|
|
1772
1772
|
throw ArithmeticException_init_$Create$('Negative decimal precision is not allowed.');
|
|
1773
1773
|
}
|
|
1774
|
-
this.
|
|
1775
|
-
this.
|
|
1776
|
-
if (!this.
|
|
1774
|
+
this.kon_1 = this.hon_1 === 0n;
|
|
1775
|
+
this.lon_1 = this.jon_1 >= 0n;
|
|
1776
|
+
if (!this.lon_1 && this.hon_1 === 0n && !this.ion_1.equals(RoundingMode_NONE_getInstance())) {
|
|
1777
1777
|
throw ArithmeticException_init_$Create$('Rounding mode with 0 digits precision.');
|
|
1778
1778
|
}
|
|
1779
|
-
if (this.
|
|
1779
|
+
if (this.jon_1 < -1n) {
|
|
1780
1780
|
throw ArithmeticException_init_$Create$('Negative Scale is unsupported.');
|
|
1781
1781
|
}
|
|
1782
|
-
if (this.
|
|
1783
|
-
throw ArithmeticException_init_$Create$('Scale of ' + this.
|
|
1782
|
+
if (this.lon_1 && this.ion_1.equals(RoundingMode_NONE_getInstance())) {
|
|
1783
|
+
throw ArithmeticException_init_$Create$('Scale of ' + this.jon_1.toString() + ' digits to the right of the decimal requires a RoundingMode that is not NONE.');
|
|
1784
1784
|
}
|
|
1785
1785
|
}
|
|
1786
|
-
protoOf(DecimalMode).
|
|
1786
|
+
protoOf(DecimalMode).toq = function (decimalPrecision, roundingMode, scale) {
|
|
1787
1787
|
return new DecimalMode(decimalPrecision, roundingMode, scale);
|
|
1788
1788
|
};
|
|
1789
|
-
protoOf(DecimalMode).
|
|
1790
|
-
decimalPrecision = decimalPrecision === VOID ? this.
|
|
1791
|
-
roundingMode = roundingMode === VOID ? this.
|
|
1792
|
-
scale = scale === VOID ? this.
|
|
1793
|
-
return $super === VOID ? this.
|
|
1789
|
+
protoOf(DecimalMode).uop = function (decimalPrecision, roundingMode, scale, $super) {
|
|
1790
|
+
decimalPrecision = decimalPrecision === VOID ? this.hon_1 : decimalPrecision;
|
|
1791
|
+
roundingMode = roundingMode === VOID ? this.ion_1 : roundingMode;
|
|
1792
|
+
scale = scale === VOID ? this.jon_1 : scale;
|
|
1793
|
+
return $super === VOID ? this.toq(decimalPrecision, roundingMode, scale) : $super.toq.call(this, decimalPrecision, roundingMode, scale);
|
|
1794
1794
|
};
|
|
1795
1795
|
protoOf(DecimalMode).toString = function () {
|
|
1796
|
-
return 'DecimalMode(decimalPrecision=' + this.
|
|
1796
|
+
return 'DecimalMode(decimalPrecision=' + this.hon_1.toString() + ', roundingMode=' + this.ion_1.toString() + ', scale=' + this.jon_1.toString() + ')';
|
|
1797
1797
|
};
|
|
1798
1798
|
protoOf(DecimalMode).hashCode = function () {
|
|
1799
|
-
var result = getBigIntHashCode(this.
|
|
1800
|
-
result = imul(result, 31) + this.
|
|
1801
|
-
result = imul(result, 31) + getBigIntHashCode(this.
|
|
1799
|
+
var result = getBigIntHashCode(this.hon_1);
|
|
1800
|
+
result = imul(result, 31) + this.ion_1.hashCode() | 0;
|
|
1801
|
+
result = imul(result, 31) + getBigIntHashCode(this.jon_1) | 0;
|
|
1802
1802
|
return result;
|
|
1803
1803
|
};
|
|
1804
1804
|
protoOf(DecimalMode).equals = function (other) {
|
|
@@ -1807,11 +1807,11 @@ protoOf(DecimalMode).equals = function (other) {
|
|
|
1807
1807
|
if (!(other instanceof DecimalMode))
|
|
1808
1808
|
return false;
|
|
1809
1809
|
var tmp0_other_with_cast = other instanceof DecimalMode ? other : THROW_CCE();
|
|
1810
|
-
if (!(this.
|
|
1810
|
+
if (!(this.hon_1 === tmp0_other_with_cast.hon_1))
|
|
1811
1811
|
return false;
|
|
1812
|
-
if (!this.
|
|
1812
|
+
if (!this.ion_1.equals(tmp0_other_with_cast.ion_1))
|
|
1813
1813
|
return false;
|
|
1814
|
-
if (!(this.
|
|
1814
|
+
if (!(this.jon_1 === tmp0_other_with_cast.jon_1))
|
|
1815
1815
|
return false;
|
|
1816
1816
|
return true;
|
|
1817
1817
|
};
|
|
@@ -1871,7 +1871,7 @@ function RoundingMode_ROUND_HALF_TO_EVEN_getInstance() {
|
|
|
1871
1871
|
return RoundingMode_ROUND_HALF_TO_EVEN_instance;
|
|
1872
1872
|
}
|
|
1873
1873
|
function BigInteger_init_$Init$(long, $this) {
|
|
1874
|
-
var tmp = Companion_getInstance_1().
|
|
1874
|
+
var tmp = Companion_getInstance_1().mon_1.uoq(long);
|
|
1875
1875
|
// Inline function 'com.ionspin.kotlin.bignum.integer.Companion.determinSignFromNumber' call
|
|
1876
1876
|
Companion_getInstance_1();
|
|
1877
1877
|
var tmp22_subject = PrimitiveClasses_getInstance().lc();
|
|
@@ -1915,7 +1915,7 @@ function BigInteger_init_$Create$(long) {
|
|
|
1915
1915
|
return BigInteger_init_$Init$(long, objectCreate(protoOf(BigInteger)));
|
|
1916
1916
|
}
|
|
1917
1917
|
function BigInteger_init_$Init$_0(int, $this) {
|
|
1918
|
-
var tmp = Companion_getInstance_1().
|
|
1918
|
+
var tmp = Companion_getInstance_1().mon_1.voq(int);
|
|
1919
1919
|
// Inline function 'com.ionspin.kotlin.bignum.integer.Companion.determinSignFromNumber' call
|
|
1920
1920
|
Companion_getInstance_1();
|
|
1921
1921
|
var tmp22_subject = PrimitiveClasses_getInstance().kc();
|
|
@@ -1959,7 +1959,7 @@ function BigInteger_init_$Create$_0(int) {
|
|
|
1959
1959
|
return BigInteger_init_$Init$_0(int, objectCreate(protoOf(BigInteger)));
|
|
1960
1960
|
}
|
|
1961
1961
|
function BigInteger_init_$Init$_1(short, $this) {
|
|
1962
|
-
var tmp = Companion_getInstance_1().
|
|
1962
|
+
var tmp = Companion_getInstance_1().mon_1.woq(short);
|
|
1963
1963
|
// Inline function 'com.ionspin.kotlin.bignum.integer.Companion.determinSignFromNumber' call
|
|
1964
1964
|
Companion_getInstance_1();
|
|
1965
1965
|
var tmp22_subject = PrimitiveClasses_getInstance().jc();
|
|
@@ -2003,7 +2003,7 @@ function BigInteger_init_$Create$_1(short) {
|
|
|
2003
2003
|
return BigInteger_init_$Init$_1(short, objectCreate(protoOf(BigInteger)));
|
|
2004
2004
|
}
|
|
2005
2005
|
function BigInteger_init_$Init$_2(byte, $this) {
|
|
2006
|
-
var tmp = Companion_getInstance_1().
|
|
2006
|
+
var tmp = Companion_getInstance_1().mon_1.xoq(byte);
|
|
2007
2007
|
// Inline function 'com.ionspin.kotlin.bignum.integer.Companion.determinSignFromNumber' call
|
|
2008
2008
|
Companion_getInstance_1();
|
|
2009
2009
|
var tmp22_subject = PrimitiveClasses_getInstance().ic();
|
|
@@ -2048,27 +2048,27 @@ function BigInteger_init_$Create$_2(byte) {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
function Companion_1() {
|
|
2050
2050
|
Companion_instance_1 = this;
|
|
2051
|
-
this.
|
|
2052
|
-
this.
|
|
2053
|
-
this.
|
|
2054
|
-
this.
|
|
2055
|
-
this.
|
|
2051
|
+
this.mon_1 = get_chosenArithmetic();
|
|
2052
|
+
this.non_1 = new BigInteger(this.mon_1.yoq(), Sign_ZERO_getInstance());
|
|
2053
|
+
this.oon_1 = new BigInteger(this.mon_1.zoq(), Sign_POSITIVE_getInstance());
|
|
2054
|
+
this.pon_1 = new BigInteger(this.mon_1.aor(), Sign_POSITIVE_getInstance());
|
|
2055
|
+
this.qon_1 = new BigInteger(this.mon_1.bor(), Sign_POSITIVE_getInstance());
|
|
2056
2056
|
var tmp = this;
|
|
2057
2057
|
// Inline function 'kotlin.math.log10' call
|
|
2058
|
-
tmp.
|
|
2058
|
+
tmp.ron_1 = log10(2.0);
|
|
2059
2059
|
}
|
|
2060
|
-
protoOf(Companion_1).
|
|
2060
|
+
protoOf(Companion_1).kom = function (string, base) {
|
|
2061
2061
|
if (base < 2 || base > 36) {
|
|
2062
2062
|
throw NumberFormatException_init_$Create$('Unsupported base: ' + base + '. Supported base range is from 2 to 36');
|
|
2063
2063
|
}
|
|
2064
2064
|
var decimal = contains(string, _Char___init__impl__6a9atx(46));
|
|
2065
2065
|
if (decimal) {
|
|
2066
|
-
var bigDecimal = Companion_getInstance().
|
|
2067
|
-
var isActuallyDecimal = bigDecimal.
|
|
2066
|
+
var bigDecimal = Companion_getInstance().oop(string);
|
|
2067
|
+
var isActuallyDecimal = bigDecimal.ioq(bigDecimal.loq()).foq(0) > 0;
|
|
2068
2068
|
if (isActuallyDecimal) {
|
|
2069
2069
|
throw NumberFormatException_init_$Create$('Supplied string is decimal, which cannot be converted to BigInteger without precision loss.');
|
|
2070
2070
|
}
|
|
2071
|
-
return bigDecimal.
|
|
2071
|
+
return bigDecimal.moq();
|
|
2072
2072
|
}
|
|
2073
2073
|
var signed = charCodeAt(string, 0) === _Char___init__impl__6a9atx(45) || charCodeAt(string, 0) === _Char___init__impl__6a9atx(43);
|
|
2074
2074
|
var tmp;
|
|
@@ -2084,71 +2084,71 @@ protoOf(Companion_1).yok = function (string, base) {
|
|
|
2084
2084
|
}
|
|
2085
2085
|
var isNegative = tmp_0;
|
|
2086
2086
|
if (string.length === 2 && charCodeAt(string, 1) === _Char___init__impl__6a9atx(48)) {
|
|
2087
|
-
return this.
|
|
2087
|
+
return this.non_1;
|
|
2088
2088
|
}
|
|
2089
|
-
tmp = new BigInteger(this.
|
|
2089
|
+
tmp = new BigInteger(this.mon_1.cor(substring(string, 1, string.length), base), isNegative);
|
|
2090
2090
|
} else {
|
|
2091
2091
|
if (string.length === 1 && charCodeAt(string, 0) === _Char___init__impl__6a9atx(48)) {
|
|
2092
|
-
return this.
|
|
2092
|
+
return this.non_1;
|
|
2093
2093
|
}
|
|
2094
|
-
tmp = new BigInteger(this.
|
|
2094
|
+
tmp = new BigInteger(this.mon_1.cor(string, base), Sign_POSITIVE_getInstance());
|
|
2095
2095
|
}
|
|
2096
2096
|
return tmp;
|
|
2097
2097
|
};
|
|
2098
|
-
protoOf(Companion_1).
|
|
2099
|
-
return new BigInteger(this.
|
|
2098
|
+
protoOf(Companion_1).dor = function (uLong) {
|
|
2099
|
+
return new BigInteger(this.mon_1.eor(uLong), Sign_POSITIVE_getInstance());
|
|
2100
2100
|
};
|
|
2101
|
-
protoOf(Companion_1).
|
|
2102
|
-
return new BigInteger(this.
|
|
2101
|
+
protoOf(Companion_1).for = function (uInt) {
|
|
2102
|
+
return new BigInteger(this.mon_1.gor(uInt), Sign_POSITIVE_getInstance());
|
|
2103
2103
|
};
|
|
2104
|
-
protoOf(Companion_1).
|
|
2105
|
-
return new BigInteger(this.
|
|
2104
|
+
protoOf(Companion_1).hor = function (uShort) {
|
|
2105
|
+
return new BigInteger(this.mon_1.ior(uShort), Sign_POSITIVE_getInstance());
|
|
2106
2106
|
};
|
|
2107
|
-
protoOf(Companion_1).
|
|
2108
|
-
return new BigInteger(this.
|
|
2107
|
+
protoOf(Companion_1).jor = function (uByte) {
|
|
2108
|
+
return new BigInteger(this.mon_1.kor(uByte), Sign_POSITIVE_getInstance());
|
|
2109
2109
|
};
|
|
2110
|
-
protoOf(Companion_1).
|
|
2110
|
+
protoOf(Companion_1).eop = function (long) {
|
|
2111
2111
|
return BigInteger_init_$Create$(long);
|
|
2112
2112
|
};
|
|
2113
|
-
protoOf(Companion_1).
|
|
2113
|
+
protoOf(Companion_1).mom = function (int) {
|
|
2114
2114
|
return BigInteger_init_$Create$_0(int);
|
|
2115
2115
|
};
|
|
2116
|
-
protoOf(Companion_1).
|
|
2116
|
+
protoOf(Companion_1).iop = function (short) {
|
|
2117
2117
|
return BigInteger_init_$Create$_1(short);
|
|
2118
2118
|
};
|
|
2119
|
-
protoOf(Companion_1).
|
|
2119
|
+
protoOf(Companion_1).kop = function (byte) {
|
|
2120
2120
|
return BigInteger_init_$Create$_2(byte);
|
|
2121
2121
|
};
|
|
2122
|
-
protoOf(Companion_1).
|
|
2122
|
+
protoOf(Companion_1).nom = function (float, exactRequired) {
|
|
2123
2123
|
// Inline function 'kotlin.math.floor' call
|
|
2124
2124
|
var floatDecimalPart = float - Math.floor(float);
|
|
2125
2125
|
var tmp = Companion_getInstance();
|
|
2126
2126
|
// Inline function 'kotlin.math.floor' call
|
|
2127
2127
|
var tmp$ret$1 = Math.floor(float);
|
|
2128
|
-
var bigDecimal = tmp.
|
|
2128
|
+
var bigDecimal = tmp.lop(tmp$ret$1, null);
|
|
2129
2129
|
if (exactRequired) {
|
|
2130
2130
|
if (floatDecimalPart > 0) {
|
|
2131
2131
|
throw ArithmeticException_init_$Create$('Cant create BigInteger without precision loss, and exact value was required');
|
|
2132
2132
|
}
|
|
2133
2133
|
}
|
|
2134
|
-
return bigDecimal.
|
|
2134
|
+
return bigDecimal.moq();
|
|
2135
2135
|
};
|
|
2136
|
-
protoOf(Companion_1).
|
|
2136
|
+
protoOf(Companion_1).pom = function (double, exactRequired) {
|
|
2137
2137
|
// Inline function 'kotlin.math.floor' call
|
|
2138
2138
|
var doubleDecimalPart = double - Math.floor(double);
|
|
2139
2139
|
var tmp = Companion_getInstance();
|
|
2140
2140
|
// Inline function 'kotlin.math.floor' call
|
|
2141
2141
|
var tmp$ret$1 = Math.floor(double);
|
|
2142
|
-
var bigDecimal = tmp.
|
|
2142
|
+
var bigDecimal = tmp.nop(tmp$ret$1, null);
|
|
2143
2143
|
if (exactRequired) {
|
|
2144
2144
|
if (doubleDecimalPart > 0) {
|
|
2145
2145
|
throw ArithmeticException_init_$Create$('Cant create BigInteger without precision loss, and exact value was required');
|
|
2146
2146
|
}
|
|
2147
2147
|
}
|
|
2148
|
-
return bigDecimal.
|
|
2148
|
+
return bigDecimal.moq();
|
|
2149
2149
|
};
|
|
2150
|
-
protoOf(Companion_1).
|
|
2151
|
-
var result = this.
|
|
2150
|
+
protoOf(Companion_1).lor = function (source, sign) {
|
|
2151
|
+
var result = this.mon_1.mor(source);
|
|
2152
2152
|
return new BigInteger(result, sign);
|
|
2153
2153
|
};
|
|
2154
2154
|
var Companion_instance_1;
|
|
@@ -2158,31 +2158,31 @@ function Companion_getInstance_1() {
|
|
|
2158
2158
|
return Companion_instance_1;
|
|
2159
2159
|
}
|
|
2160
2160
|
function isResultZero($this, resultMagnitude) {
|
|
2161
|
-
return Companion_getInstance_1().
|
|
2161
|
+
return Companion_getInstance_1().mon_1.nor(resultMagnitude, Companion_getInstance_1().mon_1.yoq()) === 0;
|
|
2162
2162
|
}
|
|
2163
2163
|
function javascriptNumberComparison_0($this, number) {
|
|
2164
2164
|
var double = numberToDouble(number);
|
|
2165
2165
|
var tmp;
|
|
2166
2166
|
if (double > toNumber(9223372036854775807n)) {
|
|
2167
|
-
tmp = $this.
|
|
2167
|
+
tmp = $this.noq(Companion_getInstance_1().lom(double.toString()));
|
|
2168
2168
|
} else if (double % 1 === 0.0) {
|
|
2169
|
-
tmp = $this.
|
|
2169
|
+
tmp = $this.noq(Companion_getInstance_1().eop(numberToLong(number)));
|
|
2170
2170
|
} else {
|
|
2171
2171
|
var tmp_0 = numberToDouble(number);
|
|
2172
|
-
tmp = $this.
|
|
2172
|
+
tmp = $this.oor(tmp_0, BigInteger$javascriptNumberComparison$lambda($this));
|
|
2173
2173
|
}
|
|
2174
2174
|
return tmp;
|
|
2175
2175
|
}
|
|
2176
2176
|
function QuotientAndRemainder(quotient, remainder) {
|
|
2177
|
-
this.
|
|
2178
|
-
this.
|
|
2177
|
+
this.zon_1 = quotient;
|
|
2178
|
+
this.aoo_1 = remainder;
|
|
2179
2179
|
}
|
|
2180
2180
|
protoOf(QuotientAndRemainder).toString = function () {
|
|
2181
|
-
return 'QuotientAndRemainder(quotient=' + this.
|
|
2181
|
+
return 'QuotientAndRemainder(quotient=' + this.zon_1.toString() + ', remainder=' + this.aoo_1.toString() + ')';
|
|
2182
2182
|
};
|
|
2183
2183
|
protoOf(QuotientAndRemainder).hashCode = function () {
|
|
2184
|
-
var result = this.
|
|
2185
|
-
result = imul(result, 31) + this.
|
|
2184
|
+
var result = this.zon_1.hashCode();
|
|
2185
|
+
result = imul(result, 31) + this.aoo_1.hashCode() | 0;
|
|
2186
2186
|
return result;
|
|
2187
2187
|
};
|
|
2188
2188
|
protoOf(QuotientAndRemainder).equals = function (other) {
|
|
@@ -2191,25 +2191,25 @@ protoOf(QuotientAndRemainder).equals = function (other) {
|
|
|
2191
2191
|
if (!(other instanceof QuotientAndRemainder))
|
|
2192
2192
|
return false;
|
|
2193
2193
|
var tmp0_other_with_cast = other instanceof QuotientAndRemainder ? other : THROW_CCE();
|
|
2194
|
-
if (!this.
|
|
2194
|
+
if (!this.zon_1.equals(tmp0_other_with_cast.zon_1))
|
|
2195
2195
|
return false;
|
|
2196
|
-
if (!this.
|
|
2196
|
+
if (!this.aoo_1.equals(tmp0_other_with_cast.aoo_1))
|
|
2197
2197
|
return false;
|
|
2198
2198
|
return true;
|
|
2199
2199
|
};
|
|
2200
2200
|
function BigInteger$compareTo$lambda(this$0) {
|
|
2201
2201
|
return function (it) {
|
|
2202
|
-
return this$0.
|
|
2202
|
+
return this$0.noq(it);
|
|
2203
2203
|
};
|
|
2204
2204
|
}
|
|
2205
2205
|
function BigInteger$compareTo$lambda_0(this$0) {
|
|
2206
2206
|
return function (it) {
|
|
2207
|
-
return this$0.
|
|
2207
|
+
return this$0.noq(it);
|
|
2208
2208
|
};
|
|
2209
2209
|
}
|
|
2210
2210
|
function BigInteger$javascriptNumberComparison$lambda(this$0) {
|
|
2211
2211
|
return function (it) {
|
|
2212
|
-
return this$0.
|
|
2212
|
+
return this$0.noq(it);
|
|
2213
2213
|
};
|
|
2214
2214
|
}
|
|
2215
2215
|
function BigInteger(wordArray, requestedSign) {
|
|
@@ -2221,84 +2221,84 @@ function BigInteger(wordArray, requestedSign) {
|
|
|
2221
2221
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2222
2222
|
}
|
|
2223
2223
|
}
|
|
2224
|
-
this.
|
|
2224
|
+
this.son_1 = BigInteger63Arithmetic_getInstance().hos(wordArray);
|
|
2225
2225
|
var tmp = this;
|
|
2226
2226
|
var tmp_0;
|
|
2227
|
-
if (isResultZero(this, this.
|
|
2227
|
+
if (isResultZero(this, this.son_1)) {
|
|
2228
2228
|
tmp_0 = Sign_ZERO_getInstance();
|
|
2229
2229
|
} else {
|
|
2230
2230
|
tmp_0 = requestedSign;
|
|
2231
2231
|
}
|
|
2232
|
-
tmp.
|
|
2233
|
-
this.
|
|
2234
|
-
this.
|
|
2232
|
+
tmp.ton_1 = tmp_0;
|
|
2233
|
+
this.uon_1 = _ULongArray___get_size__impl__ju6dtr(this.son_1);
|
|
2234
|
+
this.von_1 = null;
|
|
2235
2235
|
}
|
|
2236
|
-
protoOf(BigInteger).
|
|
2236
|
+
protoOf(BigInteger).rom = function () {
|
|
2237
2237
|
return Companion_getInstance_1();
|
|
2238
2238
|
};
|
|
2239
|
-
protoOf(BigInteger).
|
|
2239
|
+
protoOf(BigInteger).som = function () {
|
|
2240
2240
|
return this;
|
|
2241
2241
|
};
|
|
2242
|
-
protoOf(BigInteger).
|
|
2243
|
-
return this.
|
|
2242
|
+
protoOf(BigInteger).ios = function () {
|
|
2243
|
+
return this.ton_1;
|
|
2244
2244
|
};
|
|
2245
|
-
protoOf(BigInteger).
|
|
2246
|
-
var comparison = Companion_getInstance_1().
|
|
2245
|
+
protoOf(BigInteger).jos = function (other) {
|
|
2246
|
+
var comparison = Companion_getInstance_1().mon_1.nor(this.son_1, other.son_1);
|
|
2247
2247
|
var tmp;
|
|
2248
|
-
if (other.
|
|
2249
|
-
return new BigInteger(Companion_getInstance_1().
|
|
2248
|
+
if (other.ton_1.equals(this.ton_1)) {
|
|
2249
|
+
return new BigInteger(Companion_getInstance_1().mon_1.los(this.son_1, other.son_1), this.ton_1);
|
|
2250
2250
|
} else {
|
|
2251
2251
|
var tmp_0;
|
|
2252
2252
|
if (comparison > 0) {
|
|
2253
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2253
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().mon_1.kos(this.son_1, other.son_1), this.ton_1);
|
|
2254
2254
|
} else if (comparison < 0) {
|
|
2255
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2255
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().mon_1.kos(other.son_1, this.son_1), other.ton_1);
|
|
2256
2256
|
} else {
|
|
2257
|
-
tmp_0 = Companion_getInstance_1().
|
|
2257
|
+
tmp_0 = Companion_getInstance_1().non_1;
|
|
2258
2258
|
}
|
|
2259
2259
|
tmp = tmp_0;
|
|
2260
2260
|
}
|
|
2261
2261
|
return tmp;
|
|
2262
2262
|
};
|
|
2263
|
-
protoOf(BigInteger).
|
|
2264
|
-
return this.
|
|
2263
|
+
protoOf(BigInteger).uom = function (other) {
|
|
2264
|
+
return this.jos(other instanceof BigInteger ? other : THROW_CCE());
|
|
2265
2265
|
};
|
|
2266
|
-
protoOf(BigInteger).
|
|
2267
|
-
if (this.
|
|
2268
|
-
return other.
|
|
2266
|
+
protoOf(BigInteger).mos = function (other) {
|
|
2267
|
+
if (this.doo()) {
|
|
2268
|
+
return other.qop();
|
|
2269
2269
|
}
|
|
2270
|
-
if (other.
|
|
2270
|
+
if (other.doo()) {
|
|
2271
2271
|
return this;
|
|
2272
2272
|
}
|
|
2273
2273
|
var tmp;
|
|
2274
|
-
if (other.
|
|
2275
|
-
var comparison = Companion_getInstance_1().
|
|
2274
|
+
if (other.ton_1.equals(this.ton_1)) {
|
|
2275
|
+
var comparison = Companion_getInstance_1().mon_1.nor(this.son_1, other.son_1);
|
|
2276
2276
|
var tmp_0;
|
|
2277
2277
|
if (comparison > 0) {
|
|
2278
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2278
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().mon_1.kos(this.son_1, other.son_1), this.ton_1);
|
|
2279
2279
|
} else if (comparison < 0) {
|
|
2280
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2280
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().mon_1.kos(other.son_1, this.son_1), this.ton_1.pos());
|
|
2281
2281
|
} else {
|
|
2282
|
-
tmp_0 = Companion_getInstance_1().
|
|
2282
|
+
tmp_0 = Companion_getInstance_1().non_1;
|
|
2283
2283
|
}
|
|
2284
2284
|
tmp = tmp_0;
|
|
2285
2285
|
} else {
|
|
2286
|
-
return new BigInteger(Companion_getInstance_1().
|
|
2286
|
+
return new BigInteger(Companion_getInstance_1().mon_1.los(this.son_1, other.son_1), this.ton_1);
|
|
2287
2287
|
}
|
|
2288
2288
|
return tmp;
|
|
2289
2289
|
};
|
|
2290
|
-
protoOf(BigInteger).
|
|
2291
|
-
return this.
|
|
2290
|
+
protoOf(BigInteger).wom = function (other) {
|
|
2291
|
+
return this.mos(other instanceof BigInteger ? other : THROW_CCE());
|
|
2292
2292
|
};
|
|
2293
|
-
protoOf(BigInteger).
|
|
2294
|
-
if (this.
|
|
2295
|
-
return Companion_getInstance_1().
|
|
2293
|
+
protoOf(BigInteger).qos = function (other) {
|
|
2294
|
+
if (this.doo() || other.doo()) {
|
|
2295
|
+
return Companion_getInstance_1().non_1;
|
|
2296
2296
|
}
|
|
2297
|
-
if (other.equals(Companion_getInstance_1().
|
|
2297
|
+
if (other.equals(Companion_getInstance_1().oon_1)) {
|
|
2298
2298
|
return this;
|
|
2299
2299
|
}
|
|
2300
2300
|
var tmp;
|
|
2301
|
-
if (!this.
|
|
2301
|
+
if (!this.ton_1.equals(other.ton_1)) {
|
|
2302
2302
|
tmp = Sign_NEGATIVE_getInstance();
|
|
2303
2303
|
} else {
|
|
2304
2304
|
tmp = Sign_POSITIVE_getInstance();
|
|
@@ -2306,26 +2306,26 @@ protoOf(BigInteger).eor = function (other) {
|
|
|
2306
2306
|
var sign = tmp;
|
|
2307
2307
|
var tmp_0;
|
|
2308
2308
|
if (sign.equals(Sign_POSITIVE_getInstance())) {
|
|
2309
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2309
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().mon_1.ros(this.son_1, other.son_1), sign);
|
|
2310
2310
|
} else {
|
|
2311
|
-
tmp_0 = new BigInteger(Companion_getInstance_1().
|
|
2311
|
+
tmp_0 = new BigInteger(Companion_getInstance_1().mon_1.ros(this.son_1, other.son_1), sign);
|
|
2312
2312
|
}
|
|
2313
2313
|
return tmp_0;
|
|
2314
2314
|
};
|
|
2315
|
-
protoOf(BigInteger).
|
|
2316
|
-
return this.
|
|
2315
|
+
protoOf(BigInteger).yom = function (other) {
|
|
2316
|
+
return this.qos(other instanceof BigInteger ? other : THROW_CCE());
|
|
2317
2317
|
};
|
|
2318
|
-
protoOf(BigInteger).
|
|
2319
|
-
if (other.
|
|
2318
|
+
protoOf(BigInteger).sos = function (other) {
|
|
2319
|
+
if (other.doo()) {
|
|
2320
2320
|
throw ArithmeticException_init_$Create$('Division by zero! ' + this.toString() + ' / ' + other.toString());
|
|
2321
2321
|
}
|
|
2322
|
-
var result = Companion_getInstance_1().
|
|
2322
|
+
var result = Companion_getInstance_1().mon_1.tos(this.son_1, other.son_1).first.fs_1;
|
|
2323
2323
|
var tmp;
|
|
2324
|
-
if (equals(result, Companion_getInstance_1().
|
|
2325
|
-
tmp = Companion_getInstance_1().
|
|
2324
|
+
if (equals(result, Companion_getInstance_1().mon_1.yoq())) {
|
|
2325
|
+
tmp = Companion_getInstance_1().non_1;
|
|
2326
2326
|
} else {
|
|
2327
2327
|
var tmp_0;
|
|
2328
|
-
if (!this.
|
|
2328
|
+
if (!this.ton_1.equals(other.ton_1)) {
|
|
2329
2329
|
tmp_0 = Sign_NEGATIVE_getInstance();
|
|
2330
2330
|
} else {
|
|
2331
2331
|
tmp_0 = Sign_POSITIVE_getInstance();
|
|
@@ -2335,110 +2335,110 @@ protoOf(BigInteger).gor = function (other) {
|
|
|
2335
2335
|
}
|
|
2336
2336
|
return tmp;
|
|
2337
2337
|
};
|
|
2338
|
-
protoOf(BigInteger).
|
|
2339
|
-
return this.
|
|
2338
|
+
protoOf(BigInteger).aon = function (other) {
|
|
2339
|
+
return this.sos(other instanceof BigInteger ? other : THROW_CCE());
|
|
2340
2340
|
};
|
|
2341
|
-
protoOf(BigInteger).
|
|
2342
|
-
if (other.
|
|
2341
|
+
protoOf(BigInteger).uos = function (other) {
|
|
2342
|
+
if (other.doo()) {
|
|
2343
2343
|
throw ArithmeticException_init_$Create$('Division by zero! ' + this.toString() + ' / ' + other.toString());
|
|
2344
2344
|
}
|
|
2345
2345
|
var tmp;
|
|
2346
|
-
if (!this.
|
|
2346
|
+
if (!this.ton_1.equals(other.ton_1)) {
|
|
2347
2347
|
tmp = Sign_NEGATIVE_getInstance();
|
|
2348
2348
|
} else {
|
|
2349
2349
|
tmp = Sign_POSITIVE_getInstance();
|
|
2350
2350
|
}
|
|
2351
2351
|
var sign = tmp;
|
|
2352
|
-
var result = Companion_getInstance_1().
|
|
2353
|
-
if (equals(result, Companion_getInstance_1().
|
|
2352
|
+
var result = Companion_getInstance_1().mon_1.tos(this.son_1, other.son_1).second.fs_1;
|
|
2353
|
+
if (equals(result, Companion_getInstance_1().mon_1.yoq())) {
|
|
2354
2354
|
sign = Sign_ZERO_getInstance();
|
|
2355
2355
|
}
|
|
2356
2356
|
return new BigInteger(result, sign);
|
|
2357
2357
|
};
|
|
2358
|
-
protoOf(BigInteger).
|
|
2359
|
-
return this.
|
|
2358
|
+
protoOf(BigInteger).con = function (other) {
|
|
2359
|
+
return this.uos(other instanceof BigInteger ? other : THROW_CCE());
|
|
2360
2360
|
};
|
|
2361
|
-
protoOf(BigInteger).
|
|
2362
|
-
if (other.
|
|
2361
|
+
protoOf(BigInteger).vos = function (other) {
|
|
2362
|
+
if (other.doo()) {
|
|
2363
2363
|
throw ArithmeticException_init_$Create$('Division by zero! ' + this.toString() + ' / ' + other.toString());
|
|
2364
2364
|
}
|
|
2365
2365
|
var tmp;
|
|
2366
|
-
if (!this.
|
|
2366
|
+
if (!this.ton_1.equals(other.ton_1)) {
|
|
2367
2367
|
tmp = Sign_NEGATIVE_getInstance();
|
|
2368
2368
|
} else {
|
|
2369
2369
|
tmp = Sign_POSITIVE_getInstance();
|
|
2370
2370
|
}
|
|
2371
2371
|
var sign = tmp;
|
|
2372
|
-
var result = Companion_getInstance_1().
|
|
2372
|
+
var result = Companion_getInstance_1().mon_1.tos(this.son_1, other.son_1);
|
|
2373
2373
|
var tmp_0;
|
|
2374
|
-
if (equals(result.first, new ULongArray(Companion_getInstance_1().
|
|
2375
|
-
tmp_0 = Companion_getInstance_1().
|
|
2374
|
+
if (equals(result.first, new ULongArray(Companion_getInstance_1().mon_1.yoq()))) {
|
|
2375
|
+
tmp_0 = Companion_getInstance_1().non_1;
|
|
2376
2376
|
} else {
|
|
2377
2377
|
tmp_0 = new BigInteger(result.first.fs_1, sign);
|
|
2378
2378
|
}
|
|
2379
2379
|
var quotient = tmp_0;
|
|
2380
2380
|
var tmp_1;
|
|
2381
|
-
if (equals(result.second, new ULongArray(Companion_getInstance_1().
|
|
2382
|
-
tmp_1 = Companion_getInstance_1().
|
|
2381
|
+
if (equals(result.second, new ULongArray(Companion_getInstance_1().mon_1.yoq()))) {
|
|
2382
|
+
tmp_1 = Companion_getInstance_1().non_1;
|
|
2383
2383
|
} else {
|
|
2384
|
-
tmp_1 = new BigInteger(result.second.fs_1, this.
|
|
2384
|
+
tmp_1 = new BigInteger(result.second.fs_1, this.ton_1);
|
|
2385
2385
|
}
|
|
2386
2386
|
var remainder = tmp_1;
|
|
2387
2387
|
return new Pair(quotient, remainder);
|
|
2388
2388
|
};
|
|
2389
|
-
protoOf(BigInteger).
|
|
2390
|
-
var result = this.
|
|
2389
|
+
protoOf(BigInteger).wos = function (modulo) {
|
|
2390
|
+
var result = this.bon(modulo);
|
|
2391
2391
|
var tmp;
|
|
2392
|
-
if (result.
|
|
2393
|
-
tmp = result.
|
|
2392
|
+
if (result.foq(0) < 0) {
|
|
2393
|
+
tmp = result.tom(modulo);
|
|
2394
2394
|
} else {
|
|
2395
2395
|
tmp = result;
|
|
2396
2396
|
}
|
|
2397
2397
|
return tmp;
|
|
2398
2398
|
};
|
|
2399
|
-
protoOf(BigInteger).
|
|
2400
|
-
if (this.
|
|
2399
|
+
protoOf(BigInteger).noq = function (other) {
|
|
2400
|
+
if (this.doo() && other.doo())
|
|
2401
2401
|
return 0;
|
|
2402
|
-
if (other.
|
|
2402
|
+
if (other.doo() && this.ton_1.equals(Sign_POSITIVE_getInstance()))
|
|
2403
2403
|
return 1;
|
|
2404
|
-
if (other.
|
|
2404
|
+
if (other.doo() && this.ton_1.equals(Sign_NEGATIVE_getInstance()))
|
|
2405
2405
|
return -1;
|
|
2406
|
-
if (this.
|
|
2406
|
+
if (this.doo() && other.ton_1.equals(Sign_POSITIVE_getInstance()))
|
|
2407
2407
|
return -1;
|
|
2408
|
-
if (this.
|
|
2408
|
+
if (this.doo() && other.ton_1.equals(Sign_NEGATIVE_getInstance()))
|
|
2409
2409
|
return 1;
|
|
2410
|
-
if (!this.
|
|
2411
|
-
return this.
|
|
2412
|
-
var result = Companion_getInstance_1().
|
|
2410
|
+
if (!this.ton_1.equals(other.ton_1))
|
|
2411
|
+
return this.ton_1.equals(Sign_POSITIVE_getInstance()) ? 1 : -1;
|
|
2412
|
+
var result = Companion_getInstance_1().mon_1.nor(this.son_1, other.son_1);
|
|
2413
2413
|
var tmp;
|
|
2414
|
-
if (this.
|
|
2414
|
+
if (this.ton_1.equals(Sign_NEGATIVE_getInstance()) && other.ton_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
2415
2415
|
tmp = imul(result, -1);
|
|
2416
2416
|
} else {
|
|
2417
2417
|
tmp = result;
|
|
2418
2418
|
}
|
|
2419
2419
|
return tmp;
|
|
2420
2420
|
};
|
|
2421
|
-
protoOf(BigInteger).
|
|
2422
|
-
return this.
|
|
2421
|
+
protoOf(BigInteger).doo = function () {
|
|
2422
|
+
return this.ton_1.equals(Sign_ZERO_getInstance()) || get_chosenArithmetic().nor(this.son_1, get_chosenArithmetic().yoq()) === 0;
|
|
2423
2423
|
};
|
|
2424
|
-
protoOf(BigInteger).
|
|
2425
|
-
return new BigInteger(this.
|
|
2424
|
+
protoOf(BigInteger).qop = function () {
|
|
2425
|
+
return new BigInteger(this.son_1, this.ton_1.pos());
|
|
2426
2426
|
};
|
|
2427
|
-
protoOf(BigInteger).
|
|
2428
|
-
return new BigInteger(this.
|
|
2427
|
+
protoOf(BigInteger).boo = function () {
|
|
2428
|
+
return new BigInteger(this.son_1, Sign_POSITIVE_getInstance());
|
|
2429
2429
|
};
|
|
2430
|
-
protoOf(BigInteger).
|
|
2430
|
+
protoOf(BigInteger).xon = function (exponent) {
|
|
2431
2431
|
if (exponent < 0n) {
|
|
2432
2432
|
throw ArithmeticException_init_$Create$('Negative exponent not supported with BigInteger');
|
|
2433
2433
|
}
|
|
2434
2434
|
var tmp;
|
|
2435
|
-
if (this.
|
|
2436
|
-
tmp = Companion_getInstance_1().
|
|
2437
|
-
} else if (this.equals(Companion_getInstance_1().
|
|
2438
|
-
tmp = Companion_getInstance_1().
|
|
2435
|
+
if (this.doo()) {
|
|
2436
|
+
tmp = Companion_getInstance_1().non_1;
|
|
2437
|
+
} else if (this.equals(Companion_getInstance_1().oon_1)) {
|
|
2438
|
+
tmp = Companion_getInstance_1().oon_1;
|
|
2439
2439
|
} else {
|
|
2440
2440
|
var tmp_0;
|
|
2441
|
-
if (this.
|
|
2441
|
+
if (this.ton_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
2442
2442
|
var tmp_1;
|
|
2443
2443
|
// Inline function 'kotlin.Long.rem' call
|
|
2444
2444
|
if (modulo(exponent, fromInt(2)) === 0n) {
|
|
@@ -2451,16 +2451,16 @@ protoOf(BigInteger).lom = function (exponent) {
|
|
|
2451
2451
|
tmp_0 = Sign_POSITIVE_getInstance();
|
|
2452
2452
|
}
|
|
2453
2453
|
var sign = tmp_0;
|
|
2454
|
-
tmp = new BigInteger(Companion_getInstance_1().
|
|
2454
|
+
tmp = new BigInteger(Companion_getInstance_1().mon_1.xos(this.son_1, exponent), sign);
|
|
2455
2455
|
}
|
|
2456
2456
|
return tmp;
|
|
2457
2457
|
};
|
|
2458
|
-
protoOf(BigInteger).
|
|
2459
|
-
return this.
|
|
2458
|
+
protoOf(BigInteger).yos = function (exponent) {
|
|
2459
|
+
return this.xon(fromInt(exponent));
|
|
2460
2460
|
};
|
|
2461
|
-
protoOf(BigInteger).
|
|
2461
|
+
protoOf(BigInteger).soo = function () {
|
|
2462
2462
|
var tmp;
|
|
2463
|
-
switch (this.
|
|
2463
|
+
switch (this.ton_1.a1_1) {
|
|
2464
2464
|
case 0:
|
|
2465
2465
|
tmp = 1;
|
|
2466
2466
|
break;
|
|
@@ -2476,11 +2476,11 @@ protoOf(BigInteger).gon = function () {
|
|
|
2476
2476
|
}
|
|
2477
2477
|
return tmp;
|
|
2478
2478
|
};
|
|
2479
|
-
protoOf(BigInteger).
|
|
2480
|
-
if (this.
|
|
2479
|
+
protoOf(BigInteger).won = function () {
|
|
2480
|
+
if (this.doo()) {
|
|
2481
2481
|
return 1n;
|
|
2482
2482
|
}
|
|
2483
|
-
var powersOf10 = BigInteger63Arithmetic_getInstance().
|
|
2483
|
+
var powersOf10 = BigInteger63Arithmetic_getInstance().gos_1;
|
|
2484
2484
|
var tmp$ret$1;
|
|
2485
2485
|
$l$block: {
|
|
2486
2486
|
// Inline function 'kotlin.collections.indexOfFirst' call
|
|
@@ -2491,7 +2491,7 @@ protoOf(BigInteger).kom = function () {
|
|
|
2491
2491
|
var index = inductionVariable;
|
|
2492
2492
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2493
2493
|
var it = powersOf10[index].fs_1;
|
|
2494
|
-
if (BigInteger63Arithmetic_getInstance().
|
|
2494
|
+
if (BigInteger63Arithmetic_getInstance().zos(it, this.son_1) > 0) {
|
|
2495
2495
|
tmp$ret$1 = index;
|
|
2496
2496
|
break $l$block;
|
|
2497
2497
|
}
|
|
@@ -2503,10 +2503,10 @@ protoOf(BigInteger).kom = function () {
|
|
|
2503
2503
|
if (!(quickSearch === -1)) {
|
|
2504
2504
|
return fromInt(quickSearch);
|
|
2505
2505
|
}
|
|
2506
|
-
var tmp = this.
|
|
2506
|
+
var tmp = this.zom(Companion_getInstance_1().qon_1.yos(powersOf10.length));
|
|
2507
2507
|
var counter = 0n;
|
|
2508
|
-
while (!tmp.
|
|
2509
|
-
tmp = tmp.
|
|
2508
|
+
while (!tmp.doo()) {
|
|
2509
|
+
tmp = tmp.fon(10);
|
|
2510
2510
|
var _unary__edvuaz = counter;
|
|
2511
2511
|
counter = add(_unary__edvuaz, get_ONE());
|
|
2512
2512
|
}
|
|
@@ -2515,62 +2515,62 @@ protoOf(BigInteger).kom = function () {
|
|
|
2515
2515
|
var other = powersOf10.length;
|
|
2516
2516
|
return add(tmp0, fromInt(other));
|
|
2517
2517
|
};
|
|
2518
|
-
protoOf(BigInteger).
|
|
2519
|
-
var result = new BigInteger(Companion_getInstance_1().
|
|
2520
|
-
if (equals(result.
|
|
2521
|
-
return Companion_getInstance_1().
|
|
2518
|
+
protoOf(BigInteger).aot = function (places) {
|
|
2519
|
+
var result = new BigInteger(Companion_getInstance_1().mon_1.bot(this.son_1, places), this.ton_1);
|
|
2520
|
+
if (equals(result.son_1, Companion_getInstance_1().mon_1.yoq())) {
|
|
2521
|
+
return Companion_getInstance_1().non_1;
|
|
2522
2522
|
}
|
|
2523
2523
|
return result;
|
|
2524
2524
|
};
|
|
2525
|
-
protoOf(BigInteger).
|
|
2526
|
-
return this.
|
|
2525
|
+
protoOf(BigInteger).eoo = function () {
|
|
2526
|
+
return this.vom(Companion_getInstance_1().oon_1);
|
|
2527
2527
|
};
|
|
2528
|
-
protoOf(BigInteger).
|
|
2529
|
-
return this.
|
|
2528
|
+
protoOf(BigInteger).foo = function () {
|
|
2529
|
+
return this.tom(Companion_getInstance_1().oon_1);
|
|
2530
2530
|
};
|
|
2531
|
-
protoOf(BigInteger).
|
|
2532
|
-
var result = this.
|
|
2531
|
+
protoOf(BigInteger).yon = function (other) {
|
|
2532
|
+
var result = this.vos(other);
|
|
2533
2533
|
return new QuotientAndRemainder(result.first, result.second);
|
|
2534
2534
|
};
|
|
2535
|
-
protoOf(BigInteger).
|
|
2535
|
+
protoOf(BigInteger).foq = function (other) {
|
|
2536
2536
|
if (isNumber(other)) {
|
|
2537
|
-
if (RuntimePlatform_instance.
|
|
2537
|
+
if (RuntimePlatform_instance.ooq().equals(Platform_JS_getInstance())) {
|
|
2538
2538
|
return javascriptNumberComparison_0(this, other);
|
|
2539
2539
|
}
|
|
2540
2540
|
}
|
|
2541
2541
|
var tmp;
|
|
2542
2542
|
if (other instanceof BigInteger) {
|
|
2543
|
-
tmp = this.
|
|
2543
|
+
tmp = this.noq(other);
|
|
2544
2544
|
} else {
|
|
2545
2545
|
if (typeof other === 'bigint') {
|
|
2546
|
-
tmp = this.
|
|
2546
|
+
tmp = this.noq(Companion_getInstance_1().eop(other));
|
|
2547
2547
|
} else {
|
|
2548
2548
|
if (typeof other === 'number') {
|
|
2549
|
-
tmp = this.
|
|
2549
|
+
tmp = this.noq(Companion_getInstance_1().mom(other));
|
|
2550
2550
|
} else {
|
|
2551
2551
|
if (typeof other === 'number') {
|
|
2552
|
-
tmp = this.
|
|
2552
|
+
tmp = this.noq(Companion_getInstance_1().iop(other));
|
|
2553
2553
|
} else {
|
|
2554
2554
|
if (typeof other === 'number') {
|
|
2555
|
-
tmp = this.
|
|
2555
|
+
tmp = this.noq(Companion_getInstance_1().kop(other));
|
|
2556
2556
|
} else {
|
|
2557
2557
|
if (other instanceof ULong) {
|
|
2558
|
-
tmp = this.
|
|
2558
|
+
tmp = this.noq(Companion_getInstance_1().dor(other.b2_1));
|
|
2559
2559
|
} else {
|
|
2560
2560
|
if (other instanceof UInt) {
|
|
2561
|
-
tmp = this.
|
|
2561
|
+
tmp = this.noq(Companion_getInstance_1().for(other.pr_1));
|
|
2562
2562
|
} else {
|
|
2563
2563
|
if (other instanceof UShort) {
|
|
2564
|
-
tmp = this.
|
|
2564
|
+
tmp = this.noq(Companion_getInstance_1().hor(other.ls_1));
|
|
2565
2565
|
} else {
|
|
2566
2566
|
if (other instanceof UByte) {
|
|
2567
|
-
tmp = this.
|
|
2567
|
+
tmp = this.noq(Companion_getInstance_1().jor(other.c2_1));
|
|
2568
2568
|
} else {
|
|
2569
2569
|
if (typeof other === 'number') {
|
|
2570
|
-
tmp = this.
|
|
2570
|
+
tmp = this.oor(other, BigInteger$compareTo$lambda(this));
|
|
2571
2571
|
} else {
|
|
2572
2572
|
if (typeof other === 'number') {
|
|
2573
|
-
tmp = this.
|
|
2573
|
+
tmp = this.cot(other, BigInteger$compareTo$lambda_0(this));
|
|
2574
2574
|
} else {
|
|
2575
2575
|
throw RuntimeException_init_$Create$('Invalid comparison type for BigInteger: ' + toString(getKClassFromExpression(other)));
|
|
2576
2576
|
}
|
|
@@ -2587,15 +2587,15 @@ protoOf(BigInteger).too = function (other) {
|
|
|
2587
2587
|
return tmp;
|
|
2588
2588
|
};
|
|
2589
2589
|
protoOf(BigInteger).d = function (other) {
|
|
2590
|
-
return this.
|
|
2590
|
+
return this.foq(!(other == null) ? other : THROW_CCE());
|
|
2591
2591
|
};
|
|
2592
|
-
protoOf(BigInteger).
|
|
2592
|
+
protoOf(BigInteger).oor = function (float, comparisonBlock) {
|
|
2593
2593
|
// Inline function 'kotlin.math.floor' call
|
|
2594
2594
|
var withoutDecimalPart = Math.floor(float);
|
|
2595
2595
|
var hasDecimalPart = !(float % 1 === 0.0);
|
|
2596
2596
|
var tmp;
|
|
2597
2597
|
if (hasDecimalPart) {
|
|
2598
|
-
var comparisonResult = comparisonBlock(Companion_getInstance_1().
|
|
2598
|
+
var comparisonResult = comparisonBlock(Companion_getInstance_1().oom(withoutDecimalPart + 1));
|
|
2599
2599
|
var tmp_0;
|
|
2600
2600
|
if (comparisonResult === 0) {
|
|
2601
2601
|
tmp_0 = 1;
|
|
@@ -2604,17 +2604,17 @@ protoOf(BigInteger).coq = function (float, comparisonBlock) {
|
|
|
2604
2604
|
}
|
|
2605
2605
|
tmp = tmp_0;
|
|
2606
2606
|
} else {
|
|
2607
|
-
tmp = comparisonBlock(Companion_getInstance_1().
|
|
2607
|
+
tmp = comparisonBlock(Companion_getInstance_1().oom(withoutDecimalPart));
|
|
2608
2608
|
}
|
|
2609
2609
|
return tmp;
|
|
2610
2610
|
};
|
|
2611
|
-
protoOf(BigInteger).
|
|
2611
|
+
protoOf(BigInteger).cot = function (double, comparisonBlock) {
|
|
2612
2612
|
// Inline function 'kotlin.math.floor' call
|
|
2613
2613
|
var withoutDecimalPart = Math.floor(double);
|
|
2614
2614
|
var hasDecimalPart = !(double % 1 === 0.0);
|
|
2615
2615
|
var tmp;
|
|
2616
2616
|
if (hasDecimalPart) {
|
|
2617
|
-
var comparisonResult = comparisonBlock(Companion_getInstance_1().
|
|
2617
|
+
var comparisonResult = comparisonBlock(Companion_getInstance_1().qom(withoutDecimalPart + 1));
|
|
2618
2618
|
var tmp_0;
|
|
2619
2619
|
if (comparisonResult === 0) {
|
|
2620
2620
|
tmp_0 = 1;
|
|
@@ -2623,38 +2623,38 @@ protoOf(BigInteger).qor = function (double, comparisonBlock) {
|
|
|
2623
2623
|
}
|
|
2624
2624
|
tmp = tmp_0;
|
|
2625
2625
|
} else {
|
|
2626
|
-
tmp = comparisonBlock(Companion_getInstance_1().
|
|
2626
|
+
tmp = comparisonBlock(Companion_getInstance_1().qom(withoutDecimalPart));
|
|
2627
2627
|
}
|
|
2628
2628
|
return tmp;
|
|
2629
2629
|
};
|
|
2630
2630
|
protoOf(BigInteger).equals = function (other) {
|
|
2631
2631
|
var tmp;
|
|
2632
2632
|
if (other instanceof BigInteger) {
|
|
2633
|
-
tmp = this.
|
|
2633
|
+
tmp = this.noq(other);
|
|
2634
2634
|
} else {
|
|
2635
2635
|
if (!(other == null) ? typeof other === 'bigint' : false) {
|
|
2636
|
-
tmp = this.
|
|
2636
|
+
tmp = this.noq(Companion_getInstance_1().eop(other));
|
|
2637
2637
|
} else {
|
|
2638
2638
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
2639
|
-
tmp = this.
|
|
2639
|
+
tmp = this.noq(Companion_getInstance_1().mom(other));
|
|
2640
2640
|
} else {
|
|
2641
2641
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
2642
|
-
tmp = this.
|
|
2642
|
+
tmp = this.noq(Companion_getInstance_1().iop(other));
|
|
2643
2643
|
} else {
|
|
2644
2644
|
if (!(other == null) ? typeof other === 'number' : false) {
|
|
2645
|
-
tmp = this.
|
|
2645
|
+
tmp = this.noq(Companion_getInstance_1().kop(other));
|
|
2646
2646
|
} else {
|
|
2647
2647
|
if (other instanceof ULong) {
|
|
2648
|
-
tmp = this.
|
|
2648
|
+
tmp = this.noq(Companion_getInstance_1().dor(other.b2_1));
|
|
2649
2649
|
} else {
|
|
2650
2650
|
if (other instanceof UInt) {
|
|
2651
|
-
tmp = this.
|
|
2651
|
+
tmp = this.noq(Companion_getInstance_1().for(other.pr_1));
|
|
2652
2652
|
} else {
|
|
2653
2653
|
if (other instanceof UShort) {
|
|
2654
|
-
tmp = this.
|
|
2654
|
+
tmp = this.noq(Companion_getInstance_1().hor(other.ls_1));
|
|
2655
2655
|
} else {
|
|
2656
2656
|
if (other instanceof UByte) {
|
|
2657
|
-
tmp = this.
|
|
2657
|
+
tmp = this.noq(Companion_getInstance_1().jor(other.c2_1));
|
|
2658
2658
|
} else {
|
|
2659
2659
|
tmp = -1;
|
|
2660
2660
|
}
|
|
@@ -2671,42 +2671,42 @@ protoOf(BigInteger).equals = function (other) {
|
|
|
2671
2671
|
};
|
|
2672
2672
|
protoOf(BigInteger).hashCode = function () {
|
|
2673
2673
|
// Inline function 'kotlin.collections.fold' call
|
|
2674
|
-
var this_0 = this.
|
|
2674
|
+
var this_0 = this.son_1;
|
|
2675
2675
|
var accumulator = 0;
|
|
2676
2676
|
var _iterator__ex2g4s = ULongArray__iterator_impl_cq4d2h(this_0);
|
|
2677
2677
|
while (_iterator__ex2g4s.u()) {
|
|
2678
2678
|
var element = _iterator__ex2g4s.v().b2_1;
|
|
2679
2679
|
accumulator = accumulator + ULong__hashCode_impl_6hv2lb(element) | 0;
|
|
2680
2680
|
}
|
|
2681
|
-
return accumulator + this.
|
|
2681
|
+
return accumulator + this.ton_1.hashCode() | 0;
|
|
2682
2682
|
};
|
|
2683
2683
|
protoOf(BigInteger).toString = function () {
|
|
2684
|
-
return this.
|
|
2684
|
+
return this.qoq(10);
|
|
2685
2685
|
};
|
|
2686
|
-
protoOf(BigInteger).
|
|
2686
|
+
protoOf(BigInteger).qoq = function (base) {
|
|
2687
2687
|
var tmp;
|
|
2688
|
-
if (this.
|
|
2688
|
+
if (this.ton_1.equals(Sign_NEGATIVE_getInstance())) {
|
|
2689
2689
|
tmp = '-';
|
|
2690
2690
|
} else {
|
|
2691
2691
|
tmp = '';
|
|
2692
2692
|
}
|
|
2693
2693
|
var sign = tmp;
|
|
2694
|
-
return sign + this.
|
|
2694
|
+
return sign + this.roq(base);
|
|
2695
2695
|
};
|
|
2696
|
-
protoOf(BigInteger).
|
|
2697
|
-
return Companion_getInstance_1().
|
|
2696
|
+
protoOf(BigInteger).roq = function (base) {
|
|
2697
|
+
return Companion_getInstance_1().mon_1.dot(this.son_1, base);
|
|
2698
2698
|
};
|
|
2699
|
-
protoOf(BigInteger).
|
|
2700
|
-
if (exactRequired && (this.
|
|
2699
|
+
protoOf(BigInteger).coo = function (exactRequired) {
|
|
2700
|
+
if (exactRequired && (this.foq(2147483647) > 0 || this.foq(-2147483648) < 0)) {
|
|
2701
2701
|
throw ArithmeticException_init_$Create$('Cannot convert to int and provide exact value');
|
|
2702
2702
|
}
|
|
2703
2703
|
// Inline function 'kotlin.ULong.toInt' call
|
|
2704
|
-
var this_0 = ULongArray__get_impl_pr71q9(this.
|
|
2704
|
+
var this_0 = ULongArray__get_impl_pr71q9(this.son_1, 0);
|
|
2705
2705
|
var tmp$ret$0 = convertToInt(_ULong___get_data__impl__fggpzb(this_0));
|
|
2706
|
-
return imul(tmp$ret$0, this.
|
|
2706
|
+
return imul(tmp$ret$0, this.soo());
|
|
2707
2707
|
};
|
|
2708
|
-
protoOf(BigInteger).
|
|
2709
|
-
return Companion_getInstance_1().
|
|
2708
|
+
protoOf(BigInteger).eot = function () {
|
|
2709
|
+
return Companion_getInstance_1().mon_1.fot(this.son_1);
|
|
2710
2710
|
};
|
|
2711
2711
|
var Sign_POSITIVE_instance;
|
|
2712
2712
|
var Sign_NEGATIVE_instance;
|
|
@@ -2723,7 +2723,7 @@ function Sign_initEntries() {
|
|
|
2723
2723
|
function Sign(name, ordinal) {
|
|
2724
2724
|
Enum.call(this, name, ordinal);
|
|
2725
2725
|
}
|
|
2726
|
-
protoOf(Sign).
|
|
2726
|
+
protoOf(Sign).pos = function () {
|
|
2727
2727
|
var tmp;
|
|
2728
2728
|
switch (this.a1_1) {
|
|
2729
2729
|
case 0:
|
|
@@ -2754,7 +2754,7 @@ function Sign_ZERO_getInstance() {
|
|
|
2754
2754
|
return Sign_ZERO_instance;
|
|
2755
2755
|
}
|
|
2756
2756
|
function toBigInteger(_this__u8e3s4) {
|
|
2757
|
-
return Companion_getInstance_1().
|
|
2757
|
+
return Companion_getInstance_1().mom(_this__u8e3s4);
|
|
2758
2758
|
}
|
|
2759
2759
|
function get_chosenArithmetic() {
|
|
2760
2760
|
_init_properties_Configuration_kt__48zwcc();
|
|
@@ -2794,41 +2794,41 @@ function Platform_WASMJS_getInstance() {
|
|
|
2794
2794
|
return Platform_WASMJS_instance;
|
|
2795
2795
|
}
|
|
2796
2796
|
function Sextuple(a, b, c, d, e, f) {
|
|
2797
|
-
this.
|
|
2798
|
-
this.
|
|
2799
|
-
this.
|
|
2800
|
-
this.
|
|
2801
|
-
this.
|
|
2802
|
-
this.
|
|
2797
|
+
this.got_1 = a;
|
|
2798
|
+
this.hot_1 = b;
|
|
2799
|
+
this.iot_1 = c;
|
|
2800
|
+
this.jot_1 = d;
|
|
2801
|
+
this.kot_1 = e;
|
|
2802
|
+
this.lot_1 = f;
|
|
2803
2803
|
}
|
|
2804
2804
|
protoOf(Sextuple).dh = function () {
|
|
2805
|
-
return this.
|
|
2805
|
+
return this.got_1;
|
|
2806
2806
|
};
|
|
2807
2807
|
protoOf(Sextuple).eh = function () {
|
|
2808
|
-
return this.
|
|
2808
|
+
return this.hot_1;
|
|
2809
2809
|
};
|
|
2810
2810
|
protoOf(Sextuple).rq = function () {
|
|
2811
|
-
return this.
|
|
2811
|
+
return this.iot_1;
|
|
2812
2812
|
};
|
|
2813
2813
|
protoOf(Sextuple).b6k = function () {
|
|
2814
|
-
return this.
|
|
2814
|
+
return this.jot_1;
|
|
2815
2815
|
};
|
|
2816
2816
|
protoOf(Sextuple).c6k = function () {
|
|
2817
|
-
return this.
|
|
2817
|
+
return this.kot_1;
|
|
2818
2818
|
};
|
|
2819
2819
|
protoOf(Sextuple).d6k = function () {
|
|
2820
|
-
return this.
|
|
2820
|
+
return this.lot_1;
|
|
2821
2821
|
};
|
|
2822
2822
|
protoOf(Sextuple).toString = function () {
|
|
2823
|
-
return 'Sextuple(a=' + toString_0(this.
|
|
2823
|
+
return 'Sextuple(a=' + toString_0(this.got_1) + ', b=' + toString_0(this.hot_1) + ', c=' + toString_0(this.iot_1) + ', d=' + toString_0(this.jot_1) + ', e=' + toString_0(this.kot_1) + ', f=' + toString_0(this.lot_1) + ')';
|
|
2824
2824
|
};
|
|
2825
2825
|
protoOf(Sextuple).hashCode = function () {
|
|
2826
|
-
var result = this.
|
|
2827
|
-
result = imul(result, 31) + (this.
|
|
2828
|
-
result = imul(result, 31) + (this.
|
|
2829
|
-
result = imul(result, 31) + (this.
|
|
2830
|
-
result = imul(result, 31) + (this.
|
|
2831
|
-
result = imul(result, 31) + (this.
|
|
2826
|
+
var result = this.got_1 == null ? 0 : hashCode(this.got_1);
|
|
2827
|
+
result = imul(result, 31) + (this.hot_1 == null ? 0 : hashCode(this.hot_1)) | 0;
|
|
2828
|
+
result = imul(result, 31) + (this.iot_1 == null ? 0 : hashCode(this.iot_1)) | 0;
|
|
2829
|
+
result = imul(result, 31) + (this.jot_1 == null ? 0 : hashCode(this.jot_1)) | 0;
|
|
2830
|
+
result = imul(result, 31) + (this.kot_1 == null ? 0 : hashCode(this.kot_1)) | 0;
|
|
2831
|
+
result = imul(result, 31) + (this.lot_1 == null ? 0 : hashCode(this.lot_1)) | 0;
|
|
2832
2832
|
return result;
|
|
2833
2833
|
};
|
|
2834
2834
|
protoOf(Sextuple).equals = function (other) {
|
|
@@ -2837,46 +2837,46 @@ protoOf(Sextuple).equals = function (other) {
|
|
|
2837
2837
|
if (!(other instanceof Sextuple))
|
|
2838
2838
|
return false;
|
|
2839
2839
|
var tmp0_other_with_cast = other instanceof Sextuple ? other : THROW_CCE();
|
|
2840
|
-
if (!equals(this.
|
|
2840
|
+
if (!equals(this.got_1, tmp0_other_with_cast.got_1))
|
|
2841
2841
|
return false;
|
|
2842
|
-
if (!equals(this.
|
|
2842
|
+
if (!equals(this.hot_1, tmp0_other_with_cast.hot_1))
|
|
2843
2843
|
return false;
|
|
2844
|
-
if (!equals(this.
|
|
2844
|
+
if (!equals(this.iot_1, tmp0_other_with_cast.iot_1))
|
|
2845
2845
|
return false;
|
|
2846
|
-
if (!equals(this.
|
|
2846
|
+
if (!equals(this.jot_1, tmp0_other_with_cast.jot_1))
|
|
2847
2847
|
return false;
|
|
2848
|
-
if (!equals(this.
|
|
2848
|
+
if (!equals(this.kot_1, tmp0_other_with_cast.kot_1))
|
|
2849
2849
|
return false;
|
|
2850
|
-
if (!equals(this.
|
|
2850
|
+
if (!equals(this.lot_1, tmp0_other_with_cast.lot_1))
|
|
2851
2851
|
return false;
|
|
2852
2852
|
return true;
|
|
2853
2853
|
};
|
|
2854
2854
|
function Quadruple(a, b, c, d) {
|
|
2855
|
-
this.
|
|
2856
|
-
this.
|
|
2857
|
-
this.
|
|
2858
|
-
this.
|
|
2855
|
+
this.mot_1 = a;
|
|
2856
|
+
this.not_1 = b;
|
|
2857
|
+
this.oot_1 = c;
|
|
2858
|
+
this.pot_1 = d;
|
|
2859
2859
|
}
|
|
2860
2860
|
protoOf(Quadruple).dh = function () {
|
|
2861
|
-
return this.
|
|
2861
|
+
return this.mot_1;
|
|
2862
2862
|
};
|
|
2863
2863
|
protoOf(Quadruple).eh = function () {
|
|
2864
|
-
return this.
|
|
2864
|
+
return this.not_1;
|
|
2865
2865
|
};
|
|
2866
2866
|
protoOf(Quadruple).rq = function () {
|
|
2867
|
-
return this.
|
|
2867
|
+
return this.oot_1;
|
|
2868
2868
|
};
|
|
2869
2869
|
protoOf(Quadruple).b6k = function () {
|
|
2870
|
-
return this.
|
|
2870
|
+
return this.pot_1;
|
|
2871
2871
|
};
|
|
2872
2872
|
protoOf(Quadruple).toString = function () {
|
|
2873
|
-
return 'Quadruple(a=' + toString_0(this.
|
|
2873
|
+
return 'Quadruple(a=' + toString_0(this.mot_1) + ', b=' + toString_0(this.not_1) + ', c=' + toString_0(this.oot_1) + ', d=' + toString_0(this.pot_1) + ')';
|
|
2874
2874
|
};
|
|
2875
2875
|
protoOf(Quadruple).hashCode = function () {
|
|
2876
|
-
var result = this.
|
|
2877
|
-
result = imul(result, 31) + (this.
|
|
2878
|
-
result = imul(result, 31) + (this.
|
|
2879
|
-
result = imul(result, 31) + (this.
|
|
2876
|
+
var result = this.mot_1 == null ? 0 : hashCode(this.mot_1);
|
|
2877
|
+
result = imul(result, 31) + (this.not_1 == null ? 0 : hashCode(this.not_1)) | 0;
|
|
2878
|
+
result = imul(result, 31) + (this.oot_1 == null ? 0 : hashCode(this.oot_1)) | 0;
|
|
2879
|
+
result = imul(result, 31) + (this.pot_1 == null ? 0 : hashCode(this.pot_1)) | 0;
|
|
2880
2880
|
return result;
|
|
2881
2881
|
};
|
|
2882
2882
|
protoOf(Quadruple).equals = function (other) {
|
|
@@ -2885,26 +2885,26 @@ protoOf(Quadruple).equals = function (other) {
|
|
|
2885
2885
|
if (!(other instanceof Quadruple))
|
|
2886
2886
|
return false;
|
|
2887
2887
|
var tmp0_other_with_cast = other instanceof Quadruple ? other : THROW_CCE();
|
|
2888
|
-
if (!equals(this.
|
|
2888
|
+
if (!equals(this.mot_1, tmp0_other_with_cast.mot_1))
|
|
2889
2889
|
return false;
|
|
2890
|
-
if (!equals(this.
|
|
2890
|
+
if (!equals(this.not_1, tmp0_other_with_cast.not_1))
|
|
2891
2891
|
return false;
|
|
2892
|
-
if (!equals(this.
|
|
2892
|
+
if (!equals(this.oot_1, tmp0_other_with_cast.oot_1))
|
|
2893
2893
|
return false;
|
|
2894
|
-
if (!equals(this.
|
|
2894
|
+
if (!equals(this.pot_1, tmp0_other_with_cast.pot_1))
|
|
2895
2895
|
return false;
|
|
2896
2896
|
return true;
|
|
2897
2897
|
};
|
|
2898
2898
|
function SignedUIntArray(unsignedValue, sign) {
|
|
2899
|
-
this.
|
|
2900
|
-
this.
|
|
2899
|
+
this.qot_1 = unsignedValue;
|
|
2900
|
+
this.rot_1 = sign;
|
|
2901
2901
|
}
|
|
2902
2902
|
protoOf(SignedUIntArray).toString = function () {
|
|
2903
|
-
return 'SignedUIntArray(unsignedValue=' + UIntArray__toString_impl_3zy802(this.
|
|
2903
|
+
return 'SignedUIntArray(unsignedValue=' + UIntArray__toString_impl_3zy802(this.qot_1) + ', sign=' + this.rot_1 + ')';
|
|
2904
2904
|
};
|
|
2905
2905
|
protoOf(SignedUIntArray).hashCode = function () {
|
|
2906
|
-
var result = UIntArray__hashCode_impl_hr7ost(this.
|
|
2907
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2906
|
+
var result = UIntArray__hashCode_impl_hr7ost(this.qot_1);
|
|
2907
|
+
result = imul(result, 31) + getBooleanHashCode(this.rot_1) | 0;
|
|
2908
2908
|
return result;
|
|
2909
2909
|
};
|
|
2910
2910
|
protoOf(SignedUIntArray).equals = function (other) {
|
|
@@ -2913,9 +2913,9 @@ protoOf(SignedUIntArray).equals = function (other) {
|
|
|
2913
2913
|
if (!(other instanceof SignedUIntArray))
|
|
2914
2914
|
return false;
|
|
2915
2915
|
var tmp0_other_with_cast = other instanceof SignedUIntArray ? other : THROW_CCE();
|
|
2916
|
-
if (!equals(this.
|
|
2916
|
+
if (!equals(this.qot_1, tmp0_other_with_cast.qot_1))
|
|
2917
2917
|
return false;
|
|
2918
|
-
if (!(this.
|
|
2918
|
+
if (!(this.rot_1 === tmp0_other_with_cast.rot_1))
|
|
2919
2919
|
return false;
|
|
2920
2920
|
return true;
|
|
2921
2921
|
};
|
|
@@ -2923,15 +2923,15 @@ function BigInteger32Arithmetic() {
|
|
|
2923
2923
|
BigInteger32Arithmetic_instance = this;
|
|
2924
2924
|
var tmp = this;
|
|
2925
2925
|
// Inline function 'kotlin.intArrayOf' call
|
|
2926
|
-
tmp.
|
|
2927
|
-
this.
|
|
2928
|
-
this.
|
|
2929
|
-
this.
|
|
2930
|
-
this.
|
|
2931
|
-
this.
|
|
2932
|
-
this.
|
|
2933
|
-
this.
|
|
2934
|
-
this.
|
|
2926
|
+
tmp.sot_1 = new Int32Array([]);
|
|
2927
|
+
this.tot_1 = _ULong___init__impl__c78o9k(4294967295n);
|
|
2928
|
+
this.uot_1 = _UInt___init__impl__l7qpdl(-1);
|
|
2929
|
+
this.vot_1 = _ULong___init__impl__c78o9k(4294967296n);
|
|
2930
|
+
this.wot_1 = _ULong___init__impl__c78o9k(65535n);
|
|
2931
|
+
this.xot_1 = _UInt___init__impl__l7qpdl(-1);
|
|
2932
|
+
this.yot_1 = 32;
|
|
2933
|
+
this.zot_1 = 32;
|
|
2934
|
+
this.aou_1 = _UIntArray___init__impl__ghjpc6(0);
|
|
2935
2935
|
var tmp_0 = this;
|
|
2936
2936
|
// Inline function 'kotlin.UIntArray' call
|
|
2937
2937
|
var tmp_1 = 0;
|
|
@@ -2943,7 +2943,7 @@ function BigInteger32Arithmetic() {
|
|
|
2943
2943
|
tmp_2[tmp_3] = _UInt___get_data__impl__f0vqqw(this_0);
|
|
2944
2944
|
tmp_1 = tmp_1 + 1 | 0;
|
|
2945
2945
|
}
|
|
2946
|
-
tmp_0.
|
|
2946
|
+
tmp_0.bou_1 = _UIntArray___init__impl__ghjpc6_0(tmp_2);
|
|
2947
2947
|
var tmp_4 = this;
|
|
2948
2948
|
// Inline function 'kotlin.UIntArray' call
|
|
2949
2949
|
var tmp_5 = 0;
|
|
@@ -2955,7 +2955,7 @@ function BigInteger32Arithmetic() {
|
|
|
2955
2955
|
tmp_6[tmp_7] = _UInt___get_data__impl__f0vqqw(this_1);
|
|
2956
2956
|
tmp_5 = tmp_5 + 1 | 0;
|
|
2957
2957
|
}
|
|
2958
|
-
tmp_4.
|
|
2958
|
+
tmp_4.cou_1 = _UIntArray___init__impl__ghjpc6_0(tmp_6);
|
|
2959
2959
|
var tmp_8 = this;
|
|
2960
2960
|
// Inline function 'kotlin.UIntArray' call
|
|
2961
2961
|
var tmp_9 = 0;
|
|
@@ -2967,15 +2967,15 @@ function BigInteger32Arithmetic() {
|
|
|
2967
2967
|
tmp_10[tmp_11] = _UInt___get_data__impl__f0vqqw(this_2);
|
|
2968
2968
|
tmp_9 = tmp_9 + 1 | 0;
|
|
2969
2969
|
}
|
|
2970
|
-
tmp_8.
|
|
2971
|
-
this.
|
|
2972
|
-
this.
|
|
2973
|
-
this.
|
|
2970
|
+
tmp_8.dou_1 = _UIntArray___init__impl__ghjpc6_0(tmp_10);
|
|
2971
|
+
this.eou_1 = 60;
|
|
2972
|
+
this.fou_1 = 15000;
|
|
2973
|
+
this.gou_1 = new SignedUIntArray(this.cou_1, true);
|
|
2974
2974
|
}
|
|
2975
|
-
protoOf(BigInteger32Arithmetic).
|
|
2975
|
+
protoOf(BigInteger32Arithmetic).hou = function (value) {
|
|
2976
2976
|
var x = value;
|
|
2977
2977
|
var y;
|
|
2978
|
-
var n = this.
|
|
2978
|
+
var n = this.yot_1;
|
|
2979
2979
|
// Inline function 'kotlin.UInt.shr' call
|
|
2980
2980
|
var this_0 = x;
|
|
2981
2981
|
y = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_0) >>> 16 | 0);
|
|
@@ -3015,17 +3015,17 @@ protoOf(BigInteger32Arithmetic).vos = function (value) {
|
|
|
3015
3015
|
var this_5 = x;
|
|
3016
3016
|
return tmp - _UInt___get_data__impl__f0vqqw(this_5) | 0;
|
|
3017
3017
|
};
|
|
3018
|
-
protoOf(BigInteger32Arithmetic).
|
|
3018
|
+
protoOf(BigInteger32Arithmetic).iou = function (value) {
|
|
3019
3019
|
if (UIntArray__isEmpty_impl_vd8j4n(value)) {
|
|
3020
3020
|
return 0;
|
|
3021
3021
|
}
|
|
3022
3022
|
var mostSignificant = UIntArray__get_impl_gp5kza(value, _UIntArray___get_size__impl__r6l8ci(value) - 1 | 0);
|
|
3023
|
-
return this.
|
|
3023
|
+
return this.jou(mostSignificant) + imul(_UIntArray___get_size__impl__r6l8ci(value) - 1 | 0, this.yot_1) | 0;
|
|
3024
3024
|
};
|
|
3025
|
-
protoOf(BigInteger32Arithmetic).
|
|
3026
|
-
return this.
|
|
3025
|
+
protoOf(BigInteger32Arithmetic).jou = function (value) {
|
|
3026
|
+
return this.yot_1 - this.hou(value) | 0;
|
|
3027
3027
|
};
|
|
3028
|
-
protoOf(BigInteger32Arithmetic).
|
|
3028
|
+
protoOf(BigInteger32Arithmetic).kou = function (bigInteger) {
|
|
3029
3029
|
// Inline function 'kotlin.collections.indexOfLast' call
|
|
3030
3030
|
var tmp0 = _UIntArray___get_storage__impl__92a0v0(bigInteger);
|
|
3031
3031
|
var tmp$ret$3;
|
|
@@ -3048,12 +3048,12 @@ protoOf(BigInteger32Arithmetic).yos = function (bigInteger) {
|
|
|
3048
3048
|
}
|
|
3049
3049
|
var firstEmpty = tmp$ret$3 + 1 | 0;
|
|
3050
3050
|
if (firstEmpty === -1 || firstEmpty === 0) {
|
|
3051
|
-
return this.
|
|
3051
|
+
return this.aou_1;
|
|
3052
3052
|
}
|
|
3053
3053
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
3054
3054
|
return _UIntArray___init__impl__ghjpc6_0(copyOfRange(_UIntArray___get_storage__impl__92a0v0(bigInteger), 0, firstEmpty));
|
|
3055
3055
|
};
|
|
3056
|
-
protoOf(BigInteger32Arithmetic).
|
|
3056
|
+
protoOf(BigInteger32Arithmetic).lou = function (bigInteger) {
|
|
3057
3057
|
var lastNonEmptyIndex = _UIntArray___get_size__impl__r6l8ci(bigInteger) - 1 | 0;
|
|
3058
3058
|
if (lastNonEmptyIndex <= 0) {
|
|
3059
3059
|
return 0;
|
|
@@ -3068,14 +3068,14 @@ protoOf(BigInteger32Arithmetic).zos = function (bigInteger) {
|
|
|
3068
3068
|
}
|
|
3069
3069
|
return (_UIntArray___get_size__impl__r6l8ci(bigInteger) - lastNonEmptyIndex | 0) - 1 | 0;
|
|
3070
3070
|
};
|
|
3071
|
-
protoOf(BigInteger32Arithmetic).
|
|
3071
|
+
protoOf(BigInteger32Arithmetic).mou = function (operand, places) {
|
|
3072
3072
|
if (UIntArray__isEmpty_impl_vd8j4n(operand) || places === 0) {
|
|
3073
3073
|
return operand;
|
|
3074
3074
|
}
|
|
3075
3075
|
var originalSize = _UIntArray___get_size__impl__r6l8ci(operand);
|
|
3076
|
-
var leadingZeros = this.
|
|
3077
|
-
var shiftWords = places / this.
|
|
3078
|
-
var shiftBits = places % this.
|
|
3076
|
+
var leadingZeros = this.hou(UIntArray__get_impl_gp5kza(operand, _UIntArray___get_size__impl__r6l8ci(operand) - 1 | 0));
|
|
3077
|
+
var shiftWords = places / this.yot_1 | 0;
|
|
3078
|
+
var shiftBits = places % this.yot_1 | 0;
|
|
3079
3079
|
var tmp;
|
|
3080
3080
|
if (shiftBits > leadingZeros) {
|
|
3081
3081
|
tmp = shiftWords + 1 | 0;
|
|
@@ -3119,7 +3119,7 @@ protoOf(BigInteger32Arithmetic).aot = function (operand, places) {
|
|
|
3119
3119
|
var tmp0 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_2) << shiftBits);
|
|
3120
3120
|
var tmp0_0 = UIntArray__get_impl_gp5kza(operand, (tmp_7 - shiftWords | 0) - 1 | 0);
|
|
3121
3121
|
// Inline function 'kotlin.UInt.shr' call
|
|
3122
|
-
var bitCount = BigInteger32Arithmetic_getInstance().
|
|
3122
|
+
var bitCount = BigInteger32Arithmetic_getInstance().yot_1 - shiftBits | 0;
|
|
3123
3123
|
// Inline function 'kotlin.UInt.or' call
|
|
3124
3124
|
var other = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_0) >>> bitCount | 0);
|
|
3125
3125
|
tmp_8 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0) | _UInt___get_data__impl__f0vqqw(other));
|
|
@@ -3127,7 +3127,7 @@ protoOf(BigInteger32Arithmetic).aot = function (operand, places) {
|
|
|
3127
3127
|
if (tmp_7 === ((originalSize + wordsNeeded | 0) - 1 | 0)) {
|
|
3128
3128
|
var tmp0_1 = UIntArray__get_impl_gp5kza(operand, tmp_7 - wordsNeeded | 0);
|
|
3129
3129
|
// Inline function 'kotlin.UInt.shr' call
|
|
3130
|
-
var bitCount_0 = BigInteger32Arithmetic_getInstance().
|
|
3130
|
+
var bitCount_0 = BigInteger32Arithmetic_getInstance().yot_1 - shiftBits | 0;
|
|
3131
3131
|
tmp_8 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_1) >>> bitCount_0 | 0);
|
|
3132
3132
|
} else {
|
|
3133
3133
|
throw RuntimeException_init_$Create$('Invalid case ' + tmp_7);
|
|
@@ -3142,14 +3142,14 @@ protoOf(BigInteger32Arithmetic).aot = function (operand, places) {
|
|
|
3142
3142
|
}
|
|
3143
3143
|
return _UIntArray___init__impl__ghjpc6_0(tmp_6);
|
|
3144
3144
|
};
|
|
3145
|
-
protoOf(BigInteger32Arithmetic).
|
|
3145
|
+
protoOf(BigInteger32Arithmetic).nou = function (operand, places) {
|
|
3146
3146
|
if (UIntArray__isEmpty_impl_vd8j4n(operand) || places === 0) {
|
|
3147
3147
|
return operand;
|
|
3148
3148
|
}
|
|
3149
|
-
var shiftBits = places % this.
|
|
3150
|
-
var wordsToDiscard = places / this.
|
|
3149
|
+
var shiftBits = places % this.yot_1 | 0;
|
|
3150
|
+
var wordsToDiscard = places / this.yot_1 | 0;
|
|
3151
3151
|
if (wordsToDiscard >= _UIntArray___get_size__impl__r6l8ci(operand)) {
|
|
3152
|
-
return this.
|
|
3152
|
+
return this.aou_1;
|
|
3153
3153
|
}
|
|
3154
3154
|
if (shiftBits === 0) {
|
|
3155
3155
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
@@ -3176,7 +3176,7 @@ protoOf(BigInteger32Arithmetic).bot = function (operand, places) {
|
|
|
3176
3176
|
var tmp0 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_1) >>> shiftBits | 0);
|
|
3177
3177
|
var tmp0_0 = UIntArray__get_impl_gp5kza(operand, (tmp_2 + wordsToDiscard | 0) + 1 | 0);
|
|
3178
3178
|
// Inline function 'kotlin.UInt.shl' call
|
|
3179
|
-
var bitCount = BigInteger32Arithmetic_getInstance().
|
|
3179
|
+
var bitCount = BigInteger32Arithmetic_getInstance().yot_1 - shiftBits | 0;
|
|
3180
3180
|
// Inline function 'kotlin.UInt.or' call
|
|
3181
3181
|
var other = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_0) << bitCount);
|
|
3182
3182
|
tmp_3 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0) | _UInt___get_data__impl__f0vqqw(other));
|
|
@@ -3193,22 +3193,22 @@ protoOf(BigInteger32Arithmetic).bot = function (operand, places) {
|
|
|
3193
3193
|
tmp = tmp + 1 | 0;
|
|
3194
3194
|
}
|
|
3195
3195
|
var result = _UIntArray___init__impl__ghjpc6_0(tmp_1);
|
|
3196
|
-
return this.
|
|
3196
|
+
return this.kou(result);
|
|
3197
3197
|
};
|
|
3198
|
-
protoOf(BigInteger32Arithmetic).
|
|
3198
|
+
protoOf(BigInteger32Arithmetic).oou = function (dividend, divisor) {
|
|
3199
3199
|
var divisorSize = _UIntArray___get_size__impl__r6l8ci(divisor);
|
|
3200
|
-
var normalizationShift = this.
|
|
3201
|
-
var divisorNormalized = this.
|
|
3202
|
-
var dividendNormalized = this.
|
|
3200
|
+
var normalizationShift = this.hou(UIntArray__get_impl_gp5kza(divisor, divisorSize - 1 | 0));
|
|
3201
|
+
var divisorNormalized = this.pou(divisor, normalizationShift);
|
|
3202
|
+
var dividendNormalized = this.pou(dividend, normalizationShift);
|
|
3203
3203
|
return new Triple(new UIntArray(dividendNormalized), new UIntArray(divisorNormalized), normalizationShift);
|
|
3204
3204
|
};
|
|
3205
|
-
protoOf(BigInteger32Arithmetic).
|
|
3206
|
-
var remainder = this.
|
|
3205
|
+
protoOf(BigInteger32Arithmetic).qou = function (remainderNormalized, normalizationShift) {
|
|
3206
|
+
var remainder = this.rou(remainderNormalized, normalizationShift);
|
|
3207
3207
|
return remainder;
|
|
3208
3208
|
};
|
|
3209
|
-
protoOf(BigInteger32Arithmetic).
|
|
3210
|
-
var firstStart = _UIntArray___get_size__impl__r6l8ci(first) - this.
|
|
3211
|
-
var secondStart = _UIntArray___get_size__impl__r6l8ci(second) - this.
|
|
3209
|
+
protoOf(BigInteger32Arithmetic).sou = function (first, second) {
|
|
3210
|
+
var firstStart = _UIntArray___get_size__impl__r6l8ci(first) - this.lou(first) | 0;
|
|
3211
|
+
var secondStart = _UIntArray___get_size__impl__r6l8ci(second) - this.lou(second) | 0;
|
|
3212
3212
|
if (firstStart > secondStart) {
|
|
3213
3213
|
return 1;
|
|
3214
3214
|
}
|
|
@@ -3246,7 +3246,7 @@ protoOf(BigInteger32Arithmetic).got = function (first, second) {
|
|
|
3246
3246
|
return -1;
|
|
3247
3247
|
}
|
|
3248
3248
|
};
|
|
3249
|
-
protoOf(BigInteger32Arithmetic).
|
|
3249
|
+
protoOf(BigInteger32Arithmetic).tou = function (first, second) {
|
|
3250
3250
|
if (_UIntArray___get_size__impl__r6l8ci(first) === 1 && UIntArray__get_impl_gp5kza(first, 0) === _UInt___init__impl__l7qpdl(0))
|
|
3251
3251
|
return second;
|
|
3252
3252
|
if (_UIntArray___get_size__impl__r6l8ci(second) === 1 && UIntArray__get_impl_gp5kza(second, 0) === _UInt___init__impl__l7qpdl(0))
|
|
@@ -3301,7 +3301,7 @@ protoOf(BigInteger32Arithmetic).hot = function (first, second) {
|
|
|
3301
3301
|
var tmp_4 = i;
|
|
3302
3302
|
var tmp0_1 = sum;
|
|
3303
3303
|
// Inline function 'kotlin.ULong.and' call
|
|
3304
|
-
var other_1 = this.
|
|
3304
|
+
var other_1 = this.tot_1;
|
|
3305
3305
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3306
3306
|
var this_3 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_1) & _ULong___get_data__impl__fggpzb(other_1));
|
|
3307
3307
|
// Inline function 'kotlin.toUInt' call
|
|
@@ -3310,7 +3310,7 @@ protoOf(BigInteger32Arithmetic).hot = function (first, second) {
|
|
|
3310
3310
|
UIntArray__set_impl_7f2zu2(result, tmp_4, tmp$ret$16);
|
|
3311
3311
|
var tmp0_2 = sum;
|
|
3312
3312
|
// Inline function 'kotlin.ULong.shr' call
|
|
3313
|
-
var bitCount = this.
|
|
3313
|
+
var bitCount = this.yot_1;
|
|
3314
3314
|
sum = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_2), bitCount));
|
|
3315
3315
|
i = i + 1 | 0;
|
|
3316
3316
|
}
|
|
@@ -3353,7 +3353,7 @@ protoOf(BigInteger32Arithmetic).hot = function (first, second) {
|
|
|
3353
3353
|
var tmp_6 = i;
|
|
3354
3354
|
var tmp0_4 = sum;
|
|
3355
3355
|
// Inline function 'kotlin.ULong.and' call
|
|
3356
|
-
var other_3 = this.
|
|
3356
|
+
var other_3 = this.tot_1;
|
|
3357
3357
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3358
3358
|
var this_8 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_4) & _ULong___get_data__impl__fggpzb(other_3));
|
|
3359
3359
|
// Inline function 'kotlin.toUInt' call
|
|
@@ -3362,15 +3362,15 @@ protoOf(BigInteger32Arithmetic).hot = function (first, second) {
|
|
|
3362
3362
|
UIntArray__set_impl_7f2zu2(result, tmp_6, tmp$ret$28);
|
|
3363
3363
|
var tmp0_5 = sum;
|
|
3364
3364
|
// Inline function 'kotlin.ULong.shr' call
|
|
3365
|
-
var bitCount_0 = this.
|
|
3365
|
+
var bitCount_0 = this.yot_1;
|
|
3366
3366
|
sum = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_5), bitCount_0));
|
|
3367
3367
|
i = i + 1 | 0;
|
|
3368
3368
|
}
|
|
3369
3369
|
};
|
|
3370
|
-
protoOf(BigInteger32Arithmetic).
|
|
3371
|
-
var firstWithoutLeadingZeroes = this.
|
|
3372
|
-
var secondWithoutLeadingZeroes = this.
|
|
3373
|
-
var firstIsLarger = this.
|
|
3370
|
+
protoOf(BigInteger32Arithmetic).uou = function (first, second) {
|
|
3371
|
+
var firstWithoutLeadingZeroes = this.kou(first);
|
|
3372
|
+
var secondWithoutLeadingZeroes = this.kou(second);
|
|
3373
|
+
var firstIsLarger = this.sou(firstWithoutLeadingZeroes, secondWithoutLeadingZeroes) === 1;
|
|
3374
3374
|
var tmp;
|
|
3375
3375
|
if (firstIsLarger) {
|
|
3376
3376
|
tmp = new Quadruple(_UIntArray___get_size__impl__r6l8ci(firstWithoutLeadingZeroes), _UIntArray___get_size__impl__r6l8ci(secondWithoutLeadingZeroes), new UIntArray(firstWithoutLeadingZeroes), new UIntArray(secondWithoutLeadingZeroes));
|
|
@@ -3432,10 +3432,10 @@ protoOf(BigInteger32Arithmetic).iot = function (first, second) {
|
|
|
3432
3432
|
UIntArray__set_impl_7f2zu2(result, tmp_4, tmp$ret$14);
|
|
3433
3433
|
var tmp0_1 = diff;
|
|
3434
3434
|
// Inline function 'kotlin.ULong.and' call
|
|
3435
|
-
var other_1 = this.
|
|
3435
|
+
var other_1 = this.vot_1;
|
|
3436
3436
|
var tmp0_2 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_1) & _ULong___get_data__impl__fggpzb(other_1));
|
|
3437
3437
|
// Inline function 'kotlin.ULong.shr' call
|
|
3438
|
-
var bitCount = this.
|
|
3438
|
+
var bitCount = this.zot_1;
|
|
3439
3439
|
diff = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_2), bitCount));
|
|
3440
3440
|
i = i + 1 | 0;
|
|
3441
3441
|
}
|
|
@@ -3458,15 +3458,15 @@ protoOf(BigInteger32Arithmetic).iot = function (first, second) {
|
|
|
3458
3458
|
var this_7 = _ULong___get_data__impl__fggpzb(this_6);
|
|
3459
3459
|
var tmp0_4 = _UInt___init__impl__l7qpdl(convertToInt(this_7));
|
|
3460
3460
|
// Inline function 'kotlin.UInt.and' call
|
|
3461
|
-
var other_3 = this.
|
|
3461
|
+
var other_3 = this.uot_1;
|
|
3462
3462
|
var tmp$ret$24 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_4) & _UInt___get_data__impl__f0vqqw(other_3));
|
|
3463
3463
|
UIntArray__set_impl_7f2zu2(result, tmp_5, tmp$ret$24);
|
|
3464
3464
|
var tmp0_5 = diff;
|
|
3465
3465
|
// Inline function 'kotlin.ULong.and' call
|
|
3466
|
-
var other_4 = this.
|
|
3466
|
+
var other_4 = this.vot_1;
|
|
3467
3467
|
var tmp0_6 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_5) & _ULong___get_data__impl__fggpzb(other_4));
|
|
3468
3468
|
// Inline function 'kotlin.ULong.shr' call
|
|
3469
|
-
var bitCount_0 = this.
|
|
3469
|
+
var bitCount_0 = this.zot_1;
|
|
3470
3470
|
diff = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_6), bitCount_0));
|
|
3471
3471
|
i = i + 1 | 0;
|
|
3472
3472
|
}
|
|
@@ -3485,7 +3485,7 @@ protoOf(BigInteger32Arithmetic).iot = function (first, second) {
|
|
|
3485
3485
|
}
|
|
3486
3486
|
}
|
|
3487
3487
|
if (destination.r()) {
|
|
3488
|
-
return this.
|
|
3488
|
+
return this.aou_1;
|
|
3489
3489
|
}
|
|
3490
3490
|
// Inline function 'kotlin.collections.indexOfLast' call
|
|
3491
3491
|
var tmp0_7 = _UIntArray___get_storage__impl__92a0v0(result);
|
|
@@ -3511,7 +3511,7 @@ protoOf(BigInteger32Arithmetic).iot = function (first, second) {
|
|
|
3511
3511
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
3512
3512
|
return _UIntArray___init__impl__ghjpc6_0(copyOfRange(_UIntArray___get_storage__impl__92a0v0(result), 0, firstEmpty));
|
|
3513
3513
|
};
|
|
3514
|
-
protoOf(BigInteger32Arithmetic).
|
|
3514
|
+
protoOf(BigInteger32Arithmetic).vou = function (first, second) {
|
|
3515
3515
|
var result = _UIntArray___init__impl__ghjpc6(_UIntArray___get_size__impl__r6l8ci(first) + 1 | 0);
|
|
3516
3516
|
var product;
|
|
3517
3517
|
var sum;
|
|
@@ -3545,7 +3545,7 @@ protoOf(BigInteger32Arithmetic).jot = function (first, second) {
|
|
|
3545
3545
|
var tmp$ret$8 = fromInt(value_1) & 4294967295n;
|
|
3546
3546
|
var tmp0_0 = _ULong___init__impl__c78o9k(tmp$ret$8);
|
|
3547
3547
|
// Inline function 'kotlin.ULong.and' call
|
|
3548
|
-
var other_0 = this.
|
|
3548
|
+
var other_0 = this.tot_1;
|
|
3549
3549
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3550
3550
|
var this_2 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(product) & _ULong___get_data__impl__fggpzb(other_0));
|
|
3551
3551
|
// Inline function 'kotlin.toUInt' call
|
|
@@ -3562,7 +3562,7 @@ protoOf(BigInteger32Arithmetic).jot = function (first, second) {
|
|
|
3562
3562
|
sum = _ULong___init__impl__c78o9k(add(_ULong___get_data__impl__fggpzb(tmp0_0), _ULong___get_data__impl__fggpzb(other_1)));
|
|
3563
3563
|
var tmp0_1 = sum;
|
|
3564
3564
|
// Inline function 'kotlin.ULong.and' call
|
|
3565
|
-
var other_2 = this.
|
|
3565
|
+
var other_2 = this.tot_1;
|
|
3566
3566
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3567
3567
|
var this_5 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_1) & _ULong___get_data__impl__fggpzb(other_2));
|
|
3568
3568
|
// Inline function 'kotlin.toUInt' call
|
|
@@ -3571,11 +3571,11 @@ protoOf(BigInteger32Arithmetic).jot = function (first, second) {
|
|
|
3571
3571
|
UIntArray__set_impl_7f2zu2(result, i, tmp$ret$21);
|
|
3572
3572
|
var tmp0_2 = sum;
|
|
3573
3573
|
// Inline function 'kotlin.ULong.shr' call
|
|
3574
|
-
var bitCount = this.
|
|
3574
|
+
var bitCount = this.yot_1;
|
|
3575
3575
|
sum = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_2), bitCount));
|
|
3576
3576
|
var tmp = i + 1 | 0;
|
|
3577
3577
|
// Inline function 'kotlin.ULong.shr' call
|
|
3578
|
-
var bitCount_0 = this.
|
|
3578
|
+
var bitCount_0 = this.yot_1;
|
|
3579
3579
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3580
3580
|
var this_7 = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(product), bitCount_0));
|
|
3581
3581
|
// Inline function 'kotlin.toUInt' call
|
|
@@ -3591,14 +3591,14 @@ protoOf(BigInteger32Arithmetic).jot = function (first, second) {
|
|
|
3591
3591
|
UIntArray__set_impl_7f2zu2(result, tmp, tmp$ret$28);
|
|
3592
3592
|
}
|
|
3593
3593
|
while (inductionVariable < last);
|
|
3594
|
-
return this.
|
|
3594
|
+
return this.kou(result);
|
|
3595
3595
|
};
|
|
3596
|
-
protoOf(BigInteger32Arithmetic).
|
|
3597
|
-
return this.
|
|
3596
|
+
protoOf(BigInteger32Arithmetic).wou = function (first, second) {
|
|
3597
|
+
return this.xou(first, second);
|
|
3598
3598
|
};
|
|
3599
|
-
protoOf(BigInteger32Arithmetic).
|
|
3600
|
-
if (this.
|
|
3601
|
-
return new Pair(new UIntArray(this.
|
|
3599
|
+
protoOf(BigInteger32Arithmetic).xou = function (unnormalizedDividend, unnormalizedDivisor) {
|
|
3600
|
+
if (this.you(unnormalizedDivisor, unnormalizedDividend) > 0) {
|
|
3601
|
+
return new Pair(new UIntArray(this.aou_1), new UIntArray(unnormalizedDividend));
|
|
3602
3602
|
}
|
|
3603
3603
|
if (_UIntArray___get_size__impl__r6l8ci(unnormalizedDivisor) === 1 && _UIntArray___get_size__impl__r6l8ci(unnormalizedDividend) === 1) {
|
|
3604
3604
|
var tmp0 = UIntArray__get_impl_gp5kza(unnormalizedDividend, 0);
|
|
@@ -3607,22 +3607,22 @@ protoOf(BigInteger32Arithmetic).lot = function (unnormalizedDividend, unnormaliz
|
|
|
3607
3607
|
var tmp$ret$0 = uintDivide(tmp0, other);
|
|
3608
3608
|
// Inline function 'kotlin.uintArrayOf' call
|
|
3609
3609
|
var tmp$ret$1 = _UIntArray___init__impl__ghjpc6_0(new Int32Array([tmp$ret$0]));
|
|
3610
|
-
var tmp = this.
|
|
3610
|
+
var tmp = this.kou(tmp$ret$1);
|
|
3611
3611
|
var tmp0_0 = UIntArray__get_impl_gp5kza(unnormalizedDividend, 0);
|
|
3612
3612
|
// Inline function 'kotlin.UInt.rem' call
|
|
3613
3613
|
var other_0 = UIntArray__get_impl_gp5kza(unnormalizedDivisor, 0);
|
|
3614
3614
|
var tmp$ret$2 = uintRemainder(tmp0_0, other_0);
|
|
3615
3615
|
// Inline function 'kotlin.uintArrayOf' call
|
|
3616
3616
|
var tmp$ret$3 = _UIntArray___init__impl__ghjpc6_0(new Int32Array([tmp$ret$2]));
|
|
3617
|
-
return new Pair(new UIntArray(tmp), new UIntArray(this.
|
|
3617
|
+
return new Pair(new UIntArray(tmp), new UIntArray(this.kou(tmp$ret$3)));
|
|
3618
3618
|
}
|
|
3619
|
-
var bitPrecision = this.
|
|
3619
|
+
var bitPrecision = this.iou(unnormalizedDividend) - this.iou(unnormalizedDivisor) | 0;
|
|
3620
3620
|
if (bitPrecision === 0) {
|
|
3621
3621
|
// Inline function 'kotlin.uintArrayOf' call
|
|
3622
3622
|
var tmp$ret$4 = _UIntArray___init__impl__ghjpc6_0(new Int32Array([_UInt___init__impl__l7qpdl(1)]));
|
|
3623
|
-
return new Pair(new UIntArray(tmp$ret$4), new UIntArray(this.
|
|
3623
|
+
return new Pair(new UIntArray(tmp$ret$4), new UIntArray(this.zou(unnormalizedDividend, unnormalizedDivisor)));
|
|
3624
3624
|
}
|
|
3625
|
-
var _destruct__k2r9zo = this.
|
|
3625
|
+
var _destruct__k2r9zo = this.oou(unnormalizedDividend, unnormalizedDivisor);
|
|
3626
3626
|
var dividend = _destruct__k2r9zo.dh().ur_1;
|
|
3627
3627
|
var divisor = _destruct__k2r9zo.eh().ur_1;
|
|
3628
3628
|
var normalizationShift = _destruct__k2r9zo.rq();
|
|
@@ -3632,11 +3632,11 @@ protoOf(BigInteger32Arithmetic).lot = function (unnormalizedDividend, unnormaliz
|
|
|
3632
3632
|
var qjhat;
|
|
3633
3633
|
var reconstructedQuotient;
|
|
3634
3634
|
var quotient = _UIntArray___init__impl__ghjpc6(wordPrecision);
|
|
3635
|
-
var divisorTimesBaseToPowerOfM = this.
|
|
3636
|
-
if (this.
|
|
3635
|
+
var divisorTimesBaseToPowerOfM = this.pou(divisor, imul(wordPrecision, this.yot_1));
|
|
3636
|
+
if (this.you(dividend, divisorTimesBaseToPowerOfM) >= 0) {
|
|
3637
3637
|
quotient = _UIntArray___init__impl__ghjpc6(wordPrecision + 1 | 0);
|
|
3638
3638
|
UIntArray__set_impl_7f2zu2(quotient, wordPrecision, _UInt___init__impl__l7qpdl(1));
|
|
3639
|
-
dividend = this.
|
|
3639
|
+
dividend = this.zou(dividend, divisorTimesBaseToPowerOfM);
|
|
3640
3640
|
}
|
|
3641
3641
|
var inductionVariable = wordPrecision - 1 | 0;
|
|
3642
3642
|
if (0 <= inductionVariable)
|
|
@@ -3653,7 +3653,7 @@ protoOf(BigInteger32Arithmetic).lot = function (unnormalizedDividend, unnormaliz
|
|
|
3653
3653
|
var tmp$ret$5 = fromInt(value) & 4294967295n;
|
|
3654
3654
|
var tmp0_1 = _ULong___init__impl__c78o9k(tmp$ret$5);
|
|
3655
3655
|
// Inline function 'kotlin.ULong.shl' call
|
|
3656
|
-
var bitCount = this.
|
|
3656
|
+
var bitCount = this.yot_1;
|
|
3657
3657
|
var tmp0_2 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(tmp0_1), bitCount));
|
|
3658
3658
|
// Inline function 'kotlin.ULong.plus' call
|
|
3659
3659
|
// Inline function 'kotlin.UInt.toULong' call
|
|
@@ -3696,7 +3696,7 @@ protoOf(BigInteger32Arithmetic).lot = function (unnormalizedDividend, unnormaliz
|
|
|
3696
3696
|
qjhat = tmp_0;
|
|
3697
3697
|
var tmp_2 = quotient;
|
|
3698
3698
|
var tmp_3;
|
|
3699
|
-
var tmp0_5 = this.
|
|
3699
|
+
var tmp0_5 = this.xot_1;
|
|
3700
3700
|
// Inline function 'kotlin.UInt.minus' call
|
|
3701
3701
|
var other_4 = _ULong___init__impl__c78o9k(1n);
|
|
3702
3702
|
// Inline function 'kotlin.UInt.toULong' call
|
|
@@ -3714,51 +3714,51 @@ protoOf(BigInteger32Arithmetic).lot = function (unnormalizedDividend, unnormaliz
|
|
|
3714
3714
|
var this_5 = _ULong___get_data__impl__fggpzb(qjhat);
|
|
3715
3715
|
tmp_3 = _UInt___init__impl__l7qpdl(convertToInt(this_5));
|
|
3716
3716
|
} else {
|
|
3717
|
-
var tmp0_6 = this.
|
|
3717
|
+
var tmp0_6 = this.xot_1;
|
|
3718
3718
|
// Inline function 'kotlin.UInt.minus' call
|
|
3719
3719
|
var other_6 = _UInt___init__impl__l7qpdl(1);
|
|
3720
3720
|
tmp_3 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_6) - _UInt___get_data__impl__f0vqqw(other_6) | 0);
|
|
3721
3721
|
}
|
|
3722
3722
|
UIntArray__set_impl_7f2zu2(tmp_2, j, tmp_3);
|
|
3723
|
-
reconstructedQuotient = this.
|
|
3724
|
-
while (this.
|
|
3723
|
+
reconstructedQuotient = this.pou(this.aov(divisor, UIntArray__get_impl_gp5kza(quotient, j)), imul(j, this.yot_1));
|
|
3724
|
+
while (this.you(reconstructedQuotient, dividend) > 0) {
|
|
3725
3725
|
var tmp_4 = quotient;
|
|
3726
3726
|
var tmp0_7 = UIntArray__get_impl_gp5kza(quotient, j);
|
|
3727
3727
|
// Inline function 'kotlin.UInt.minus' call
|
|
3728
3728
|
var other_7 = _UInt___init__impl__l7qpdl(1);
|
|
3729
3729
|
var tmp$ret$32 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp0_7) - _UInt___get_data__impl__f0vqqw(other_7) | 0);
|
|
3730
3730
|
UIntArray__set_impl_7f2zu2(tmp_4, j, tmp$ret$32);
|
|
3731
|
-
reconstructedQuotient = this.
|
|
3731
|
+
reconstructedQuotient = this.pou(this.aov(divisor, UIntArray__get_impl_gp5kza(quotient, j)), imul(j, this.yot_1));
|
|
3732
3732
|
}
|
|
3733
|
-
dividend = this.
|
|
3733
|
+
dividend = this.zou(dividend, reconstructedQuotient);
|
|
3734
3734
|
}
|
|
3735
3735
|
while (0 <= inductionVariable);
|
|
3736
|
-
while (this.
|
|
3737
|
-
quotient = this.
|
|
3738
|
-
dividend = this.
|
|
3736
|
+
while (this.you(dividend, divisor) >= 0) {
|
|
3737
|
+
quotient = this.bov(quotient, _UInt___init__impl__l7qpdl(1));
|
|
3738
|
+
dividend = this.zou(dividend, divisor);
|
|
3739
3739
|
}
|
|
3740
|
-
var denormRemainder = this.
|
|
3741
|
-
return new Pair(new UIntArray(this.
|
|
3740
|
+
var denormRemainder = this.qou(dividend, normalizationShift);
|
|
3741
|
+
return new Pair(new UIntArray(this.kou(quotient)), new UIntArray(denormRemainder));
|
|
3742
3742
|
};
|
|
3743
|
-
protoOf(BigInteger32Arithmetic).
|
|
3744
|
-
return this.
|
|
3743
|
+
protoOf(BigInteger32Arithmetic).pou = function (_this__u8e3s4, places) {
|
|
3744
|
+
return this.mou(_this__u8e3s4, places);
|
|
3745
3745
|
};
|
|
3746
|
-
protoOf(BigInteger32Arithmetic).
|
|
3747
|
-
return this.
|
|
3746
|
+
protoOf(BigInteger32Arithmetic).rou = function (_this__u8e3s4, places) {
|
|
3747
|
+
return this.nou(_this__u8e3s4, places);
|
|
3748
3748
|
};
|
|
3749
|
-
protoOf(BigInteger32Arithmetic).
|
|
3750
|
-
return this.
|
|
3749
|
+
protoOf(BigInteger32Arithmetic).zou = function (_this__u8e3s4, other) {
|
|
3750
|
+
return this.uou(_this__u8e3s4, other);
|
|
3751
3751
|
};
|
|
3752
|
-
protoOf(BigInteger32Arithmetic).
|
|
3752
|
+
protoOf(BigInteger32Arithmetic).bov = function (_this__u8e3s4, other) {
|
|
3753
3753
|
// Inline function 'kotlin.uintArrayOf' call
|
|
3754
3754
|
var tmp$ret$0 = _UIntArray___init__impl__ghjpc6_0(new Int32Array([other]));
|
|
3755
|
-
return this.
|
|
3755
|
+
return this.tou(_this__u8e3s4, tmp$ret$0);
|
|
3756
3756
|
};
|
|
3757
|
-
protoOf(BigInteger32Arithmetic).
|
|
3758
|
-
return this.
|
|
3757
|
+
protoOf(BigInteger32Arithmetic).aov = function (_this__u8e3s4, other) {
|
|
3758
|
+
return this.vou(_this__u8e3s4, other);
|
|
3759
3759
|
};
|
|
3760
|
-
protoOf(BigInteger32Arithmetic).
|
|
3761
|
-
return this.
|
|
3760
|
+
protoOf(BigInteger32Arithmetic).you = function (_this__u8e3s4, other) {
|
|
3761
|
+
return this.sou(_this__u8e3s4, other);
|
|
3762
3762
|
};
|
|
3763
3763
|
var BigInteger32Arithmetic_instance;
|
|
3764
3764
|
function BigInteger32Arithmetic_getInstance() {
|
|
@@ -3768,18 +3768,18 @@ function BigInteger32Arithmetic_getInstance() {
|
|
|
3768
3768
|
}
|
|
3769
3769
|
function multiplyWithCorrectedSize($this, first, second, firstCorrectedSize, secondCorrectedSize) {
|
|
3770
3770
|
if (isZero($this, first) || isZero($this, second)) {
|
|
3771
|
-
return $this.
|
|
3771
|
+
return $this.qor_1;
|
|
3772
3772
|
}
|
|
3773
3773
|
if ((firstCorrectedSize >= 120 || secondCorrectedSize >= 120) && (firstCorrectedSize <= 15000 || secondCorrectedSize < 15000)) {
|
|
3774
3774
|
return karatsubaMultiplyWithCorrectedSizes($this, first, second, firstCorrectedSize, secondCorrectedSize);
|
|
3775
3775
|
}
|
|
3776
3776
|
if (firstCorrectedSize >= 15000 && secondCorrectedSize >= 15000) {
|
|
3777
|
-
return $this.
|
|
3777
|
+
return $this.cov(first, second);
|
|
3778
3778
|
}
|
|
3779
3779
|
return basecaseMultiplyWithCorrectedSize($this, first, second, firstCorrectedSize, secondCorrectedSize);
|
|
3780
3780
|
}
|
|
3781
3781
|
function basecaseMultiplyWithCorrectedSize($this, first, second, firstCorrectedSizeStart, secondCorrectedSizeStart) {
|
|
3782
|
-
var resultArray = $this.
|
|
3782
|
+
var resultArray = $this.qor_1;
|
|
3783
3783
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
3784
3784
|
var index = 0;
|
|
3785
3785
|
var _iterator__ex2g4s = ULongArray__iterator_impl_cq4d2h(second);
|
|
@@ -3790,7 +3790,7 @@ function basecaseMultiplyWithCorrectedSize($this, first, second, firstCorrectedS
|
|
|
3790
3790
|
if (_unary__edvuaz > secondCorrectedSizeStart) {
|
|
3791
3791
|
new ULongArray(resultArray);
|
|
3792
3792
|
} else {
|
|
3793
|
-
resultArray = BigInteger63Arithmetic_getInstance().
|
|
3793
|
+
resultArray = BigInteger63Arithmetic_getInstance().fov(resultArray, BigInteger63Arithmetic_getInstance().eov(BigInteger63Arithmetic_getInstance().dov(first, item), imul(_unary__edvuaz, BigInteger63Arithmetic_getInstance().vor_1)));
|
|
3794
3794
|
}
|
|
3795
3795
|
}
|
|
3796
3796
|
return resultArray;
|
|
@@ -3800,44 +3800,44 @@ function karatsubaMultiplyWithCorrectedSizes($this, firstUnsigned, secondUnsigne
|
|
|
3800
3800
|
var second = new SignedULongArray(secondUnsigned, true);
|
|
3801
3801
|
// Inline function 'kotlin.math.max' call
|
|
3802
3802
|
var halfLength = (Math.max(firstCorrectedSize, secondCorrectedSize) + 1 | 0) / 2 | 0;
|
|
3803
|
-
var mask = $this.
|
|
3804
|
-
var firstLower = $this.
|
|
3805
|
-
var firstHigher = $this.
|
|
3806
|
-
var secondLower = $this.
|
|
3807
|
-
var secondHigher = $this.
|
|
3808
|
-
var higherProduct = $this.
|
|
3809
|
-
var lowerProduct = $this.
|
|
3810
|
-
var middleProduct = $this.
|
|
3811
|
-
var result = $this.
|
|
3812
|
-
return result.
|
|
3803
|
+
var mask = $this.gov($this.eov($this.ror_1, imul(halfLength, $this.wor_1)), _ULong___init__impl__c78o9k(1n));
|
|
3804
|
+
var firstLower = $this.hov(first, mask);
|
|
3805
|
+
var firstHigher = $this.iov(first, imul(halfLength, $this.wor_1));
|
|
3806
|
+
var secondLower = $this.hov(second, mask);
|
|
3807
|
+
var secondHigher = $this.iov(second, imul(halfLength, $this.wor_1));
|
|
3808
|
+
var higherProduct = $this.jov(firstHigher, secondHigher);
|
|
3809
|
+
var lowerProduct = $this.jov(firstLower, secondLower);
|
|
3810
|
+
var middleProduct = $this.jov($this.kov(firstHigher, firstLower), $this.kov(secondHigher, secondLower));
|
|
3811
|
+
var result = $this.kov($this.kov($this.lov(higherProduct, imul(imul(2, $this.wor_1), halfLength)), $this.lov($this.mov($this.mov(middleProduct, higherProduct), lowerProduct), imul($this.wor_1, halfLength))), lowerProduct);
|
|
3812
|
+
return result.nov_1;
|
|
3813
3813
|
}
|
|
3814
3814
|
function isZero($this, _this__u8e3s4) {
|
|
3815
|
-
if (equals(_this__u8e3s4, $this.
|
|
3815
|
+
if (equals(_this__u8e3s4, $this.qor_1))
|
|
3816
3816
|
return true;
|
|
3817
3817
|
if (_ULongArray___get_size__impl__ju6dtr(_this__u8e3s4) === 1 && ULongArray__get_impl_pr71q9(_this__u8e3s4, 0) === _ULong___init__impl__c78o9k(0n))
|
|
3818
3818
|
return true;
|
|
3819
|
-
if ((_ULongArray___get_size__impl__ju6dtr(_this__u8e3s4) - $this.
|
|
3819
|
+
if ((_ULongArray___get_size__impl__ju6dtr(_this__u8e3s4) - $this.pov(_this__u8e3s4) | 0) === 0)
|
|
3820
3820
|
return true;
|
|
3821
3821
|
return false;
|
|
3822
3822
|
}
|
|
3823
3823
|
function SignedULongArray(unsignedValue, sign) {
|
|
3824
|
-
this.
|
|
3825
|
-
this.
|
|
3824
|
+
this.nov_1 = unsignedValue;
|
|
3825
|
+
this.oov_1 = sign;
|
|
3826
3826
|
}
|
|
3827
|
-
protoOf(SignedULongArray).
|
|
3827
|
+
protoOf(SignedULongArray).qov = function (unsignedValue, sign) {
|
|
3828
3828
|
return new SignedULongArray(unsignedValue, sign);
|
|
3829
3829
|
};
|
|
3830
|
-
protoOf(SignedULongArray).
|
|
3831
|
-
unsignedValue = unsignedValue === VOID ? this.
|
|
3832
|
-
sign = sign === VOID ? this.
|
|
3833
|
-
return $super === VOID ? this.
|
|
3830
|
+
protoOf(SignedULongArray).rov = function (unsignedValue, sign, $super) {
|
|
3831
|
+
unsignedValue = unsignedValue === VOID ? this.nov_1 : unsignedValue;
|
|
3832
|
+
sign = sign === VOID ? this.oov_1 : sign;
|
|
3833
|
+
return $super === VOID ? this.qov(unsignedValue, sign) : $super.qov.call(this, new ULongArray(unsignedValue), sign);
|
|
3834
3834
|
};
|
|
3835
3835
|
protoOf(SignedULongArray).toString = function () {
|
|
3836
|
-
return 'SignedULongArray(unsignedValue=' + ULongArray__toString_impl_wqk1p5(this.
|
|
3836
|
+
return 'SignedULongArray(unsignedValue=' + ULongArray__toString_impl_wqk1p5(this.nov_1) + ', sign=' + this.oov_1 + ')';
|
|
3837
3837
|
};
|
|
3838
3838
|
protoOf(SignedULongArray).hashCode = function () {
|
|
3839
|
-
var result = ULongArray__hashCode_impl_aze4wa(this.
|
|
3840
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3839
|
+
var result = ULongArray__hashCode_impl_aze4wa(this.nov_1);
|
|
3840
|
+
result = imul(result, 31) + getBooleanHashCode(this.oov_1) | 0;
|
|
3841
3841
|
return result;
|
|
3842
3842
|
};
|
|
3843
3843
|
protoOf(SignedULongArray).equals = function (other) {
|
|
@@ -3846,69 +3846,69 @@ protoOf(SignedULongArray).equals = function (other) {
|
|
|
3846
3846
|
if (!(other instanceof SignedULongArray))
|
|
3847
3847
|
return false;
|
|
3848
3848
|
var tmp0_other_with_cast = other instanceof SignedULongArray ? other : THROW_CCE();
|
|
3849
|
-
if (!equals(this.
|
|
3849
|
+
if (!equals(this.nov_1, tmp0_other_with_cast.nov_1))
|
|
3850
3850
|
return false;
|
|
3851
|
-
if (!(this.
|
|
3851
|
+
if (!(this.oov_1 === tmp0_other_with_cast.oov_1))
|
|
3852
3852
|
return false;
|
|
3853
3853
|
return true;
|
|
3854
3854
|
};
|
|
3855
3855
|
function signedAdd($this, first, second) {
|
|
3856
3856
|
var tmp;
|
|
3857
|
-
if (!!(first.
|
|
3857
|
+
if (!!(first.oov_1 ^ second.oov_1)) {
|
|
3858
3858
|
var tmp_0;
|
|
3859
|
-
if ($this.
|
|
3860
|
-
tmp_0 = new SignedULongArray($this.
|
|
3859
|
+
if ($this.zos(first.nov_1, second.nov_1) > 0) {
|
|
3860
|
+
tmp_0 = new SignedULongArray($this.sov(first.nov_1, second.nov_1), first.oov_1);
|
|
3861
3861
|
} else {
|
|
3862
|
-
tmp_0 = new SignedULongArray($this.
|
|
3862
|
+
tmp_0 = new SignedULongArray($this.sov(second.nov_1, first.nov_1), second.oov_1);
|
|
3863
3863
|
}
|
|
3864
3864
|
tmp = tmp_0;
|
|
3865
3865
|
} else {
|
|
3866
|
-
tmp = new SignedULongArray($this.
|
|
3866
|
+
tmp = new SignedULongArray($this.fov(first.nov_1, second.nov_1), first.oov_1);
|
|
3867
3867
|
}
|
|
3868
3868
|
return tmp;
|
|
3869
3869
|
}
|
|
3870
3870
|
function signedSubtract($this, first, second) {
|
|
3871
|
-
return signedAdd($this, first, second.
|
|
3871
|
+
return signedAdd($this, first, second.rov(VOID, !second.oov_1));
|
|
3872
3872
|
}
|
|
3873
3873
|
function signedMultiply($this, first, second) {
|
|
3874
|
-
return new SignedULongArray($this.
|
|
3874
|
+
return new SignedULongArray($this.tov(first.nov_1, second.nov_1), !!!(first.oov_1 ^ second.oov_1));
|
|
3875
3875
|
}
|
|
3876
3876
|
function signedDivide($this, first, second) {
|
|
3877
|
-
return new SignedULongArray($this.
|
|
3877
|
+
return new SignedULongArray($this.uov(first.nov_1, second.nov_1), !!!(first.oov_1 ^ second.oov_1));
|
|
3878
3878
|
}
|
|
3879
3879
|
function BigInteger63Arithmetic() {
|
|
3880
3880
|
BigInteger63Arithmetic_instance = this;
|
|
3881
3881
|
var tmp = this;
|
|
3882
3882
|
// Inline function 'kotlin.longArrayOf' call
|
|
3883
|
-
tmp.
|
|
3883
|
+
tmp.por_1 = new BigInt64Array([]);
|
|
3884
3884
|
var tmp_0 = this;
|
|
3885
3885
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3886
|
-
tmp_0.
|
|
3886
|
+
tmp_0.qor_1 = _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(0n)]));
|
|
3887
3887
|
var tmp_1 = this;
|
|
3888
3888
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3889
|
-
tmp_1.
|
|
3889
|
+
tmp_1.ror_1 = _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(1n)]));
|
|
3890
3890
|
var tmp_2 = this;
|
|
3891
3891
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3892
|
-
tmp_2.
|
|
3892
|
+
tmp_2.sor_1 = _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(2n)]));
|
|
3893
3893
|
var tmp_3 = this;
|
|
3894
3894
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3895
|
-
tmp_3.
|
|
3895
|
+
tmp_3.tor_1 = _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(10n)]));
|
|
3896
3896
|
var tmp_4 = this;
|
|
3897
3897
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3898
|
-
tmp_4.
|
|
3899
|
-
this.
|
|
3900
|
-
this.
|
|
3901
|
-
this.
|
|
3898
|
+
tmp_4.uor_1 = _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(3074457345618258603n)]));
|
|
3899
|
+
this.vor_1 = 63;
|
|
3900
|
+
this.wor_1 = 63;
|
|
3901
|
+
this.xor_1 = _ULong___init__impl__c78o9k(9223372036854775807n);
|
|
3902
3902
|
var tmp_5 = this;
|
|
3903
3903
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3904
|
-
tmp_5.
|
|
3905
|
-
this.
|
|
3906
|
-
this.
|
|
3907
|
-
this.
|
|
3908
|
-
this.
|
|
3909
|
-
this.
|
|
3910
|
-
this.
|
|
3911
|
-
this.
|
|
3904
|
+
tmp_5.yor_1 = _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(9223372036854775807n)]));
|
|
3905
|
+
this.zor_1 = _ULong___init__impl__c78o9k(4294967295n);
|
|
3906
|
+
this.aos_1 = _ULong___init__impl__c78o9k(9223372032559808512n);
|
|
3907
|
+
this.bos_1 = _ULong___init__impl__c78o9k(-9223372036854775808n);
|
|
3908
|
+
this.cos_1 = 120;
|
|
3909
|
+
this.dos_1 = 15000;
|
|
3910
|
+
this.eos_1 = false;
|
|
3911
|
+
this.fos_1 = new SignedULongArray(BigInteger63Arithmetic_getInstance().sor_1, true);
|
|
3912
3912
|
var tmp_6 = this;
|
|
3913
3913
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
3914
3914
|
var tmp_7 = _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(1n)]));
|
|
@@ -4115,21 +4115,21 @@ function BigInteger63Arithmetic() {
|
|
|
4115
4115
|
// Inline function 'kotlin.arrayOf' call
|
|
4116
4116
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
4117
4117
|
// Inline function 'kotlin.js.asDynamic' call
|
|
4118
|
-
tmp_6.
|
|
4118
|
+
tmp_6.gos_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)];
|
|
4119
4119
|
}
|
|
4120
|
-
protoOf(BigInteger63Arithmetic).
|
|
4121
|
-
return this.
|
|
4120
|
+
protoOf(BigInteger63Arithmetic).yoq = function () {
|
|
4121
|
+
return this.qor_1;
|
|
4122
4122
|
};
|
|
4123
|
-
protoOf(BigInteger63Arithmetic).
|
|
4124
|
-
return this.
|
|
4123
|
+
protoOf(BigInteger63Arithmetic).zoq = function () {
|
|
4124
|
+
return this.ror_1;
|
|
4125
4125
|
};
|
|
4126
|
-
protoOf(BigInteger63Arithmetic).
|
|
4127
|
-
return this.
|
|
4126
|
+
protoOf(BigInteger63Arithmetic).aor = function () {
|
|
4127
|
+
return this.sor_1;
|
|
4128
4128
|
};
|
|
4129
|
-
protoOf(BigInteger63Arithmetic).
|
|
4130
|
-
return this.
|
|
4129
|
+
protoOf(BigInteger63Arithmetic).bor = function () {
|
|
4130
|
+
return this.tor_1;
|
|
4131
4131
|
};
|
|
4132
|
-
protoOf(BigInteger63Arithmetic).
|
|
4132
|
+
protoOf(BigInteger63Arithmetic).vov = function (value) {
|
|
4133
4133
|
var x = value;
|
|
4134
4134
|
var y;
|
|
4135
4135
|
var n = 63;
|
|
@@ -4179,7 +4179,7 @@ protoOf(BigInteger63Arithmetic).jou = function (value) {
|
|
|
4179
4179
|
var this_6 = x;
|
|
4180
4180
|
return tmp - convertToInt(_ULong___get_data__impl__fggpzb(this_6)) | 0;
|
|
4181
4181
|
};
|
|
4182
|
-
protoOf(BigInteger63Arithmetic).
|
|
4182
|
+
protoOf(BigInteger63Arithmetic).wov = function (value) {
|
|
4183
4183
|
var x = value;
|
|
4184
4184
|
var y;
|
|
4185
4185
|
var n = 64;
|
|
@@ -4229,31 +4229,31 @@ protoOf(BigInteger63Arithmetic).kou = function (value) {
|
|
|
4229
4229
|
var this_6 = x;
|
|
4230
4230
|
return tmp - convertToInt(_ULong___get_data__impl__fggpzb(this_6)) | 0;
|
|
4231
4231
|
};
|
|
4232
|
-
protoOf(BigInteger63Arithmetic).
|
|
4232
|
+
protoOf(BigInteger63Arithmetic).xov = function (value) {
|
|
4233
4233
|
if (isZero(this, value)) {
|
|
4234
4234
|
return 0;
|
|
4235
4235
|
}
|
|
4236
|
-
var start = (_ULongArray___get_size__impl__ju6dtr(value) - this.
|
|
4236
|
+
var start = (_ULongArray___get_size__impl__ju6dtr(value) - this.pov(value) | 0) - 1 | 0;
|
|
4237
4237
|
var mostSignificant = ULongArray__get_impl_pr71q9(value, start);
|
|
4238
|
-
return this.
|
|
4238
|
+
return this.yov(mostSignificant) + imul(start, 63) | 0;
|
|
4239
4239
|
};
|
|
4240
|
-
protoOf(BigInteger63Arithmetic).
|
|
4240
|
+
protoOf(BigInteger63Arithmetic).zov = function (value) {
|
|
4241
4241
|
if (isZero(this, value)) {
|
|
4242
4242
|
return 0;
|
|
4243
4243
|
}
|
|
4244
4244
|
var mostSignificant = ULongArray__get_impl_pr71q9(value, _ULongArray___get_size__impl__ju6dtr(value) - 1 | 0);
|
|
4245
|
-
return this.
|
|
4245
|
+
return this.aow(mostSignificant) + imul(_ULongArray___get_size__impl__ju6dtr(value) - 1 | 0, 64) | 0;
|
|
4246
4246
|
};
|
|
4247
|
-
protoOf(BigInteger63Arithmetic).
|
|
4248
|
-
return 63 - this.
|
|
4247
|
+
protoOf(BigInteger63Arithmetic).yov = function (value) {
|
|
4248
|
+
return 63 - this.vov(value) | 0;
|
|
4249
4249
|
};
|
|
4250
|
-
protoOf(BigInteger63Arithmetic).
|
|
4251
|
-
return 64 - this.
|
|
4250
|
+
protoOf(BigInteger63Arithmetic).aow = function (value) {
|
|
4251
|
+
return 64 - this.wov(value) | 0;
|
|
4252
4252
|
};
|
|
4253
|
-
protoOf(BigInteger63Arithmetic).
|
|
4254
|
-
var correctedSize = _ULongArray___get_size__impl__ju6dtr(bigInteger) - this.
|
|
4253
|
+
protoOf(BigInteger63Arithmetic).hos = function (bigInteger) {
|
|
4254
|
+
var correctedSize = _ULongArray___get_size__impl__ju6dtr(bigInteger) - this.pov(bigInteger) | 0;
|
|
4255
4255
|
if (correctedSize === 0) {
|
|
4256
|
-
return this.
|
|
4256
|
+
return this.qor_1;
|
|
4257
4257
|
}
|
|
4258
4258
|
if (_ULongArray___get_size__impl__ju6dtr(bigInteger) === correctedSize) {
|
|
4259
4259
|
return bigInteger;
|
|
@@ -4264,7 +4264,7 @@ protoOf(BigInteger63Arithmetic).voq = function (bigInteger) {
|
|
|
4264
4264
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
4265
4265
|
return _ULongArray___init__impl__twm1l3(copyOfRange_0(_ULongArray___get_storage__impl__28e64j(bigInteger), 0, correctedSize));
|
|
4266
4266
|
};
|
|
4267
|
-
protoOf(BigInteger63Arithmetic).
|
|
4267
|
+
protoOf(BigInteger63Arithmetic).pov = function (bigInteger) {
|
|
4268
4268
|
var lastNonEmptyIndex = _ULongArray___get_size__impl__ju6dtr(bigInteger) - 1 | 0;
|
|
4269
4269
|
if (lastNonEmptyIndex <= 0) {
|
|
4270
4270
|
return 0;
|
|
@@ -4279,7 +4279,7 @@ protoOf(BigInteger63Arithmetic).dou = function (bigInteger) {
|
|
|
4279
4279
|
}
|
|
4280
4280
|
return (_ULongArray___get_size__impl__ju6dtr(bigInteger) - lastNonEmptyIndex | 0) - 1 | 0;
|
|
4281
4281
|
};
|
|
4282
|
-
protoOf(BigInteger63Arithmetic).
|
|
4282
|
+
protoOf(BigInteger63Arithmetic).bow = function (operand, places) {
|
|
4283
4283
|
if (isZero(this, operand)) {
|
|
4284
4284
|
return operand;
|
|
4285
4285
|
}
|
|
@@ -4287,16 +4287,16 @@ protoOf(BigInteger63Arithmetic).pou = function (operand, places) {
|
|
|
4287
4287
|
return operand;
|
|
4288
4288
|
}
|
|
4289
4289
|
if (ULongArray__isEmpty_impl_c3yngu(operand)) {
|
|
4290
|
-
return this.
|
|
4290
|
+
return this.qor_1;
|
|
4291
4291
|
}
|
|
4292
|
-
var leadingZeroWords = this.
|
|
4292
|
+
var leadingZeroWords = this.pov(operand);
|
|
4293
4293
|
if (_ULongArray___get_size__impl__ju6dtr(operand) === leadingZeroWords) {
|
|
4294
|
-
return this.
|
|
4294
|
+
return this.qor_1;
|
|
4295
4295
|
}
|
|
4296
4296
|
var originalSize = _ULongArray___get_size__impl__ju6dtr(operand) - leadingZeroWords | 0;
|
|
4297
|
-
var leadingZeros = this.
|
|
4298
|
-
var shiftWords = places / this.
|
|
4299
|
-
var shiftBits = places % this.
|
|
4297
|
+
var leadingZeros = this.vov(ULongArray__get_impl_pr71q9(operand, originalSize - 1 | 0));
|
|
4298
|
+
var shiftWords = places / this.vor_1 | 0;
|
|
4299
|
+
var shiftBits = places % this.vor_1 | 0;
|
|
4300
4300
|
var tmp;
|
|
4301
4301
|
if (shiftBits > leadingZeros) {
|
|
4302
4302
|
tmp = shiftWords + 1 | 0;
|
|
@@ -4333,7 +4333,7 @@ protoOf(BigInteger63Arithmetic).pou = function (operand, places) {
|
|
|
4333
4333
|
var this_1 = ULongArray__get_impl_pr71q9(operand, tmp_7 - shiftWords | 0);
|
|
4334
4334
|
var tmp0 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_1), shiftBits));
|
|
4335
4335
|
// Inline function 'kotlin.ULong.and' call
|
|
4336
|
-
var other = BigInteger63Arithmetic_getInstance().
|
|
4336
|
+
var other = BigInteger63Arithmetic_getInstance().xor_1;
|
|
4337
4337
|
tmp_8 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0) & _ULong___get_data__impl__fggpzb(other));
|
|
4338
4338
|
} else {
|
|
4339
4339
|
var containsLower = shiftWords + 1 | 0;
|
|
@@ -4342,11 +4342,11 @@ protoOf(BigInteger63Arithmetic).pou = function (operand, places) {
|
|
|
4342
4342
|
var this_2 = ULongArray__get_impl_pr71q9(operand, tmp_7 - shiftWords | 0);
|
|
4343
4343
|
var tmp0_0 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_2), shiftBits));
|
|
4344
4344
|
// Inline function 'kotlin.ULong.and' call
|
|
4345
|
-
var other_0 = BigInteger63Arithmetic_getInstance().
|
|
4345
|
+
var other_0 = BigInteger63Arithmetic_getInstance().xor_1;
|
|
4346
4346
|
var tmp0_1 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_0) & _ULong___get_data__impl__fggpzb(other_0));
|
|
4347
4347
|
var tmp0_2 = ULongArray__get_impl_pr71q9(operand, (tmp_7 - shiftWords | 0) - 1 | 0);
|
|
4348
4348
|
// Inline function 'kotlin.ULong.shr' call
|
|
4349
|
-
var bitCount = BigInteger63Arithmetic_getInstance().
|
|
4349
|
+
var bitCount = BigInteger63Arithmetic_getInstance().vor_1 - shiftBits | 0;
|
|
4350
4350
|
// Inline function 'kotlin.ULong.or' call
|
|
4351
4351
|
var other_1 = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_2), bitCount));
|
|
4352
4352
|
tmp_8 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_1) | _ULong___get_data__impl__fggpzb(other_1));
|
|
@@ -4354,7 +4354,7 @@ protoOf(BigInteger63Arithmetic).pou = function (operand, places) {
|
|
|
4354
4354
|
if (tmp_7 === ((originalSize + wordsNeeded | 0) - 1 | 0)) {
|
|
4355
4355
|
var tmp0_3 = ULongArray__get_impl_pr71q9(operand, tmp_7 - wordsNeeded | 0);
|
|
4356
4356
|
// Inline function 'kotlin.ULong.shr' call
|
|
4357
|
-
var bitCount_0 = BigInteger63Arithmetic_getInstance().
|
|
4357
|
+
var bitCount_0 = BigInteger63Arithmetic_getInstance().vor_1 - shiftBits | 0;
|
|
4358
4358
|
tmp_8 = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(tmp0_3), bitCount_0));
|
|
4359
4359
|
} else {
|
|
4360
4360
|
throw RuntimeException_init_$Create$('Invalid case ' + tmp_7);
|
|
@@ -4369,16 +4369,16 @@ protoOf(BigInteger63Arithmetic).pou = function (operand, places) {
|
|
|
4369
4369
|
}
|
|
4370
4370
|
return _ULongArray___init__impl__twm1l3(tmp_6);
|
|
4371
4371
|
};
|
|
4372
|
-
protoOf(BigInteger63Arithmetic).
|
|
4372
|
+
protoOf(BigInteger63Arithmetic).bot = function (operand, places) {
|
|
4373
4373
|
if (ULongArray__isEmpty_impl_c3yngu(operand) || places === 0) {
|
|
4374
4374
|
return operand;
|
|
4375
4375
|
}
|
|
4376
|
-
var leadingZeroWords = this.
|
|
4376
|
+
var leadingZeroWords = this.pov(operand);
|
|
4377
4377
|
var realOperandSize = _ULongArray___get_size__impl__ju6dtr(operand) - leadingZeroWords | 0;
|
|
4378
|
-
var shiftBits = places % this.
|
|
4379
|
-
var wordsToDiscard = places / this.
|
|
4378
|
+
var shiftBits = places % this.vor_1 | 0;
|
|
4379
|
+
var wordsToDiscard = places / this.vor_1 | 0;
|
|
4380
4380
|
if (wordsToDiscard >= realOperandSize) {
|
|
4381
|
-
return this.
|
|
4381
|
+
return this.qor_1;
|
|
4382
4382
|
}
|
|
4383
4383
|
if (shiftBits === 0) {
|
|
4384
4384
|
// Inline function 'kotlin.collections.copyOfRange' call
|
|
@@ -4394,7 +4394,7 @@ protoOf(BigInteger63Arithmetic).por = function (operand, places) {
|
|
|
4394
4394
|
}
|
|
4395
4395
|
var newLength = realOperandSize - wordsToDiscard | 0;
|
|
4396
4396
|
if (newLength === 0) {
|
|
4397
|
-
return this.
|
|
4397
|
+
return this.qor_1;
|
|
4398
4398
|
}
|
|
4399
4399
|
// Inline function 'kotlin.ULongArray' call
|
|
4400
4400
|
var tmp = 0;
|
|
@@ -4409,10 +4409,10 @@ protoOf(BigInteger63Arithmetic).por = function (operand, places) {
|
|
|
4409
4409
|
var tmp0 = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(this_1), shiftBits));
|
|
4410
4410
|
var tmp0_0 = ULongArray__get_impl_pr71q9(operand, (tmp_2 + wordsToDiscard | 0) + 1 | 0);
|
|
4411
4411
|
// Inline function 'kotlin.ULong.shl' call
|
|
4412
|
-
var bitCount = BigInteger63Arithmetic_getInstance().
|
|
4412
|
+
var bitCount = BigInteger63Arithmetic_getInstance().vor_1 - shiftBits | 0;
|
|
4413
4413
|
var tmp0_1 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(tmp0_0), bitCount));
|
|
4414
4414
|
// Inline function 'kotlin.ULong.and' call
|
|
4415
|
-
var other = BigInteger63Arithmetic_getInstance().
|
|
4415
|
+
var other = BigInteger63Arithmetic_getInstance().xor_1;
|
|
4416
4416
|
// Inline function 'kotlin.ULong.or' call
|
|
4417
4417
|
var other_0 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_1) & _ULong___get_data__impl__fggpzb(other));
|
|
4418
4418
|
tmp_3 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0) | _ULong___get_data__impl__fggpzb(other_0));
|
|
@@ -4431,7 +4431,7 @@ protoOf(BigInteger63Arithmetic).por = function (operand, places) {
|
|
|
4431
4431
|
var result = _ULongArray___init__impl__twm1l3(tmp_1);
|
|
4432
4432
|
return result;
|
|
4433
4433
|
};
|
|
4434
|
-
protoOf(BigInteger63Arithmetic).
|
|
4434
|
+
protoOf(BigInteger63Arithmetic).cow = function (first, second, firstStart, secondStart) {
|
|
4435
4435
|
if (firstStart > secondStart) {
|
|
4436
4436
|
return 1;
|
|
4437
4437
|
}
|
|
@@ -4469,12 +4469,12 @@ protoOf(BigInteger63Arithmetic).qou = function (first, second, firstStart, secon
|
|
|
4469
4469
|
return -1;
|
|
4470
4470
|
}
|
|
4471
4471
|
};
|
|
4472
|
-
protoOf(BigInteger63Arithmetic).
|
|
4473
|
-
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4474
|
-
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4475
|
-
return this.
|
|
4472
|
+
protoOf(BigInteger63Arithmetic).nor = function (first, second) {
|
|
4473
|
+
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.pov(first) | 0;
|
|
4474
|
+
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.pov(second) | 0;
|
|
4475
|
+
return this.cow(first, second, firstStart, secondStart);
|
|
4476
4476
|
};
|
|
4477
|
-
protoOf(BigInteger63Arithmetic).
|
|
4477
|
+
protoOf(BigInteger63Arithmetic).dow = function (resultArray, resultArrayStart, first, second) {
|
|
4478
4478
|
if (isZero(this, first)) {
|
|
4479
4479
|
// Inline function 'kotlin.collections.copyInto' call
|
|
4480
4480
|
var endIndex = _ULongArray___get_size__impl__ju6dtr(first);
|
|
@@ -4503,8 +4503,8 @@ protoOf(BigInteger63Arithmetic).rou = function (resultArray, resultArrayStart, f
|
|
|
4503
4503
|
arrayCopy(tmp_0, destination_0, resultArrayStart, 0, endIndex_0);
|
|
4504
4504
|
return Unit_instance;
|
|
4505
4505
|
}
|
|
4506
|
-
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4507
|
-
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4506
|
+
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.pov(first) | 0;
|
|
4507
|
+
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.pov(second) | 0;
|
|
4508
4508
|
var tmp_1;
|
|
4509
4509
|
if (firstStart > secondStart) {
|
|
4510
4510
|
tmp_1 = new Sextuple(_ULongArray___get_size__impl__ju6dtr(first), _ULongArray___get_size__impl__ju6dtr(second), new ULongArray(first), new ULongArray(second), firstStart, secondStart);
|
|
@@ -4531,7 +4531,7 @@ protoOf(BigInteger63Arithmetic).rou = function (resultArray, resultArrayStart, f
|
|
|
4531
4531
|
var tmp_2 = i + resultArrayStart | 0;
|
|
4532
4532
|
var tmp0_3 = sum;
|
|
4533
4533
|
// Inline function 'kotlin.ULong.and' call
|
|
4534
|
-
var other_1 = this.
|
|
4534
|
+
var other_1 = this.xor_1;
|
|
4535
4535
|
var tmp$ret$14 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_3) & _ULong___get_data__impl__fggpzb(other_1));
|
|
4536
4536
|
ULongArray__set_impl_z19mvh(resultArray, tmp_2, tmp$ret$14);
|
|
4537
4537
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -4558,7 +4558,7 @@ protoOf(BigInteger63Arithmetic).rou = function (resultArray, resultArrayStart, f
|
|
|
4558
4558
|
var tmp_3 = i;
|
|
4559
4559
|
var tmp0_5 = sum;
|
|
4560
4560
|
// Inline function 'kotlin.ULong.and' call
|
|
4561
|
-
var other_3 = this.
|
|
4561
|
+
var other_3 = this.xor_1;
|
|
4562
4562
|
var tmp$ret$17 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_5) & _ULong___get_data__impl__fggpzb(other_3));
|
|
4563
4563
|
ULongArray__set_impl_z19mvh(resultArray, tmp_3, tmp$ret$17);
|
|
4564
4564
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -4567,13 +4567,13 @@ protoOf(BigInteger63Arithmetic).rou = function (resultArray, resultArrayStart, f
|
|
|
4567
4567
|
i = i + 1 | 0;
|
|
4568
4568
|
}
|
|
4569
4569
|
};
|
|
4570
|
-
protoOf(BigInteger63Arithmetic).
|
|
4570
|
+
protoOf(BigInteger63Arithmetic).los = function (first, second) {
|
|
4571
4571
|
if (isZero(this, first))
|
|
4572
4572
|
return second;
|
|
4573
4573
|
if (isZero(this, second))
|
|
4574
4574
|
return first;
|
|
4575
|
-
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4576
|
-
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4575
|
+
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.pov(first) | 0;
|
|
4576
|
+
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.pov(second) | 0;
|
|
4577
4577
|
var tmp;
|
|
4578
4578
|
if (firstStart > secondStart) {
|
|
4579
4579
|
tmp = new Sextuple(_ULongArray___get_size__impl__ju6dtr(first), _ULongArray___get_size__impl__ju6dtr(second), new ULongArray(first), new ULongArray(second), firstStart, secondStart);
|
|
@@ -4630,22 +4630,22 @@ protoOf(BigInteger63Arithmetic).zoq = function (first, second) {
|
|
|
4630
4630
|
tmp_1 = _ULongArray___init__impl__twm1l3(tmp_7);
|
|
4631
4631
|
}
|
|
4632
4632
|
var result = tmp_1;
|
|
4633
|
-
this.
|
|
4633
|
+
this.dow(result, 0, first, second);
|
|
4634
4634
|
var tmp_9;
|
|
4635
4635
|
if (possibleOverflow_0) {
|
|
4636
|
-
tmp_9 = this.
|
|
4636
|
+
tmp_9 = this.hos(result);
|
|
4637
4637
|
} else {
|
|
4638
4638
|
tmp_9 = result;
|
|
4639
4639
|
}
|
|
4640
4640
|
return tmp_9;
|
|
4641
4641
|
};
|
|
4642
|
-
protoOf(BigInteger63Arithmetic).
|
|
4643
|
-
var comparison = this.
|
|
4642
|
+
protoOf(BigInteger63Arithmetic).eow = function (first, second, firstStart, secondStart) {
|
|
4643
|
+
var comparison = this.cow(first, second, firstStart, secondStart);
|
|
4644
4644
|
var firstSize = firstStart + 1 | 0;
|
|
4645
4645
|
var secondSize = secondStart + 1 | 0;
|
|
4646
4646
|
var firstIsLarger = comparison === 1;
|
|
4647
4647
|
if (comparison === 0)
|
|
4648
|
-
return this.
|
|
4648
|
+
return this.qor_1;
|
|
4649
4649
|
if (secondSize === 1 && ULongArray__get_impl_pr71q9(second, 0) === _ULong___init__impl__c78o9k(0n)) {
|
|
4650
4650
|
return first;
|
|
4651
4651
|
}
|
|
@@ -4687,7 +4687,7 @@ protoOf(BigInteger63Arithmetic).sou = function (first, second, firstStart, secon
|
|
|
4687
4687
|
var tmp_3 = i;
|
|
4688
4688
|
var tmp0_1 = diff;
|
|
4689
4689
|
// Inline function 'kotlin.ULong.and' call
|
|
4690
|
-
var other_1 = this.
|
|
4690
|
+
var other_1 = this.xor_1;
|
|
4691
4691
|
var tmp$ret$6 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_1) & _ULong___get_data__impl__fggpzb(other_1));
|
|
4692
4692
|
ULongArray__set_impl_z19mvh(result, tmp_3, tmp$ret$6);
|
|
4693
4693
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -4703,7 +4703,7 @@ protoOf(BigInteger63Arithmetic).sou = function (first, second, firstStart, secon
|
|
|
4703
4703
|
var tmp_4 = i;
|
|
4704
4704
|
var tmp0_3 = diff;
|
|
4705
4705
|
// Inline function 'kotlin.ULong.and' call
|
|
4706
|
-
var other_3 = this.
|
|
4706
|
+
var other_3 = this.xor_1;
|
|
4707
4707
|
var tmp$ret$9 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_3) & _ULong___get_data__impl__fggpzb(other_3));
|
|
4708
4708
|
ULongArray__set_impl_z19mvh(result, tmp_4, tmp$ret$9);
|
|
4709
4709
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -4715,22 +4715,22 @@ protoOf(BigInteger63Arithmetic).sou = function (first, second, firstStart, secon
|
|
|
4715
4715
|
ULongArray__set_impl_z19mvh(result, i, ULongArray__get_impl_pr71q9(largerData, i));
|
|
4716
4716
|
i = i + 1 | 0;
|
|
4717
4717
|
}
|
|
4718
|
-
if (this.
|
|
4719
|
-
return this.
|
|
4718
|
+
if (this.pov(result) === (_ULongArray___get_size__impl__ju6dtr(result) - 1 | 0) && ULongArray__get_impl_pr71q9(result, 0) === _ULong___init__impl__c78o9k(0n)) {
|
|
4719
|
+
return this.qor_1;
|
|
4720
4720
|
}
|
|
4721
|
-
return this.
|
|
4721
|
+
return this.hos(result);
|
|
4722
4722
|
};
|
|
4723
|
-
protoOf(BigInteger63Arithmetic).
|
|
4724
|
-
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4725
|
-
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4726
|
-
return this.
|
|
4723
|
+
protoOf(BigInteger63Arithmetic).kos = function (first, second) {
|
|
4724
|
+
var firstStart = _ULongArray___get_size__impl__ju6dtr(first) - this.pov(first) | 0;
|
|
4725
|
+
var secondStart = _ULongArray___get_size__impl__ju6dtr(second) - this.pov(second) | 0;
|
|
4726
|
+
return this.eow(first, second, firstStart, secondStart);
|
|
4727
4727
|
};
|
|
4728
|
-
protoOf(BigInteger63Arithmetic).
|
|
4729
|
-
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4730
|
-
var secondCorrectedSize = _ULongArray___get_size__impl__ju6dtr(second) - this.
|
|
4728
|
+
protoOf(BigInteger63Arithmetic).ros = function (first, second) {
|
|
4729
|
+
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(first) - this.pov(first) | 0;
|
|
4730
|
+
var secondCorrectedSize = _ULongArray___get_size__impl__ju6dtr(second) - this.pov(second) | 0;
|
|
4731
4731
|
return multiplyWithCorrectedSize(this, first, second, firstCorrectedSize, secondCorrectedSize);
|
|
4732
4732
|
};
|
|
4733
|
-
protoOf(BigInteger63Arithmetic).
|
|
4733
|
+
protoOf(BigInteger63Arithmetic).fow = function (original, numberOfWords, value) {
|
|
4734
4734
|
// Inline function 'kotlin.ULongArray' call
|
|
4735
4735
|
var tmp = 0;
|
|
4736
4736
|
var tmp_0 = _ULongArray___get_size__impl__ju6dtr(original) + numberOfWords | 0;
|
|
@@ -4744,7 +4744,7 @@ protoOf(BigInteger63Arithmetic).tou = function (original, numberOfWords, value)
|
|
|
4744
4744
|
}
|
|
4745
4745
|
return _ULongArray___init__impl__twm1l3(tmp_1);
|
|
4746
4746
|
};
|
|
4747
|
-
protoOf(BigInteger63Arithmetic).
|
|
4747
|
+
protoOf(BigInteger63Arithmetic).cov = function (firstUnchecked, secondUnchecked) {
|
|
4748
4748
|
var tmp;
|
|
4749
4749
|
if (!((_ULongArray___get_size__impl__ju6dtr(firstUnchecked) % 3 | 0) === 0)) {
|
|
4750
4750
|
// Inline function 'kotlin.ULongArray' call
|
|
@@ -4791,10 +4791,10 @@ protoOf(BigInteger63Arithmetic).qot = function (firstUnchecked, secondUnchecked)
|
|
|
4791
4791
|
var secondLength = _ULongArray___get_size__impl__ju6dtr(second);
|
|
4792
4792
|
var tmp_9;
|
|
4793
4793
|
if (firstLength > secondLength) {
|
|
4794
|
-
var prepared = this.
|
|
4794
|
+
var prepared = this.fow(second, firstLength - secondLength | 0, _ULong___init__impl__c78o9k(0n));
|
|
4795
4795
|
tmp_9 = new Pair(new ULongArray(first), new ULongArray(prepared));
|
|
4796
4796
|
} else if (firstLength < secondLength) {
|
|
4797
|
-
var prepared_0 = this.
|
|
4797
|
+
var prepared_0 = this.fow(first, secondLength - firstLength | 0, _ULong___init__impl__c78o9k(0n));
|
|
4798
4798
|
tmp_9 = new Pair(new ULongArray(prepared_0), new ULongArray(second));
|
|
4799
4799
|
} else {
|
|
4800
4800
|
tmp_9 = new Pair(new ULongArray(first), new ULongArray(second));
|
|
@@ -4813,56 +4813,56 @@ protoOf(BigInteger63Arithmetic).qot = function (firstUnchecked, secondUnchecked)
|
|
|
4813
4813
|
var n0 = new SignedULongArray(toULongArray(slice(secondPrepared, until(0, extendedDigit))), true);
|
|
4814
4814
|
var n1 = new SignedULongArray(toULongArray(slice(secondPrepared, until(extendedDigit, imul(extendedDigit, 2)))), true);
|
|
4815
4815
|
var n2 = new SignedULongArray(toULongArray(slice(secondPrepared, until(imul(extendedDigit, 2), imul(extendedDigit, 3)))), true);
|
|
4816
|
-
var p0 = this.
|
|
4816
|
+
var p0 = this.kov(m0, m2);
|
|
4817
4817
|
var pe0 = m0;
|
|
4818
|
-
var pe1 = this.
|
|
4819
|
-
var pem1 = this.
|
|
4820
|
-
var doublePemM2 = this.
|
|
4821
|
-
var pem2 = this.
|
|
4818
|
+
var pe1 = this.kov(p0, m1);
|
|
4819
|
+
var pem1 = this.mov(p0, m1);
|
|
4820
|
+
var doublePemM2 = this.jov(this.kov(pem1, m2), this.fos_1);
|
|
4821
|
+
var pem2 = this.mov(doublePemM2, m0);
|
|
4822
4822
|
var pinf = m2;
|
|
4823
|
-
var q0 = this.
|
|
4823
|
+
var q0 = this.kov(n0, n2);
|
|
4824
4824
|
var qe0 = n0;
|
|
4825
|
-
var qe1 = this.
|
|
4826
|
-
var qem1 = this.
|
|
4827
|
-
var doubleQemN2 = this.
|
|
4828
|
-
var qem2 = this.
|
|
4825
|
+
var qe1 = this.kov(q0, n1);
|
|
4826
|
+
var qem1 = this.mov(q0, n1);
|
|
4827
|
+
var doubleQemN2 = this.jov(this.kov(qem1, n2), this.fos_1);
|
|
4828
|
+
var qem2 = this.mov(doubleQemN2, n0);
|
|
4829
4829
|
var qinf = n2;
|
|
4830
|
-
var re0 = this.
|
|
4831
|
-
var re1 = this.
|
|
4832
|
-
var rem1 = this.
|
|
4833
|
-
var rem2 = this.
|
|
4834
|
-
var rinf = this.
|
|
4830
|
+
var re0 = this.jov(pe0, qe0);
|
|
4831
|
+
var re1 = this.jov(pe1, qe1);
|
|
4832
|
+
var rem1 = this.jov(pem1, qem1);
|
|
4833
|
+
var rem2 = this.jov(pem2, qem2);
|
|
4834
|
+
var rinf = this.jov(pinf, qinf);
|
|
4835
4835
|
var r0 = re0;
|
|
4836
4836
|
var r4 = rinf;
|
|
4837
|
-
var rem2re1diff = this.
|
|
4837
|
+
var rem2re1diff = this.mov(rem2, re1);
|
|
4838
4838
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
4839
4839
|
var tmp$ret$11 = _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(3n)]));
|
|
4840
|
-
var r3 = this.
|
|
4841
|
-
var r1 = this.
|
|
4842
|
-
var r2 = this.
|
|
4843
|
-
r3 = this.
|
|
4844
|
-
r2 = this.
|
|
4845
|
-
r1 = this.
|
|
4840
|
+
var r3 = this.gow(rem2re1diff, new SignedULongArray(tmp$ret$11, true));
|
|
4841
|
+
var r1 = this.iov(this.mov(re1, rem1), 1);
|
|
4842
|
+
var r2 = this.mov(rem1, r0);
|
|
4843
|
+
r3 = this.kov(this.iov(this.mov(r2, r3), 1), this.jov(this.fos_1, rinf));
|
|
4844
|
+
r2 = this.mov(this.kov(r2, r1), r4);
|
|
4845
|
+
r1 = this.mov(r1, r3);
|
|
4846
4846
|
var bShiftAmount = imul(extendedDigit, 63);
|
|
4847
4847
|
var rb0 = r0;
|
|
4848
|
-
var rb1 = this.
|
|
4849
|
-
var rb2 = this.
|
|
4850
|
-
var rb3 = this.
|
|
4851
|
-
var rb4 = this.
|
|
4852
|
-
var rb = this.
|
|
4853
|
-
return rb.
|
|
4854
|
-
};
|
|
4855
|
-
protoOf(BigInteger63Arithmetic).
|
|
4856
|
-
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(first) - this.
|
|
4857
|
-
return this.
|
|
4858
|
-
};
|
|
4859
|
-
protoOf(BigInteger63Arithmetic).
|
|
4848
|
+
var rb1 = this.lov(r1, bShiftAmount);
|
|
4849
|
+
var rb2 = this.lov(r2, imul(bShiftAmount, 2));
|
|
4850
|
+
var rb3 = this.lov(r3, imul(bShiftAmount, 3));
|
|
4851
|
+
var rb4 = this.lov(r4, imul(bShiftAmount, 4));
|
|
4852
|
+
var rb = this.kov(this.kov(this.kov(this.kov(rb0, rb1), rb2), rb3), rb4);
|
|
4853
|
+
return rb.nov_1;
|
|
4854
|
+
};
|
|
4855
|
+
protoOf(BigInteger63Arithmetic).dov = function (first, second) {
|
|
4856
|
+
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(first) - this.pov(first) | 0;
|
|
4857
|
+
return this.how(first, second, firstCorrectedSize);
|
|
4858
|
+
};
|
|
4859
|
+
protoOf(BigInteger63Arithmetic).how = function (first, second, firstCorrectedSize) {
|
|
4860
4860
|
// Inline function 'kotlin.ULong.and' call
|
|
4861
|
-
var other = this.
|
|
4861
|
+
var other = this.zor_1;
|
|
4862
4862
|
var secondLow = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(second) & _ULong___get_data__impl__fggpzb(other));
|
|
4863
4863
|
// Inline function 'kotlin.ULong.shr' call
|
|
4864
4864
|
var secondHigh = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(second), 32));
|
|
4865
|
-
var requiredBits = this.
|
|
4865
|
+
var requiredBits = this.xov(first) + this.yov(second) | 0;
|
|
4866
4866
|
var tmp;
|
|
4867
4867
|
if (!((requiredBits % 63 | 0) === 0)) {
|
|
4868
4868
|
tmp = (requiredBits / 63 | 0) + 1 | 0;
|
|
@@ -4877,7 +4877,7 @@ protoOf(BigInteger63Arithmetic).vou = function (first, second, firstCorrectedSiz
|
|
|
4877
4877
|
while (i < firstCorrectedSize) {
|
|
4878
4878
|
var tmp0 = ULongArray__get_impl_pr71q9(first, i);
|
|
4879
4879
|
// Inline function 'kotlin.ULong.and' call
|
|
4880
|
-
var other_0 = this.
|
|
4880
|
+
var other_0 = this.zor_1;
|
|
4881
4881
|
var firstLow = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0) & _ULong___get_data__impl__fggpzb(other_0));
|
|
4882
4882
|
// Inline function 'kotlin.ULong.shr' call
|
|
4883
4883
|
var this_0 = ULongArray__get_impl_pr71q9(first, i);
|
|
@@ -4889,7 +4889,7 @@ protoOf(BigInteger63Arithmetic).vou = function (first, second, firstCorrectedSiz
|
|
|
4889
4889
|
var lowerCarry = _ULong___init__impl__c78o9k(shiftRightUnsigned(_ULong___get_data__impl__fggpzb(lowerProduct), 63));
|
|
4890
4890
|
var tmp0_0 = carryIntoNextRound;
|
|
4891
4891
|
// Inline function 'kotlin.ULong.and' call
|
|
4892
|
-
var other_1 = this.
|
|
4892
|
+
var other_1 = this.xor_1;
|
|
4893
4893
|
// Inline function 'kotlin.ULong.plus' call
|
|
4894
4894
|
var other_2 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(lowerProduct) & _ULong___get_data__impl__fggpzb(other_1));
|
|
4895
4895
|
var lowResult = _ULong___init__impl__c78o9k(add(_ULong___get_data__impl__fggpzb(tmp0_0), _ULong___get_data__impl__fggpzb(other_2)));
|
|
@@ -4901,7 +4901,7 @@ protoOf(BigInteger63Arithmetic).vou = function (first, second, firstCorrectedSiz
|
|
|
4901
4901
|
lowerCarry = _ULong___init__impl__c78o9k(add(_ULong___get_data__impl__fggpzb(tmp0_1), _ULong___get_data__impl__fggpzb(other_3)));
|
|
4902
4902
|
var tmp0_2 = lowResult;
|
|
4903
4903
|
// Inline function 'kotlin.ULong.and' call
|
|
4904
|
-
var other_4 = this.
|
|
4904
|
+
var other_4 = this.xor_1;
|
|
4905
4905
|
lowResult = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_2) & _ULong___get_data__impl__fggpzb(other_4));
|
|
4906
4906
|
// Inline function 'kotlin.ULong.times' call
|
|
4907
4907
|
var tmp0_3 = _ULong___init__impl__c78o9k(multiply(_ULong___get_data__impl__fggpzb(firstLow), _ULong___get_data__impl__fggpzb(secondHigh)));
|
|
@@ -4919,7 +4919,7 @@ protoOf(BigInteger63Arithmetic).vou = function (first, second, firstCorrectedSiz
|
|
|
4919
4919
|
// Inline function 'kotlin.ULong.shl' call
|
|
4920
4920
|
var tmp0_6 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(middleProduct), 32));
|
|
4921
4921
|
// Inline function 'kotlin.ULong.and' call
|
|
4922
|
-
var other_7 = this.
|
|
4922
|
+
var other_7 = this.xor_1;
|
|
4923
4923
|
// Inline function 'kotlin.ULong.plus' call
|
|
4924
4924
|
var other_8 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_6) & _ULong___get_data__impl__fggpzb(other_7));
|
|
4925
4925
|
lowResult = _ULong___init__impl__c78o9k(add(_ULong___get_data__impl__fggpzb(tmp0_5), _ULong___get_data__impl__fggpzb(other_8)));
|
|
@@ -4932,7 +4932,7 @@ protoOf(BigInteger63Arithmetic).vou = function (first, second, firstCorrectedSiz
|
|
|
4932
4932
|
var tmp_0 = j;
|
|
4933
4933
|
var tmp0_8 = lowResult;
|
|
4934
4934
|
// Inline function 'kotlin.ULong.and' call
|
|
4935
|
-
var other_10 = this.
|
|
4935
|
+
var other_10 = this.xor_1;
|
|
4936
4936
|
var tmp$ret$21 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_8) & _ULong___get_data__impl__fggpzb(other_10));
|
|
4937
4937
|
ULongArray__set_impl_z19mvh(result, tmp_0, tmp$ret$21);
|
|
4938
4938
|
var highResult = middleCarry;
|
|
@@ -4951,31 +4951,31 @@ protoOf(BigInteger63Arithmetic).vou = function (first, second, firstCorrectedSiz
|
|
|
4951
4951
|
}
|
|
4952
4952
|
return result;
|
|
4953
4953
|
};
|
|
4954
|
-
protoOf(BigInteger63Arithmetic).
|
|
4954
|
+
protoOf(BigInteger63Arithmetic).xos = function (base, exponent) {
|
|
4955
4955
|
if (exponent === 0n) {
|
|
4956
|
-
return this.
|
|
4956
|
+
return this.ror_1;
|
|
4957
4957
|
}
|
|
4958
4958
|
if (exponent === 1n) {
|
|
4959
4959
|
return base;
|
|
4960
4960
|
}
|
|
4961
|
-
if (_ULongArray___get_size__impl__ju6dtr(base) === 1 && ULongArray__get_impl_pr71q9(base, 0) === _ULong___init__impl__c78o9k(10n) && exponent < fromInt(this.
|
|
4962
|
-
return this.
|
|
4961
|
+
if (_ULongArray___get_size__impl__ju6dtr(base) === 1 && ULongArray__get_impl_pr71q9(base, 0) === _ULong___init__impl__c78o9k(10n) && exponent < fromInt(this.gos_1.length)) {
|
|
4962
|
+
return this.gos_1[convertToInt(exponent)].fs_1;
|
|
4963
4963
|
}
|
|
4964
|
-
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(base) - this.
|
|
4965
|
-
var helperVar = this.
|
|
4964
|
+
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(base) - this.pov(base) | 0;
|
|
4965
|
+
var helperVar = this.ror_1;
|
|
4966
4966
|
var exponentVar = exponent;
|
|
4967
4967
|
var baseVar = base;
|
|
4968
4968
|
while (exponentVar > 1n) {
|
|
4969
4969
|
// Inline function 'kotlin.Long.rem' call
|
|
4970
4970
|
var this_0 = exponentVar;
|
|
4971
4971
|
if (modulo(this_0, fromInt(2)) === 0n) {
|
|
4972
|
-
baseVar = this.
|
|
4972
|
+
baseVar = this.tov(baseVar, baseVar);
|
|
4973
4973
|
// Inline function 'kotlin.Long.div' call
|
|
4974
4974
|
var this_1 = exponentVar;
|
|
4975
4975
|
exponentVar = divide(this_1, fromInt(2));
|
|
4976
4976
|
} else {
|
|
4977
|
-
helperVar = this.
|
|
4978
|
-
baseVar = this.
|
|
4977
|
+
helperVar = this.tov(baseVar, helperVar);
|
|
4978
|
+
baseVar = this.tov(baseVar, baseVar);
|
|
4979
4979
|
// Inline function 'kotlin.Long.minus' call
|
|
4980
4980
|
var this_2 = exponentVar;
|
|
4981
4981
|
// Inline function 'kotlin.Long.div' call
|
|
@@ -4983,22 +4983,22 @@ protoOf(BigInteger63Arithmetic).lor = function (base, exponent) {
|
|
|
4983
4983
|
exponentVar = divide(this_3, fromInt(2));
|
|
4984
4984
|
}
|
|
4985
4985
|
}
|
|
4986
|
-
return this.
|
|
4986
|
+
return this.tov(helperVar, baseVar);
|
|
4987
4987
|
};
|
|
4988
|
-
protoOf(BigInteger63Arithmetic).
|
|
4988
|
+
protoOf(BigInteger63Arithmetic).iow = function (dividend, divisor) {
|
|
4989
4989
|
var divisorSize = _ULongArray___get_size__impl__ju6dtr(divisor);
|
|
4990
|
-
var normalizationShift = this.
|
|
4991
|
-
var divisorNormalized = this.
|
|
4992
|
-
var dividendNormalized = this.
|
|
4990
|
+
var normalizationShift = this.vov(ULongArray__get_impl_pr71q9(divisor, divisorSize - 1 | 0));
|
|
4991
|
+
var divisorNormalized = this.eov(divisor, normalizationShift);
|
|
4992
|
+
var dividendNormalized = this.eov(dividend, normalizationShift);
|
|
4993
4993
|
return new Triple(new ULongArray(dividendNormalized), new ULongArray(divisorNormalized), normalizationShift);
|
|
4994
4994
|
};
|
|
4995
|
-
protoOf(BigInteger63Arithmetic).
|
|
4996
|
-
var remainder = this.
|
|
4995
|
+
protoOf(BigInteger63Arithmetic).jow = function (remainderNormalized, normalizationShift) {
|
|
4996
|
+
var remainder = this.kow(remainderNormalized, normalizationShift);
|
|
4997
4997
|
return remainder;
|
|
4998
4998
|
};
|
|
4999
|
-
protoOf(BigInteger63Arithmetic).
|
|
5000
|
-
if (this.
|
|
5001
|
-
return new Pair(new ULongArray(this.
|
|
4999
|
+
protoOf(BigInteger63Arithmetic).low = function (unnormalizedDividend, unnormalizedDivisor) {
|
|
5000
|
+
if (this.zos(unnormalizedDivisor, unnormalizedDividend) > 0) {
|
|
5001
|
+
return new Pair(new ULongArray(this.qor_1), new ULongArray(unnormalizedDividend));
|
|
5002
5002
|
}
|
|
5003
5003
|
if (_ULongArray___get_size__impl__ju6dtr(unnormalizedDivisor) === 1 && _ULongArray___get_size__impl__ju6dtr(unnormalizedDividend) === 1) {
|
|
5004
5004
|
var tmp0 = ULongArray__get_impl_pr71q9(unnormalizedDividend, 0);
|
|
@@ -5007,35 +5007,35 @@ protoOf(BigInteger63Arithmetic).zou = function (unnormalizedDividend, unnormaliz
|
|
|
5007
5007
|
var tmp$ret$0 = ulongDivide(tmp0, other);
|
|
5008
5008
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5009
5009
|
var tmp$ret$1 = _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$0]));
|
|
5010
|
-
var tmp = this.
|
|
5010
|
+
var tmp = this.hos(tmp$ret$1);
|
|
5011
5011
|
var tmp0_0 = ULongArray__get_impl_pr71q9(unnormalizedDividend, 0);
|
|
5012
5012
|
// Inline function 'kotlin.ULong.rem' call
|
|
5013
5013
|
var other_0 = ULongArray__get_impl_pr71q9(unnormalizedDivisor, 0);
|
|
5014
5014
|
var tmp$ret$2 = ulongRemainder(tmp0_0, other_0);
|
|
5015
5015
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5016
5016
|
var tmp$ret$3 = _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$2]));
|
|
5017
|
-
return new Pair(new ULongArray(tmp), new ULongArray(this.
|
|
5017
|
+
return new Pair(new ULongArray(tmp), new ULongArray(this.hos(tmp$ret$3)));
|
|
5018
5018
|
}
|
|
5019
|
-
var bitPrecision = this.
|
|
5019
|
+
var bitPrecision = this.xov(unnormalizedDividend) - this.xov(unnormalizedDivisor) | 0;
|
|
5020
5020
|
if (bitPrecision === 0) {
|
|
5021
|
-
return new Pair(new ULongArray(this.
|
|
5021
|
+
return new Pair(new ULongArray(this.ror_1), new ULongArray(this.sov(unnormalizedDividend, unnormalizedDivisor)));
|
|
5022
5022
|
}
|
|
5023
|
-
var _destruct__k2r9zo = this.
|
|
5023
|
+
var _destruct__k2r9zo = this.iow(unnormalizedDividend, unnormalizedDivisor);
|
|
5024
5024
|
var dividend = _destruct__k2r9zo.dh().fs_1;
|
|
5025
5025
|
var divisor = _destruct__k2r9zo.eh().fs_1;
|
|
5026
5026
|
var normalizationShift = _destruct__k2r9zo.rq();
|
|
5027
5027
|
var dividendSize = _ULongArray___get_size__impl__ju6dtr(dividend);
|
|
5028
5028
|
var divisorSize = _ULongArray___get_size__impl__ju6dtr(divisor);
|
|
5029
|
-
var divisorCorrectedSize = _ULongArray___get_size__impl__ju6dtr(divisor) - this.
|
|
5029
|
+
var divisorCorrectedSize = _ULongArray___get_size__impl__ju6dtr(divisor) - this.pov(divisor) | 0;
|
|
5030
5030
|
var wordPrecision = dividendSize - divisorSize | 0;
|
|
5031
5031
|
var qjhat;
|
|
5032
5032
|
var reconstructedQuotient;
|
|
5033
5033
|
var quotient = _ULongArray___init__impl__twm1l3_0(wordPrecision);
|
|
5034
|
-
var divisorTimesBaseToPowerOfM = this.
|
|
5035
|
-
if (this.
|
|
5034
|
+
var divisorTimesBaseToPowerOfM = this.eov(divisor, imul(wordPrecision, this.vor_1));
|
|
5035
|
+
if (this.zos(dividend, divisorTimesBaseToPowerOfM) >= 0) {
|
|
5036
5036
|
quotient = _ULongArray___init__impl__twm1l3_0(wordPrecision + 1 | 0);
|
|
5037
5037
|
ULongArray__set_impl_z19mvh(quotient, wordPrecision, _ULong___init__impl__c78o9k(1n));
|
|
5038
|
-
dividend = this.
|
|
5038
|
+
dividend = this.sov(dividend, divisorTimesBaseToPowerOfM);
|
|
5039
5039
|
}
|
|
5040
5040
|
var inductionVariable = wordPrecision - 1 | 0;
|
|
5041
5041
|
if (0 <= inductionVariable)
|
|
@@ -5046,39 +5046,39 @@ protoOf(BigInteger63Arithmetic).zou = function (unnormalizedDividend, unnormaliz
|
|
|
5046
5046
|
if ((divisorSize + j | 0) < _ULongArray___get_size__impl__ju6dtr(dividend)) {
|
|
5047
5047
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5048
5048
|
var tmp$ret$4 = _ULongArray___init__impl__twm1l3(new BigInt64Array([ULongArray__get_impl_pr71q9(dividend, divisorSize + j | 0)]));
|
|
5049
|
-
tmp_0 = this.
|
|
5049
|
+
tmp_0 = this.mow(this.eov(tmp$ret$4, this.vor_1), ULongArray__get_impl_pr71q9(dividend, (divisorSize + j | 0) - 1 | 0));
|
|
5050
5050
|
} else {
|
|
5051
5051
|
var tmp_1;
|
|
5052
5052
|
if ((divisorSize + j | 0) === _ULongArray___get_size__impl__ju6dtr(dividend)) {
|
|
5053
5053
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5054
5054
|
tmp_1 = _ULongArray___init__impl__twm1l3(new BigInt64Array([ULongArray__get_impl_pr71q9(dividend, (divisorSize + j | 0) - 1 | 0)]));
|
|
5055
5055
|
} else {
|
|
5056
|
-
tmp_1 = this.
|
|
5056
|
+
tmp_1 = this.qor_1;
|
|
5057
5057
|
}
|
|
5058
5058
|
tmp_0 = tmp_1;
|
|
5059
5059
|
}
|
|
5060
5060
|
var twoDigit = tmp_0;
|
|
5061
5061
|
var tmp_2 = BigInteger32Arithmetic_getInstance();
|
|
5062
|
-
var tmp_3 = this.
|
|
5062
|
+
var tmp_3 = this.now(twoDigit);
|
|
5063
5063
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5064
5064
|
var tmp$ret$6 = _ULongArray___init__impl__twm1l3(new BigInt64Array([ULongArray__get_impl_pr71q9(divisor, divisorSize - 1 | 0)]));
|
|
5065
|
-
var convertedResult = tmp_2.
|
|
5066
|
-
qjhat = this.
|
|
5065
|
+
var convertedResult = tmp_2.wou(tmp_3, this.now(tmp$ret$6));
|
|
5066
|
+
qjhat = this.oow(convertedResult.first.ur_1);
|
|
5067
5067
|
var tmp_4 = quotient;
|
|
5068
5068
|
var tmp_5;
|
|
5069
5069
|
var tmp_6 = qjhat;
|
|
5070
|
-
var tmp0_1 = this.
|
|
5070
|
+
var tmp0_1 = this.xor_1;
|
|
5071
5071
|
// Inline function 'kotlin.ULong.minus' call
|
|
5072
5072
|
var other_1 = _ULong___init__impl__c78o9k(1n);
|
|
5073
5073
|
var tmp$ret$7 = _ULong___init__impl__c78o9k(subtract(_ULong___get_data__impl__fggpzb(tmp0_1), _ULong___get_data__impl__fggpzb(other_1)));
|
|
5074
|
-
if (this.
|
|
5074
|
+
if (this.pow(tmp_6, tmp$ret$7) < 0) {
|
|
5075
5075
|
tmp_5 = ULongArray__get_impl_pr71q9(qjhat, 0);
|
|
5076
5076
|
} else {
|
|
5077
|
-
tmp_5 = this.
|
|
5077
|
+
tmp_5 = this.xor_1;
|
|
5078
5078
|
}
|
|
5079
5079
|
ULongArray__set_impl_z19mvh(tmp_4, j, tmp_5);
|
|
5080
|
-
reconstructedQuotient = this.
|
|
5081
|
-
while (this.
|
|
5080
|
+
reconstructedQuotient = this.eov(this.how(divisor, ULongArray__get_impl_pr71q9(quotient, j), divisorCorrectedSize), imul(j, this.vor_1));
|
|
5081
|
+
while (this.zos(reconstructedQuotient, dividend) > 0) {
|
|
5082
5082
|
var tmp_7 = quotient;
|
|
5083
5083
|
var tmp0_2 = ULongArray__get_impl_pr71q9(quotient, j);
|
|
5084
5084
|
// Inline function 'kotlin.ULong.minus' call
|
|
@@ -5092,22 +5092,22 @@ protoOf(BigInteger63Arithmetic).zou = function (unnormalizedDividend, unnormaliz
|
|
|
5092
5092
|
var other_2 = _ULong___init__impl__c78o9k(tmp$ret$8);
|
|
5093
5093
|
var tmp$ret$12 = _ULong___init__impl__c78o9k(subtract(_ULong___get_data__impl__fggpzb(tmp0_2), _ULong___get_data__impl__fggpzb(other_2)));
|
|
5094
5094
|
ULongArray__set_impl_z19mvh(tmp_7, j, tmp$ret$12);
|
|
5095
|
-
reconstructedQuotient = this.
|
|
5095
|
+
reconstructedQuotient = this.eov(this.how(divisor, ULongArray__get_impl_pr71q9(quotient, j), divisorCorrectedSize), imul(j, this.vor_1));
|
|
5096
5096
|
}
|
|
5097
|
-
dividend = this.
|
|
5097
|
+
dividend = this.sov(dividend, reconstructedQuotient);
|
|
5098
5098
|
}
|
|
5099
5099
|
while (0 <= inductionVariable);
|
|
5100
|
-
while (this.
|
|
5101
|
-
quotient = this.
|
|
5102
|
-
dividend = this.
|
|
5100
|
+
while (this.zos(dividend, divisor) >= 0) {
|
|
5101
|
+
quotient = this.mow(quotient, _ULong___init__impl__c78o9k(1n));
|
|
5102
|
+
dividend = this.sov(dividend, divisor);
|
|
5103
5103
|
}
|
|
5104
|
-
var denormRemainder = this.
|
|
5105
|
-
return new Pair(new ULongArray(this.
|
|
5104
|
+
var denormRemainder = this.jow(dividend, normalizationShift);
|
|
5105
|
+
return new Pair(new ULongArray(this.hos(quotient)), new ULongArray(denormRemainder));
|
|
5106
5106
|
};
|
|
5107
|
-
protoOf(BigInteger63Arithmetic).
|
|
5107
|
+
protoOf(BigInteger63Arithmetic).qow = function (operand) {
|
|
5108
5108
|
if (isZero(this, operand))
|
|
5109
|
-
return this.
|
|
5110
|
-
var length = this.
|
|
5109
|
+
return this.qor_1;
|
|
5110
|
+
var length = this.xov(operand);
|
|
5111
5111
|
var tmp;
|
|
5112
5112
|
if ((length % 64 | 0) === 0) {
|
|
5113
5113
|
tmp = length / 64 | 0;
|
|
@@ -5144,10 +5144,10 @@ protoOf(BigInteger63Arithmetic).eov = function (operand) {
|
|
|
5144
5144
|
}
|
|
5145
5145
|
}
|
|
5146
5146
|
while (inductionVariable < requiredLength);
|
|
5147
|
-
return this.
|
|
5147
|
+
return this.hos(result);
|
|
5148
5148
|
};
|
|
5149
|
-
protoOf(BigInteger63Arithmetic).
|
|
5150
|
-
var power64Representation = this.
|
|
5149
|
+
protoOf(BigInteger63Arithmetic).row = function (operand) {
|
|
5150
|
+
var power64Representation = this.qow(operand);
|
|
5151
5151
|
var result = _UIntArray___init__impl__ghjpc6(imul(_ULongArray___get_size__impl__ju6dtr(power64Representation), 2));
|
|
5152
5152
|
var inductionVariable = 0;
|
|
5153
5153
|
var last = _ULongArray___get_size__impl__ju6dtr(power64Representation);
|
|
@@ -5158,7 +5158,7 @@ protoOf(BigInteger63Arithmetic).fov = function (operand) {
|
|
|
5158
5158
|
var tmp = imul(2, i);
|
|
5159
5159
|
var tmp0 = ULongArray__get_impl_pr71q9(power64Representation, i);
|
|
5160
5160
|
// Inline function 'kotlin.UInt.toULong' call
|
|
5161
|
-
var this_0 = BigInteger32Arithmetic_getInstance().
|
|
5161
|
+
var this_0 = BigInteger32Arithmetic_getInstance().xot_1;
|
|
5162
5162
|
// Inline function 'kotlin.uintToULong' call
|
|
5163
5163
|
// Inline function 'kotlin.uintToLong' call
|
|
5164
5164
|
var value = _UInt___get_data__impl__f0vqqw(this_0);
|
|
@@ -5182,11 +5182,11 @@ protoOf(BigInteger63Arithmetic).fov = function (operand) {
|
|
|
5182
5182
|
UIntArray__set_impl_7f2zu2(result, tmp_0, tmp$ret$8);
|
|
5183
5183
|
}
|
|
5184
5184
|
while (inductionVariable < last);
|
|
5185
|
-
return BigInteger32Arithmetic_getInstance().
|
|
5185
|
+
return BigInteger32Arithmetic_getInstance().kou(result);
|
|
5186
5186
|
};
|
|
5187
|
-
protoOf(BigInteger63Arithmetic).
|
|
5187
|
+
protoOf(BigInteger63Arithmetic).sow = function (operand) {
|
|
5188
5188
|
if (_UIntArray___get_size__impl__r6l8ci(operand) === 0) {
|
|
5189
|
-
return this.
|
|
5189
|
+
return this.qor_1;
|
|
5190
5190
|
}
|
|
5191
5191
|
if (_UIntArray___get_size__impl__r6l8ci(operand) === 1) {
|
|
5192
5192
|
// Inline function 'kotlin.UInt.toULong' call
|
|
@@ -5199,7 +5199,7 @@ protoOf(BigInteger63Arithmetic).gov = function (operand) {
|
|
|
5199
5199
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5200
5200
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$2]));
|
|
5201
5201
|
}
|
|
5202
|
-
var length = BigInteger32Arithmetic_getInstance().
|
|
5202
|
+
var length = BigInteger32Arithmetic_getInstance().iou(operand);
|
|
5203
5203
|
var tmp;
|
|
5204
5204
|
if ((length % 63 | 0) === 0) {
|
|
5205
5205
|
tmp = length / 63 | 0;
|
|
@@ -5235,7 +5235,7 @@ protoOf(BigInteger63Arithmetic).gov = function (operand) {
|
|
|
5235
5235
|
var this_3 = _ULong___init__impl__c78o9k(tmp$ret$7);
|
|
5236
5236
|
var tmp0_0 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_3), 32));
|
|
5237
5237
|
// Inline function 'kotlin.ULong.and' call
|
|
5238
|
-
var other = this.
|
|
5238
|
+
var other = this.aos_1;
|
|
5239
5239
|
// Inline function 'kotlin.ULong.or' call
|
|
5240
5240
|
var other_0 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_0) & _ULong___get_data__impl__fggpzb(other));
|
|
5241
5241
|
var tmp$ret$12 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0) | _ULong___get_data__impl__fggpzb(other_0));
|
|
@@ -5328,7 +5328,7 @@ protoOf(BigInteger63Arithmetic).gov = function (operand) {
|
|
|
5328
5328
|
var this_18 = _ULong___init__impl__c78o9k(tmp$ret$43);
|
|
5329
5329
|
var tmp0_5 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_18), 32));
|
|
5330
5330
|
// Inline function 'kotlin.ULong.and' call
|
|
5331
|
-
var other_4 = this.
|
|
5331
|
+
var other_4 = this.aos_1;
|
|
5332
5332
|
// Inline function 'kotlin.ULong.or' call
|
|
5333
5333
|
var other_5 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_5) & _ULong___get_data__impl__fggpzb(other_4));
|
|
5334
5334
|
var tmp$ret$48 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_4) | _ULong___get_data__impl__fggpzb(other_5));
|
|
@@ -5366,7 +5366,7 @@ protoOf(BigInteger63Arithmetic).gov = function (operand) {
|
|
|
5366
5366
|
var bitCount_0 = 32 + shiftAmount | 0;
|
|
5367
5367
|
var tmp0_10 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(tmp0_9), bitCount_0));
|
|
5368
5368
|
// Inline function 'kotlin.ULong.and' call
|
|
5369
|
-
var other_7 = this.
|
|
5369
|
+
var other_7 = this.aos_1;
|
|
5370
5370
|
// Inline function 'kotlin.ULong.or' call
|
|
5371
5371
|
var other_8 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_10) & _ULong___get_data__impl__fggpzb(other_7));
|
|
5372
5372
|
var tmp$ret$63 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_8) | _ULong___get_data__impl__fggpzb(other_8));
|
|
@@ -5414,15 +5414,15 @@ protoOf(BigInteger63Arithmetic).gov = function (operand) {
|
|
|
5414
5414
|
while (inductionVariable < requiredLength);
|
|
5415
5415
|
return result;
|
|
5416
5416
|
};
|
|
5417
|
-
protoOf(BigInteger63Arithmetic).
|
|
5417
|
+
protoOf(BigInteger63Arithmetic).tow = function (operand) {
|
|
5418
5418
|
if (_ULongArray___get_size__impl__ju6dtr(operand) === 0) {
|
|
5419
|
-
return this.
|
|
5419
|
+
return this.qor_1;
|
|
5420
5420
|
}
|
|
5421
5421
|
if (_ULongArray___get_size__impl__ju6dtr(operand) === 1) {
|
|
5422
5422
|
var result = _ULongArray___init__impl__twm1l3_0(2);
|
|
5423
5423
|
var tmp0 = ULongArray__get_impl_pr71q9(operand, 0);
|
|
5424
5424
|
// Inline function 'kotlin.ULong.and' call
|
|
5425
|
-
var other = this.
|
|
5425
|
+
var other = this.xor_1;
|
|
5426
5426
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0) & _ULong___get_data__impl__fggpzb(other));
|
|
5427
5427
|
ULongArray__set_impl_z19mvh(result, 0, tmp$ret$0);
|
|
5428
5428
|
// Inline function 'kotlin.ULong.shr' call
|
|
@@ -5431,7 +5431,7 @@ protoOf(BigInteger63Arithmetic).hov = function (operand) {
|
|
|
5431
5431
|
ULongArray__set_impl_z19mvh(result, 1, tmp$ret$1);
|
|
5432
5432
|
return result;
|
|
5433
5433
|
}
|
|
5434
|
-
var length = this.
|
|
5434
|
+
var length = this.zov(operand);
|
|
5435
5435
|
var tmp;
|
|
5436
5436
|
if ((length % 63 | 0) === 0) {
|
|
5437
5437
|
tmp = length / 63 | 0;
|
|
@@ -5443,7 +5443,7 @@ protoOf(BigInteger63Arithmetic).hov = function (operand) {
|
|
|
5443
5443
|
var result_0 = _ULongArray___init__impl__twm1l3_0(2);
|
|
5444
5444
|
var tmp0_0 = ULongArray__get_impl_pr71q9(operand, 0);
|
|
5445
5445
|
// Inline function 'kotlin.ULong.and' call
|
|
5446
|
-
var other_0 = this.
|
|
5446
|
+
var other_0 = this.xor_1;
|
|
5447
5447
|
var tmp$ret$2 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_0) & _ULong___get_data__impl__fggpzb(other_0));
|
|
5448
5448
|
ULongArray__set_impl_z19mvh(result_0, 0, tmp$ret$2);
|
|
5449
5449
|
// Inline function 'kotlin.ULong.shl' call
|
|
@@ -5470,7 +5470,7 @@ protoOf(BigInteger63Arithmetic).hov = function (operand) {
|
|
|
5470
5470
|
if (i === 0) {
|
|
5471
5471
|
var tmp0_2 = ULongArray__get_impl_pr71q9(operand, 0);
|
|
5472
5472
|
// Inline function 'kotlin.ULong.and' call
|
|
5473
|
-
var other_2 = this.
|
|
5473
|
+
var other_2 = this.xor_1;
|
|
5474
5474
|
var tmp$ret$6 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_2) & _ULong___get_data__impl__fggpzb(other_2));
|
|
5475
5475
|
ULongArray__set_impl_z19mvh(result_1, i, tmp$ret$6);
|
|
5476
5476
|
} else if (1 <= i ? i < (requiredLength - 1 | 0) : false) {
|
|
@@ -5486,14 +5486,14 @@ protoOf(BigInteger63Arithmetic).hov = function (operand) {
|
|
|
5486
5486
|
var other_3 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_3), shiftAmount));
|
|
5487
5487
|
var tmp0_5 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_4) | _ULong___get_data__impl__fggpzb(other_3));
|
|
5488
5488
|
// Inline function 'kotlin.ULong.and' call
|
|
5489
|
-
var other_4 = this.
|
|
5489
|
+
var other_4 = this.xor_1;
|
|
5490
5490
|
tmp_0 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_5) & _ULong___get_data__impl__fggpzb(other_4));
|
|
5491
5491
|
} else {
|
|
5492
5492
|
// Inline function 'kotlin.ULong.shl' call
|
|
5493
5493
|
var this_4 = ULongArray__get_impl_pr71q9(operand, position);
|
|
5494
5494
|
var tmp0_6 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_4), shiftAmount));
|
|
5495
5495
|
// Inline function 'kotlin.ULong.and' call
|
|
5496
|
-
var other_5 = this.
|
|
5496
|
+
var other_5 = this.xor_1;
|
|
5497
5497
|
tmp_0 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_6) & _ULong___get_data__impl__fggpzb(other_5));
|
|
5498
5498
|
}
|
|
5499
5499
|
ULongArray__set_impl_z19mvh(result_1, i, tmp_0);
|
|
@@ -5511,14 +5511,14 @@ protoOf(BigInteger63Arithmetic).hov = function (operand) {
|
|
|
5511
5511
|
var other_6 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_5), shiftAmount));
|
|
5512
5512
|
var tmp0_9 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_8) | _ULong___get_data__impl__fggpzb(other_6));
|
|
5513
5513
|
// Inline function 'kotlin.ULong.and' call
|
|
5514
|
-
var other_7 = this.
|
|
5514
|
+
var other_7 = this.xor_1;
|
|
5515
5515
|
tmp_1 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_9) & _ULong___get_data__impl__fggpzb(other_7));
|
|
5516
5516
|
} else {
|
|
5517
5517
|
// Inline function 'kotlin.ULong.shl' call
|
|
5518
5518
|
var this_6 = ULongArray__get_impl_pr71q9(operand, position);
|
|
5519
5519
|
var tmp0_10 = _ULong___init__impl__c78o9k(shiftLeft(_ULong___get_data__impl__fggpzb(this_6), shiftAmount));
|
|
5520
5520
|
// Inline function 'kotlin.ULong.and' call
|
|
5521
|
-
var other_8 = this.
|
|
5521
|
+
var other_8 = this.xor_1;
|
|
5522
5522
|
tmp_1 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0_10) & _ULong___get_data__impl__fggpzb(other_8));
|
|
5523
5523
|
}
|
|
5524
5524
|
ULongArray__set_impl_z19mvh(result_1, i, tmp_1);
|
|
@@ -5539,32 +5539,32 @@ protoOf(BigInteger63Arithmetic).hov = function (operand) {
|
|
|
5539
5539
|
while (inductionVariable < requiredLength);
|
|
5540
5540
|
return result_1;
|
|
5541
5541
|
};
|
|
5542
|
-
protoOf(BigInteger63Arithmetic).
|
|
5543
|
-
return this.
|
|
5542
|
+
protoOf(BigInteger63Arithmetic).tos = function (first, second) {
|
|
5543
|
+
return this.low(first, second);
|
|
5544
5544
|
};
|
|
5545
|
-
protoOf(BigInteger63Arithmetic).
|
|
5545
|
+
protoOf(BigInteger63Arithmetic).kov = function (_this__u8e3s4, other) {
|
|
5546
5546
|
return signedAdd(this, _this__u8e3s4, other);
|
|
5547
5547
|
};
|
|
5548
|
-
protoOf(BigInteger63Arithmetic).
|
|
5548
|
+
protoOf(BigInteger63Arithmetic).mov = function (_this__u8e3s4, other) {
|
|
5549
5549
|
return signedSubtract(this, _this__u8e3s4, other);
|
|
5550
5550
|
};
|
|
5551
|
-
protoOf(BigInteger63Arithmetic).
|
|
5551
|
+
protoOf(BigInteger63Arithmetic).jov = function (_this__u8e3s4, other) {
|
|
5552
5552
|
return signedMultiply(this, _this__u8e3s4, other);
|
|
5553
5553
|
};
|
|
5554
|
-
protoOf(BigInteger63Arithmetic).
|
|
5554
|
+
protoOf(BigInteger63Arithmetic).gow = function (_this__u8e3s4, other) {
|
|
5555
5555
|
return signedDivide(this, _this__u8e3s4, other);
|
|
5556
5556
|
};
|
|
5557
|
-
protoOf(BigInteger63Arithmetic).
|
|
5558
|
-
return new SignedULongArray(this.
|
|
5557
|
+
protoOf(BigInteger63Arithmetic).iov = function (_this__u8e3s4, places) {
|
|
5558
|
+
return new SignedULongArray(this.kow(_this__u8e3s4.nov_1, places), _this__u8e3s4.oov_1);
|
|
5559
5559
|
};
|
|
5560
|
-
protoOf(BigInteger63Arithmetic).
|
|
5561
|
-
return new SignedULongArray(this.
|
|
5560
|
+
protoOf(BigInteger63Arithmetic).lov = function (_this__u8e3s4, places) {
|
|
5561
|
+
return new SignedULongArray(this.eov(_this__u8e3s4.nov_1, places), _this__u8e3s4.oov_1);
|
|
5562
5562
|
};
|
|
5563
|
-
protoOf(BigInteger63Arithmetic).
|
|
5564
|
-
return new SignedULongArray(this.
|
|
5563
|
+
protoOf(BigInteger63Arithmetic).hov = function (_this__u8e3s4, operand) {
|
|
5564
|
+
return new SignedULongArray(this.uow(_this__u8e3s4.nov_1, operand), _this__u8e3s4.oov_1);
|
|
5565
5565
|
};
|
|
5566
|
-
protoOf(BigInteger63Arithmetic).
|
|
5567
|
-
var parsed = this.
|
|
5566
|
+
protoOf(BigInteger63Arithmetic).cor = function (number, base) {
|
|
5567
|
+
var parsed = this.qor_1;
|
|
5568
5568
|
// Inline function 'kotlin.text.toLowerCase' call
|
|
5569
5569
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5570
5570
|
// Inline function 'kotlin.text.forEach' call
|
|
@@ -5578,15 +5578,15 @@ protoOf(BigInteger63Arithmetic).qop = function (number, base) {
|
|
|
5578
5578
|
var tmp_1 = parsed;
|
|
5579
5579
|
// Inline function 'kotlin.toULong' call
|
|
5580
5580
|
var tmp$ret$2 = _ULong___init__impl__c78o9k(fromInt(base));
|
|
5581
|
-
var tmp_2 = tmp_0.
|
|
5581
|
+
var tmp_2 = tmp_0.vow(tmp_1, tmp$ret$2);
|
|
5582
5582
|
// Inline function 'kotlin.toULong' call
|
|
5583
5583
|
var this_0 = toDigit(element, base);
|
|
5584
5584
|
var tmp$ret$3 = _ULong___init__impl__c78o9k(fromInt(this_0));
|
|
5585
|
-
parsed = tmp.
|
|
5585
|
+
parsed = tmp.mow(tmp_2, tmp$ret$3);
|
|
5586
5586
|
}
|
|
5587
|
-
return this.
|
|
5587
|
+
return this.hos(parsed);
|
|
5588
5588
|
};
|
|
5589
|
-
protoOf(BigInteger63Arithmetic).
|
|
5589
|
+
protoOf(BigInteger63Arithmetic).dot = function (operand, base) {
|
|
5590
5590
|
// Inline function 'kotlin.collections.copyOf' call
|
|
5591
5591
|
var copy = _ULongArray___init__impl__twm1l3(copyOf(_ULongArray___get_storage__impl__28e64j(operand)));
|
|
5592
5592
|
// Inline function 'kotlin.toULong' call
|
|
@@ -5594,8 +5594,8 @@ protoOf(BigInteger63Arithmetic).ror = function (operand, base) {
|
|
|
5594
5594
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5595
5595
|
var baseArray = _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$1]));
|
|
5596
5596
|
var stringBuilder = StringBuilder_init_$Create$();
|
|
5597
|
-
while (!equals(copy, this.
|
|
5598
|
-
var divremResult = this.
|
|
5597
|
+
while (!equals(copy, this.qor_1)) {
|
|
5598
|
+
var divremResult = this.wow(copy, baseArray);
|
|
5599
5599
|
if (ULongArray__isEmpty_impl_c3yngu(divremResult.second.fs_1)) {
|
|
5600
5600
|
stringBuilder.bd(0);
|
|
5601
5601
|
} else {
|
|
@@ -5607,7 +5607,7 @@ protoOf(BigInteger63Arithmetic).ror = function (operand, base) {
|
|
|
5607
5607
|
var this_0 = stringBuilder.toString();
|
|
5608
5608
|
return toString(reversed(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
5609
5609
|
};
|
|
5610
|
-
protoOf(BigInteger63Arithmetic).
|
|
5610
|
+
protoOf(BigInteger63Arithmetic).uow = function (operand, mask) {
|
|
5611
5611
|
var tmp;
|
|
5612
5612
|
if (_ULongArray___get_size__impl__ju6dtr(operand) > _ULongArray___get_size__impl__ju6dtr(mask)) {
|
|
5613
5613
|
tmp = new Pair(new ULongArray(operand), new ULongArray(mask));
|
|
@@ -5633,61 +5633,61 @@ protoOf(BigInteger63Arithmetic).iov = function (operand, mask) {
|
|
|
5633
5633
|
}
|
|
5634
5634
|
return _ULongArray___init__impl__twm1l3(tmp_2);
|
|
5635
5635
|
};
|
|
5636
|
-
protoOf(BigInteger63Arithmetic).
|
|
5637
|
-
return this.
|
|
5636
|
+
protoOf(BigInteger63Arithmetic).eov = function (_this__u8e3s4, places) {
|
|
5637
|
+
return this.bow(_this__u8e3s4, places);
|
|
5638
5638
|
};
|
|
5639
|
-
protoOf(BigInteger63Arithmetic).
|
|
5640
|
-
return this.
|
|
5639
|
+
protoOf(BigInteger63Arithmetic).kow = function (_this__u8e3s4, places) {
|
|
5640
|
+
return this.bot(_this__u8e3s4, places);
|
|
5641
5641
|
};
|
|
5642
|
-
protoOf(BigInteger63Arithmetic).
|
|
5643
|
-
return this.
|
|
5642
|
+
protoOf(BigInteger63Arithmetic).fov = function (_this__u8e3s4, other) {
|
|
5643
|
+
return this.los(_this__u8e3s4, other);
|
|
5644
5644
|
};
|
|
5645
|
-
protoOf(BigInteger63Arithmetic).
|
|
5646
|
-
return this.
|
|
5645
|
+
protoOf(BigInteger63Arithmetic).sov = function (_this__u8e3s4, other) {
|
|
5646
|
+
return this.kos(_this__u8e3s4, other);
|
|
5647
5647
|
};
|
|
5648
|
-
protoOf(BigInteger63Arithmetic).
|
|
5649
|
-
return this.
|
|
5648
|
+
protoOf(BigInteger63Arithmetic).tov = function (_this__u8e3s4, other) {
|
|
5649
|
+
return this.ros(_this__u8e3s4, other);
|
|
5650
5650
|
};
|
|
5651
|
-
protoOf(BigInteger63Arithmetic).
|
|
5651
|
+
protoOf(BigInteger63Arithmetic).mow = function (_this__u8e3s4, other) {
|
|
5652
5652
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5653
5653
|
var tmp$ret$0 = _ULongArray___init__impl__twm1l3(new BigInt64Array([other]));
|
|
5654
|
-
return this.
|
|
5654
|
+
return this.los(_this__u8e3s4, tmp$ret$0);
|
|
5655
5655
|
};
|
|
5656
|
-
protoOf(BigInteger63Arithmetic).
|
|
5656
|
+
protoOf(BigInteger63Arithmetic).gov = function (_this__u8e3s4, other) {
|
|
5657
5657
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5658
5658
|
var tmp$ret$0 = _ULongArray___init__impl__twm1l3(new BigInt64Array([other]));
|
|
5659
|
-
return this.
|
|
5659
|
+
return this.kos(_this__u8e3s4, tmp$ret$0);
|
|
5660
5660
|
};
|
|
5661
|
-
protoOf(BigInteger63Arithmetic).
|
|
5662
|
-
return this.
|
|
5661
|
+
protoOf(BigInteger63Arithmetic).vow = function (_this__u8e3s4, other) {
|
|
5662
|
+
return this.dov(_this__u8e3s4, other);
|
|
5663
5663
|
};
|
|
5664
|
-
protoOf(BigInteger63Arithmetic).
|
|
5665
|
-
return this.
|
|
5664
|
+
protoOf(BigInteger63Arithmetic).uov = function (_this__u8e3s4, other) {
|
|
5665
|
+
return this.tos(_this__u8e3s4, other).first.fs_1;
|
|
5666
5666
|
};
|
|
5667
|
-
protoOf(BigInteger63Arithmetic).
|
|
5668
|
-
return this.
|
|
5667
|
+
protoOf(BigInteger63Arithmetic).wow = function (_this__u8e3s4, other) {
|
|
5668
|
+
return this.tos(_this__u8e3s4, other);
|
|
5669
5669
|
};
|
|
5670
|
-
protoOf(BigInteger63Arithmetic).
|
|
5671
|
-
return this.
|
|
5670
|
+
protoOf(BigInteger63Arithmetic).zos = function (_this__u8e3s4, other) {
|
|
5671
|
+
return this.nor(_this__u8e3s4, other);
|
|
5672
5672
|
};
|
|
5673
|
-
protoOf(BigInteger63Arithmetic).
|
|
5673
|
+
protoOf(BigInteger63Arithmetic).pow = function (_this__u8e3s4, other) {
|
|
5674
5674
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5675
5675
|
var tmp$ret$0 = _ULongArray___init__impl__twm1l3(new BigInt64Array([other]));
|
|
5676
|
-
return this.
|
|
5676
|
+
return this.nor(_this__u8e3s4, tmp$ret$0);
|
|
5677
5677
|
};
|
|
5678
|
-
protoOf(BigInteger63Arithmetic).
|
|
5679
|
-
return this.
|
|
5678
|
+
protoOf(BigInteger63Arithmetic).now = function (_this__u8e3s4) {
|
|
5679
|
+
return this.row(_this__u8e3s4);
|
|
5680
5680
|
};
|
|
5681
|
-
protoOf(BigInteger63Arithmetic).
|
|
5682
|
-
return this.
|
|
5681
|
+
protoOf(BigInteger63Arithmetic).oow = function (_this__u8e3s4) {
|
|
5682
|
+
return this.sow(_this__u8e3s4);
|
|
5683
5683
|
};
|
|
5684
|
-
protoOf(BigInteger63Arithmetic).
|
|
5684
|
+
protoOf(BigInteger63Arithmetic).eor = function (uLong) {
|
|
5685
5685
|
var tmp;
|
|
5686
5686
|
// Inline function 'kotlin.ULong.and' call
|
|
5687
|
-
var other = this.
|
|
5687
|
+
var other = this.bos_1;
|
|
5688
5688
|
if (!(_ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(uLong) & _ULong___get_data__impl__fggpzb(other)) === _ULong___init__impl__c78o9k(0n))) {
|
|
5689
5689
|
// Inline function 'kotlin.ULong.and' call
|
|
5690
|
-
var other_0 = this.
|
|
5690
|
+
var other_0 = this.xor_1;
|
|
5691
5691
|
var tmp$ret$1 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(uLong) & _ULong___get_data__impl__fggpzb(other_0));
|
|
5692
5692
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5693
5693
|
tmp = _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$1, _ULong___init__impl__c78o9k(1n)]));
|
|
@@ -5697,7 +5697,7 @@ protoOf(BigInteger63Arithmetic).sop = function (uLong) {
|
|
|
5697
5697
|
}
|
|
5698
5698
|
return tmp;
|
|
5699
5699
|
};
|
|
5700
|
-
protoOf(BigInteger63Arithmetic).
|
|
5700
|
+
protoOf(BigInteger63Arithmetic).gor = function (uInt) {
|
|
5701
5701
|
// Inline function 'kotlin.UInt.toULong' call
|
|
5702
5702
|
// Inline function 'kotlin.uintToULong' call
|
|
5703
5703
|
// Inline function 'kotlin.uintToLong' call
|
|
@@ -5707,19 +5707,19 @@ protoOf(BigInteger63Arithmetic).uop = function (uInt) {
|
|
|
5707
5707
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5708
5708
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$2]));
|
|
5709
5709
|
};
|
|
5710
|
-
protoOf(BigInteger63Arithmetic).
|
|
5710
|
+
protoOf(BigInteger63Arithmetic).ior = function (uShort) {
|
|
5711
5711
|
// Inline function 'kotlin.UShort.toULong' call
|
|
5712
5712
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(fromInt(_UShort___get_data__impl__g0245(uShort)) & 65535n);
|
|
5713
5713
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5714
5714
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$0]));
|
|
5715
5715
|
};
|
|
5716
|
-
protoOf(BigInteger63Arithmetic).
|
|
5716
|
+
protoOf(BigInteger63Arithmetic).kor = function (uByte) {
|
|
5717
5717
|
// Inline function 'kotlin.UByte.toULong' call
|
|
5718
5718
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(fromInt(_UByte___get_data__impl__jof9qr(uByte)) & 255n);
|
|
5719
5719
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5720
5720
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$0]));
|
|
5721
5721
|
};
|
|
5722
|
-
protoOf(BigInteger63Arithmetic).
|
|
5722
|
+
protoOf(BigInteger63Arithmetic).uoq = function (long) {
|
|
5723
5723
|
if (long === -9223372036854775808n) {
|
|
5724
5724
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5725
5725
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([_ULong___init__impl__c78o9k(0n), _ULong___init__impl__c78o9k(1n)]));
|
|
@@ -5729,12 +5729,12 @@ protoOf(BigInteger63Arithmetic).iop = function (long) {
|
|
|
5729
5729
|
var this_0 = abs(long);
|
|
5730
5730
|
var tmp0 = _ULong___init__impl__c78o9k(this_0);
|
|
5731
5731
|
// Inline function 'kotlin.ULong.and' call
|
|
5732
|
-
var other = this.
|
|
5732
|
+
var other = this.xor_1;
|
|
5733
5733
|
var tmp$ret$3 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0) & _ULong___get_data__impl__fggpzb(other));
|
|
5734
5734
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5735
5735
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$3]));
|
|
5736
5736
|
};
|
|
5737
|
-
protoOf(BigInteger63Arithmetic).
|
|
5737
|
+
protoOf(BigInteger63Arithmetic).voq = function (int) {
|
|
5738
5738
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
5739
5739
|
var this_0 = fromInt(int);
|
|
5740
5740
|
// Inline function 'kotlin.toULong' call
|
|
@@ -5743,7 +5743,7 @@ protoOf(BigInteger63Arithmetic).jop = function (int) {
|
|
|
5743
5743
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5744
5744
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$1]));
|
|
5745
5745
|
};
|
|
5746
|
-
protoOf(BigInteger63Arithmetic).
|
|
5746
|
+
protoOf(BigInteger63Arithmetic).woq = function (short) {
|
|
5747
5747
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
5748
5748
|
// Inline function 'kotlin.toULong' call
|
|
5749
5749
|
var this_0 = abs_0(short);
|
|
@@ -5751,7 +5751,7 @@ protoOf(BigInteger63Arithmetic).kop = function (short) {
|
|
|
5751
5751
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5752
5752
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$1]));
|
|
5753
5753
|
};
|
|
5754
|
-
protoOf(BigInteger63Arithmetic).
|
|
5754
|
+
protoOf(BigInteger63Arithmetic).xoq = function (byte) {
|
|
5755
5755
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
5756
5756
|
// Inline function 'kotlin.toULong' call
|
|
5757
5757
|
var this_0 = abs_0(byte);
|
|
@@ -5759,7 +5759,7 @@ protoOf(BigInteger63Arithmetic).lop = function (byte) {
|
|
|
5759
5759
|
// Inline function 'kotlin.ulongArrayOf' call
|
|
5760
5760
|
return _ULongArray___init__impl__twm1l3(new BigInt64Array([tmp$ret$1]));
|
|
5761
5761
|
};
|
|
5762
|
-
protoOf(BigInteger63Arithmetic).
|
|
5762
|
+
protoOf(BigInteger63Arithmetic).xow = function (source) {
|
|
5763
5763
|
var padLength = 8 - (_UByteArray___get_size__impl__h6pkdv(source) % 8 | 0) | 0;
|
|
5764
5764
|
// Inline function 'kotlin.collections.plus' call
|
|
5765
5765
|
var this_0 = _UByteArray___init__impl__ip4y9n(padLength);
|
|
@@ -5831,16 +5831,16 @@ protoOf(BigInteger63Arithmetic).lov = function (source) {
|
|
|
5831
5831
|
while (0 <= inductionVariable_2);
|
|
5832
5832
|
tmp$ret$10 = emptyList();
|
|
5833
5833
|
}
|
|
5834
|
-
var result = this.
|
|
5834
|
+
var result = this.tow(toULongArray(tmp$ret$10));
|
|
5835
5835
|
return result;
|
|
5836
5836
|
};
|
|
5837
|
-
protoOf(BigInteger63Arithmetic).
|
|
5837
|
+
protoOf(BigInteger63Arithmetic).mor = function (source) {
|
|
5838
5838
|
// Inline function 'kotlin.collections.asUByteArray' call
|
|
5839
5839
|
var tmp$ret$0 = _UByteArray___init__impl__ip4y9n_0(source);
|
|
5840
|
-
return this.
|
|
5840
|
+
return this.xow(tmp$ret$0);
|
|
5841
5841
|
};
|
|
5842
|
-
protoOf(BigInteger63Arithmetic).
|
|
5843
|
-
if (equals(operand, this.
|
|
5842
|
+
protoOf(BigInteger63Arithmetic).fot = function (operand) {
|
|
5843
|
+
if (equals(operand, this.qor_1)) {
|
|
5844
5844
|
// Inline function 'kotlin.UByteArray' call
|
|
5845
5845
|
var tmp = 0;
|
|
5846
5846
|
var tmp_0 = new Int8Array(1);
|
|
@@ -5854,7 +5854,7 @@ protoOf(BigInteger63Arithmetic).tor = function (operand) {
|
|
|
5854
5854
|
return _UByteArray___init__impl__ip4y9n_0(tmp_0);
|
|
5855
5855
|
}
|
|
5856
5856
|
// Inline function 'kotlin.collections.reversedArray' call
|
|
5857
|
-
var this_1 = this.
|
|
5857
|
+
var this_1 = this.qow(operand);
|
|
5858
5858
|
var as64Bit = _ULongArray___init__impl__twm1l3(reversedArray(_ULongArray___get_storage__impl__28e64j(this_1)));
|
|
5859
5859
|
var result = _UByteArray___init__impl__ip4y9n(imul(_ULongArray___get_size__impl__ju6dtr(as64Bit), 8));
|
|
5860
5860
|
var inductionVariable = 0;
|
|
@@ -5949,7 +5949,7 @@ function toDigit(_this__u8e3s4, base) {
|
|
|
5949
5949
|
}
|
|
5950
5950
|
function RuntimePlatform() {
|
|
5951
5951
|
}
|
|
5952
|
-
protoOf(RuntimePlatform).
|
|
5952
|
+
protoOf(RuntimePlatform).ooq = function () {
|
|
5953
5953
|
return Platform_JS_getInstance();
|
|
5954
5954
|
};
|
|
5955
5955
|
var RuntimePlatform_instance;
|
|
@@ -5957,22 +5957,22 @@ function RuntimePlatform_getInstance() {
|
|
|
5957
5957
|
return RuntimePlatform_instance;
|
|
5958
5958
|
}
|
|
5959
5959
|
//region block: post-declaration
|
|
5960
|
-
protoOf(Companion).
|
|
5961
|
-
protoOf(Companion).
|
|
5962
|
-
protoOf(Companion).
|
|
5963
|
-
protoOf(BigDecimal).
|
|
5964
|
-
protoOf(BigDecimal).
|
|
5965
|
-
protoOf(Companion_1).
|
|
5966
|
-
protoOf(Companion_1).
|
|
5967
|
-
protoOf(Companion_1).
|
|
5968
|
-
protoOf(BigInteger).
|
|
5969
|
-
protoOf(BigInteger).
|
|
5970
|
-
protoOf(BigInteger).
|
|
5960
|
+
protoOf(Companion).oom = tryFromFloat$default;
|
|
5961
|
+
protoOf(Companion).qom = tryFromDouble$default;
|
|
5962
|
+
protoOf(Companion).lom = parseString$default;
|
|
5963
|
+
protoOf(BigDecimal).don = plus_1;
|
|
5964
|
+
protoOf(BigDecimal).eon = minus_0;
|
|
5965
|
+
protoOf(Companion_1).lom = parseString$default;
|
|
5966
|
+
protoOf(Companion_1).oom = tryFromFloat$default;
|
|
5967
|
+
protoOf(Companion_1).qom = tryFromDouble$default;
|
|
5968
|
+
protoOf(BigInteger).tom = plus_0;
|
|
5969
|
+
protoOf(BigInteger).vom = minus;
|
|
5970
|
+
protoOf(BigInteger).xom = times;
|
|
5971
5971
|
protoOf(BigInteger).l1e = times_0;
|
|
5972
|
-
protoOf(BigInteger).
|
|
5973
|
-
protoOf(BigInteger).
|
|
5974
|
-
protoOf(BigInteger).
|
|
5975
|
-
protoOf(BigInteger).
|
|
5972
|
+
protoOf(BigInteger).zom = div;
|
|
5973
|
+
protoOf(BigInteger).fon = div_0;
|
|
5974
|
+
protoOf(BigInteger).bon = rem;
|
|
5975
|
+
protoOf(BigInteger).gon = rem_0;
|
|
5976
5976
|
//endregion
|
|
5977
5977
|
//region block: init
|
|
5978
5978
|
RuntimePlatform_instance = new RuntimePlatform();
|