Lines Matching refs:__len
986 inline _Size operator()(const void* __key, _Size __len)
993 __murmur2_or_cityhash<_Size, 32>::operator()(const void* __key, _Size __len)
997 _Size __h = __len;
999 for (; __len >= 4; __data += 4, __len -= 4)
1008 switch (__len)
1029 …inline _Size operator()(const void* __key, _Size __len) _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CH…
1062 static _Size __hash_len_0_to_16(const char* __s, _Size __len)
1065 if (__len > 8) {
1067 const _Size __b = __loadword<_Size>(__s + __len - 8);
1068 return __hash_len_16(__a, __rotate_by_at_least_1(__b + __len, __len)) ^ __b;
1070 if (__len >= 4) {
1072 const uint32_t __b = __loadword<uint32_t>(__s + __len - 4);
1073 return __hash_len_16(__len + (__a << 3), __b);
1075 if (__len > 0) {
1077 const unsigned char __b = __s[__len >> 1];
1078 const unsigned char __c = __s[__len - 1];
1081 const uint32_t __z = __len + (static_cast<uint32_t>(__c) << 2);
1087 static _Size __hash_len_17_to_32(const char *__s, _Size __len)
1092 const _Size __c = __loadword<_Size>(__s + __len - 8) * __k2;
1093 const _Size __d = __loadword<_Size>(__s + __len - 16) * __k0;
1095 __a + __rotate(__b ^ __k3, 20) - __c + __len);
1127 static _Size __hash_len_33_to_64(const char *__s, size_t __len)
1132 (__len + __loadword<_Size>(__s + __len - 16)) * __k0;
1140 __a = __loadword<_Size>(__s + 16) + __loadword<_Size>(__s + __len - 32);
1141 __z += __loadword<_Size>(__s + __len - 8);
1144 __a += __loadword<_Size>(__s + __len - 24);
1146 __a += __loadword<_Size>(__s + __len - 16);
1157 __murmur2_or_cityhash<_Size, 64>::operator()(const void* __key, _Size __len)
1160 if (__len <= 32) {
1161 if (__len <= 16) {
1162 return __hash_len_0_to_16(__s, __len);
1164 return __hash_len_17_to_32(__s, __len);
1166 } else if (__len <= 64) {
1167 return __hash_len_33_to_64(__s, __len);
1172 _Size __x = __loadword<_Size>(__s + __len - 40);
1173 _Size __y = __loadword<_Size>(__s + __len - 16) +
1174 __loadword<_Size>(__s + __len - 56);
1175 _Size __z = __hash_len_16(__loadword<_Size>(__s + __len - 48) + __len,
1176 __loadword<_Size>(__s + __len - 24));
1177 pair<_Size, _Size> __v = __weak_hash_len_32_with_seeds(__s + __len - 64, __len, __z);
1178 pair<_Size, _Size> __w = __weak_hash_len_32_with_seeds(__s + __len - 32, __y + __k1, __x);
1182 __len = (__len - 1) & ~static_cast<_Size>(63);
1194 __len -= 64;
1195 } while (__len != 0);