/external/guava/android/guava/src/com/google/common/hash/ |
D | AbstractCompositeHashFunction.java | 50 /* protected */ abstract HashCode makeHash(Hasher[] hashers); in makeHash() 53 public Hasher newHasher() { in newHasher() 54 Hasher[] hashers = new Hasher[functions.length]; in newHasher() 62 public Hasher newHasher(int expectedInputSize) { in newHasher() 64 Hasher[] hashers = new Hasher[functions.length]; in newHasher() 71 private Hasher fromHashers(final Hasher[] hashers) { in fromHashers() 72 return new Hasher() { in fromHashers() 74 public Hasher putByte(byte b) { in fromHashers() 75 for (Hasher hasher : hashers) { in fromHashers() 82 public Hasher putBytes(byte[] bytes) { in fromHashers() [all …]
|
D | Hasher.java | 57 public interface Hasher extends PrimitiveSink { interface 59 Hasher putByte(byte b); in putByte() 62 Hasher putBytes(byte[] bytes); in putBytes() 65 Hasher putBytes(byte[] bytes, int off, int len); in putBytes() 68 Hasher putBytes(ByteBuffer bytes); in putBytes() 71 Hasher putShort(short s); in putShort() 74 Hasher putInt(int i); in putInt() 77 Hasher putLong(long l); in putLong() 81 Hasher putFloat(float f); in putFloat() 85 Hasher putDouble(double d); in putDouble() [all …]
|
D | AbstractHasher.java | 29 abstract class AbstractHasher implements Hasher { 31 public final Hasher putBoolean(boolean b) { in putBoolean() 36 public final Hasher putDouble(double d) { in putDouble() 41 public final Hasher putFloat(float f) { in putFloat() 46 public Hasher putUnencodedChars(CharSequence charSequence) { in putUnencodedChars() 54 public Hasher putString(CharSequence charSequence, Charset charset) { in putString() 59 public Hasher putBytes(byte[] bytes) { in putBytes() 64 public Hasher putBytes(byte[] bytes, int off, int len) { in putBytes() 73 public Hasher putBytes(ByteBuffer b) { in putBytes() 86 public Hasher putShort(short s) { in putShort() [all …]
|
D | AbstractByteHasher.java | 66 private Hasher update(int bytes) { in update() 76 public Hasher putByte(byte b) { in putByte() 82 public Hasher putBytes(byte[] bytes) { in putBytes() 89 public Hasher putBytes(byte[] bytes, int off, int len) { in putBytes() 96 public Hasher putBytes(ByteBuffer bytes) { in putBytes() 102 public Hasher putShort(short s) { in putShort() 108 public Hasher putInt(int i) { in putInt() 114 public Hasher putLong(long l) { in putLong() 120 public Hasher putChar(char c) { in putChar()
|
D | AbstractStreamingHasher.java | 94 public final Hasher putBytes(byte[] bytes, int off, int len) { in putBytes() 99 public final Hasher putBytes(ByteBuffer readBuffer) { in putBytes() 109 private Hasher putBytesInternal(ByteBuffer readBuffer) { in putBytesInternal() 145 public final Hasher putByte(byte b) { in putByte() 152 public final Hasher putShort(short s) { in putShort() 159 public final Hasher putChar(char c) { in putChar() 166 public final Hasher putInt(int i) { in putInt() 173 public final Hasher putLong(long l) { in putLong()
|
D | AbstractNonStreamingHashFunction.java | 35 public Hasher newHasher() { in newHasher() 40 public Hasher newHasher(int expectedInputSize) { in newHasher() 87 public Hasher putByte(byte b) { in putByte() 93 public Hasher putBytes(byte[] bytes, int off, int len) { in putBytes() 99 public Hasher putBytes(ByteBuffer bytes) { in putBytes()
|
/external/guava/guava/src/com/google/common/hash/ |
D | AbstractCompositeHashFunction.java | 50 /* protected */ abstract HashCode makeHash(Hasher[] hashers); in makeHash() 53 public Hasher newHasher() { in newHasher() 54 Hasher[] hashers = new Hasher[functions.length]; in newHasher() 62 public Hasher newHasher(int expectedInputSize) { in newHasher() 64 Hasher[] hashers = new Hasher[functions.length]; in newHasher() 71 private Hasher fromHashers(final Hasher[] hashers) { in fromHashers() 72 return new Hasher() { in fromHashers() 74 public Hasher putByte(byte b) { in fromHashers() 75 for (Hasher hasher : hashers) { in fromHashers() 82 public Hasher putBytes(byte[] bytes) { in fromHashers() [all …]
|
D | Hasher.java | 57 public interface Hasher extends PrimitiveSink { interface 59 Hasher putByte(byte b); in putByte() 62 Hasher putBytes(byte[] bytes); in putBytes() 65 Hasher putBytes(byte[] bytes, int off, int len); in putBytes() 68 Hasher putBytes(ByteBuffer bytes); in putBytes() 71 Hasher putShort(short s); in putShort() 74 Hasher putInt(int i); in putInt() 77 Hasher putLong(long l); in putLong() 81 Hasher putFloat(float f); in putFloat() 85 Hasher putDouble(double d); in putDouble() [all …]
|
D | AbstractHasher.java | 29 abstract class AbstractHasher implements Hasher { 31 public final Hasher putBoolean(boolean b) { in putBoolean() 36 public final Hasher putDouble(double d) { in putDouble() 41 public final Hasher putFloat(float f) { in putFloat() 46 public Hasher putUnencodedChars(CharSequence charSequence) { in putUnencodedChars() 54 public Hasher putString(CharSequence charSequence, Charset charset) { in putString() 59 public Hasher putBytes(byte[] bytes) { in putBytes() 64 public Hasher putBytes(byte[] bytes, int off, int len) { in putBytes() 73 public Hasher putBytes(ByteBuffer b) { in putBytes() 86 public Hasher putShort(short s) { in putShort() [all …]
|
D | AbstractByteHasher.java | 66 private Hasher update(int bytes) { in update() 76 public Hasher putByte(byte b) { in putByte() 82 public Hasher putBytes(byte[] bytes) { in putBytes() 89 public Hasher putBytes(byte[] bytes, int off, int len) { in putBytes() 96 public Hasher putBytes(ByteBuffer bytes) { in putBytes() 102 public Hasher putShort(short s) { in putShort() 108 public Hasher putInt(int i) { in putInt() 114 public Hasher putLong(long l) { in putLong() 120 public Hasher putChar(char c) { in putChar()
|
D | AbstractStreamingHasher.java | 94 public final Hasher putBytes(byte[] bytes, int off, int len) { in putBytes() 99 public final Hasher putBytes(ByteBuffer readBuffer) { in putBytes() 109 private Hasher putBytesInternal(ByteBuffer readBuffer) { in putBytesInternal() 145 public final Hasher putByte(byte b) { in putByte() 152 public final Hasher putShort(short s) { in putShort() 159 public final Hasher putChar(char c) { in putChar() 166 public final Hasher putInt(int i) { in putInt() 173 public final Hasher putLong(long l) { in putLong()
|
D | AbstractNonStreamingHashFunction.java | 35 public Hasher newHasher() { in newHasher() 40 public Hasher newHasher(int expectedInputSize) { in newHasher() 87 public Hasher putByte(byte b) { in putByte() 93 public Hasher putBytes(byte[] bytes, int off, int len) { in putBytes() 99 public Hasher putBytes(ByteBuffer bytes) { in putBytes()
|
/external/google-fruit/include/fruit/impl/util/ |
D | hash_helpers.h | 40 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 …]
|
D | hash_helpers.defn.h | 41 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/rust/crates/syn/src/gen/ |
D | hash.rs | 7 use std::hash::{Hash, Hasher}; 13 H: Hasher, in hash() argument 23 H: Hasher, in hash() argument 34 H: Hasher, in hash() argument 48 H: Hasher, in hash() argument 65 H: Hasher, in hash() argument 77 H: Hasher, in hash() argument 89 H: Hasher, in hash() argument 184 H: Hasher, in hash() argument 195 H: Hasher, in hash() argument [all …]
|
/external/rust/crates/ahash/src/ |
D | specialize.rs | 4 use core::hash::Hasher; 31 fn get_hash<H: Hasher>(value: &Self, hasher: H) -> u64; in get_hash() 40 fn get_hash<H: Hasher>(value: &T, mut hasher: H) -> u64 { in get_hash() 52 default fn get_hash<H: Hasher>(value: &T, mut hasher: H) -> u64 { in get_hash() 63 fn get_hash<H: Hasher>(value: &$typ, hasher: H) -> u64 { 70 fn get_hash<H: Hasher>(value: &&$typ, hasher: H) -> u64 { 77 fn get_hash<H: Hasher>(value: &&&$typ, hasher: H) -> u64 { 95 fn get_hash<H: Hasher>(value: &u128, mut hasher: H) -> u64 { in get_hash() 104 fn get_hash<H: Hasher>(value: &&u128, mut hasher: H) -> u64 { in get_hash() 113 fn get_hash<H: Hasher>(value: &&&u128, mut hasher: H) -> u64 { in get_hash() [all …]
|
/external/rust/crates/crc32fast/src/ |
D | lib.rs | 54 pub struct Hasher { struct 61 impl Hasher { implementation 81 Hasher { in internal_new_baseline() 92 return Some(Hasher { in internal_new_specialized() 138 impl fmt::Debug for Hasher { implementation 144 impl Default for Hasher { implementation 150 impl hash::Hasher for Hasher { implementation 162 use super::Hasher; 166 let mut hash_a = Hasher::new(); 169 let mut hash_b = Hasher::new(); [all …]
|
/external/rust/crates/crc32fast/benches/ |
D | bench.rs | 7 use crc32fast::Hasher; 10 fn bench(b: &mut Bencher, size: usize, hasher_init: Hasher) { in bench() argument 24 bench(b, 1024, Hasher::internal_new_baseline(0)) in bench_kilobyte_baseline() 28 bench(b, 1024, Hasher::internal_new_specialized(0).unwrap()) in bench_kilobyte_specialized() 32 bench(b, 1024 * 1024, Hasher::internal_new_baseline(0)) in bench_megabyte_baseline() 36 bench(b, 1024 * 1024, Hasher::internal_new_specialized(0).unwrap()) in bench_megabyte_specialized()
|
/external/vulkan-validation-layers/layers/ |
D | hash_util.h | 70 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/ |
D | HashCalc.cpp | 97 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/llvm/lib/Transforms/Utils/ |
D | NameAnonFunctions.cpp | 37 MD5 Hasher; in get() local 42 Hasher.update(Name); in get() 48 Hasher.update(Name); in get() 53 Hasher.final(Hash); in get()
|
/external/rust/cxx/syntax/ |
D | impls.rs | 4 use std::hash::{Hash, Hasher}; 41 fn hash<H: Hasher>(&self, state: &mut H) { in hash() 103 fn hash<H: Hasher>(&self, state: &mut H) { in hash() 137 fn hash<H: Hasher>(&self, state: &mut H) { in hash() 176 fn hash<H: Hasher>(&self, state: &mut H) { in hash() 216 fn hash<H: Hasher>(&self, state: &mut H) { in hash() 254 fn hash<H: Hasher>(&self, state: &mut H) { in hash() 292 fn hash<H: Hasher>(&self, state: &mut H) { in hash() 357 fn hash<H: Hasher>(&self, state: &mut H) { in hash() 417 fn hash<H: Hasher>(&self, state: &mut H) { in hash()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | NameAnonGlobals.cpp | 39 MD5 Hasher; in get() local 44 Hasher.update(Name); in get() 50 Hasher.update(Name); in get() 55 Hasher.final(Hash); in get()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | NameAnonGlobals.cpp | 39 MD5 Hasher; in get() local 44 Hasher.update(Name); in get() 50 Hasher.update(Name); in get() 55 Hasher.final(Hash); in get()
|
/external/llvm-project/clang/unittests/AST/ |
D | DataCollectionTest.cpp | 75 StmtHashMatch Hasher(Hash); in hashStmt() local 77 Finder.addMatcher(StmtMatch, &Hasher); in hashStmt() 83 if (Hasher.NumFound == 0) in hashStmt() 85 if (Hasher.NumFound > 1) in hashStmt() 89 << Hasher.NumFound << ")"; in hashStmt()
|