/dragonfly/contrib/gcc-4.7/libstdc++-v3/libsupc++/ |
H A D | hash_bytes.cc | 87 hash *= m; in _Hash_bytes() 88 hash ^= k; in _Hash_bytes() 102 hash *= m; in _Hash_bytes() 106 hash ^= hash >> 13; in _Hash_bytes() 107 hash *= m; in _Hash_bytes() 108 hash ^= hash >> 15; in _Hash_bytes() 143 hash *= mul; 149 hash *= mul; 151 hash = shift_mix(hash) * mul; 152 hash = shift_mix(hash); [all …]
|
/dragonfly/contrib/gcc-8.0/libstdc++-v3/libsupc++/ |
H A D | hash_bytes.cc | 87 hash *= m; in _Hash_bytes() 88 hash ^= k; in _Hash_bytes() 104 hash *= m; in _Hash_bytes() 108 hash ^= hash >> 13; in _Hash_bytes() 109 hash *= m; in _Hash_bytes() 110 hash ^= hash >> 15; in _Hash_bytes() 149 hash *= mul; 155 hash *= mul; 157 hash = shift_mix(hash) * mul; 158 hash = shift_mix(hash); [all …]
|
/dragonfly/sys/sys/ |
H A D | hash.h | 50 hash = HASHSTEP(hash, *p++); in hash32_buf() 52 return hash; in hash32_buf() 64 hash = HASHSTEP(hash, *p++); in hash32_str() 66 return hash; in hash32_str() 78 hash = HASHSTEP(hash, *p++); in hash32_strn() 80 return hash; in hash32_strn() 94 hash = HASHSTEP(hash, *p++); in hash32_stre() 99 return hash; in hash32_stre() 109 uint32_t hash) in hash32_strne() argument 114 hash = HASHSTEP(hash, *p++); in hash32_strne() [all …]
|
/dragonfly/sys/vfs/ext2fs/ |
H A D | ext2_hash.c | 119 uint32_t a = hash[0], b = hash[1], c = hash[2], d = hash[3]; in ext2_half_md4() 151 hash[0] += a; in ext2_half_md4() 152 hash[1] += b; in ext2_half_md4() 153 hash[2] += c; in ext2_half_md4() 154 hash[3] += d; in ext2_half_md4() 165 uint32_t x = hash[0], y = hash[1]; in ext2_tea() 176 hash[0] += x; in ext2_tea() 177 hash[1] += y; in ext2_tea() 258 uint32_t hash[4]; in ext2_htree_hash() local 275 memcpy(hash, hash_seed, sizeof(hash)); in ext2_htree_hash() [all …]
|
/dragonfly/contrib/gcc-4.7/libstdc++-v3/src/c++11/ |
H A D | compatibility-c++0x.cc | 57 struct hash<string> struct 63 hash<string>::operator()(string __s) const in operator ()() 64 { return _Hash_impl::hash(__s.data(), __s.length()); } in operator ()() 67 struct hash<const string&> struct 73 hash<const string&>::operator()(const string& __s) const in operator ()() 74 { return _Hash_impl::hash(__s.data(), __s.length()); } in operator ()() 78 struct hash<wstring> struct 84 hash<wstring>::operator()(wstring __s) const in operator ()() 88 struct hash<const wstring&> struct 100 struct hash<error_code> struct [all …]
|
/dragonfly/contrib/wpa_supplicant/src/eap_common/ |
H A D | eap_pwd_common.c | 48 struct crypto_hash *hash; in eap_pwd_kdf() local 61 if (hash == NULL) in eap_pwd_kdf() 131 struct crypto_hash *hash; in compute_password_element() local 190 hash = eap_pwd_h_init(); in compute_password_element() 191 if (hash == NULL) in compute_password_element() 310 struct crypto_hash *hash; in compute_keys() local 327 hash = eap_pwd_h_init(); in compute_keys() 328 if (hash == NULL) { in compute_keys() 340 hash = eap_pwd_h_init(); in compute_keys() 341 if (hash == NULL) { in compute_keys() [all …]
|
H A D | eap_psk_common.c | 37 u8 hash[aes_block_size]; in eap_psk_derive_keys() local 41 if (aes_128_encrypt_block(kdk, rand_p, hash)) in eap_psk_derive_keys() 44 hash[aes_block_size - 1] ^= counter; in eap_psk_derive_keys() 45 if (aes_128_encrypt_block(kdk, hash, tek)) in eap_psk_derive_keys() 47 hash[aes_block_size - 1] ^= counter; in eap_psk_derive_keys() 51 hash[aes_block_size - 1] ^= counter; in eap_psk_derive_keys() 52 if (aes_128_encrypt_block(kdk, hash, &msk[i * aes_block_size])) in eap_psk_derive_keys() 54 hash[aes_block_size - 1] ^= counter; in eap_psk_derive_keys() 59 hash[aes_block_size - 1] ^= counter; in eap_psk_derive_keys() 60 if (aes_128_encrypt_block(kdk, hash, in eap_psk_derive_keys() [all …]
|
/dragonfly/contrib/gcc-4.7/libstdc++-v3/include/tr1/ |
H A D | functional_hash.h | 64 hash<_Tp>::operator()(_Tp __val) const \ in _GLIBCXX_VISIBILITY() 92 hash(const _Tp* __ptr, size_t __clength) in _GLIBCXX_VISIBILITY() 107 hash(const _Tp* __ptr, size_t __clength) in _GLIBCXX_VISIBILITY() 125 hash(const _Tp* __ptr, size_t __clength) in _GLIBCXX_VISIBILITY() 142 using _Fnv_hash_base<sizeof(size_t)>::hash; in _GLIBCXX_VISIBILITY() 146 hash(const _Tp& __val) in _GLIBCXX_VISIBILITY() 147 { return hash(&__val, sizeof(__val)); } in _GLIBCXX_VISIBILITY() 153 hash<float>::operator()(float __val) const in _GLIBCXX_VISIBILITY() 162 hash<double>::operator()(double __val) const in _GLIBCXX_VISIBILITY() 176 hash<string>::operator()(string) const; in _GLIBCXX_VISIBILITY() [all …]
|
/dragonfly/contrib/gcc-8.0/libstdc++-v3/include/tr1/ |
H A D | functional_hash.h | 64 hash<_Tp>::operator()(_Tp __val) const \ in _GLIBCXX_VISIBILITY() 96 hash(const _Tp* __ptr, size_t __clength) in _GLIBCXX_VISIBILITY() 111 hash(const _Tp* __ptr, size_t __clength) in _GLIBCXX_VISIBILITY() 129 hash(const _Tp* __ptr, size_t __clength) in _GLIBCXX_VISIBILITY() 146 using _Fnv_hash_base<sizeof(size_t)>::hash; in _GLIBCXX_VISIBILITY() 150 hash(const _Tp& __val) in _GLIBCXX_VISIBILITY() 151 { return hash(&__val, sizeof(__val)); } in _GLIBCXX_VISIBILITY() 157 hash<float>::operator()(float __val) const in _GLIBCXX_VISIBILITY() 166 hash<double>::operator()(double __val) const in _GLIBCXX_VISIBILITY() 180 hash<string>::operator()(string) const; in _GLIBCXX_VISIBILITY() [all …]
|
/dragonfly/contrib/gcc-8.0/libstdc++-v3/include/bits/ |
H A D | functional_hash.h | 58 struct hash; in _GLIBCXX_VISIBILITY() 101 struct hash : __hash_enum<_Tp> in _GLIBCXX_VISIBILITY() 190 hash(const void* __ptr, size_t __clength, in _GLIBCXX_VISIBILITY() 196 hash(const _Tp& __val) in _GLIBCXX_VISIBILITY() 197 { return hash(&__val, sizeof(__val)); } in _GLIBCXX_VISIBILITY() 202 { return hash(&__val, sizeof(__val), __hash); } in _GLIBCXX_VISIBILITY() 209 hash(const void* __ptr, size_t __clength, in _GLIBCXX_VISIBILITY() 215 hash(const _Tp& __val) in _GLIBCXX_VISIBILITY() 216 { return hash(&__val, sizeof(__val)); } in _GLIBCXX_VISIBILITY() 221 { return hash(&__val, sizeof(__val), __hash); } in _GLIBCXX_VISIBILITY() [all …]
|
/dragonfly/contrib/gcc-4.7/libstdc++-v3/include/bits/ |
H A D | functional_hash.h | 58 struct hash : public __hash_base<size_t, _Tp> in _GLIBCXX_VISIBILITY() struct 67 struct hash<_Tp*> : public __hash_base<size_t, _Tp*> in _GLIBCXX_VISIBILITY() 134 hash(const void* __ptr, size_t __clength, in _GLIBCXX_VISIBILITY() 140 hash(const _Tp& __val) in _GLIBCXX_VISIBILITY() 141 { return hash(&__val, sizeof(__val)); } in _GLIBCXX_VISIBILITY() 146 { return hash(&__val, sizeof(__val), __hash); } in _GLIBCXX_VISIBILITY() 152 hash(const void* __ptr, size_t __clength, in _GLIBCXX_VISIBILITY() 158 hash(const _Tp& __val) in _GLIBCXX_VISIBILITY() 159 { return hash(&__val, sizeof(__val)); } in _GLIBCXX_VISIBILITY() 164 { return hash(&__val, sizeof(__val), __hash); } in _GLIBCXX_VISIBILITY() [all …]
|
/dragonfly/contrib/xz/src/liblzma/lz/ |
H A D | lz_encoder_mf.c | 121 if (mf->hash[i] <= subvalue) in normalize() 124 mf->hash[i] -= subvalue; in normalize() 314 mf->hash[hash_2_value] = pos; in lzma_mf_hc3_find() 354 mf->hash[hash_2_value] = pos; in lzma_mf_hc3_skip() 377 mf->hash[hash_2_value ] = pos; in lzma_mf_hc4_find() 433 mf->hash[hash_2_value] = pos; in lzma_mf_hc4_skip() 594 mf->hash[hash_value] = pos; in lzma_mf_bt2_find() 609 mf->hash[hash_value] = pos; in lzma_mf_bt2_skip() 629 mf->hash[hash_2_value] = pos; in lzma_mf_bt3_find() 663 mf->hash[hash_2_value] = pos; in lzma_mf_bt3_skip() [all …]
|
/dragonfly/contrib/gcc-4.7/libobjc/ |
H A D | objc-sync.c | 204 int hash; in objc_sync_enter() local 260 hash = SYNC_OBJECT_HASH(object); in objc_sync_enter() 266 objc_mutex_lock (sync_pool_protection_locks[hash]); in objc_sync_enter() 268 node = sync_pool_array[hash]; in objc_sync_enter() 330 new_node->next = sync_pool_array[hash]; in objc_sync_enter() 331 sync_pool_array[hash] = new_node; in objc_sync_enter() 348 int hash; in objc_sync_exit() local 384 hash = SYNC_OBJECT_HASH(object); in objc_sync_exit() 430 hash = SYNC_OBJECT_HASH(object); in objc_sync_exit() 432 objc_mutex_lock (sync_pool_protection_locks[hash]); in objc_sync_exit() [all …]
|
/dragonfly/contrib/gcc-4.7/libstdc++-v3/include/backward/ |
H A D | hash_fun.h | 69 struct hash { }; in _GLIBCXX_VISIBILITY() struct 81 struct hash<char*> in _GLIBCXX_VISIBILITY() 89 struct hash<const char*> in _GLIBCXX_VISIBILITY() 97 struct hash<char> in _GLIBCXX_VISIBILITY() 105 struct hash<unsigned char> in _GLIBCXX_VISIBILITY() 113 struct hash<signed char> in _GLIBCXX_VISIBILITY() 121 struct hash<short> in _GLIBCXX_VISIBILITY() 137 struct hash<int> in _GLIBCXX_VISIBILITY() 145 struct hash<unsigned int> in _GLIBCXX_VISIBILITY() 153 struct hash<long> in _GLIBCXX_VISIBILITY() [all …]
|
/dragonfly/contrib/gcc-8.0/libstdc++-v3/include/backward/ |
H A D | hash_fun.h | 68 struct hash { }; in _GLIBCXX_VISIBILITY() struct 80 struct hash<char*> in _GLIBCXX_VISIBILITY() 88 struct hash<const char*> in _GLIBCXX_VISIBILITY() 96 struct hash<char> in _GLIBCXX_VISIBILITY() 104 struct hash<unsigned char> in _GLIBCXX_VISIBILITY() 112 struct hash<signed char> in _GLIBCXX_VISIBILITY() 120 struct hash<short> in _GLIBCXX_VISIBILITY() 136 struct hash<int> in _GLIBCXX_VISIBILITY() 144 struct hash<unsigned int> in _GLIBCXX_VISIBILITY() 152 struct hash<long> in _GLIBCXX_VISIBILITY() [all …]
|
/dragonfly/crypto/libressl/crypto/lhash/ |
H A D | lhash.c | 161 unsigned long hash; in lh_insert() local 179 nn->hash = hash; in lh_insert() 198 unsigned long hash; in lh_delete() local 227 unsigned long hash; in lh_retrieve() local 302 hash = np->hash; in expand() 304 hash = lh->hash(np->data); in expand() 374 unsigned long hash, nn; in getrn() local 377 hash = (*(lh->hash))(data); in getrn() 379 *rhash = hash; in getrn() 381 nn = hash % lh->pmax; in getrn() [all …]
|
/dragonfly/contrib/gcc-8.0/libstdc++-v3/src/c++11/ |
H A D | compatibility-c++0x.cc | 69 struct hash<string> struct 75 hash<string>::operator()(string __s) const in operator ()() 76 { return _Hash_impl::hash(__s.data(), __s.length()); } in operator ()() 79 struct hash<const string&> struct 85 hash<const string&>::operator()(const string& __s) const in operator ()() 86 { return _Hash_impl::hash(__s.data(), __s.length()); } in operator ()() 90 struct hash<wstring> struct 96 hash<wstring>::operator()(wstring __s) const in operator ()() 100 struct hash<const wstring&> struct 112 struct hash<error_code> struct [all …]
|
/dragonfly/contrib/binutils-2.34/bfd/ |
H A D | hash.c | 434 unsigned long hash; in bfd_hash_hash() local 439 hash = 0; in bfd_hash_hash() 445 hash ^= hash >> 2; in bfd_hash_hash() 449 hash ^= hash >> 2; in bfd_hash_hash() 452 return hash; in bfd_hash_hash() 463 unsigned long hash; in bfd_hash_lookup() local 474 if (hashp->hash == hash in bfd_hash_lookup() 505 unsigned long hash) in bfd_hash_insert() argument 514 hashp->hash = hash; in bfd_hash_insert() 550 while (chain_end->next && chain_end->next->hash == chain->hash) in bfd_hash_insert() [all …]
|
/dragonfly/contrib/binutils-2.27/bfd/ |
H A D | hash.c | 434 unsigned long hash; in bfd_hash_hash() local 438 hash = 0; in bfd_hash_hash() 444 hash ^= hash >> 2; in bfd_hash_hash() 448 hash ^= hash >> 2; in bfd_hash_hash() 451 return hash; in bfd_hash_hash() 462 unsigned long hash; in bfd_hash_lookup() local 473 if (hashp->hash == hash in bfd_hash_lookup() 504 unsigned long hash) in bfd_hash_insert() argument 513 hashp->hash = hash; in bfd_hash_insert() 549 while (chain_end->next && chain_end->next->hash == chain->hash) in bfd_hash_insert() [all …]
|
/dragonfly/contrib/gdb-7/bfd/ |
H A D | hash.c | 434 unsigned long hash; in bfd_hash_hash() local 438 hash = 0; in bfd_hash_hash() 444 hash ^= hash >> 2; in bfd_hash_hash() 448 hash ^= hash >> 2; in bfd_hash_hash() 451 return hash; in bfd_hash_hash() 462 unsigned long hash; in bfd_hash_lookup() local 473 if (hashp->hash == hash in bfd_hash_lookup() 504 unsigned long hash) in bfd_hash_insert() argument 513 hashp->hash = hash; in bfd_hash_insert() 549 while (chain_end->next && chain_end->next->hash == chain->hash) in bfd_hash_insert() [all …]
|
/dragonfly/lib/libc/citrus/ |
H A D | citrus_db_hash.c | 47 uint32_t hash, tmp; in _citrus_db_hash_std() local 50 hash = 0; in _citrus_db_hash_std() 54 hash <<= 4; in _citrus_db_hash_std() 55 hash += _bcs_tolower(*p); in _citrus_db_hash_std() 56 tmp = hash & 0xF0000000; in _citrus_db_hash_std() 58 hash ^= tmp; in _citrus_db_hash_std() 59 hash ^= tmp >> 24; in _citrus_db_hash_std() 63 return (hash); in _citrus_db_hash_std()
|
/dragonfly/contrib/binutils-2.34/gas/ |
H A D | hash.c | 43 unsigned long hash; member 137 unsigned long hash; in hash_lookup() local 149 hash = 0; in hash_lookup() 154 hash ^= hash >> 2; in hash_lookup() 157 hash ^= hash >> 2; in hash_lookup() 160 *phash = hash; in hash_lookup() 175 if (p->hash == hash) in hash_lookup() 210 unsigned long hash; in hash_insert() local 222 p->hash = hash; in hash_insert() 240 unsigned long hash; in hash_jam() local [all …]
|
/dragonfly/contrib/binutils-2.27/gas/ |
H A D | hash.c | 43 unsigned long hash; member 137 unsigned long hash; in hash_lookup() local 149 hash = 0; in hash_lookup() 154 hash ^= hash >> 2; in hash_lookup() 157 hash ^= hash >> 2; in hash_lookup() 160 *phash = hash; in hash_lookup() 175 if (p->hash == hash) in hash_lookup() 210 unsigned long hash; in hash_insert() local 222 p->hash = hash; in hash_insert() 240 unsigned long hash; in hash_jam() local [all …]
|
/dragonfly/sys/dev/drm/ttm/ |
H A D | ttm_object.c | 123 struct drm_hash_item hash; member 177 &base->hash, in ttm_base_object_init() 242 base = drm_hash_entry(hash, struct ttm_ref_object, hash)->obj; in ttm_base_object_lookup() 264 base = drm_hash_entry(hash, struct ttm_base_object, hash); in ttm_base_object_lookup_for_ref() 292 if (unlikely(drm_ht_find_item_rcu(ht, base->hash.key, &hash) != 0)) in ttm_ref_object_exists() 300 ref = drm_hash_entry(hash, struct ttm_ref_object, hash); in ttm_ref_object_exists() 343 ret = drm_ht_find_item_rcu(ht, base->hash.key, &hash); in ttm_ref_object_add() 346 ref = drm_hash_entry(hash, struct ttm_ref_object, hash); in ttm_ref_object_add() 367 ref->hash.key = base->hash.key; in ttm_ref_object_add() 433 ref = drm_hash_entry(hash, struct ttm_ref_object, hash); in ttm_ref_object_base_unref() [all …]
|
/dragonfly/contrib/gcc-4.7/libstdc++-v3/src/c++98/ |
H A D | hash_tr1.cc | 37 hash<string>::operator()(string __s) const in operator ()() 38 { return _Fnv_hash::hash(__s.data(), __s.length()); } in operator ()() 42 hash<const string&>::operator()(const string& __s) const in operator ()() 43 { return _Fnv_hash::hash(__s.data(), __s.length()); } in operator ()() 48 hash<wstring>::operator()(wstring __s) const in operator ()() 49 { return _Fnv_hash::hash(__s.data(), __s.length() * sizeof(wchar_t)); } in operator ()() 53 hash<const wstring&>::operator()(const wstring& __s) const in operator ()() 54 { return _Fnv_hash::hash(__s.data(), __s.length() * sizeof(wchar_t)); } in operator ()()
|