Lines Matching refs:__len
962 inline _Size operator()(const void* __key, _Size __len)
969 __murmur2_or_cityhash<_Size, 32>::operator()(const void* __key, _Size __len)
973 _Size __h = __len;
975 for (; __len >= 4; __data += 4, __len -= 4)
984 switch (__len)
1003 …inline _Size operator()(const void* __key, _Size __len) _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CH…
1036 static _Size __hash_len_0_to_16(const char* __s, _Size __len)
1039 if (__len > 8) {
1041 const _Size __b = __loadword<_Size>(__s + __len - 8);
1042 return __hash_len_16(__a, __rotate_by_at_least_1(__b + __len, __len)) ^ __b;
1044 if (__len >= 4) {
1046 const uint32_t __b = __loadword<uint32_t>(__s + __len - 4);
1047 return __hash_len_16(__len + (__a << 3), __b);
1049 if (__len > 0) {
1051 const unsigned char __b = __s[__len >> 1];
1052 const unsigned char __c = __s[__len - 1];
1055 const uint32_t __z = __len + (static_cast<uint32_t>(__c) << 2);
1061 static _Size __hash_len_17_to_32(const char *__s, _Size __len)
1066 const _Size __c = __loadword<_Size>(__s + __len - 8) * __k2;
1067 const _Size __d = __loadword<_Size>(__s + __len - 16) * __k0;
1069 __a + __rotate(__b ^ __k3, 20) - __c + __len);
1101 static _Size __hash_len_33_to_64(const char *__s, size_t __len)
1106 (__len + __loadword<_Size>(__s + __len - 16)) * __k0;
1114 __a = __loadword<_Size>(__s + 16) + __loadword<_Size>(__s + __len - 32);
1115 __z += __loadword<_Size>(__s + __len - 8);
1118 __a += __loadword<_Size>(__s + __len - 24);
1120 __a += __loadword<_Size>(__s + __len - 16);
1131 __murmur2_or_cityhash<_Size, 64>::operator()(const void* __key, _Size __len)
1134 if (__len <= 32) {
1135 if (__len <= 16) {
1136 return __hash_len_0_to_16(__s, __len);
1138 return __hash_len_17_to_32(__s, __len);
1140 } else if (__len <= 64) {
1141 return __hash_len_33_to_64(__s, __len);
1146 _Size __x = __loadword<_Size>(__s + __len - 40);
1147 _Size __y = __loadword<_Size>(__s + __len - 16) +
1148 __loadword<_Size>(__s + __len - 56);
1149 _Size __z = __hash_len_16(__loadword<_Size>(__s + __len - 48) + __len,
1150 __loadword<_Size>(__s + __len - 24));
1151 pair<_Size, _Size> __v = __weak_hash_len_32_with_seeds(__s + __len - 64, __len, __z);
1152 pair<_Size, _Size> __w = __weak_hash_len_32_with_seeds(__s + __len - 32, __y + __k1, __x);
1156 __len = (__len - 1) & ~static_cast<_Size>(63);
1168 __len -= 64;
1169 } while (__len != 0);