Lines Matching refs:BigInteger
17 function BigInteger(a,b,c) {
24 // return new, unset BigInteger
25 function nbi() { return new BigInteger(null); }
74 BigInteger.prototype.am = am2;
78 BigInteger.prototype.am = am1;
82 BigInteger.prototype.am = am3;
86 BigInteger.prototype.DB = dbits;
87 BigInteger.prototype.DM = ((1<<dbits)-1);
88 BigInteger.prototype.DV = (1<<dbits);
91 BigInteger.prototype.FV = Math.pow(2,BI_FP);
92 BigInteger.prototype.F1 = BI_FP-dbits;
93 BigInteger.prototype.F2 = 2*dbits-BI_FP;
167 if(mi) BigInteger.ZERO.subTo(this,this);
207 function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); return r; }
334 if(this.s != a.s) BigInteger.ZERO.subTo(r,r);
381 BigInteger.ONE.dlShiftTo(ys,t);
395 if(ts != ms) BigInteger.ZERO.subTo(q,q);
400 if(ts < 0) BigInteger.ZERO.subTo(r,r);
407 if(this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) a.subTo(r,r);
468 if(x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) this.m.subTo(r,r);
516 if(e > 0xffffffff || e < 1) return BigInteger.ONE;
535 BigInteger.prototype.copyTo = bnpCopyTo;
536 BigInteger.prototype.fromInt = bnpFromInt;
537 BigInteger.prototype.fromString = bnpFromString;
538 BigInteger.prototype.clamp = bnpClamp;
539 BigInteger.prototype.dlShiftTo = bnpDLShiftTo;
540 BigInteger.prototype.drShiftTo = bnpDRShiftTo;
541 BigInteger.prototype.lShiftTo = bnpLShiftTo;
542 BigInteger.prototype.rShiftTo = bnpRShiftTo;
543 BigInteger.prototype.subTo = bnpSubTo;
544 BigInteger.prototype.multiplyTo = bnpMultiplyTo;
545 BigInteger.prototype.squareTo = bnpSquareTo;
546 BigInteger.prototype.divRemTo = bnpDivRemTo;
547 BigInteger.prototype.invDigit = bnpInvDigit;
548 BigInteger.prototype.isEven = bnpIsEven;
549 BigInteger.prototype.exp = bnpExp;
552 BigInteger.prototype.toString = bnToString;
553 BigInteger.prototype.negate = bnNegate;
554 BigInteger.prototype.abs = bnAbs;
555 BigInteger.prototype.compareTo = bnCompareTo;
556 BigInteger.prototype.bitLength = bnBitLength;
557 BigInteger.prototype.mod = bnMod;
558 BigInteger.prototype.modPowInt = bnModPowInt;
561 BigInteger.ZERO = nbv(0);
562 BigInteger.ONE = nbv(1);
570 // Version 1.1: new BigInteger("0", 10) returns "proper" zero
643 if(mi) BigInteger.ZERO.subTo(this,this);
649 // new BigInteger(int,int,RNG)
654 this.bitwiseTo(BigInteger.ONE.shiftLeft(a-1),op_or,this);
658 if(this.bitLength() > a) this.subTo(BigInteger.ONE.shiftLeft(a-1),this);
663 // new BigInteger(int,RNG)
801 var r = BigInteger.ONE.shiftLeft(n);
937 BigInteger.ONE.dlShiftTo(2*m.t,this.r2);
1073 if((this.isEven() && ac) || m.signum() == 0) return BigInteger.ZERO;
1106 if(v.compareTo(BigInteger.ONE) != 0) return BigInteger.ZERO;
1136 var n1 = this.subtract(BigInteger.ONE);
1147 if(y.compareTo(BigInteger.ONE) != 0 && y.compareTo(n1) != 0) {
1151 if(y.compareTo(BigInteger.ONE) == 0) return false;
1160 BigInteger.prototype.chunkSize = bnpChunkSize;
1161 BigInteger.prototype.toRadix = bnpToRadix;
1162 BigInteger.prototype.fromRadix = bnpFromRadix;
1163 BigInteger.prototype.fromNumber = bnpFromNumber;
1164 BigInteger.prototype.bitwiseTo = bnpBitwiseTo;
1165 BigInteger.prototype.changeBit = bnpChangeBit;
1166 BigInteger.prototype.addTo = bnpAddTo;
1167 BigInteger.prototype.dMultiply = bnpDMultiply;
1168 BigInteger.prototype.dAddOffset = bnpDAddOffset;
1169 BigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo;
1170 BigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo;
1171 BigInteger.prototype.modInt = bnpModInt;
1172 BigInteger.prototype.millerRabin = bnpMillerRabin;
1175 BigInteger.prototype.clone = bnClone;
1176 BigInteger.prototype.intValue = bnIntValue;
1177 BigInteger.prototype.byteValue = bnByteValue;
1178 BigInteger.prototype.shortValue = bnShortValue;
1179 BigInteger.prototype.signum = bnSigNum;
1180 BigInteger.prototype.toByteArray = bnToByteArray;
1181 BigInteger.prototype.equals = bnEquals;
1182 BigInteger.prototype.min = bnMin;
1183 BigInteger.prototype.max = bnMax;
1184 BigInteger.prototype.and = bnAnd;
1185 BigInteger.prototype.or = bnOr;
1186 BigInteger.prototype.xor = bnXor;
1187 BigInteger.prototype.andNot = bnAndNot;
1188 BigInteger.prototype.not = bnNot;
1189 BigInteger.prototype.shiftLeft = bnShiftLeft;
1190 BigInteger.prototype.shiftRight = bnShiftRight;
1191 BigInteger.prototype.getLowestSetBit = bnGetLowestSetBit;
1192 BigInteger.prototype.bitCount = bnBitCount;
1193 BigInteger.prototype.testBit = bnTestBit;
1194 BigInteger.prototype.setBit = bnSetBit;
1195 BigInteger.prototype.clearBit = bnClearBit;
1196 BigInteger.prototype.flipBit = bnFlipBit;
1197 BigInteger.prototype.add = bnAdd;
1198 BigInteger.prototype.subtract = bnSubtract;
1199 BigInteger.prototype.multiply = bnMultiply;
1200 BigInteger.prototype.divide = bnDivide;
1201 BigInteger.prototype.remainder = bnRemainder;
1202 BigInteger.prototype.divideAndRemainder = bnDivideAndRemainder;
1203 BigInteger.prototype.modPow = bnModPow;
1204 BigInteger.prototype.modInverse = bnModInverse;
1205 BigInteger.prototype.pow = bnPow;
1206 BigInteger.prototype.gcd = bnGCD;
1207 BigInteger.prototype.isProbablePrime = bnIsProbablePrime;
1210 BigInteger.prototype.square = bnSquare;
1213 BigInteger.prototype.Barrett = Barrett
1215 // BigInteger interfaces not implemented in jsbn:
1217 // BigInteger(int signum, byte[] magnitude)
1222 // static BigInteger valueOf(long val)
1350 default: BigInteger,
1351 BigInteger: BigInteger,
1356 BigInteger: BigInteger,