/third_party/python/Lib/test/ |
H A D | test_tuple.py | 11 # or changing, the hash algorithm. In which case it's usually also 106 # platforms with hash codes of the same bit width. 109 got = hash(t) 112 msg = f"FAIL hash({t!r}) == {got} != {expected}" 125 # Earlier versions of the tuple hash algorithm had massive collisions 171 hashes = list(map(hash, xs)) 172 tryone_inner(tag + f"; {NHASHBITS}-bit hash codes", 180 tryone_inner(tag + "; 32-bit upper hash codes", 187 tryone_inner(tag + "; 32-bit lower hash codes", 198 # A previous hash ha [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/types/internal/ |
H A D | optional.h | 362 // Base class for std::hash<absl::optional<T>>: 363 // If std::hash<std::remove_const_t<T>> is enabled, it provides operator() to 364 // compute the hash; Otherwise, it is disabled. 365 // Reference N4659 23.14.15 [unord.hash]. 376 struct optional_hash_base<T, decltype(std::hash<absl::remove_const_t<T> >()( 383 return std::hash<absl::remove_const_t<T> >()(*opt); in operator ()()
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | pkcs12.rs | 10 use crate::hash::MessageDigest; 288 use crate::hash::MessageDigest;
|
H A D | encrypt.rs | 47 use crate::hash::MessageDigest; 482 use crate::hash::MessageDigest;
|
/third_party/skia/third_party/externals/angle2/src/common/ |
H A D | angleutils.h | 48 template <typename Key, typename T, class Hash = std::hash<Key>> 50 template <typename Key, class Hash = std::hash<Key>>
|
/third_party/node/deps/v8/src/heap/ |
H A D | factory.cc | 36 #include "src/numbers/hash-seed-inl.h" 1115 // Generate a random hash value. in NewSymbolInternal() 1116 int hash = isolate()->GenerateIdentityHash(Name::HashBits::kMax); in NewSymbolInternal() local 1118 Name::CreateHashFieldValue(hash, Name::HashFieldType::kHash)); in NewSymbolInternal() 1983 // TODO(gsathya): Do not copy hash code. in CopyJSObjectWithAllocationSite() 2707 // Do not leak handles for the hash table, it would make entries strong. in NewJSWeakMap() 3113 // Create identity hash early in case there is any JS collection containing in NewUninitializedJSGlobalProxy() 3125 // The proxy's hash should be retained across reinitialization. in ReinitializeJSGlobalProxy() 3237 void Factory::NumberToStringCacheSet(Handle<Object> number, int hash, in NumberToStringCacheSet() argument 3239 if (!number_string_cache()->get(hash * in NumberToStringCacheSet() 3255 NumberToStringCacheGet(Object number, int hash) NumberToStringCacheGet() argument 3286 int hash = 0; HeapNumberToString() local 3313 int hash = NumberToStringCacheHash(number_string_cache(), number); SmiToString() local 3329 NumberToStringCacheSet(handle(number, isolate()), hash, result); SmiToString() local [all...] |
/third_party/selinux/libsepol/cil/src/ |
H A D | cil_binary.c | 4409 uint32_t hash = 0; in avrulex_hash() local 4416 hash ^= v; \ in avrulex_hash() 4417 hash = (hash << r2) | (hash >> (32 - r2)); \ in avrulex_hash() 4418 hash = hash * m + n; \ in avrulex_hash() 4428 hash ^= hash >> 16; in avrulex_hash() 4429 hash * in avrulex_hash() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/types/ |
H A D | variant_test.cc | 65 struct hash<Hashable> { struct 2061 // [variant.hash] // 2066 std::hash<absl::monostate> const hasher{}; in TEST() 2085 // MSVC std::hash<std::variant> does not use the index, thus produce the same in TEST() 2092 std::hash<variant<int, int>> hash; in TEST() local 2093 EXPECT_NE(hash(v0), hash(v1)); in TEST() 2098 std::hash<variant<int>> hash; in TEST() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hs20/client/ |
H A D | osu_client.c | 233 wpa_printf(MSG_INFO, "Invalid SHA256 hash value"); in process_est_cert() 234 write_result(ctx, "Invalid client certificate SHA256 hash value in PPS"); in process_est_cert() 308 char *url, *hash; in download_cert() local 321 hash = xml_node_get_text(ctx->xml, hash_node); in download_cert() 322 if (url == NULL || hash == NULL) { in download_cert() 324 xml_node_get_text_free(ctx->xml, hash); in download_cert() 329 wpa_printf(MSG_INFO, "SHA256 hash: %s", hash); in download_cert() 331 if (hexstr2bin(hash, digest1, SHA256_MAC_LEN) < 0) { in download_cert() 332 wpa_printf(MSG_INFO, "Invalid SHA256 hash valu in download_cert() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/hs20/client/ |
H A D | osu_client.c | 233 wpa_printf(MSG_INFO, "Invalid SHA256 hash value"); in process_est_cert() 234 write_result(ctx, "Invalid client certificate SHA256 hash value in PPS"); in process_est_cert() 308 char *url, *hash; in download_cert() local 321 hash = xml_node_get_text(ctx->xml, hash_node); in download_cert() 322 if (url == NULL || hash == NULL) { in download_cert() 324 xml_node_get_text_free(ctx->xml, hash); in download_cert() 329 wpa_printf(MSG_INFO, "SHA256 hash: %s", hash); in download_cert() 331 if (hexstr2bin(hash, digest1, SHA256_MAC_LEN) < 0) { in download_cert() 332 wpa_printf(MSG_INFO, "Invalid SHA256 hash valu in download_cert() [all...] |
/third_party/protobuf/php/ext/google/protobuf/ |
H A D | php-upb.c | 1401 /* The minimum utilization of the array part of a mixed hash/array table. This 1503 static upb_tabent *getentry_mutable(upb_table *t, uint32_t hash) { in getentry_mutable() argument 1504 return (upb_tabent*)upb_getentry(t, hash); in getentry_mutable() 1508 uint32_t hash, eqlfunc_t *eql) { in findentry() 1512 e = upb_getentry(t, hash); in findentry() 1521 uint32_t hash, eqlfunc_t *eql) { in findentry_mutable() 1522 return (upb_tabent*)findentry(t, key, hash, eql); in findentry_mutable() 1526 uint32_t hash, eqlfunc_t *eql) { in lookup() 1527 const upb_tabent *e = findentry(t, key, hash, eql); in lookup() 1540 upb_value val, uint32_t hash, in insert() 1507 findentry(const upb_table *t, lookupkey_t key, uint32_t hash, eqlfunc_t *eql) findentry() argument 1520 findentry_mutable(upb_table *t, lookupkey_t key, uint32_t hash, eqlfunc_t *eql) findentry_mutable() argument 1525 lookup(const upb_table *t, lookupkey_t key, upb_value *v, uint32_t hash, eqlfunc_t *eql) lookup() argument 1539 insert(upb_table *t, lookupkey_t key, upb_tabkey tabkey, upb_value val, uint32_t hash, hashfunc_t *hashfunc, eqlfunc_t *eql) insert() argument 1584 rm(upb_table *t, lookupkey_t key, upb_value *val, upb_tabkey *removed, uint32_t hash, eqlfunc_t *eql) rm() argument 1703 uint32_t hash; upb_strtable_insert3() local 1723 uint32_t hash = upb_murmur_hash2(key, len, 0); upb_strtable_lookup2() local 1729 uint32_t hash = upb_murmur_hash2(key, len, 0); upb_strtable_remove3() local 1888 uint32_t hash; upb_inttable_insert2() local [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/src/device/ |
H A D | shader_manager.h | 39 #include "device/gpu_resource_handle_util.h" // for hash<RenderHandle> 175 RenderHandleReference GetGraphicsStateHandleByHash(const uint64_t hash) const override; 324 uint64_t hash { 0 }; 336 // hash based on base graphics state handle and render slot id 347 // hash based on base shader handle id and render slot id 509 RenderHandle GetGraphicsStateHandleByHash(const uint64_t hash) const override;
|
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/spatialization/ |
H A D | audio_spatialization_service.cpp | 744 unsigned char hash[SHA256_DIGEST_LENGTH]; in GetSha256EncryptAddress() local 745 SHA256(reinterpret_cast<const unsigned char *>(address.c_str()), address.size(), hash); in GetSha256EncryptAddress() local 748 ss << std::hex << std::setw(HexWidth) << std::setfill('0') << (int32_t)hash[i]; in GetSha256EncryptAddress()
|
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/ |
H A D | string_view.h | 25 #include <base/util/hash.h> 813 uint64_t hash(const T& b); 816 inline uint64_t hash(const string_view& value) in hash() function
|
/third_party/icu/icu4c/source/common/ |
H A D | rbbi.cpp | 423 * Compute a hash code for this BreakIterator 424 * @return A hash code 428 int32_t hash = 0; in hashCode() local 430 hash = fData->hashCode(); in hashCode() 432 return hash; in hashCode()
|
/third_party/libsnd/src/ |
H A D | common.h | 239 { uint64_t hash ; member 248 { uint64_t hash ; member 267 int64_t hash ; member
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
H A D | ecma-builtins.c | 707 if (string_p->u.hash & ECMA_GLOBAL_SYMBOL_FLAG) in ecma_builtin_try_to_instantiate_property() 709 magic_string_id = (string_p->u.hash >> ECMA_GLOBAL_SYMBOL_SHIFT); in ecma_builtin_try_to_instantiate_property() 852 symbol_p->u.hash = (uint16_t) ((symbol_id << ECMA_GLOBAL_SYMBOL_SHIFT) | ECMA_GLOBAL_SYMBOL_FLAG); in ecma_builtin_try_to_instantiate_property()
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_state.c | 49 ves->hw_state.hash = _mesa_hash_pointer(ves); in zink_create_vertex_elements_state() 354 cso->hash = _mesa_hash_pointer(cso); in zink_create_blend_state() 421 state->blend_id = blend ? blend->hash : 0; in zink_bind_blend_state()
|
/third_party/node/lib/internal/modules/esm/ |
H A D | resolve.js | 335 const { search, hash } = resolved; 339 resolved.hash = hash;
|
/third_party/node/deps/icu-small/source/common/ |
H A D | rbbi.cpp | 393 * Compute a hash code for this BreakIterator 394 * @return A hash code 398 int32_t hash = 0; in hashCode() local 400 hash = fData->hashCode(); in hashCode() 402 return hash; in hashCode()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
H A D | freedreno_gmem.c | 556 uint32_t hash = gmem_key_hash(key); in lookup_gmem_state() local 559 _mesa_hash_table_search_pre_hashed(cache->ht, hash, key); in lookup_gmem_state() 574 entry = _mesa_hash_table_insert_pre_hashed(cache->ht, hash, key, in lookup_gmem_state()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_gs_variant.cpp | 510 uint32_t hash = hash_gs_variant_key(key); in d3d12_get_gs_variant() local 512 hash, key); in d3d12_get_gs_variant() 516 hash, &gs->gs_key, gs); in d3d12_get_gs_variant()
|
/third_party/node/deps/openssl/openssl/crypto/x509/ |
H A D | x_all.c | 470 /* calculate cert digest using the same hash algorithm as in its signature */ 475 unsigned char hash[EVP_MAX_MD_SIZE]; in X509_digest_sig() local 546 if (!X509_digest(cert, md, hash, &len) in X509_digest_sig() 549 if (ASN1_OCTET_STRING_set(new, hash, len)) { in X509_digest_sig()
|
/third_party/python/Lib/ |
H A D | functools.py | 433 """ This class guarantees that hash() will be called no more than once 434 per element. This is important because the lru_cache() will hash 441 def __init__(self, tup, hash=hash): 443 self.hashvalue = hash(tup) 458 its hash value, then that argument is returned without a wrapper. This
|
/third_party/openssl/crypto/x509/ |
H A D | x_all.c | 470 /* calculate cert digest using the same hash algorithm as in its signature */ 475 unsigned char hash[EVP_MAX_MD_SIZE]; in X509_digest_sig() local 546 if (!X509_digest(cert, md, hash, &len) in X509_digest_sig() 549 if (ASN1_OCTET_STRING_set(new, hash, len)) { in X509_digest_sig()
|