<?php
defined("\x49\x4e\x5f\111\x41") or exit("\101\143\143\x65\x73\x73\40\104\x65\x6e\151\x65\x64"); class BigInteger { const MONTGOMERY = 0; const BARRETT = 1; const POWEROF2 = 2; const CLASSIC = 3; const NONE = 4; const VALUE = 0; const SIGN = 1; const VARIABLE = 0; const DATA = 1; const MODE_INTERNAL = 1; const MODE_BCMATH = 2; const MODE_GMP = 3; const KARATSUBA_CUTOFF = 25; protected static $base; protected static $baseFull; protected static $maxDigit; protected static $msb; protected static $max10; protected static $max10Len; protected static $maxDigit2; var $value; var $is_negative = false; var $precision = -1; var $bitmask = false; var $hex; function __construct($x = 0, $base = 10) { goto YRs1w; YRs1w: if (defined("\115\101\124\110\137\x42\111\107\x49\x4e\124\105\x47\105\x52\137\115\x4f\x44\105")) { goto A3X7R; } goto PR2cC; gEMt9: if (!(empty(self::$base) && MATH_BIGINTEGER_MODE == self::MODE_INTERNAL)) { goto gLGRU; } goto hasfJ; oCXMQ: BFbKe: goto hnYPE; JKXJ3: return; goto AvsBK; GC9Vr: SiixX: goto VT9Iu; gphG7: HBPlS: goto v7iHI; A0Z_0: goto SiixX; goto PG_Lt; HxjxU: $versions[$matches[1][$i]] = $m[0]; goto M2LSh; mj_wL: IhRgC: goto eiXYL; EivsE: @phpinfo(); goto MK9IQ; hasfJ: switch (PHP_INT_SIZE) { case 8: goto VZMdw; VZMdw: self::$base = 31; goto VV512; ZqXBa: self::$max10Len = 9; goto Lx8ah; Lx8ah: self::$maxDigit2 = pow(2, 62); goto XP8qD; adFpP: self::$maxDigit = 0x7fffffff; goto MDAUa; VV512: self::$baseFull = 0x80000000; goto adFpP; EgWFH: self::$max10 = 1000000000; goto ZqXBa; MDAUa: self::$msb = 0x40000000; goto EgWFH; XP8qD: goto IhRgC; goto n_1OI; n_1OI: default: goto LUHp1; k7OP5: self::$max10 = 10000000; goto EV1Cq; M44iR: self::$baseFull = 0x4000000; goto aLVao; fE3KZ: self::$maxDigit2 = pow(2, 52); goto pprjj; aLVao: self::$maxDigit = 0x3ffffff; goto SIAw0; LUHp1: self::$base = 26; goto M44iR; EV1Cq: self::$max10Len = 7; goto fE3KZ; SIAw0: self::$msb = 0x2000000; goto k7OP5; pprjj: } goto xsu6A; GXAWm: iTPmB: goto pIyy_; k9DqK: define("\x50\110\120\137\x49\x4e\x54\x5f\x53\111\132\x45", 4); goto mZN7Z; sGAiu: hOgEp: goto GXAWm; PG_Lt: sEFgB: goto gphG7; AvsBK: y6QP5: goto QdXyk; QdXyk: switch ($base) { case -256: goto SdGHZ; E8coA: $this->is_negative = true; goto W53F9; W53F9: o1p2y: goto gIrWg; Onvu7: $x = ~$x; goto E8coA; SdGHZ: if (!(ord($x[0]) & 0x80)) { goto o1p2y; } goto Onvu7; gIrWg: case 256: goto uErrw; jtgIP: $temp = $this->add(new static("\55\61")); goto qzEVR; BhVT5: goto bAVvo; goto vzT3O; mhfcO: $this->is_negative = false; goto hzUaK; hzUaK: mRUVy: goto jtgIP; P1tRg: IlH5A: goto DwLAV; uErrw: switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: goto mUptQ; mUptQ: $this->value = function_exists("\x67\x6d\x70\137\x69\x6d\160\x6f\x72\x74") ? gmp_import($x) : gmp_init("\x30\170" . bin2hex($x)); goto wFbpz; wFbpz: if (!$this->is_negative) { goto cRUdM; } goto HUAgd; MczeI: cRUdM: goto PGq5c; HUAgd: $this->value = gmp_neg($this->value); goto MczeI; PGq5c: goto IlH5A; goto wSV8O; wSV8O: case self::MODE_BCMATH: goto YbVLp; CI07S: if (!$this->is_negative) { goto Feo7w; } goto BHer_; brkFC: $this->value = bcmul($this->value, "\64\x32\x39\64\71\66\67\62\71\66", 0); goto pZmkB; YbVLp: $len = strlen($x) + 3 & 0xfffffffc; goto aawIC; cwgJj: $i += 4; goto moxNP; aawIC: $x = str_pad($x, $len, chr(0), STR_PAD_LEFT); goto bByFf; zYcpn: goto IlH5A; goto kSDcc; Xvi87: jihKv: goto cwgJj; spIP4: MfVRB: goto nGTV7; bByFf: $i = 0; goto spIP4; NyDG6: Feo7w: goto zYcpn; nGTV7: if (!($i < $len)) { goto VJj4H; } goto brkFC; qZX5Y: VJj4H: goto CI07S; BHer_: $this->value = "\55" . $this->value; goto NyDG6; pZmkB: $this->value = bcadd($this->value, 0x1000000 * ord($x[$i]) + (ord($x[$i + 1]) << 16 | ord($x[$i + 2]) << 8 | ord($x[$i + 3])), 0); goto Xvi87; moxNP: goto MfVRB; goto qZX5Y; kSDcc: default: goto t9V1B; C7Woo: goto dVDBH; goto nUl3G; t9V1B: dVDBH: goto ZWWY6; ZWWY6: if (!strlen($x)) { goto agEpd; } goto iJuPr; iJuPr: $this->value[] = $this->_bytes2int($this->_base256_rshift($x, self::$base)); goto C7Woo; nUl3G: agEpd: goto fxdA_; fxdA_: } goto WXSTb; WXSTb: tdnvO: goto P1tRg; kc4lO: if (!(MATH_BIGINTEGER_MODE != self::MODE_INTERNAL)) { goto mRUVy; } goto mhfcO; DwLAV: if (!$this->is_negative) { goto KK0TN; } goto kc4lO; p0oRA: KK0TN: goto BhVT5; qzEVR: $this->value = $temp->value; goto p0oRA; vzT3O: case 16: case -16: goto WJrlN; WJrlN: if (!($base > 0 && $x[0] == "\55")) { goto t2xwv; } goto xIcXk; g_9xR: $is_negative = false; goto wZh8x; Z41GO: $x = substr($x, 1); goto Ynvah; it3vp: QEP56: goto LbAi6; Ynvah: t2xwv: goto kCXTQ; xIcXk: $this->is_negative = true; goto Z41GO; zlFVA: goto bAVvo; goto qixfb; r2SgH: OHR2C: goto YLFvN; wZh8x: if (!($base < 0 && hexdec($x[0]) >= 8)) { goto QEP56; } goto TlOKr; YLFvN: UKgKO: goto zW6B1; zW6B1: if (!$is_negative) { goto fIJyX; } goto Orguq; TlOKr: $this->is_negative = $is_negative = true; goto Afiz1; LbAi6: switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: goto bheti; bheti: $temp = $this->is_negative ? "\55\x30\x78" . $x : "\x30\x78" . $x; goto sJRqU; X3Aww: $this->is_negative = false; goto LG95x; LG95x: goto UKgKO; goto qA3Lf; sJRqU: $this->value = gmp_init($temp); goto X3Aww; qA3Lf: case self::MODE_BCMATH: goto lbCFH; C74Ga: $this->value = $this->is_negative ? "\x2d" . $temp->value : $temp->value; goto q1TGg; AgKiO: $temp = new static(pack("\x48\x2a", $x), 256); goto C74Ga; ff11n: goto UKgKO; goto JS8Bg; q1TGg: $this->is_negative = false; goto ff11n; lbCFH: $x = strlen($x) & 1 ? "\x30" . $x : $x; goto AgKiO; JS8Bg: default: goto Wb6qB; U9HsZ: $this->value = $temp->value; goto WWUDE; Wb6qB: $x = strlen($x) & 1 ? "\x30" . $x : $x; goto f6Amh; f6Amh: $temp = new static(pack("\110\x2a", $x), 256); goto U9HsZ; WWUDE: } goto r2SgH; aQrLn: fIJyX: goto zlFVA; Afiz1: $x = bin2hex(~pack("\x48\52", $x)); goto it3vp; kCXTQ: $x = preg_replace("\x23\x5e\50\77\x3a\x30\x78\x29\77\x28\x5b\101\55\106\x61\55\x66\x30\x2d\71\135\52\x29\56\52\43", "\44\x31", $x); goto g_9xR; Orguq: $temp = $this->add(new static("\55\61")); goto Jy77M; Jy77M: $this->value = $temp->value; goto aQrLn; qixfb: case 10: case -10: goto vOru4; frR5Y: muxhl: goto v49O4; T41GH: hwNln: goto eiV_N; wqlkm: PaHSf: goto T41GH; v49O4: switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: $this->value = gmp_init($x); goto hwNln; case self::MODE_BCMATH: $this->value = $x === "\x2d" ? "\60" : (string) $x; goto hwNln; default: goto NgZAT; skC3J: if (!($x[0] == "\55")) { goto ti5VC; } goto TC78E; WwLR0: $temp = $temp->add(new static($this->_int2bytes(substr($x, 0, self::$max10Len)), 256)); goto cNwsk; iLb8k: hQ403: goto J5RJR; NgZAT: $temp = new static(); goto Xa_vo; hv8Q2: goto hQ403; goto NHVIe; TC78E: $this->is_negative = true; goto xnrIW; J5RJR: if (!strlen($x)) { goto cIPsX; } goto bXwhk; lLhZv: $multiplier->value = array(self::$max10); goto skC3J; Khp_8: ti5VC: goto FlxHK; ROo6b: $this->value = $temp->value; goto nxGSW; NHVIe: cIPsX: goto ROo6b; Xa_vo: $multiplier = new static(); goto lLhZv; bXwhk: $temp = $temp->multiply($multiplier); goto WwLR0; cNwsk: $x = substr($x, self::$max10Len); goto hv8Q2; xnrIW: $x = substr($x, 1); goto Khp_8; FlxHK: $x = str_pad($x, strlen($x) + (self::$max10Len - 1) * strlen($x) % self::$max10Len, 0, STR_PAD_LEFT); goto iLb8k; nxGSW: } goto wqlkm; vOru4: $x = preg_replace("\x23\50\x3f\x3c\41\136\51\50\77\72\x2d\51\56\52\174\x28\x3f\74\75\x5e\174\55\x29\60\52\x7c\133\x5e\x2d\x30\55\x39\x5d\56\x2a\x23", '', $x); goto bEjTA; eiV_N: goto bAVvo; goto P_lO1; LGrtf: $x = "\60"; goto frR5Y; bEjTA: if (!(!strlen($x) || $x == "\55")) { goto muxhl; } goto LGrtf; P_lO1: case 2: case -2: goto sw5PN; XnNTf: $x = substr($x, 1); goto XPX0T; V68Ll: $str .= dechex(bindec($part)); goto qv9ek; fRGjx: $str = "\x2d" . $str; goto l88VO; XPX0T: cUkqr: goto F3EfB; AGYT8: $this->value = $temp->value; goto h5GSu; qv9ek: $x = substr($x, 4); goto mseao; l88VO: TGaur: goto d9sIe; F3EfB: $x = preg_replace("\x23\136\x28\133\x30\x31\x5d\52\x29\x2e\52\43", "\x24\x31", $x); goto sPTI_; S2w78: if (!strlen($x)) { goto TUlme; } goto QR2Kh; yL
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
diygw_vr.zip (19个子文件)
RSA.php 92KB
404.html 13KB
BigInteger.php 103KB
assets
bootstrapValidator
css
bootstrapValidator.css 700B
bootstrapValidator.min.css 694B
js
bootstrapValidator.js 338KB
language
zh_CN.js 11KB
images
loadingb.gif 392KB
404.html 13KB
blank.gif 43B
dz.png 787B
index.html 307B
apps.png 686B
ic4on.png 8KB
bg.jpg 5KB
k.png 1KB
3.png 1KB
marker
loading.gif 11KB
Hash.php 26KB
共 19 条
- 1
办公模板库素材蛙
- 粉丝: 1660
- 资源: 2299
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页