Home
last modified time | relevance | path

Searched refs:Longs (Results 1 – 25 of 62) sorted by relevance

123

/external/guava/android/guava-tests/test/com/google/common/primitives/
DLongsTest.java54 assertEquals("hashCode for " + value, ((Long) value).hashCode(), Longs.hashCode(value)); in testHashCode()
62 assertEquals(x + ", " + y, Long.valueOf(x).compareTo(y), Longs.compare(x, y)); in testCompare()
68 assertFalse(Longs.contains(EMPTY, (long) 1)); in testContains()
69 assertFalse(Longs.contains(ARRAY1, (long) 2)); in testContains()
70 assertFalse(Longs.contains(ARRAY234, (long) 1)); in testContains()
71 assertTrue(Longs.contains(new long[] {(long) -1}, (long) -1)); in testContains()
72 assertTrue(Longs.contains(ARRAY234, (long) 2)); in testContains()
73 assertTrue(Longs.contains(ARRAY234, (long) 3)); in testContains()
74 assertTrue(Longs.contains(ARRAY234, (long) 4)); in testContains()
78 assertEquals(-1, Longs.indexOf(EMPTY, (long) 1)); in testIndexOf()
[all …]
/external/guava/guava-tests/test/com/google/common/primitives/
DLongsTest.java54 assertEquals("hashCode for " + value, ((Long) value).hashCode(), Longs.hashCode(value)); in testHashCode()
62 assertEquals(x + ", " + y, Long.valueOf(x).compareTo(y), Longs.compare(x, y)); in testCompare()
68 assertFalse(Longs.contains(EMPTY, (long) 1)); in testContains()
69 assertFalse(Longs.contains(ARRAY1, (long) 2)); in testContains()
70 assertFalse(Longs.contains(ARRAY234, (long) 1)); in testContains()
71 assertTrue(Longs.contains(new long[] {(long) -1}, (long) -1)); in testContains()
72 assertTrue(Longs.contains(ARRAY234, (long) 2)); in testContains()
73 assertTrue(Longs.contains(ARRAY234, (long) 3)); in testContains()
74 assertTrue(Longs.contains(ARRAY234, (long) 4)); in testContains()
78 assertEquals(-1, Longs.indexOf(EMPTY, (long) 1)); in testIndexOf()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/
DHash.cpp24 ArrayRef<ulittle32_t> Longs(reinterpret_cast<const ulittle32_t *>(Str.data()), in hashStringV1()
27 for (auto Value : Longs) in hashStringV1()
30 const uint8_t *Remainder = reinterpret_cast<const uint8_t *>(Longs.end()); in hashStringV1()
/external/llvm-project/llvm/lib/DebugInfo/PDB/Native/
DHash.cpp24 ArrayRef<ulittle32_t> Longs(reinterpret_cast<const ulittle32_t *>(Str.data()), in hashStringV1()
27 for (auto Value : Longs) in hashStringV1()
30 const uint8_t *Remainder = reinterpret_cast<const uint8_t *>(Longs.end()); in hashStringV1()
/external/llvm/lib/DebugInfo/PDB/Raw/
DHash.cpp24 ArrayRef<ulittle32_t> Longs(reinterpret_cast<const ulittle32_t *>(Str.data()), in hashStringV1()
27 for (auto Value : Longs) in hashStringV1()
30 const uint8_t *Remainder = reinterpret_cast<const uint8_t *>(Longs.end()); in hashStringV1()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/gcm/
DGCMUtil.java4 import org.bouncycastle.util.Longs;
178 long x0r = Longs.reverse(x0), x1r = Longs.reverse(x1); in multiply()
179 long y0r = Longs.reverse(y0), y1r = Longs.reverse(y1); in multiply()
181 long h0 = Longs.reverse(implMul64(x0r, y0r)); in multiply()
183 long h2 = Longs.reverse(implMul64(x1r, y1r)); in multiply()
185 long h4 = Longs.reverse(implMul64(x0r ^ x1r, y0r ^ y1r)); in multiply()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/modes/gcm/
DGCMUtil.java5 import com.android.internal.org.bouncycastle.util.Longs;
182 long x0r = Longs.reverse(x0), x1r = Longs.reverse(x1); in multiply()
183 long y0r = Longs.reverse(y0), y1r = Longs.reverse(y1); in multiply()
185 long h0 = Longs.reverse(implMul64(x0r, y0r)); in multiply()
187 long h2 = Longs.reverse(implMul64(x1r, y1r)); in multiply()
189 long h4 = Longs.reverse(implMul64(x0r ^ x1r, y0r ^ y1r)); in multiply()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/modes/gcm/
DGCMUtil.java5 import com.android.org.bouncycastle.util.Longs;
182 long x0r = Longs.reverse(x0), x1r = Longs.reverse(x1); in multiply()
183 long y0r = Longs.reverse(y0), y1r = Longs.reverse(y1); in multiply()
185 long h0 = Longs.reverse(implMul64(x0r, y0r)); in multiply()
187 long h2 = Longs.reverse(implMul64(x1r, y1r)); in multiply()
189 long h4 = Longs.reverse(implMul64(x0r ^ x1r, y0r ^ y1r)); in multiply()
/external/guava/android/guava/src/com/google/common/primitives/
DLongs.java46 public final class Longs { class
47 private Longs() {} in Longs() method in Longs
540 int result = Longs.compare(left[i], right[i]); in compare()
694 return (target instanceof Long) && Longs.indexOf(array, (Long) target, start, end) != -1; in contains()
701 int i = Longs.indexOf(array, (Long) target, start, end); in indexOf()
713 int i = Longs.lastIndexOf(array, (Long) target, start, end); in lastIndexOf()
765 result = 31 * result + Longs.hashCode(array[i]); in hashCode()
/external/guava/guava/src/com/google/common/primitives/
DLongs.java48 public final class Longs { class
49 private Longs() {} in Longs() method in Longs
540 int result = Longs.compare(left[i], right[i]); in compare()
699 return (target instanceof Long) && Longs.indexOf(array, (Long) target, start, end) != -1; in contains()
706 int i = Longs.indexOf(array, (Long) target, start, end); in indexOf()
718 int i = Longs.lastIndexOf(array, (Long) target, start, end); in lastIndexOf()
770 result = 31 * result + Longs.hashCode(array[i]); in hashCode()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/base/value/
DBaseLongEncodedValue.java35 import com.google.common.primitives.Longs;
63 return Longs.compare(getValue(), ((LongEncodedValue)o).getValue()); in compareTo()
/external/guava/guava-tests/test/com/google/common/base/
DConverterTest.java24 import com.google.common.primitives.Longs;
212 Converter<Long, String> reverseConverter = Longs.stringConverter().reverse();
217 Converter<String, Long> converterA = Longs.stringConverter();
218 Converter<Long, String> reverseConverter = Longs.stringConverter().reverse();
/external/guava/android/guava-tests/test/com/google/common/base/
DConverterTest.java24 import com.google.common.primitives.Longs;
212 Converter<Long, String> reverseConverter = Longs.stringConverter().reverse();
217 Converter<String, Long> converterA = Longs.stringConverter();
218 Converter<Long, String> reverseConverter = Longs.stringConverter().reverse();
/external/guava/guava/src/com/google/common/io/
DLittleEndianDataOutputStream.java20 import com.google.common.primitives.Longs;
145 byte[] bytes = Longs.toByteArray(Long.reverseBytes(v)); in writeLong()
DLittleEndianDataInputStream.java21 import com.google.common.primitives.Longs;
143 return Longs.fromBytes(b8, b7, b6, b5, b4, b3, b2, b1); in readLong()
/external/guava/android/guava/src/com/google/common/io/
DLittleEndianDataOutputStream.java20 import com.google.common.primitives.Longs;
145 byte[] bytes = Longs.toByteArray(Long.reverseBytes(v)); in writeLong()
DLittleEndianDataInputStream.java21 import com.google.common.primitives.Longs;
143 return Longs.fromBytes(b8, b7, b6, b5, b4, b3, b2, b1); in readLong()
/external/guava/android/guava/src/com/google/common/hash/
DAbstractByteHasher.java22 import com.google.common.primitives.Longs;
116 return update(Longs.BYTES); in putLong()
DBloomFilterStrategies.java21 import com.google.common.primitives.Longs;
132 return Longs.fromBytes( in MURMUR128_MITZ_64()
137 return Longs.fromBytes( in MURMUR128_MITZ_64()
DLittleEndianByteArray.java17 import com.google.common.primitives.Longs;
210 return Longs.fromBytes(
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
DTestingExecutors.java22 import com.google.common.primitives.Longs;
166 return Longs.compare(getDelay(TimeUnit.NANOSECONDS), other.getDelay(TimeUnit.NANOSECONDS)); in compareTo()
/external/guava/android/guava-testlib/src/com/google/common/util/concurrent/testing/
DTestingExecutors.java22 import com.google.common.primitives.Longs;
166 return Longs.compare(getDelay(TimeUnit.NANOSECONDS), other.getDelay(TimeUnit.NANOSECONDS)); in compareTo()
/external/guava/guava/src/com/google/common/hash/
DAbstractByteHasher.java22 import com.google.common.primitives.Longs;
116 return update(Longs.BYTES); in putLong()
DBloomFilterStrategies.java21 import com.google.common.primitives.Longs;
132 return Longs.fromBytes( in MURMUR128_MITZ_64()
137 return Longs.fromBytes( in MURMUR128_MITZ_64()
/external/opencensus-java/exporters/trace/jaeger/src/main/java/io/opencensus/exporter/trace/jaeger/
DJaegerExporterHandler.java26 import com.google.common.primitives.Longs;
215 return Longs.fromBytes( in traceIdHigh()
227 return Longs.fromBytes( in traceIdLow()
244 return Longs.fromByteArray(spanIdBuffer); in spanIdToLong()

123