Home
last modified time | relevance | path

Searched refs:bigInt (Results 1 – 5 of 5) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DSimpleBigDecimal.java22 private final BigInteger bigInt; field in SimpleBigDecimal
46 public SimpleBigDecimal(BigInteger bigInt, int scale) in SimpleBigDecimal() argument
53 this.bigInt = bigInt; in SimpleBigDecimal()
78 return new SimpleBigDecimal(bigInt.shiftLeft(newScale - scale), in adjustScale()
85 return new SimpleBigDecimal(bigInt.add(b.bigInt), scale); in add()
90 return new SimpleBigDecimal(bigInt.add(b.shiftLeft(scale)), scale); in add()
95 return new SimpleBigDecimal(bigInt.negate(), scale); in negate()
105 return new SimpleBigDecimal(bigInt.subtract(b.shiftLeft(scale)), in subtract()
112 return new SimpleBigDecimal(bigInt.multiply(b.bigInt), scale + scale); in multiply()
117 return new SimpleBigDecimal(bigInt.multiply(b), scale); in multiply()
[all …]
DLongArray.java322 public LongArray(BigInteger bigInt) in LongArray() argument
324 if (bigInt == null || bigInt.signum() < 0) in LongArray()
329 if (bigInt.signum() == 0) in LongArray()
335 byte[] barr = bigInt.toByteArray(); in LongArray()
/external/sl4a/Common/src/org/apache/commons/codec/binary/
DBase64Codec.java1004 public static byte[] encodeInteger(BigInteger bigInt) { in encodeInteger() argument
1005 if (bigInt == null) { in encodeInteger()
1008 return encodeBase64(toIntegerBytes(bigInt), false); in encodeInteger()
1018 static byte[] toIntegerBytes(BigInteger bigInt) { in toIntegerBytes() argument
1019 int bitlen = bigInt.bitLength(); in toIntegerBytes()
1022 byte[] bigBytes = bigInt.toByteArray(); in toIntegerBytes()
1024 if (((bigInt.bitLength() % 8) != 0) && (((bigInt.bitLength() / 8) + 1) == (bitlen / 8))) { in toIntegerBytes()
1032 if ((bigInt.bitLength() % 8) == 0) { in toIntegerBytes()
/external/guava/guava/src/com/google/common/primitives/
DUnsignedLong.java226 BigInteger bigInt = BigInteger.valueOf(value & UNSIGNED_MASK); in bigIntegerValue() local
228 bigInt = bigInt.setBit(Long.SIZE - 1); in bigIntegerValue()
230 return bigInt; in bigIntegerValue()
/external/deqp/external/vulkancts/modules/vulkan/tessellation/
DvktTessellationUtil.hpp346 const int bigInt = ~0u/2; in elemsStr() local
349 const int wrapLength = wrapLengthParam > 0 ? wrapLengthParam : bigInt; in elemsStr()