Home
last modified time | relevance | path

Searched refs:aUnsigned (Results 1 – 3 of 3) sorted by relevance

/external/guava/guava-tests/test/com/google/common/primitives/
DUnsignedIntegerTest.java149 UnsignedInteger aUnsigned = UnsignedInteger.fromIntBits(a); in testPlus() local
151 int expected = aUnsigned.bigIntegerValue().add(bUnsigned.bigIntegerValue()).intValue(); in testPlus()
152 UnsignedInteger unsignedSum = aUnsigned.plus(bUnsigned); in testPlus()
161 UnsignedInteger aUnsigned = UnsignedInteger.fromIntBits(a); in testMinus() local
164 force32(aUnsigned.bigIntegerValue().subtract(bUnsigned.bigIntegerValue()).intValue()); in testMinus()
165 UnsignedInteger unsignedSub = aUnsigned.minus(bUnsigned); in testMinus()
175 UnsignedInteger aUnsigned = UnsignedInteger.fromIntBits(a); in testTimes() local
178 force32(aUnsigned.bigIntegerValue().multiply(bUnsigned.bigIntegerValue()).intValue()); in testTimes()
179 UnsignedInteger unsignedMul = aUnsigned.times(bUnsigned); in testTimes()
180 assertEquals(aUnsigned + " * " + bUnsigned, expected, unsignedMul.intValue()); in testTimes()
[all …]
DUnsignedLongTest.java150 UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a); in testPlus() local
152 long expected = aUnsigned in testPlus()
156 UnsignedLong unsignedSum = aUnsigned.plus(bUnsigned); in testPlus()
165 UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a); in testMinus() local
167 long expected = aUnsigned in testMinus()
171 UnsignedLong unsignedSub = aUnsigned.minus(bUnsigned); in testMinus()
180 UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a); in testTimes() local
182 long expected = aUnsigned in testTimes()
186 UnsignedLong unsignedMul = aUnsigned.times(bUnsigned); in testTimes()
196 UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a); in testDividedBy() local
[all …]
/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
DUnsignedLongTest.java136 UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a); in testPlus() local
138 long expected = aUnsigned in testPlus()
142 UnsignedLong unsignedSum = aUnsigned.plus(bUnsigned); in testPlus()
151 UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a); in testMinus() local
153 long expected = aUnsigned in testMinus()
157 UnsignedLong unsignedSub = aUnsigned.minus(bUnsigned); in testMinus()
166 UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a); in testTimes() local
168 long expected = aUnsigned in testTimes()
172 UnsignedLong unsignedMul = aUnsigned.times(bUnsigned); in testTimes()
182 UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a); in testDividedBy() local
[all …]