Home
last modified time | relevance | path

Searched refs:hashes (Results 1 – 25 of 168) sorted by relevance

1234567

/third_party/json/test/src/
Dunit-hash.cpp43 std::set<std::size_t> hashes; variable
46 hashes.insert(std::hash<json> {}(json(nullptr)));
49 hashes.insert(std::hash<json> {}(json(true)));
50 hashes.insert(std::hash<json> {}(json(false)));
53 hashes.insert(std::hash<json> {}(json("")));
54 hashes.insert(std::hash<json> {}(json("foo")));
57 hashes.insert(std::hash<json> {}(json(0)));
58 hashes.insert(std::hash<json> {}(json(unsigned(0))));
60 hashes.insert(std::hash<json> {}(json(-1)));
61 hashes.insert(std::hash<json> {}(json(0.0)));
[all …]
/third_party/ffmpeg/libavformat/
Dhashenc.c32 struct AVHashContext **hashes; member
81 c->hashes = av_mallocz_array(1, sizeof(*c->hashes)); in hash_init()
82 if (!c->hashes) in hash_init()
84 res = av_hash_alloc(&c->hashes[0], c->hash_name); in hash_init()
87 av_hash_init(c->hashes[0]); in hash_init()
98 c->hashes = av_mallocz_array(s->nb_streams, sizeof(*c->hashes)); in streamhash_init()
99 if (!c->hashes) in streamhash_init()
102 res = av_hash_alloc(&c->hashes[i], c->hash_name); in streamhash_init()
106 av_hash_init(c->hashes[i]); in streamhash_init()
128 av_hash_update(c->hashes[c->per_stream ? pkt->stream_index : 0], pkt->data, pkt->size); in hash_write_packet()
[all …]
/third_party/ninja/src/
Dhash_collision_bench.cc39 pair<uint64_t, int>* hashes = new pair<uint64_t, int>[N]; in main() local
45 hashes[i] = make_pair(BuildLog::LogEntry::HashCommand(commands[i]), i); in main()
48 sort(hashes, hashes + N); in main()
52 if (hashes[i - 1].first == hashes[i].first) { in main()
53 if (strcmp(commands[hashes[i - 1].second], in main()
54 commands[hashes[i].second]) != 0) { in main()
56 commands[hashes[i - 1].second], in main()
57 commands[hashes[i].second]); in main()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DCompactByteArray.java71 hashes = new int[INDEXCOUNT]; in CompactByteArray()
77 hashes[i] = 0; in CompactByteArray()
216 if (hashes[i] == hashes[j] && in compact()
228 hashes[j] = hashes[i]; in compact()
245 hashes = null; in compact()
272 hashes[i] = (hashes[i] + (value<<1)) | 1; in touchBlock()
280 return hashes[i] != 0; in blockTouched()
320 if (hashes != null) other.hashes = hashes.clone(); in clone()
380 hashes = new int[INDEXCOUNT]; in expand()
404 private int[] hashes; field in CompactByteArray
DCompactCharArray.java72 hashes = new int[INDEXCOUNT]; in CompactCharArray()
78 hashes[i] = 0; in CompactCharArray()
219 if (hashes[i] == hashes[j] && in compact()
256 hashes = null; in compact()
296 hashes[i] = (hashes[i] + (value<<1)) | 1; in touchBlock()
304 return hashes[i] != 0; in blockTouched()
344 if (hashes != null) other.hashes = hashes.clone(); in clone()
405 hashes = new int[INDEXCOUNT]; in expand()
431 private int[] hashes; field in CompactCharArray
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCompactByteArray.java69 hashes = new int[INDEXCOUNT]; in CompactByteArray()
75 hashes[i] = 0; in CompactByteArray()
214 if (hashes[i] == hashes[j] && in compact()
226 hashes[j] = hashes[i]; in compact()
243 hashes = null; in compact()
270 hashes[i] = (hashes[i] + (value<<1)) | 1; in touchBlock()
278 return hashes[i] != 0; in blockTouched()
318 if (hashes != null) other.hashes = hashes.clone(); in clone()
378 hashes = new int[INDEXCOUNT]; in expand()
402 private int[] hashes; field in CompactByteArray
DCompactCharArray.java70 hashes = new int[INDEXCOUNT]; in CompactCharArray()
76 hashes[i] = 0; in CompactCharArray()
217 if (hashes[i] == hashes[j] && in compact()
254 hashes = null; in compact()
294 hashes[i] = (hashes[i] + (value<<1)) | 1; in touchBlock()
302 return hashes[i] != 0; in blockTouched()
342 if (hashes != null) other.hashes = hashes.clone(); in clone()
403 hashes = new int[INDEXCOUNT]; in expand()
429 private int[] hashes; field in CompactCharArray
/third_party/boost/libs/container_hash/doc/samples/
Dtutorial.cpp11 std::vector<std::size_t> hashes; in get_hashes() local
12 std::transform(x.begin(), x.end(), std::back_inserter(hashes), in get_hashes()
15 return hashes; in get_hashes()
24 std::vector<std::size_t> hashes = get_hashes(values); in main() local
25 assert(hashes[0] = boost::hash<int>()(values[0])); in main()
26 assert(hashes[1] = boost::hash<int>()(values[1])); in main()
/third_party/grpc/test/core/gpr/
Dmurmur_hash_test.cc34 uint32_t hashes[256]; in verification_test() local
39 memset(hashes, 0, sizeof(hashes)); in verification_test()
46 hashes[i] = hash(key, i, static_cast<uint32_t>(256u - i)); in verification_test()
51 final = hash(hashes, sizeof(hashes), 0); in verification_test()
/third_party/glib/glib/
Dghash.c268 guint *hashes; member
479 node_hash = hash_table->hashes[node_index]; in g_hash_table_lookup_node()
510 node_hash = hash_table->hashes[node_index]; in g_hash_table_lookup_node()
543 hash_table->hashes[i] = TOMBSTONE_HASH_VALUE; in g_hash_table_remove_node()
591 hash_table->hashes = g_new0 (guint, hash_table->size); in g_hash_table_setup_storage()
641 memset (hash_table->hashes, 0, hash_table->size * sizeof (guint)); in g_hash_table_remove_all_nodes()
680 old_hashes = g_steal_pointer (&hash_table->hashes); in g_hash_table_remove_all_nodes()
721 hash_table->hashes = g_renew (guint, hash_table->hashes, hash_table->size); in realloc_arrays()
761 guint node_hash = hash_table->hashes[i]; \
767 hash_table->hashes[i] = UNUSED_HASH_VALUE; \
[all …]
/third_party/ffmpeg/libavutil/tests/
Dmurmur3.c32 uint8_t *hashes = av_mallocz(256 * 16); in main() local
39 av_murmur3_final(ctx, hashes + 16 * i); in main()
42 av_murmur3_update(ctx, hashes, 256 * 16); in main()
44 av_free(hashes); in main()
/third_party/openssl/crypto/x509/
Dby_dir.c33 STACK_OF(BY_DIR_HASH) *hashes;
139 sk_BY_DIR_HASH_pop_free(ent->hashes, by_dir_hash_free); in by_dir_entry_free()
195 ent->hashes = sk_BY_DIR_HASH_new(by_dir_hash_cmp); in add_cert_dir()
197 if (ent->dir == NULL || ent->hashes == NULL) { in add_cert_dir()
262 if (type == X509_LU_CRL && ent->hashes) { in get_cert_by_subject()
265 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp); in get_cert_by_subject()
267 hent = sk_BY_DIR_HASH_value(ent->hashes, idx); in get_cert_by_subject()
345 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp); in get_cert_by_subject()
346 hent = sk_BY_DIR_HASH_value(ent->hashes, idx); in get_cert_by_subject()
358 if (!sk_BY_DIR_HASH_push(ent->hashes, hent)) { in get_cert_by_subject()
/third_party/node/test/pummel/
Dtest-crypto-dh-hash-modp18.js37 const hashes = { variable
41 for (const name in hashes) {
44 const hash1 = hashes[name];
Dtest-crypto-dh-hash.js37 const hashes = { variable
47 for (const name in hashes) {
50 const hash1 = hashes[name];
/third_party/python/Tools/msi/
Dgenerate_md5.py6 filenames, hashes, sizes = [], [], []
17 hashes.append(md5.hexdigest())
21 for f, h, s in zip(filenames, hashes, sizes):
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/
Dcse.cc74 std::unordered_map<AnfNodePtr, std::size_t> hashes; in BuildOrderGroupAndDoReplaceForOneGraph() local
79 if (hashes.find(node) != hashes.end()) { in BuildOrderGroupAndDoReplaceForOneGraph()
93 …h = std::accumulate(inputs.begin(), inputs.end(), init, [&hashes](std::size_t hash, const AnfNodeP… in BuildOrderGroupAndDoReplaceForOneGraph()
94 return hash_combine(hash, hashes[node_in]); in BuildOrderGroupAndDoReplaceForOneGraph()
102 hashes[node] = h; in BuildOrderGroupAndDoReplaceForOneGraph()
/third_party/curl/docs/cmdline-opts/
Dproxy-pinnedpubkey.d2 Arg: <hashes>
7 Tells curl to use the specified public key file (or hashes) to verify the
9 or DER format, or any number of base64 encoded sha256 hashes preceded by
Dpinnedpubkey.d2 Arg: <hashes>
7 Tells curl to use the specified public key file (or hashes) to verify the
9 or DER format, or any number of base64 encoded sha256 hashes preceded by
/third_party/cef/tools/
Dgit_util.py101 hashes = result['out']
104 hashes = hashes.replace('\r\n', '\n')
106 return [line[2:] for line in hashes.strip().split('\n')]
/third_party/abseil-cpp/absl/container/
Dflat_hash_map_test.cc165 int hashes = 0; in TEST() local
166 flat_hash_map<size_t, size_t, Hash, Eq> m(0, Hash{&hashes}); in TEST()
173 EXPECT_EQ(hashes, 1); in TEST()
180 EXPECT_EQ(hashes, 2); in TEST()
187 EXPECT_EQ(hashes, 3); in TEST()
194 EXPECT_EQ(hashes, 4); in TEST()
/third_party/flutter/flutter/packages/flutter_tools/lib/src/build_system/
Dfile_hash_store.dart16 /// A globally accessible cache of file hashes.
19 /// avoid recomputing or storing multiple copies of hashes by delegating
20 /// through this class. All file hashes are held in memory during a build
41 // The name of the file which stores the file hashes.
47 /// Read file hashes from disk.
65 /// Persist file hashes to disk.
/third_party/skia/third_party/externals/abseil-cpp/absl/container/
Dflat_hash_map_test.cc165 int hashes = 0; in TEST() local
166 flat_hash_map<size_t, size_t, Hash, Eq> m(0, Hash{&hashes}); in TEST()
173 EXPECT_EQ(hashes, 1); in TEST()
180 EXPECT_EQ(hashes, 2); in TEST()
187 EXPECT_EQ(hashes, 3); in TEST()
194 EXPECT_EQ(hashes, 4); in TEST()
/third_party/mesa3d/src/gallium/auxiliary/cso_cache/
Dcso_cache.c41 return &sc->hashes[type]; in _cso_hash_for_type()
165 cso_hash_init(&sc->hashes[i]); in cso_cache_init()
200 cso_hash_deinit(&sc->hashes[i]); in cso_cache_delete()
210 sanitize_hash(sc, &sc->hashes[i], i, sc->max_size); in cso_set_maximum_cache_size()
/third_party/python/Lib/test/
Dtest_tuple.py112 def tryone_inner(tag, nbins, hashes, expected=None, zlimit=None): argument
115 nballs = len(hashes)
117 c = Counter(hashes)
144 hashes = list(map(hash, xs))
147 hashes,
155 [h >> shift for h in hashes],
162 [h & mask for h in hashes],
/third_party/node/deps/npm/node_modules/ssri/
Dindex.js303 const hashes = algorithms.map(crypto.createHash)
308 hashes.forEach(h => h.update(chunk, enc))
315 const newSri = parse(hashes.map((h, i) => {
352 const hashes = algorithms.map(crypto.createHash)
356 hashes.forEach(h => h.update(chunk, enc))
361 const digest = hashes.shift().digest('base64')

1234567