Home
last modified time | relevance | path

Searched refs:hash_fn (Results 1 – 25 of 25) sorted by relevance

/third_party/libbpf/src/
Dhashmap.c38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init() argument
41 map->hash_fn = hash_fn; in hashmap__init()
51 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, in hashmap__new() argument
59 hashmap__init(map, hash_fn, equal_fn, ctx); in hashmap__new()
118 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()
Dhashmap.h73 hashmap_hash_fn hash_fn; member
83 #define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \ argument
84 .hash_fn = (hash_fn), \
93 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn,
95 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn,
204 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
212 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
Dbtf.c3331 hashmap_hash_fn hash_fn = btf_dedup_identity_hash_fn; local
3338 hash_fn = btf_dedup_collision_hash_fn;
3343 d->dedup_table = hashmap__new(hash_fn, btf_dedup_equal_fn, NULL);
/third_party/skia/src/opts/
DSkOpts_sse42.cpp15 hash_fn = sse42::hash_fn; in Init_sse42()
DSkOpts_crc32.cpp15 hash_fn = crc32::hash_fn; in Init_crc32()
DSkChecksum_opts.h112 inline uint32_t hash_fn(const void* data, size_t len, uint32_t seed) { in hash_fn() function
/third_party/skia/include/private/
DSkChecksum.h58 return SkOpts::hash_fn(&k, sizeof(K), 0); in operator()
62 return SkOpts::hash_fn(k.c_str(), k.size(), 0); in operator()
DSkOpts_spi.h18 extern uint32_t SK_SPI (*hash_fn)(const void* data, size_t bytes, uint32_t seed);
/third_party/skia/src/gpu/d3d/
DGrD3DResourceProvider.h109 return SkOpts::hash_fn(desc.asKey(), desc.keyLength(), 0); in operator()
147 return SkOpts::hash_fn(key.data(), in operator()
/third_party/skia/src/gpu/dawn/
DGrDawnGpu.h238 return SkOpts::hash_fn(desc.asKey(), desc.keyLength(), 0); in operator()
244 return SkOpts::hash_fn(&samplerState, sizeof(samplerState), 0); in operator()
/third_party/skia/experimental/graphite/src/
DUniformCache.cpp16 return SkOpts::hash_fn(ud->data(), ud->dataSize(), 0); in operator ()()
DResourceProvider.h60 return SkOpts::hash_fn(desc.asKey(), desc.keyLength(), 0); in operator()
/third_party/skia/src/gpu/mtl/
DGrMtlResourceProvider.h77 return SkOpts::hash_fn(desc.asKey(), desc.keyLength(), 0); in operator()
/third_party/skia/src/gpu/
DGrDDLContext.cpp102 return SkOpts::hash_fn(desc.asKey(), desc.keyLength(), 0); in operator ()()
/third_party/skia/src/sksl/
DSkSLMain.cpp39 decltype(hash_fn) hash_fn = skslc_standalone::hash_fn; variable
/third_party/skia/src/core/
DSkOpts.h60 return hash_fn(data, bytes, seed);
DSkColorSpace.cpp23 fTransferFnHash = SkOpts::hash_fn(&fTransferFn, 7*sizeof(float), 0); in SkColorSpace()
24 fToXYZD50Hash = SkOpts::hash_fn(&fToXYZD50, 9*sizeof(float), 0); in SkColorSpace()
DSkOpts.cpp86 DEFINE_DEFAULT(hash_fn);
DSkRuntimeEffect.cpp515 : fHash(SkOpts::hash_fn(baseProgram->fSource->c_str(), baseProgram->fSource->size(), 0)) in SkRuntimeEffect()
531 fHash = SkOpts::hash_fn(&options.forceNoInline, in SkRuntimeEffect()
533 fHash = SkOpts::hash_fn(&options.enforceES2Restrictions, in SkRuntimeEffect()
535 fHash = SkOpts::hash_fn(&options.allowFragCoord, in SkRuntimeEffect()
538 fHash = SkOpts::hash_fn(&options.useAF, sizeof(options.useAF), fHash); in SkRuntimeEffect()
DSkCanvas.cpp1410 fMarkerStack->setMarker(SkOpts::hash_fn(name, strlen(name), 0), in markCTM()
1418 fMarkerStack->findMarker(SkOpts::hash_fn(name, strlen(name), 0), mx); in findMarkedCTM()
/third_party/skia/tools/gpu/
DMemoryCache.h84 return key.fKey ? SkOpts::hash_fn(key.fKey->data(), key.fKey->size(), 0) : 0; in operator()
/third_party/skia/src/sksl/ir/
DSkSLSymbolTable.h158 return SymbolKey{name, SkOpts::hash_fn(name.data(), name.size(), 0)}; in MakeSymbolKey()
/third_party/skia/src/gpu/vk/
DGrVkResourceProvider.h256 return SkOpts::hash_fn(desc.asKey(), desc.keyLength(), 0); in operator()
/third_party/skia/src/gpu/gl/
DGrGLGpu.h413 return SkOpts::hash_fn(desc.asKey(), desc.keyLength(), 0); in operator()
/third_party/libabigail/src/
Dabg-ir.cc20605 function_decl::hash hash_fn; in get_hash() local
20606 return hash_fn(*this); in get_hash()