Home
last modified time | relevance | path

Searched refs:BigInteger (Results 1 – 25 of 80) sorted by relevance

1234

/third_party/node/deps/npm/node_modules/jsbn/
Dindex.js17 function BigInteger(a,b,c) { class
25 function nbi() { return new BigInteger(null); }
74 BigInteger.prototype.am = am2; class
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;
[all …]
Dexample.js1 var BigInteger = require('./'); variable
2 var a = new BigInteger('91823918239182398123');
DREADME.md9 var BigInteger = require('jsbn');
11 var a = new BigInteger('91823918239182398123');
23 returns a new BigInteger equal to the negation of `bi`
/third_party/node/deps/npm/node_modules/ecc-jsbn/lib/
Dsec.js4 var BigInteger = require('jsbn').BigInteger variable
43 function fromHex(s) { return new BigInteger(s, 16); }
52 var h = BigInteger.ONE;
63 var a = BigInteger.ZERO;
67 var h = BigInteger.ONE;
82 var h = BigInteger.ONE;
93 var a = BigInteger.ZERO;
97 var h = BigInteger.ONE;
112 var h = BigInteger.ONE;
127 var h = BigInteger.ONE;
[all …]
Dec.js6 var BigInteger = require('jsbn').BigInteger variable
7 var Barrett = BigInteger.prototype.Barrett
72 this.z = BigInteger.ONE;
106 if(!u.equals(BigInteger.ZERO)) return false;
109 return v.equals(BigInteger.ZERO);
114 return this.z.equals(BigInteger.ZERO) && !this.y.toBigInteger().equals(BigInteger.ZERO);
130 if(BigInteger.ZERO.equals(v)) {
131 if(BigInteger.ZERO.equals(u)) {
137 var THREE = new BigInteger("3");
163 var THREE = new BigInteger("3");
[all …]
/third_party/node/deps/npm/node_modules/ecc-jsbn/
Dindex.js2 var BigInteger = require("jsbn").BigInteger; variable
33 priv = new BigInteger(key.toString("hex"), 16);
36 var n1 = n.subtract(BigInteger.ONE);
37 var r = new BigInteger(crypto.randomBytes(n.bitLength()));
38 priv = r.mod(n1).add(BigInteger.ONE);
/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/
DTimeUtil.java36 import java.math.BigInteger;
364 private static final BigInteger NANOS_PER_SECOND_BIG_INTEGER =
365 new BigInteger(String.valueOf(NANOS_PER_SECOND));
367 private static BigInteger toBigInteger(Duration duration) { in toBigInteger()
373 private static BigInteger toBigInteger(long value) { in toBigInteger()
374 return new BigInteger(String.valueOf(value)); in toBigInteger()
377 private static Duration createDurationFromBigInteger(BigInteger value) { in createDurationFromBigInteger()
378 long seconds = value.divide(new BigInteger(String.valueOf(NANOS_PER_SECOND))).longValue(); in createDurationFromBigInteger()
379 int nanos = value.remainder(new BigInteger(String.valueOf(NANOS_PER_SECOND))).intValue(); in createDurationFromBigInteger()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/
DDecimalQuantity_64BitBCD.java6 import java.math.BigInteger;
39 public DecimalQuantity_64BitBCD(BigInteger input) { in DecimalQuantity_64BitBCD()
130 protected void readBigIntegerToBcd(BigInteger n) { in readBigIntegerToBcd()
135 BigInteger[] temp = n.divideAndRemainder(BigInteger.TEN); in readBigIntegerToBcd()
DDecimalQuantity_ByteArrayBCD.java6 import java.math.BigInteger;
39 public DecimalQuantity_ByteArrayBCD(BigInteger input) { in DecimalQuantity_ByteArrayBCD()
151 protected void readBigIntegerToBcd(BigInteger n) { in readBigIntegerToBcd()
155 BigInteger[] temp = n.divideAndRemainder(BigInteger.TEN); in readBigIntegerToBcd()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/impl/number/
DDecimalQuantity_64BitBCD.java7 import java.math.BigInteger;
42 public DecimalQuantity_64BitBCD(BigInteger input) { in DecimalQuantity_64BitBCD()
133 protected void readBigIntegerToBcd(BigInteger n) { in readBigIntegerToBcd()
138 BigInteger[] temp = n.divideAndRemainder(BigInteger.TEN); in readBigIntegerToBcd()
DDecimalQuantity_ByteArrayBCD.java7 import java.math.BigInteger;
42 public DecimalQuantity_ByteArrayBCD(BigInteger input) { in DecimalQuantity_ByteArrayBCD()
154 protected void readBigIntegerToBcd(BigInteger n) { in readBigIntegerToBcd()
158 BigInteger[] temp = n.divideAndRemainder(BigInteger.TEN); in readBigIntegerToBcd()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/
DDecimalQuantity_DualStorageBCD.java7 import java.math.BigInteger;
52 public DecimalQuantity_DualStorageBCD(BigInteger input) { in DecimalQuantity_DualStorageBCD()
75 } else if (number instanceof BigInteger) { in DecimalQuantity_DualStorageBCD()
76 setToBigInteger((BigInteger) number); in DecimalQuantity_DualStorageBCD()
230 protected void readBigIntegerToBcd(BigInteger n) { in readBigIntegerToBcd()
235 BigInteger[] temp = n.divideAndRemainder(BigInteger.TEN); in readBigIntegerToBcd()
DDecimalQuantity_AbstractBCD.java7 import java.math.BigInteger;
393 readBigIntegerToBcd(BigInteger.valueOf(n).negate()); in _setToLong()
401 public void setToBigInteger(BigInteger n) { in setToBigInteger()
414 private void _setToBigInteger(BigInteger n) { in _setToBigInteger()
600 BigInteger bi = n.toBigInteger(); in _setToBigDecimal()
1234 protected abstract void readBigIntegerToBcd(BigInteger input); in readBigIntegerToBcd()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_DualStorageBCD.java6 import java.math.BigInteger;
51 public DecimalQuantity_DualStorageBCD(BigInteger input) { in DecimalQuantity_DualStorageBCD()
74 } else if (number instanceof BigInteger) { in DecimalQuantity_DualStorageBCD()
75 setToBigInteger((BigInteger) number); in DecimalQuantity_DualStorageBCD()
224 protected void readBigIntegerToBcd(BigInteger n) { in readBigIntegerToBcd()
229 BigInteger[] temp = n.divideAndRemainder(BigInteger.TEN); in readBigIntegerToBcd()
DDecimalQuantity_AbstractBCD.java6 import java.math.BigInteger;
399 readBigIntegerToBcd(BigInteger.valueOf(n).negate()); in _setToLong()
407 public void setToBigInteger(BigInteger n) { in setToBigInteger()
420 private void _setToBigInteger(BigInteger n) { in _setToBigInteger()
606 BigInteger bi = n.toBigInteger(); in _setToBigDecimal()
1232 protected abstract void readBigIntegerToBcd(BigInteger input); in readBigIntegerToBcd()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DComplexUnitsConverter.java6 import java.math.BigInteger;
167 BigInteger sign = BigInteger.ONE; in convert()
179 List<BigInteger> intValues = new ArrayList<>(unitsConverters_.size() - 1); in convert()
190BigInteger flooredQuantity = quantity.multiply(EPSILON_MULTIPLIER).setScale(0, RoundingMode.FLOOR)… in convert()
235 …private BigDecimal applyRounder(List<BigInteger> intValues, BigDecimal quantity, Precision rounder… in applyRounder()
/third_party/skia/third_party/externals/brotli/java/org/brotli/integration/
DBundleHelper.java12 import java.math.BigInteger;
72 new BigInteger("C96C5795D7870F42", 16).longValue();
111 return new BigInteger(entryCrcString, 16).longValue(); in getExpectedFingerprint()
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/localeconverter/
DCalculateCRC32.java12 import java.math.BigInteger;
86 return new BigInteger(new Integer(cachedCRC).toString()).toByteArray(); in toBytes()
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DUtils.java47 import java.math.BigInteger;
145 … RubyBignum.newBignum(runtime, UINT64_COMPLEMENTARY.add(new BigInteger(ret + ""))); in wrapPrimaryValue()
300 …private static BigInteger UINT64_COMPLEMENTARY = new BigInteger("18446744073709551616"); //Math.po…
/third_party/flutter/engine/flutter/shell/platform/android/io/flutter/plugin/common/
DStandardMessageCodec.java12 import java.math.BigInteger;
241 } else if (value instanceof BigInteger) { in writeValue()
244 ((BigInteger) value).toString(16).getBytes(UTF8)); in writeValue()
372 result = new BigInteger(new String(hex, UTF8), 16); in readValueOfType()
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/
DICULocaleServiceProviderConfig.properties29 # BigInteger/BigDecimal are not handled by the ICU implementation. If a client expects
32 # BigInteger/BigDecimal support is not done by ICU's implementation.
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/
DScale.java7 import java.math.BigInteger;
48 if (arbitrary.precision() == 1 && arbitrary.unscaledValue().equals(BigInteger.ONE)) { in Scale()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DScale.java6 import java.math.BigInteger;
47 if (arbitrary.precision() == 1 && arbitrary.unscaledValue().equals(BigInteger.ONE)) { in Scale()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DNumberFormat.java17 import java.math.BigInteger;
263 } else if (number instanceof BigInteger) { in format()
264 return format((BigInteger) number, toAppendTo, pos); in format()
314 public final String format(BigInteger number) { in format()
362 public abstract StringBuffer format(BigInteger number, in format()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNumberFormat.java16 import java.math.BigInteger;
276 } else if (number instanceof BigInteger) { in format()
277 return format((BigInteger) number, toAppendTo, pos); in format()
331 public final String format(BigInteger number) { in format()
385 public abstract StringBuffer format(BigInteger number, in format()

1234