MCPcopy Create free account
hub / github.com/cxapython/catvm / gvPO

Function gvPO

geetest/test.js:513–555  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

511 }
512
513 function gvPO(e) {
514 if (this["s"] < 0)
515 return "-" + this["negate"]()["toString"](e);
516 var t;
517 if (e == 16)
518 t = 4;
519 else if (e == 8)
520 t = 3;
521 else if (e == 2)
522 t = 1;
523 else if (e == 32)
524 t = 5;
525 else if (e == 4)
526 t = 2;
527 else
528 return this["toRadix"](e);
529 var r = (1 << t) - 1, n, i = false, o = "", a = this["t"];
530 var s = this["DB"] - a * this["DB"] % t;
531 if (a-- > 0) {
532 if (s < this["DB"] && (n = this[a] >> s) > 0) {
533 i = true;
534 o = ZijL(n);
535 }
536 while (a >= 0) {
537 if (s < t) {
538 n = (this[a] & (1 << s) - 1) << t - s;
539 n |= this[--a] >> (s += this["DB"] - t);
540 } else {
541 n = this[a] >> (s -= t) & r;
542 if (s <= 0) {
543 s += this["DB"];
544 --a;
545 }
546 }
547 if (n > 0)
548 i = true;
549 if (i)
550 o += ZijL(n);
551 }
552 }
553 return i ? o : "0";
554
555 }
556
557 function hKZx() {
558 var e = VGqq();

Callers

nothing calls this directly

Calls 1

ZijLFunction · 0.85

Tested by

no test coverage detected