Home
last modified time | relevance | path

Searched refs:bUnsigned (Results 1 – 4 of 4) sorted by relevance

/external/guava/guava-tests/test/com/google/common/primitives/
DUnsignedIntegerTest.java147 UnsignedInteger bUnsigned = UnsignedInteger.fromIntBits(b); in testPlus() local
148 int expected = aUnsigned.bigIntegerValue().add(bUnsigned.bigIntegerValue()).intValue(); in testPlus()
149 UnsignedInteger unsignedSum = aUnsigned.plus(bUnsigned); in testPlus()
159 UnsignedInteger bUnsigned = UnsignedInteger.fromIntBits(b); in testMinus() local
161 force32(aUnsigned.bigIntegerValue().subtract(bUnsigned.bigIntegerValue()).intValue()); in testMinus()
162 UnsignedInteger unsignedSub = aUnsigned.minus(bUnsigned); in testMinus()
173 UnsignedInteger bUnsigned = UnsignedInteger.fromIntBits(b); in testTimes() local
175 force32(aUnsigned.bigIntegerValue().multiply(bUnsigned.bigIntegerValue()).intValue()); in testTimes()
176 UnsignedInteger unsignedMul = aUnsigned.times(bUnsigned); in testTimes()
177 assertEquals(aUnsigned + " * " + bUnsigned, expected, unsignedMul.intValue()); in testTimes()
[all …]
DUnsignedLongTest.java151 UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b); in testPlus() local
152 long expected = aUnsigned.bigIntegerValue().add(bUnsigned.bigIntegerValue()).longValue(); in testPlus()
153 UnsignedLong unsignedSum = aUnsigned.plus(bUnsigned); in testPlus()
163 UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b); in testMinus() local
165 aUnsigned.bigIntegerValue().subtract(bUnsigned.bigIntegerValue()).longValue(); in testMinus()
166 UnsignedLong unsignedSub = aUnsigned.minus(bUnsigned); in testMinus()
176 UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b); in testTimes() local
178 aUnsigned.bigIntegerValue().multiply(bUnsigned.bigIntegerValue()).longValue(); in testTimes()
179 UnsignedLong unsignedMul = aUnsigned.times(bUnsigned); in testTimes()
190 UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b); in testDividedBy() local
[all …]
/external/guava/android/guava-tests/test/com/google/common/primitives/
DUnsignedIntegerTest.java147 UnsignedInteger bUnsigned = UnsignedInteger.fromIntBits(b); in testPlus() local
148 int expected = aUnsigned.bigIntegerValue().add(bUnsigned.bigIntegerValue()).intValue(); in testPlus()
149 UnsignedInteger unsignedSum = aUnsigned.plus(bUnsigned); in testPlus()
159 UnsignedInteger bUnsigned = UnsignedInteger.fromIntBits(b); in testMinus() local
161 force32(aUnsigned.bigIntegerValue().subtract(bUnsigned.bigIntegerValue()).intValue()); in testMinus()
162 UnsignedInteger unsignedSub = aUnsigned.minus(bUnsigned); in testMinus()
173 UnsignedInteger bUnsigned = UnsignedInteger.fromIntBits(b); in testTimes() local
175 force32(aUnsigned.bigIntegerValue().multiply(bUnsigned.bigIntegerValue()).intValue()); in testTimes()
176 UnsignedInteger unsignedMul = aUnsigned.times(bUnsigned); in testTimes()
177 assertEquals(aUnsigned + " * " + bUnsigned, expected, unsignedMul.intValue()); in testTimes()
[all …]
DUnsignedLongTest.java151 UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b); in testPlus() local
152 long expected = aUnsigned.bigIntegerValue().add(bUnsigned.bigIntegerValue()).longValue(); in testPlus()
153 UnsignedLong unsignedSum = aUnsigned.plus(bUnsigned); in testPlus()
163 UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b); in testMinus() local
165 aUnsigned.bigIntegerValue().subtract(bUnsigned.bigIntegerValue()).longValue(); in testMinus()
166 UnsignedLong unsignedSub = aUnsigned.minus(bUnsigned); in testMinus()
176 UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b); in testTimes() local
178 aUnsigned.bigIntegerValue().multiply(bUnsigned.bigIntegerValue()).longValue(); in testTimes()
179 UnsignedLong unsignedMul = aUnsigned.times(bUnsigned); in testTimes()
190 UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b); in testDividedBy() local
[all …]