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

Function eHDs

geetest/test.js:455–505  ·  view source on GitHub ↗
(e, t)

Source from the content-addressed store, hash-verified

453 }
454
455 function eHDs(e, t) {
456 var r;
457 if (t == 16)
458 r = 4;
459 else if (t == 8)
460 r = 3;
461 else if (t == 256)
462 r = 8;
463 else if (t == 2)
464 r = 1;
465 else if (t == 32)
466 r = 5;
467 else if (t == 4)
468 r = 2;
469 else {
470 this["fromRadix"](e, t);
471 return;
472 }
473 this["t"] = 0;
474 this["s"] = 0;
475 var n = e["length"]
476 , i = false
477 , o = 0;
478 while (--n >= 0) {
479 var a = r == 8 ? e[n] & 255 : acht(e, n);
480 if (a < 0) {
481 if (e[thMx(83)](n) == thMx(77))
482 i = true;
483 continue;
484 }
485 i = false;
486 if (o == 0)
487 this[this["t"]++] = a;
488 else if (o + r > this["DB"]) {
489 this[this["t"] - 1] |= (a & (1 << this["DB"] - o) - 1) << o;
490 this[this["t"]++] = a >> this["DB"] - o;
491 } else
492 this[this["t"] - 1] |= a << o;
493 o += r;
494 if (o >= this["DB"])
495 o -= this["DB"];
496 }
497 if (r == 8 && (e[0] & 128) != 0) {
498 this["s"] = -1;
499 if (o > 0)
500 this[this["t"] - 1] |= (1 << this["DB"] - o) - 1 << o;
501 }
502 this["clamp"]();
503 if (i)
504 UoGV["ZERO"]["subTo"](this, this);
505 }
506
507 function fEiX() {
508 var e = this["s"] & this["DM"];

Callers

nothing calls this directly

Calls 1

achtFunction · 0.85

Tested by

no test coverage detected