Home
last modified time | relevance | path

Searched refs:bigInt (Results 1 – 16 of 16) 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/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/math/ec/
DSimpleBigDecimal.java23 private final BigInteger bigInt; field in SimpleBigDecimal
47 public SimpleBigDecimal(BigInteger bigInt, int scale) in SimpleBigDecimal() argument
54 this.bigInt = bigInt; in SimpleBigDecimal()
79 return new SimpleBigDecimal(bigInt.shiftLeft(newScale - scale), in adjustScale()
86 return new SimpleBigDecimal(bigInt.add(b.bigInt), scale); in add()
91 return new SimpleBigDecimal(bigInt.add(b.shiftLeft(scale)), scale); in add()
96 return new SimpleBigDecimal(bigInt.negate(), scale); in negate()
106 return new SimpleBigDecimal(bigInt.subtract(b.shiftLeft(scale)), in subtract()
113 return new SimpleBigDecimal(bigInt.multiply(b.bigInt), scale + scale); in multiply()
118 return new SimpleBigDecimal(bigInt.multiply(b), scale); in multiply()
[all …]
DLongArray.java323 public LongArray(BigInteger bigInt) in LongArray() argument
325 if (bigInt == null || bigInt.signum() < 0) in LongArray()
330 if (bigInt.signum() == 0) in LongArray()
336 byte[] barr = bigInt.toByteArray(); in LongArray()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
DSimpleBigDecimal.java23 private final BigInteger bigInt; field in SimpleBigDecimal
47 public SimpleBigDecimal(BigInteger bigInt, int scale) in SimpleBigDecimal() argument
54 this.bigInt = bigInt; in SimpleBigDecimal()
79 return new SimpleBigDecimal(bigInt.shiftLeft(newScale - scale), in adjustScale()
86 return new SimpleBigDecimal(bigInt.add(b.bigInt), scale); in add()
91 return new SimpleBigDecimal(bigInt.add(b.shiftLeft(scale)), scale); in add()
96 return new SimpleBigDecimal(bigInt.negate(), scale); in negate()
106 return new SimpleBigDecimal(bigInt.subtract(b.shiftLeft(scale)), in subtract()
113 return new SimpleBigDecimal(bigInt.multiply(b.bigInt), scale + scale); in multiply()
118 return new SimpleBigDecimal(bigInt.multiply(b), scale); in multiply()
[all …]
DLongArray.java323 public LongArray(BigInteger bigInt) in LongArray() argument
325 if (bigInt == null || bigInt.signum() < 0) in LongArray()
330 if (bigInt.signum() == 0) in LongArray()
336 byte[] barr = bigInt.toByteArray(); in LongArray()
/external/starlark-go/starlark/
Dint.go102 func (i Int) bigInt() *big.Int { func
193 return threeway(op, x.bigInt().Cmp(y.bigInt())), nil
230 return MakeBigInt(new(big.Int).Add(x.bigInt(), y.bigInt()))
238 return MakeBigInt(new(big.Int).Sub(x.bigInt(), y.bigInt()))
246 return MakeBigInt(new(big.Int).Mul(x.bigInt(), y.bigInt()))
254 return MakeBigInt(new(big.Int).Or(x.bigInt(), y.bigInt()))
262 return MakeBigInt(new(big.Int).And(x.bigInt(), y.bigInt()))
270 return MakeBigInt(new(big.Int).Xor(x.bigInt(), y.bigInt()))
281 func (x Int) Lsh(y uint) Int { return MakeBigInt(new(big.Int).Lsh(x.bigInt(), y)) }
282 func (x Int) Rsh(y uint) Int { return MakeBigInt(new(big.Int).Rsh(x.bigInt(), y)) }
[all …]
/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/android/guava/src/com/google/common/primitives/
DUnsignedLong.java222 BigInteger bigInt = BigInteger.valueOf(value & UNSIGNED_MASK); in bigIntegerValue() local
224 bigInt = bigInt.setBit(Long.SIZE - 1); in bigIntegerValue()
226 return bigInt; in bigIntegerValue()
/external/guava/guava/src/com/google/common/primitives/
DUnsignedLong.java222 BigInteger bigInt = BigInteger.valueOf(value & UNSIGNED_MASK); in bigIntegerValue() local
224 bigInt = bigInt.setBit(Long.SIZE - 1); in bigIntegerValue()
226 return bigInt; in bigIntegerValue()
/external/starlark-go/syntax/
Dscan_test.go39 if val.bigInt != nil {
40 fmt.Fprintf(&buf, "%d", val.bigInt)
Dscan.go424 bigInt *big.Int // decoded integers > int64 member
1047 val.bigInt = nil
1057 val.bigInt, ok = num.SetString(s, 0)
Dparse.go789 if p.tokval.bigInt != nil {
790 val = p.tokval.bigInt
/external/deqp/external/vulkancts/modules/vulkan/tessellation/
DvktTessellationUtil.hpp432 const int bigInt = ~0u/2; in elemsStr() local
435 const int wrapLength = wrapLengthParam > 0 ? wrapLengthParam : bigInt; in elemsStr()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsonschema/
DTestGenerateJsonSchema.java113 public BigInteger bigInt; field in TestGenerateJsonSchema.Numbers
DNewSchemaTest.java106 public BigInteger bigInt; field in NewSchemaTest.Numbers