Home
last modified time | relevance | path

Searched refs:hash_bits (Results 1 - 17 of 17) sorted by relevance

/third_party/skia/third_party/externals/libwebp/src/utils/
H A Dcolor_cache_utils.c23 int VP8LColorCacheInit(VP8LColorCache* const color_cache, int hash_bits) { in VP8LColorCacheInit() argument
24 const int hash_size = 1 << hash_bits; in VP8LColorCacheInit()
26 assert(hash_bits > 0); in VP8LColorCacheInit()
30 color_cache->hash_shift_ = 32 - hash_bits; in VP8LColorCacheInit()
31 color_cache->hash_bits_ = hash_bits; in VP8LColorCacheInit()
H A Dcolor_cache_utils.h73 // Initializes the color cache with 'hash_bits' bits for the keys.
75 int VP8LColorCacheInit(VP8LColorCache* const color_cache, int hash_bits);
/third_party/libbpf/src/
H A Dhashmap.c118 h = hash_bits(map->hash_fn(cur->key, map->ctx), new_cap_bits); in hashmap_grow()
167 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_insert()
191 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_insert()
211 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_find()
226 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_delete()
H A Dhashmap.h15 static inline size_t hash_bits(size_t h, int bits) in hash_bits() function
194 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
202 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
/third_party/python/Include/
H A Dpyhash.h89 const int hash_bits; member
/third_party/node/deps/zlib/
H A Ddeflate.c470 s->hash_bits = memLevel + 7; in deflateInit2_()
471 if (s->chromium_zlib_hash && s->hash_bits < 15) { in deflateInit2_()
472 s->hash_bits = 15; in deflateInit2_()
475 s->hash_size = 1 << s->hash_bits; in deflateInit2_()
477 s->hash_shift = ((s->hash_bits + MIN_MATCH-1) / MIN_MATCH); in deflateInit2_()
927 if (s->w_bits != 15 || s->hash_bits != 8 + 7) in deflateBound()
928 return (s->w_bits <= s->hash_bits && s->level ? fixedlen : storelen) + in deflateBound()
1426 Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever"); in longest_match()
1570 Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever"); in longest_match()
H A Ddeflate.h148 uInt hash_bits; /* log2(hash_size) */ member
155 * hash_shift * MIN_MATCH >= hash_bits
/third_party/node/deps/v8/third_party/zlib/
H A Ddeflate.c317 s->hash_bits = memLevel + 7;
318 if ((x86_cpu_enable_simd || arm_cpu_enable_crc32) && s->hash_bits < 15) {
319 s->hash_bits = 15;
322 s->hash_size = 1 << s->hash_bits;
324 s->hash_shift = ((s->hash_bits+MIN_MATCH-1)/MIN_MATCH);
755 if (s->w_bits != 15 || s->hash_bits != 8 + 7)
1323 Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");
1468 Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");
H A Ddeflate.h144 uInt hash_bits; /* log2(hash_size) */ member
151 * hash_shift * MIN_MATCH >= hash_bits
/third_party/skia/third_party/externals/zlib/
H A Ddeflate.c312 s->hash_bits = memLevel + 7;
313 if ((x86_cpu_enable_simd || arm_cpu_enable_crc32) && s->hash_bits < 15) {
314 s->hash_bits = 15;
317 s->hash_size = 1 << s->hash_bits;
319 s->hash_shift = ((s->hash_bits+MIN_MATCH-1)/MIN_MATCH);
749 if (s->w_bits != 15 || s->hash_bits != 8 + 7)
1315 Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");
1460 Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");
H A Ddeflate.h144 uInt hash_bits; /* log2(hash_size) */ member
151 * hash_shift * MIN_MATCH >= hash_bits
/third_party/zlib/
H A Ddeflate.c447 s->hash_bits = (uInt)memLevel + 7; in deflateInit2_()
448 s->hash_size = 1 << s->hash_bits; in deflateInit2_()
450 s->hash_shift = ((s->hash_bits + MIN_MATCH-1) / MIN_MATCH); in deflateInit2_()
895 if (s->w_bits != 15 || s->hash_bits != 8 + 7) in deflateBound()
896 return (s->w_bits <= s->hash_bits && s->level ? fixedlen : storelen) + in deflateBound()
1388 Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever"); in longest_match()
1515 Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever"); in longest_match()
H A Ddeflate.h148 uInt hash_bits; /* log2(hash_size) */ member
155 * hash_shift * MIN_MATCH >= hash_bits
/third_party/libwebsockets/win32port/zlib/
H A Ddeflate.c271 s->hash_bits = memLevel + 7;
272 s->hash_size = 1 << s->hash_bits;
274 s->hash_shift = ((s->hash_bits+MIN_MATCH-1)/MIN_MATCH);
584 if (s->w_bits != 15 || s->hash_bits != 8 + 7)
1143 Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");
1270 Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");
H A Ddeflate.h138 uInt hash_bits; /* log2(hash_size) */ member
145 * hash_shift * MIN_MATCH >= hash_bits
/third_party/python/Python/
H A Dsysmodule.c1346 {"hash_bits", "internal output size of hash algorithm"},
1382 PyLong_FromLong(hashfunc->hash_bits)); in get_hash_info()
/third_party/python/Lib/test/
H A Dtest_sys.py583 self.assertIn(sys.hash_info.hash_bits, {32, 64})

Completed in 27 milliseconds