Home
last modified time | relevance | path

Searched refs:Hasher (Results 1 – 25 of 73) sorted by relevance

123

/external/guava/guava/src/com/google/common/hash/
DAbstractCompositeHashFunction.java46 /* protected */ abstract HashCode makeHash(Hasher[] hashers); in makeHash()
49 public Hasher newHasher() { in newHasher()
50 final Hasher[] hashers = new Hasher[functions.length]; in newHasher()
54 return new Hasher() { in newHasher()
55 @Override public Hasher putByte(byte b) { in newHasher()
56 for (Hasher hasher : hashers) { in newHasher()
62 @Override public Hasher putBytes(byte[] bytes) { in newHasher()
63 for (Hasher hasher : hashers) { in newHasher()
69 @Override public Hasher putBytes(byte[] bytes, int off, int len) { in newHasher()
70 for (Hasher hasher : hashers) { in newHasher()
[all …]
DHasher.java53 public interface Hasher extends PrimitiveSink { interface
54 @Override Hasher putByte(byte b); in putByte()
55 @Override Hasher putBytes(byte[] bytes); in putBytes()
56 @Override Hasher putBytes(byte[] bytes, int off, int len); in putBytes()
57 @Override Hasher putShort(short s); in putShort()
58 @Override Hasher putInt(int i); in putInt()
59 @Override Hasher putLong(long l); in putLong()
64 @Override Hasher putFloat(float f); in putFloat()
69 @Override Hasher putDouble(double d); in putDouble()
74 @Override Hasher putBoolean(boolean b); in putBoolean()
[all …]
DAbstractNonStreamingHashFunction.java34 public Hasher newHasher() { in newHasher()
39 public Hasher newHasher(int expectedInputSize) { in newHasher()
50 Hasher hasher = newHasher(len * 2); in hashUnencodedChars()
85 public Hasher putByte(byte b) { in putByte()
91 public Hasher putBytes(byte[] bytes) { in putBytes()
101 public Hasher putBytes(byte[] bytes, int off, int len) { in putBytes()
107 public Hasher putShort(short s) { in putShort()
114 public Hasher putInt(int i) { in putInt()
123 public Hasher putLong(long l) { in putLong()
131 public Hasher putChar(char c) { in putChar()
[all …]
DAbstractByteHasher.java62 public Hasher putByte(byte b) { in putByte()
68 public Hasher putBytes(byte[] bytes) { in putBytes()
75 public Hasher putBytes(byte[] bytes, int off, int len) { in putBytes()
84 private Hasher update(int bytes) { in update()
94 public Hasher putShort(short s) { in putShort()
100 public Hasher putInt(int i) { in putInt()
106 public Hasher putLong(long l) { in putLong()
112 public Hasher putChar(char c) { in putChar()
118 public <T> Hasher putObject(T instance, Funnel<? super T> funnel) { in putObject()
DAbstractStreamingHashFunction.java64 @Override public Hasher newHasher(int expectedInputSize) { in newHasher()
144 public final Hasher putBytes(byte[] bytes) { in putBytes()
149 public final Hasher putBytes(byte[] bytes, int off, int len) { in putBytes()
153 private Hasher putBytes(ByteBuffer readBuffer) { in putBytes()
179 public final Hasher putUnencodedChars(CharSequence charSequence) { in putUnencodedChars()
187 public final Hasher putByte(byte b) { in putByte()
194 public final Hasher putShort(short s) { in putShort()
201 public final Hasher putChar(char c) { in putChar()
208 public final Hasher putInt(int i) { in putInt()
215 public final Hasher putLong(long l) { in putLong()
[all …]
DAbstractHasher.java26 abstract class AbstractHasher implements Hasher {
27 @Override public final Hasher putBoolean(boolean b) { in putBoolean()
31 @Override public final Hasher putDouble(double d) { in putDouble()
35 @Override public final Hasher putFloat(float f) { in putFloat()
39 @Override public Hasher putUnencodedChars(CharSequence charSequence) { in putUnencodedChars()
46 @Override public Hasher putString(CharSequence charSequence, Charset charset) { in putString()
DHashFunction.java143 Hasher newHasher(); in newHasher()
151 Hasher newHasher(int expectedInputSize); in newHasher()
/external/google-fruit/include/fruit/impl/util/
Dhash_helpers.h40 template <typename T, typename Hasher = std::hash<T>, typename EqualityComparator = std::equal_to<T…
41 using HashSet = boost::unordered_set<T, Hasher, EqualityComparator>;
43 template <typename T, typename Hasher = std::hash<T>, typename EqualityComparator = std::equal_to<T…
44 using HashSetWithArenaAllocator = boost::unordered_set<T, Hasher, EqualityComparator, ArenaAllocato…
46 template <typename Key, typename Value, typename Hasher = std::hash<Key>>
47 using HashMap = boost::unordered_map<Key, Value, Hasher>;
49 template <typename Key, typename Value, typename Hasher = std::hash<Key>,
52 …boost::unordered_map<Key, Value, Hasher, EqualityComparator, ArenaAllocator<std::pair<const Key, V…
55 template <typename T, typename Hasher = std::hash<T>, typename EqualityComparator = std::equal_to<T…
56 using HashSet = std::unordered_set<T, Hasher, EqualityComparator>;
[all …]
Dhash_helpers.defn.h41 template <typename T, typename Hasher, typename EqualityComparator>
42 inline HashSetWithArenaAllocator<T, Hasher, EqualityComparator>
43 createHashSetWithArenaAllocatorAndCustomFunctors(size_t capacity, MemoryPool& memory_pool, Hasher h… in createHashSetWithArenaAllocatorAndCustomFunctors()
45 …return HashSetWithArenaAllocator<T, Hasher, EqualityComparator>(capacity, hasher, equality_compara… in createHashSetWithArenaAllocatorAndCustomFunctors()
66 template <typename Key, typename Value, typename Hasher, typename EqualityComparator>
67 inline HashMapWithArenaAllocator<Key, Value, Hasher, EqualityComparator>
68 createHashMapWithArenaAllocatorAndCustomFunctors(size_t capacity, MemoryPool& memory_pool, Hasher h… in createHashMapWithArenaAllocatorAndCustomFunctors()
70 return HashMapWithArenaAllocator<Key, Value, Hasher, EqualityComparator>( in createHashMapWithArenaAllocatorAndCustomFunctors()
/external/v8/src/compiler/
Dpersistent-map.h34 template <class Key, class Value, class Hasher = base::hash<Key>>
70 HashValue key_hash = HashValue(Hasher()(key)); in Get()
172 template <class Key, class Value, class Hasher>
173 struct PersistentMap<Key, Value, Hasher>::FocusedTree {
200 template <class Key, class Value, class Hasher>
201 class PersistentMap<Key, Value, Hasher>::HashValue {
224 template <class Key, class Value, class Hasher>
225 class PersistentMap<Key, Value, Hasher>::iterator {
318 template <class Key, class Value, class Hasher>
319 class PersistentMap<Key, Value, Hasher>::double_iterator {
[all …]
/external/vulkan-validation-layers/layers/
Dhash_util.h70 template <typename Value, typename Hasher = WrappedHash<Value>>
72 combined_ ^= Hasher()(value) + kMagic + (combined_ << 6) + (combined_ >> 2); in Combine()
76 …template <typename Iterator, typename Hasher = WrappedHash<typename std::iterator_traits<Iterator>…
81 Combine<Value, Hasher>(*current); in Combine()
86 template <typename Value, typename Hasher = WrappedHash<Value>>
129 template <typename T, typename Hasher = std::hash<T>, typename KeyEqual = std::equal_to<T>>
151 size_t operator()(const Id &value) const { return Hasher()(*value); } in operator()
/external/lzma/CPP/7zip/UI/Common/
DHashCalc.cpp97 h.Hasher = hasher; in SetMethods()
113 h.Hasher->Init(); in InitForNewFile()
122 Hashers[i].Hasher->Update(data, size); in Update()
166 h.Hasher->Final(h.Digests[0]); in Final()
171 h.Hasher->Init(); in Final()
172 h.Hasher->Update(pre, sizeof(pre)); in Final()
173 h.Hasher->Update(h.Digests[0], h.DigestSize); in Final()
179 h.Hasher->Update(temp, 2); in Final()
183 h.Hasher->Final(tempDigest); in Final()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-pdbutil/
DAnalyze.cpp74 HashLookupVisitor Hasher(*Tpi); in dump() local
81 if (auto EC = codeview::visitTypeStream(*Types, Hasher)) in dump()
93 for (const auto &H : Hasher.Lookup) { in dump()
122 auto CollisionsIter = Hasher.Lookup.find(*HeadRecord.Hash); in dump()
123 if (CollisionsIter == Hasher.Lookup.end()) in dump()
145 uint32_t DistinctHashValues = Hasher.Lookup.size(); in dump()
/external/llvm/lib/Transforms/Utils/
DNameAnonFunctions.cpp37 MD5 Hasher; in get() local
42 Hasher.update(Name); in get()
48 Hasher.update(Name); in get()
53 Hasher.final(Hash); in get()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DNameAnonGlobals.cpp40 MD5 Hasher; in get() local
45 Hasher.update(Name); in get()
51 Hasher.update(Name); in get()
56 Hasher.final(Hash); in get()
/external/guava/guava-tests/test/com/google/common/hash/
DAbstractNonStreamingHashFunctionTest.java40 List<Hasher> hashers = ImmutableList.of( in testExhaustive()
83 Hasher h1 = new NonStreamingVersion().newHasher(); in assertPutString()
84 Hasher h2 = new NonStreamingVersion().newHasher(); in assertPutString()
101 public Hasher newHasher() { in newHasher()
DHashingOutputStreamTest.java31 private Hasher hasher;
37 hasher = EasyMock.createMock(Hasher.class); in setUp()
DMessageDigestHashFunctionTest.java62 Hasher sha1 = Hashing.sha1().newHasher(); in testPutAfterHash()
76 Hasher sha1 = Hashing.sha1().newHasher(); in testHashTwice()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/LTO/
DThinLTOCodeGenerator.cpp322 SHA1 Hasher; in ModuleCacheEntry() local
326 Hasher.update(Str); in ModuleCacheEntry()
327 Hasher.update(ArrayRef<uint8_t>{0}); in ModuleCacheEntry()
335 Hasher.update(ArrayRef<uint8_t>{Data, 4}); in ModuleCacheEntry()
339 Hasher.update(LLVM_VERSION_STRING); in ModuleCacheEntry()
341 Hasher.update(LLVM_REVISION); in ModuleCacheEntry()
361 Hasher.update(ArrayRef<uint8_t>((uint8_t *)&ModHash[0], sizeof(ModHash))); in ModuleCacheEntry()
364 Hasher.update(ArrayRef<uint8_t>((uint8_t *)&F, sizeof(F))); in ModuleCacheEntry()
369 Hasher.update(ArrayRef<uint8_t>((uint8_t *)&ModHash[0], sizeof(ModHash))); in ModuleCacheEntry()
374 Hasher.update(ArrayRef<uint8_t>((const uint8_t *)&Entry.first, in ModuleCacheEntry()
[all …]
DLTO.cpp81 SHA1 Hasher; in computeCacheKey() local
84 Hasher.update(LLVM_VERSION_STRING); in computeCacheKey()
86 Hasher.update(LLVM_REVISION); in computeCacheKey()
91 Hasher.update(Str); in computeCacheKey()
92 Hasher.update(ArrayRef<uint8_t>{0}); in computeCacheKey()
100 Hasher.update(ArrayRef<uint8_t>{Data, 4}); in computeCacheKey()
112 Hasher.update(ArrayRef<uint8_t>{Data, 8}); in computeCacheKey()
145 Hasher.update(ArrayRef<uint8_t>((uint8_t *)&ModHash[0], sizeof(ModHash))); in computeCacheKey()
148 Hasher.update(ArrayRef<uint8_t>((uint8_t *)&F, sizeof(F))); in computeCacheKey()
155 Hasher.update(ArrayRef<uint8_t>((uint8_t *)&ModHash[0], sizeof(ModHash))); in computeCacheKey()
[all …]
/external/llvm/lib/LTO/
DThinLTOCodeGenerator.cpp241 SHA1 Hasher; in ModuleCacheEntry() local
244 Hasher.update(LLVM_VERSION_STRING); in ModuleCacheEntry()
246 Hasher.update(LLVM_REVISION); in ModuleCacheEntry()
251 Hasher.update(ArrayRef<uint8_t>((uint8_t *)&ModHash[0], sizeof(ModHash))); in ModuleCacheEntry()
254 Hasher.update(ArrayRef<uint8_t>((uint8_t *)&F, sizeof(F))); in ModuleCacheEntry()
259 Hasher.update(ArrayRef<uint8_t>((uint8_t *)&ModHash[0], sizeof(ModHash))); in ModuleCacheEntry()
264 Hasher.update(ArrayRef<uint8_t>((const uint8_t *)&Entry.first, in ModuleCacheEntry()
266 Hasher.update(ArrayRef<uint8_t>((const uint8_t *)&Entry.second, in ModuleCacheEntry()
273 Hasher.update( in ModuleCacheEntry()
277 sys::path::append(EntryPath, CachePath, toHex(Hasher.result())); in ModuleCacheEntry()
/external/tensorflow/tensorflow/core/graph/
Dtensor_id.h52 struct Hasher { struct
84 struct Hasher { struct
/external/v8/src/heap/
Darray-buffer-tracker.h101 class Hasher {
113 typedef std::unordered_map<JSArrayBuffer*, JSArrayBuffer::Allocation, Hasher>
/external/tensorflow/tensorflow/core/grappler/graph_analyzer/
Dgen_node.h103 struct Hasher { struct
134 using LinkMap = std::unordered_map<Port, LinkTargetVector, Port::Hasher>;
/external/tensorflow/tensorflow/compiler/xla/service/
Dlogical_buffer_analysis.h72 struct Hasher { struct
86 LogicalBuffer*, Hasher> argument

123