Home
last modified time | relevance | path

Searched refs:BigInteger (Results 1 - 25 of 53) sorted by relevance

123

/third_party/node/deps/npm/node_modules/jsbn/
H A Dindex.js17 function BigInteger(a,b,c) { function
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
73 BigInteger.prototype.am = am2; global() class
[all...]
/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/
H A 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/node/deps/npm/node_modules/ip-address/dist/
H A Dipv6.js151 * Convert a BigInteger to a v6 address object
154 * @param {BigInteger} bigInteger - a BigInteger to convert
157 * var bigInteger = new BigInteger('1000000000000');
309 return addCommas(new jsbn_1.BigInteger('2', 10).pow(subnetPowers).toString(10));
315 * @returns {BigInteger}
318 return new jsbn_1.BigInteger(this.mask() + '0'.repeat(constants6.BITS - this.subnetMask), 2);
338 const adjust = new jsbn_1.BigInteger('1');
345 * @returns {BigInteger}
348 return new jsbn_1.BigInteger(thi
[all...]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/
H A 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()
H A 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()
166 // Converting to a string here is faster than doing BigInteger/BigDecimal arithmetic. in bcdToBigDecimal()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/impl/number/
H A 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()
H A 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()
169 // Converting to a string here is faster than doing BigInteger/BigDecimal arithmetic. in bcdToBigDecimal()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/
H A 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()
247 // Converting to a string here is faster than doing BigInteger/BigDecimal arithmetic. in bcdToBigDecimal()
H A 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()
1227 * Sets the internal BCD state to represent the value in the given BigInteger. The BigInteger is
1234 protected abstract void readBigIntegerToBcd(BigInteger input); in readBigIntegerToBcd()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
H A DComplexUnitsConverter.java6 import java.math.BigInteger;
170 BigInteger sign = BigInteger.ONE; in convert()
182 List<BigInteger> intValues = new ArrayList<>(unitsConverters_.size() - 1); in convert()
193 BigInteger flooredQuantity = quantity.multiply(EPSILON_MULTIPLIER).setScale(0, RoundingMode.FLOOR).toBigInteger(); in convert()
238 private BigDecimal applyRounder(List<BigInteger> intValues, BigDecimal quantity, Precision rounder) { in applyRounder()
/third_party/skia/third_party/externals/brotli/java/org/brotli/integration/
H A 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/main/classes/core/src/com/ibm/icu/impl/number/
H A 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()
272 protected void readBigIntegerToBcd(BigInteger n) { in readBigIntegerToBcd()
277 BigInteger[] temp = n.divideAndRemainder(BigInteger.TEN); in readBigIntegerToBcd()
289 // Converting to a string here is faster than doing BigInteger/BigDecimal arithmetic. in bcdToBigDecimal()
H A DDecimalQuantity_AbstractBCD.java6 import java.math.BigInteger;
405 readBigIntegerToBcd(BigInteger.valueOf(n).negate()); in _setToLong()
413 public void setToBigInteger(BigInteger n) { in setToBigInteger()
426 private void _setToBigInteger(BigInteger n) { in _setToBigInteger()
612 BigInteger bi = n.toBigInteger(); in _setToBigDecimal()
1280 * Sets the internal BCD state to represent the value in the given BigInteger. The BigInteger is
1287 protected abstract void readBigIntegerToBcd(BigInteger input); in readBigIntegerToBcd()
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/localeconverter/
H A 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/
H A 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.pow(2, 64)
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
H A 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/number/
H A 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/impl/
H A DDateNumberFormat.java13 import java.math.BigInteger;
187 public StringBuffer format(BigInteger number, StringBuffer toAppendTo, in format()
189 throw new UnsupportedOperationException("StringBuffer format(BigInteger, StringBuffer, FieldPosition) is not implemented"); in format()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DDateNumberFormat.java14 import java.math.BigInteger;
191 public StringBuffer format(BigInteger number, StringBuffer toAppendTo, in format()
193 throw new UnsupportedOperationException("StringBuffer format(BigInteger, StringBuffer, FieldPostion) is not implemented"); in format()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DIntlTestNumberFormatAPI.java20 import java.math.BigInteger;
228 public StringBuffer format(BigInteger number, StringBuffer toAppendTo, FieldPosition pos) {return null;} in TestCoverage()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
H A DIntlTestNumberFormatAPI.java21 import java.math.BigInteger;
231 public StringBuffer format(BigInteger number, StringBuffer toAppendTo, FieldPosition pos) {return null;} in TestCoverage()
H A DCompactDecimalFormatTest.java19 import java.math.BigInteger;
492 BigInteger source_int = new BigInteger("31415926535897932384626433"); in TestBig()
494 assertEquals("BigInteger format wrong: ", "31,415,926,535,898 trillion", in TestBig()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DNumberFormat.java16 import java.math.BigInteger;
263 * {@icunote} recognizes <code>BigInteger</code>
276 } else if (number instanceof BigInteger) { in format()
277 return format((BigInteger) number, toAppendTo, pos); in format()
328 * {@icu} Convenience method to format a BigInteger.
331 public final String format(BigInteger number) { in format()
381 * {@icu} Formats a BigInteger. Specialization of format.
385 public abstract StringBuffer format(BigInteger number, in format()
426 * such as a BigDecimal, BigInteger, or Double. The return type is not
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DNumberFormat.java17 import java.math.BigInteger;
251 * <strong>[icu] Note:</strong> recognizes <code>BigInteger</code>
263 } else if (number instanceof BigInteger) { in format()
264 return format((BigInteger) number, toAppendTo, pos); in format()
312 * <strong>[icu]</strong> Convenience method to format a BigInteger.
314 public final String format(BigInteger number) { in format()
359 * <strong>[icu]</strong> Formats a BigInteger. Specialization of format.
362 public abstract StringBuffer format(BigInteger number, in format()
400 * such as a BigDecimal, BigInteger, or Double. The return type is not
/third_party/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
H A DNumberFormatTest.java12 import java.math.BigInteger;
167 new BigInteger("-15253545556575859505"), in TestICUEquivalent()

Completed in 21 milliseconds

123