/third_party/flutter/skia/tests/ |
D | DynamicHashTest.cpp | 48 Hash hash; in DEF_TEST() local 49 ASSERT(hash.capacity() == 0); in DEF_TEST() 51 hash.add(&a); in DEF_TEST() 52 ASSERT(hash.capacity() == 4); in DEF_TEST() 54 hash.add(&b); in DEF_TEST() 55 ASSERT(hash.capacity() == 4); in DEF_TEST() 57 hash.add(&c); in DEF_TEST() 58 ASSERT(hash.capacity() == 4); in DEF_TEST() 60 hash.add(&d); in DEF_TEST() 61 ASSERT(hash.capacity() == 8); in DEF_TEST() [all …]
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | chashtst.c | 34 static void _put(UHashtable* hash, 39 static void _get(UHashtable* hash, 43 static void _remove(UHashtable* hash, 109 UHashtable *hash; in TestBasic() local 111 hash = uhash_open(hashChars, isEqualChars, NULL, &status); in TestBasic() 114 u_errorName(status), hash); in TestBasic() 117 if (hash == NULL) { in TestBasic() 121 log_verbose("Ok: uhash_open returned 0x%08X\n", hash); in TestBasic() 123 _put(hash, one, 1, 0); in TestBasic() 124 _put(hash, omega, 24, 0); in TestBasic() [all …]
|
/third_party/e2fsprogs/ext2ed/ |
D | ext2.descriptors | 416 __u32 hash[1]; 418 __u32 hash[2]; 420 __u32 hash[3]; 422 __u32 hash[4]; 424 __u32 hash[5]; 426 __u32 hash[6]; 428 __u32 hash[7]; 430 __u32 hash[8]; 432 __u32 hash[9]; 434 __u32 hash[10]; [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/cso_cache/ |
D | cso_hash.c | 77 cso_hash_create_node(struct cso_hash *hash, in cso_hash_create_node() argument 91 ++hash->size; in cso_hash_create_node() 95 static void cso_data_rehash(struct cso_hash *hash, int hint) in cso_data_rehash() argument 101 hash->userNumBits = (short)hint; in cso_data_rehash() 102 while (primeForNumBits(hint) < (hash->size >> 1)) in cso_data_rehash() 108 if (hash->numBits != hint) { in cso_data_rehash() 109 struct cso_node *e = (struct cso_node *)hash; in cso_data_rehash() 110 struct cso_node **oldBuckets = hash->buckets; in cso_data_rehash() 111 int oldNumBuckets = hash->numBuckets; in cso_data_rehash() 114 hash->numBits = (short)hint; in cso_data_rehash() [all …]
|
D | cso_hash.h | 61 struct cso_hash *hash; member 75 void cso_hash_init(struct cso_hash *hash); 76 void cso_hash_deinit(struct cso_hash *hash); 79 int cso_hash_size(struct cso_hash *hash); 88 struct cso_hash_iter cso_hash_insert(struct cso_hash *hash, unsigned key, 97 struct cso_hash_iter cso_hash_erase(struct cso_hash *hash, struct cso_hash_iter iter); 99 void *cso_hash_take(struct cso_hash *hash, unsigned key); 103 struct cso_hash_iter cso_hash_first_node(struct cso_hash *hash); 108 bool cso_hash_contains(struct cso_hash *hash, unsigned key); 119 void *cso_hash_find_data_from_template(struct cso_hash *hash, [all …]
|
/third_party/e2fsprogs/tests/f_h_reindex/ |
D | expect.1 | 5 Problem in HTREE directory inode 16001: block #1 has bad max hash 6 Problem in HTREE directory inode 16001: block #2 has bad min hash 7 Problem in HTREE directory inode 16001: block #2 has bad max hash 8 Problem in HTREE directory inode 16001: block #3 has bad min hash 9 Problem in HTREE directory inode 16001: block #3 has bad max hash 10 Problem in HTREE directory inode 16001: block #4 has bad min hash 11 Problem in HTREE directory inode 16001: block #4 has bad max hash 12 Problem in HTREE directory inode 16001: block #5 has bad min hash 13 Problem in HTREE directory inode 16001: block #5 has bad max hash 14 Problem in HTREE directory inode 16001: block #6 has bad min hash [all …]
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | uhash.cpp | 122 #define HASH_DELETE_KEY_VALUE(hash, keypointer, valuepointer) UPRV_BLOCK_MACRO_BEGIN { \ argument 123 if (hash->keyDeleter != NULL && keypointer != NULL) { \ 124 (*hash->keyDeleter)(keypointer); \ 126 if (hash->valueDeleter != NULL && valuepointer != NULL) { \ 127 (*hash->valueDeleter)(valuepointer); \ 146 _uhash_setElement(UHashtable *hash, UHashElement* e, in _uhash_setElement() argument 151 if (hash->keyDeleter != NULL && e->key.pointer != NULL && in _uhash_setElement() 153 (*hash->keyDeleter)(e->key.pointer); in _uhash_setElement() 155 if (hash->valueDeleter != NULL) { in _uhash_setElement() 158 (*hash->valueDeleter)(oldValue.pointer); in _uhash_setElement() [all …]
|
/third_party/node/deps/icu-small/source/common/ |
D | uhash.cpp | 122 #define HASH_DELETE_KEY_VALUE(hash, keypointer, valuepointer) UPRV_BLOCK_MACRO_BEGIN { \ argument 123 if (hash->keyDeleter != NULL && keypointer != NULL) { \ 124 (*hash->keyDeleter)(keypointer); \ 126 if (hash->valueDeleter != NULL && valuepointer != NULL) { \ 127 (*hash->valueDeleter)(valuepointer); \ 146 _uhash_setElement(UHashtable *hash, UHashElement* e, in _uhash_setElement() argument 151 if (hash->keyDeleter != NULL && e->key.pointer != NULL && in _uhash_setElement() 153 (*hash->keyDeleter)(e->key.pointer); in _uhash_setElement() 155 if (hash->valueDeleter != NULL) { in _uhash_setElement() 158 (*hash->valueDeleter)(oldValue.pointer); in _uhash_setElement() [all …]
|
/third_party/icu/icu4c/source/common/ |
D | uhash.cpp | 122 #define HASH_DELETE_KEY_VALUE(hash, keypointer, valuepointer) UPRV_BLOCK_MACRO_BEGIN { \ argument 123 if (hash->keyDeleter != NULL && keypointer != NULL) { \ 124 (*hash->keyDeleter)(keypointer); \ 126 if (hash->valueDeleter != NULL && valuepointer != NULL) { \ 127 (*hash->valueDeleter)(valuepointer); \ 146 _uhash_setElement(UHashtable *hash, UHashElement* e, in _uhash_setElement() argument 151 if (hash->keyDeleter != NULL && e->key.pointer != NULL && in _uhash_setElement() 153 (*hash->keyDeleter)(e->key.pointer); in _uhash_setElement() 155 if (hash->valueDeleter != NULL) { in _uhash_setElement() 158 (*hash->valueDeleter)(oldValue.pointer); in _uhash_setElement() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/common/ |
D | uhash.cpp | 122 #define HASH_DELETE_KEY_VALUE(hash, keypointer, valuepointer) \ argument 123 if (hash->keyDeleter != NULL && keypointer != NULL) { \ 124 (*hash->keyDeleter)(keypointer); \ 126 if (hash->valueDeleter != NULL && valuepointer != NULL) { \ 127 (*hash->valueDeleter)(valuepointer); \ 143 _uhash_setElement(UHashtable *hash, UHashElement* e, in _uhash_setElement() argument 148 if (hash->keyDeleter != NULL && e->key.pointer != NULL && in _uhash_setElement() 150 (*hash->keyDeleter)(e->key.pointer); in _uhash_setElement() 152 if (hash->valueDeleter != NULL) { in _uhash_setElement() 155 (*hash->valueDeleter)(oldValue.pointer); in _uhash_setElement() [all …]
|
/third_party/flutter/skia/src/opts/ |
D | SkChecksum_opts.h | 29 uint64_t hash = seed; in hash_fn() local 34 uint64_t a = hash, in hash_fn() 35 b = hash, in hash_fn() 36 c = hash; in hash_fn() 45 hash = _mm_crc32_u32(a, _mm_crc32_u32(b, c)); in hash_fn() 50 hash = _mm_crc32_u64(hash, sk_unaligned_load<uint64_t>(data)); in hash_fn() 57 hash = _mm_crc32_u64(hash, sk_unaligned_load<uint64_t>(data)); in hash_fn() 63 auto hash32 = (uint32_t)hash; in hash_fn() 81 /*not static*/ inline uint32_t hash_fn(const void* vdata, size_t bytes, uint32_t hash) { 88 uint32_t a = hash, [all …]
|
/third_party/skia/third_party/externals/freetype/src/base/ |
D | fthash.c | 106 FT_Hash hash ) in hash_bucket() argument 109 FT_Hashnode* bp = hash->table; in hash_bucket() 113 res = (hash->lookup)( &key ); in hash_bucket() 115 ndp = bp + ( res % hash->size ); in hash_bucket() 118 if ( (hash->compare)( &(*ndp)->key, &key ) ) in hash_bucket() 123 ndp = bp + ( hash->size - 1 ); in hash_bucket() 131 hash_rehash( FT_Hash hash, in hash_rehash() argument 134 FT_Hashnode* obp = hash->table; in hash_rehash() 138 FT_UInt i, sz = hash->size; in hash_rehash() 142 hash->size <<= 1; in hash_rehash() [all …]
|
/third_party/freetype/src/base/ |
D | fthash.c | 106 FT_Hash hash ) in hash_bucket() argument 109 FT_Hashnode* bp = hash->table; in hash_bucket() 113 res = (hash->lookup)( &key ); in hash_bucket() 115 ndp = bp + ( res % hash->size ); in hash_bucket() 118 if ( (hash->compare)( &(*ndp)->key, &key ) ) in hash_bucket() 123 ndp = bp + ( hash->size - 1 ); in hash_bucket() 131 hash_rehash( FT_Hash hash, in hash_rehash() argument 134 FT_Hashnode* obp = hash->table; in hash_rehash() 138 FT_UInt i, sz = hash->size; in hash_rehash() 142 hash->size <<= 1; in hash_rehash() [all …]
|
/third_party/flutter/skia/third_party/externals/freetype/src/base/ |
D | fthash.c | 107 FT_Hash hash ) in hash_bucket() argument 110 FT_Hashnode* bp = hash->table; in hash_bucket() 114 res = (hash->lookup)( &key ); in hash_bucket() 116 ndp = bp + ( res % hash->size ); in hash_bucket() 119 if ( (hash->compare)( &(*ndp)->key, &key ) ) in hash_bucket() 124 ndp = bp + ( hash->size - 1 ); in hash_bucket() 132 hash_rehash( FT_Hash hash, in hash_rehash() argument 135 FT_Hashnode* obp = hash->table; in hash_rehash() 139 FT_UInt i, sz = hash->size; in hash_rehash() 143 hash->size <<= 1; in hash_rehash() [all …]
|
/third_party/vk-gl-cts/framework/delibs/depool/ |
D | dePoolHash.h | 91 const TYPENAME* hash; \ 98 void TYPENAME##_reset (DE_PTR_TYPE(TYPENAME) hash); \ 99 deBool TYPENAME##_reserve (DE_PTR_TYPE(TYPENAME) hash, int capacity); \ 100 VALUETYPE* TYPENAME##_find (const TYPENAME* hash, KEYTYPE key); \ 101 deBool TYPENAME##_insert (DE_PTR_TYPE(TYPENAME) hash, KEYTYPE key, VALUETYPE value); \ 102 void TYPENAME##_delete (DE_PTR_TYPE(TYPENAME) hash, KEYTYPE key); \ 104 DE_INLINE int TYPENAME##_getNumElements (const TYPENAME* hash) DE_UNUSED_FUNCTION; \ 105 DE_INLINE void TYPENAME##Iter_init (const TYPENAME* hash, TYPENAME##Iter* iter) DE_UNUSED_FUNCTI… 111 DE_INLINE int TYPENAME##_getNumElements (const TYPENAME* hash) \ 113 return hash->numElements; \ [all …]
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_instr_set.c | 86 #define HASH(hash, data) XXH32(&(data), sizeof(data), hash) argument 89 hash_src(uint32_t hash, const nir_src *src) in hash_src() argument 92 hash = HASH(hash, src->ssa); in hash_src() 93 return hash; in hash_src() 97 hash_alu_src(uint32_t hash, const nir_alu_src *src, unsigned num_components) in hash_alu_src() argument 99 hash = HASH(hash, src->abs); in hash_alu_src() 100 hash = HASH(hash, src->negate); in hash_alu_src() 103 hash = HASH(hash, src->swizzle[i]); in hash_alu_src() 105 hash = hash_src(hash, &src->src); in hash_alu_src() 106 return hash; in hash_alu_src() [all …]
|
/third_party/skia/modules/skparagraph/src/ |
D | ParagraphCache.cpp | 64 uint32_t ParagraphCache::KeyHash::mix(uint32_t hash, uint32_t data) const { in mix() argument 65 hash += data; in mix() 66 hash += (hash << 10); in mix() 67 hash ^= (hash >> 6); in mix() 68 return hash; in mix() 72 uint32_t hash = 0; in operator ()() local 77 hash = mix(hash, SkGoodHash()(ph.fRange.start)); in operator ()() 78 hash = mix(hash, SkGoodHash()(ph.fRange.end)); in operator ()() 79 hash = mix(hash, SkGoodHash()(relax(ph.fStyle.fHeight))); in operator ()() 80 hash = mix(hash, SkGoodHash()(relax(ph.fStyle.fWidth))); in operator ()() [all …]
|
/third_party/abseil-cpp/absl/container/internal/ |
D | hash_function_defaults_test.cc | 47 hash_default_hash<int32_t> hash; in TEST() local 48 auto h = hash(1); in TEST() 49 EXPECT_EQ(h, hash(1u)); in TEST() 50 EXPECT_EQ(h, hash(char{1})); in TEST() 51 EXPECT_EQ(h, hash(true)); in TEST() 52 EXPECT_EQ(h, hash(double{1.1})); in TEST() 53 EXPECT_NE(h, hash(2u)); in TEST() 54 EXPECT_NE(h, hash(char{2})); in TEST() 55 EXPECT_NE(h, hash(false)); in TEST() 56 EXPECT_NE(h, hash(2.)); in TEST() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
D | hash_function_defaults_test.cc | 47 hash_default_hash<int32_t> hash; in TEST() local 48 auto h = hash(1); in TEST() 49 EXPECT_EQ(h, hash(1u)); in TEST() 50 EXPECT_EQ(h, hash(char{1})); in TEST() 51 EXPECT_EQ(h, hash(true)); in TEST() 52 EXPECT_EQ(h, hash(double{1.1})); in TEST() 53 EXPECT_NE(h, hash(2u)); in TEST() 54 EXPECT_NE(h, hash(char{2})); in TEST() 55 EXPECT_NE(h, hash(false)); in TEST() 56 EXPECT_NE(h, hash(2.)); in TEST() [all …]
|
/third_party/skia/tests/ |
D | ChecksumTest.cpp | 24 REPORTER_ASSERT(r, SkOpts::hash(nullptr, 0) == 0); in DEF_TEST() 26 const uint32_t hash = SkOpts::hash(data, kBytes); in DEF_TEST() local 28 REPORTER_ASSERT(r, hash == SkOpts::hash(data, kBytes)); in DEF_TEST() 34 const uint32_t tweakedHash = SkOpts::hash(tweaked, kBytes); in DEF_TEST() 35 REPORTER_ASSERT(r, tweakedHash != hash); in DEF_TEST() 36 REPORTER_ASSERT(r, tweakedHash == SkOpts::hash(tweaked, kBytes)); in DEF_TEST() 61 REPORTER_ASSERT(r, SkOpts::hash(a, sizeof(a)) != SkOpts::hash(b, sizeof(b))); in DEF_TEST() 71 REPORTER_ASSERT(r, SkOpts::hash(a, sizeof(a)) != SkOpts::hash(b, sizeof(b))); in DEF_TEST() 81 REPORTER_ASSERT(r, SkOpts::hash(bytes, 0) == 0x00000000, "%08x", SkOpts::hash(bytes, 0)); in DEF_TEST() 82 REPORTER_ASSERT(r, SkOpts::hash(bytes, 1) == 0x00000000, "%08x", SkOpts::hash(bytes, 1)); in DEF_TEST() [all …]
|
/third_party/flutter/engine/flutter/third_party/txt/src/utils/ |
D | JenkinsHash.cpp | 31 JenkinsHashWhiten(uint32_t hash) { in JenkinsHashWhiten() argument 32 hash += (hash << 3); in JenkinsHashWhiten() 33 hash ^= (hash >> 11); in JenkinsHashWhiten() 34 hash += (hash << 15); in JenkinsHashWhiten() 35 return hash; in JenkinsHashWhiten() 38 uint32_t JenkinsHashMixBytes(uint32_t hash, const uint8_t* bytes, size_t size) { in JenkinsHashMixBytes() argument 42 hash = JenkinsHashMix(hash, (uint32_t)size); in JenkinsHashMixBytes() 47 hash = JenkinsHashMix(hash, data); in JenkinsHashMixBytes() 53 hash = JenkinsHashMix(hash, data); in JenkinsHashMixBytes() 55 return hash; in JenkinsHashMixBytes() [all …]
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_psa_crypto_hash.data | 1 PSA hash finish: SHA-1 Test Vector NIST CAVS #1 5 PSA hash finish: SHA-1 Test Vector NIST CAVS #2 9 PSA hash finish: SHA-1 Test Vector NIST CAVS #3 13 PSA hash finish: SHA-1 Test Vector NIST CAVS #4 17 PSA hash finish: SHA-1 Test Vector NIST CAVS #5 21 PSA hash finish: SHA-1 Test Vector NIST CAVS #6 25 PSA hash finish: SHA-1 Test Vector NIST CAVS #7 29 PSA hash finish: SHA-1 Test Vector NIST CAVS #8 33 PSA hash finish: SHA-1 Test Vector NIST CAVS #9 37 PSA hash finish: SHA-1 Test Vector NIST CAVS #10 [all …]
|
/third_party/mesa3d/src/panfrost/bifrost/ |
D | bi_opt_cse.c | 37 HASH(uint32_t hash, unsigned data) in HASH() argument 39 return XXH32(&data, sizeof(data), hash); in HASH() 43 hash_index(uint32_t hash, bi_index index) in hash_index() argument 45 hash = HASH(hash, index.value); in hash_index() 46 hash = HASH(hash, index.abs); in hash_index() 47 hash = HASH(hash, index.neg); in hash_index() 48 hash = HASH(hash, index.swizzle); in hash_index() 49 hash = HASH(hash, index.offset); in hash_index() 50 hash = HASH(hash, index.reg); in hash_index() 51 hash = HASH(hash, index.type); in hash_index() [all …]
|
/third_party/vk-gl-cts/framework/delibs/debase/ |
D | deSha1.c | 50 stream->hash[0] = 0x67452301u; in deSha1Stream_init() 51 stream->hash[1] = 0xEFCDAB89u; in deSha1Stream_init() 52 stream->hash[2] = 0x98BADCFEu; in deSha1Stream_init() 53 stream->hash[3] = 0x10325476u; in deSha1Stream_init() 54 stream->hash[4] = 0xC3D2E1F0u; in deSha1Stream_init() 75 deUint32 a = stream->hash[0]; in deSha1Stream_flushChunk() 76 deUint32 b = stream->hash[1]; in deSha1Stream_flushChunk() 77 deUint32 c = stream->hash[2]; in deSha1Stream_flushChunk() 78 deUint32 d = stream->hash[3]; in deSha1Stream_flushChunk() 79 deUint32 e = stream->hash[4]; in deSha1Stream_flushChunk() [all …]
|
/third_party/boost/boost/uuid/ |
D | basic_name_generator.hpp | 50 HashAlgo hash; in operator ()() local 51 hash.process_bytes(namespace_uuid.begin(), namespace_uuid.size()); in operator ()() 52 process_characters(hash, name, std::strlen(name)); in operator ()() 53 return hash_to_uuid(hash); in operator ()() 57 HashAlgo hash; in operator ()() local 58 hash.process_bytes(namespace_uuid.begin(), namespace_uuid.size()); in operator ()() 59 process_characters(hash, name, std::wcslen(name)); in operator ()() 60 return hash_to_uuid(hash); in operator ()() 65 HashAlgo hash; in operator ()() local 66 hash.process_bytes(namespace_uuid.begin(), namespace_uuid.size()); in operator ()() [all …]
|