/external/erofs-utils/include/erofs/ |
D | hashmap.h | 49 struct hashmap { struct 56 struct hashmap *map; argument 62 void hashmap_init(struct hashmap *map, hashmap_cmp_fn equals_function, 64 int hashmap_free(struct hashmap *map); 75 void *hashmap_get(const struct hashmap *map, const void *key, const void *keydata); 76 void *hashmap_get_next(const struct hashmap *map, const void *entry); 77 void hashmap_add(struct hashmap *map, void *entry); 78 void *hashmap_remove(struct hashmap *map, const void *key); 80 static inline void *hashmap_get_from_hash(const struct hashmap *map, in hashmap_get_from_hash() 91 void hashmap_iter_init(struct hashmap *map, struct hashmap_iter *iter); [all …]
|
/external/rust/android-crates-io/crates/maplit/tests/ |
D | tests.rs | 7 let mut m = hashmap!{}; in test_parse() 9 hashmap!{1 => 1}; in test_parse() 10 hashmap!{1 => 1,}; in test_parse() 11 hashmap!{1 + 1 => 1, 2 + 1 => 2}; in test_parse() 12 hashmap!{1 + 1 => 1, 2 + 1 => 2,}; in test_parse() 13 hashmap!{{1 + 2} => 1, (1 + 3) => {0 + 2}}; in test_parse() 14 let m = hashmap!{"a".to_string() => 1 + 2, "b".to_string() => 1 + 3}; in test_parse() 17 let m = hashmap!{"a".to_string() => 1 + 2, "b".to_string() => 1 + 3, }; in test_parse()
|
/external/libbpf/src/ |
D | hashmap.c | 38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init() 51 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, in hashmap__new() 55 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new() 63 void hashmap__clear(struct hashmap *map) in hashmap__clear() 76 void hashmap__free(struct hashmap *map) in hashmap__free() 85 size_t hashmap__size(const struct hashmap *map) in hashmap__size() 90 size_t hashmap__capacity(const struct hashmap *map) in hashmap__capacity() 95 static bool hashmap_needs_to_grow(struct hashmap *map) in hashmap_needs_to_grow() 101 static int hashmap_grow(struct hashmap *map) in hashmap_grow() 130 static bool hashmap_find_entry(const struct hashmap *map, in hashmap_find_entry() [all …]
|
D | hashmap.h | 72 struct hashmap { struct 83 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, argument 85 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, 88 void hashmap__clear(struct hashmap *map); 89 void hashmap__free(struct hashmap *map); 91 size_t hashmap__size(const struct hashmap *map); 92 size_t hashmap__capacity(const struct hashmap *map); 129 int hashmap_insert(struct hashmap *map, long key, long value, 150 bool hashmap_delete(struct hashmap *map, long key, long *old_key, long *old_value); 157 bool hashmap_find(const struct hashmap *map, long key, long *value);
|
/external/rust/android-crates-io/crates/maplit/src/ |
D | lib.rs | 46 macro_rules! hashmap { macro 48 (@count $($rest:expr),*) => (<[()]>::len(&[$(hashmap!(@single $rest)),*])); 50 ($($key:expr => $value:expr,)+) => { hashmap!($($key => $value),+) }; 53 let _cap = hashmap!(@count $($key),*); 259 let names = hashmap!{ in test_hashmap() 268 let empty: HashMap<i32, i32> = hashmap!{}; in test_hashmap() 271 let _nested_compiles = hashmap!{ in test_hashmap() 272 1 => hashmap!{0 => 1 + 2,}, in test_hashmap() 273 2 => hashmap!{1 => 1,}, in test_hashmap() 276 let _: HashMap<String, i32> = convert_args!(keys=String::from, hashmap!( in test_hashmap() [all …]
|
/external/erofs-utils/lib/ |
D | hashmap.c | 66 static void alloc_table(struct hashmap *map, unsigned int size) in alloc_table() 85 static inline int entry_equals(const struct hashmap *map, in entry_equals() 93 static inline unsigned int bucket(const struct hashmap *map, in bucket() 99 static void rehash(struct hashmap *map, unsigned int newsize) in rehash() 120 static inline struct hashmap_entry **find_entry_ptr(const struct hashmap *map, in find_entry_ptr() 136 void hashmap_init(struct hashmap *map, hashmap_cmp_fn equals_function, in hashmap_init() 152 int hashmap_free(struct hashmap *map) in hashmap_free() 169 void *hashmap_get(const struct hashmap *map, const void *key, const void *keydata) in hashmap_get() 174 void *hashmap_get_next(const struct hashmap *map, const void *entry) in hashmap_get_next() 184 void hashmap_add(struct hashmap *map, void *entry) in hashmap_add() [all …]
|
/external/bpftool/src/ |
D | pids.c | 19 int build_obj_refs_table(struct hashmap **map, enum bpf_obj_type type) in build_obj_refs_table() 23 void delete_obj_refs_table(struct hashmap *map) {} in delete_obj_refs_table() 24 void emit_obj_refs_plain(struct hashmap *map, __u32 id, const char *prefix) {} in emit_obj_refs_plain() 25 void emit_obj_refs_json(struct hashmap *map, __u32 id, json_writer_t *json_writer) {} in emit_obj_refs_json() 31 static void add_ref(struct hashmap *map, struct pid_iter_entry *e) in add_ref() 98 int build_obj_refs_table(struct hashmap **map, enum bpf_obj_type type) in build_obj_refs_table() 182 void delete_obj_refs_table(struct hashmap *map) in delete_obj_refs_table() 200 void emit_obj_refs_json(struct hashmap *map, __u32 id, in emit_obj_refs_json() 233 void emit_obj_refs_plain(struct hashmap *map, __u32 id, const char *prefix) in emit_obj_refs_plain()
|
D | main.h | 86 extern struct hashmap *refs_table; 115 int build_pinned_obj_table(struct hashmap *table, 117 void delete_pinned_obj_table(struct hashmap *table); 118 __weak int build_obj_refs_table(struct hashmap **table, 120 __weak void delete_obj_refs_table(struct hashmap *table); 121 __weak void emit_obj_refs_json(struct hashmap *table, __u32 id, 123 __weak void emit_obj_refs_plain(struct hashmap *table, __u32 id, 262 static inline bool hashmap__empty(struct hashmap *map) in hashmap__empty()
|
/external/rust/android-crates-io/crates/fxhash/ |
D | README.md | 11 Building an Fx backed hashmap. 17 let mut hashmap = FxHashMap::new(); 19 hashmap.insert("black", 0); 20 hashmap.insert("white", 255); 29 let mut hashmap = FxHashSet::new(); 31 hashmap.insert("black"); 32 hashmap.insert("white");
|
/external/e2fsprogs/lib/ext2fs/ |
D | Makefile.in | 97 hashmap.o \ 178 $(srcdir)/hashmap.c \ 231 tdb.h qcow2.h hashmap.h 657 $(srcdir)/ext2_ext_attr.h $(srcdir)/hashmap.h $(srcdir)/bitops.h 663 $(srcdir)/ext2_ext_attr.h $(srcdir)/hashmap.h $(srcdir)/bitops.h 669 $(srcdir)/ext2_ext_attr.h $(srcdir)/hashmap.h $(srcdir)/bitops.h 675 $(srcdir)/ext2_ext_attr.h $(srcdir)/hashmap.h $(srcdir)/bitops.h \ 682 $(srcdir)/ext2_ext_attr.h $(srcdir)/hashmap.h $(srcdir)/bitops.h \ 690 $(srcdir)/hashmap.h $(srcdir)/bitops.h 697 $(srcdir)/hashmap.h $(srcdir)/bitops.h [all …]
|
/external/rust/android-crates-io/crates/once_cell/examples/ |
D | lazy_static.rs | 15 fn hashmap() -> &'static HashMap<u32, &'static str> { in hashmap() function 34 assert_eq!(hashmap().get(&0), Some(&"foo")); in main() 35 assert_eq!(hashmap().get(&1), Some(&"bar")); in main()
|
/external/apache-velocity-engine/velocity-engine-core/src/test/resources/templates/ |
D | map.vm | 23 #set( $hashmap.Foo = "foovalue") 24 $hashmap.Foo 25 $hashmap.get("Foo") 34 …ymap = { "a" : "aval", "bar" : "booboo", 'b' : 'bval', 1 : 2, $key : $value, 'hash' : $hashmap } )
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ForwardingMapTest.java | 299 Map<String, String> hashmap = Maps.newHashMap(); 300 hashmap.put("foo", "bar"); 301 hashmap.put(null, "baz"); 308 assertEquals(hashmap.toString(), forwardingMap.toString()); 312 Map<String, String> hashmap = Maps.newHashMap(); 313 hashmap.put("foo", "bar"); 314 hashmap.put("baz", null); 321 assertEquals(hashmap.toString(), forwardingMap.toString());
|
/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | ForwardingMapTest.java | 299 Map<String, String> hashmap = Maps.newHashMap(); 300 hashmap.put("foo", "bar"); 301 hashmap.put(null, "baz"); 308 assertEquals(hashmap.toString(), forwardingMap.toString()); 312 Map<String, String> hashmap = Maps.newHashMap(); 313 hashmap.put("foo", "bar"); 314 hashmap.put("baz", null); 321 assertEquals(hashmap.toString(), forwardingMap.toString());
|
/external/linux-kselftest/tools/testing/selftests/bpf/progs/ |
D | for_each_hash_map_elem.c | 13 } hashmap SEC(".maps"); 71 bpf_for_each_map_elem(&hashmap, check_hash_elem, &data, 0); in check_percpu_elem() 89 hashmap_elems = bpf_for_each_map_elem(&hashmap, check_hash_elem, &data, 0); in test_pkt_access()
|
/external/e2fsprogs/debugfs/ |
D | Makefile.in | 184 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 199 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 210 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 221 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 232 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 243 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 254 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 265 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 276 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 290 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ [all …]
|
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/fend-core-1.5.5/src/num/unit/ |
D | unit_exponent.rs | 50 hashmap: &mut HashMap<BaseUnit, Complex>, in add_to_hashmap() 61 if let Some(exp) = hashmap.get_mut(base_unit) { in add_to_hashmap() 65 hashmap.remove(base_unit); in add_to_hashmap() 73 hashmap.insert(base_unit.clone(), adj_exp.value); in add_to_hashmap()
|
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/fend-core-1.5.5/src/num/unit/ |
D | unit_exponent.rs | 50 hashmap: &mut HashMap<BaseUnit, Complex>, in add_to_hashmap() 61 if let Some(exp) = hashmap.get_mut(base_unit) { in add_to_hashmap() 65 hashmap.remove(base_unit); in add_to_hashmap() 73 hashmap.insert(base_unit.clone(), adj_exp.value); in add_to_hashmap()
|
/external/harfbuzz_ng/src/ |
D | hb-map.hh | 551 using hashmap = hb_hashmap_t<hb_codepoint_t, typedef 556 hb_map_t () : hashmap () {} in hb_map_t() 557 hb_map_t (const hb_map_t &o) : hashmap ((hashmap &) o) {} in hb_map_t() 558 hb_map_t (hb_map_t &&o) noexcept : hashmap (std::move ((hashmap &) o)) {} in hb_map_t() 561 hb_map_t (std::initializer_list<hb_codepoint_pair_t> lst) : hashmap (lst) {} in hb_map_t() 564 hb_map_t (const Iterable &o) : hashmap (o) {} in hb_map_t()
|
/external/linux-kselftest/tools/testing/selftests/bpf/benchs/ |
D | bench_local_storage.c | 115 static void __setup(struct bpf_program *prog, bool hashmap) in __setup() argument 122 if (!hashmap) in __setup() 146 if (hashmap) in __setup() 157 if (hashmap) in __setup()
|
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/fend-core-1.5.5/src/num/ |
D | unit.rs | 113 let (hashmap, scale) = value.unit.to_hashmap_and_scale(int)?; in create_unit_value_from_value() 120 hashmap, in create_unit_value_from_value() 133 let mut hashmap = HashMap::new(); in new_base_unit() localVariable 134 hashmap.insert(base_unit, 1.into()); in new_base_unit() 140 hashmap, in new_base_unit() 409 let (hashmap, _scale) = self.unit.to_hashmap_and_scale(int)?; in is_unitless() 410 if hashmap.is_empty() { in is_unitless() 1049 let (hashmap, _) = result.unit.to_hashmap_and_scale(int)?; in simplify() 1050 if let Ok(mut base_units) = hashmap in simplify() 1209 let mut hashmap = HashMap::<BaseUnit, Complex>::new(); in to_hashmap_and_scale() localVariable [all …]
|
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/fend-core-1.5.5/src/num/ |
D | unit.rs | 113 let (hashmap, scale) = value.unit.to_hashmap_and_scale(int)?; in create_unit_value_from_value() 120 hashmap, in create_unit_value_from_value() 133 let mut hashmap = HashMap::new(); in new_base_unit() localVariable 134 hashmap.insert(base_unit, 1.into()); in new_base_unit() 140 hashmap, in new_base_unit() 409 let (hashmap, _scale) = self.unit.to_hashmap_and_scale(int)?; in is_unitless() 410 if hashmap.is_empty() { in is_unitless() 1049 let (hashmap, _) = result.unit.to_hashmap_and_scale(int)?; in simplify() 1050 if let Ok(mut base_units) = hashmap in simplify() 1209 let mut hashmap = HashMap::<BaseUnit, Complex>::new(); in to_hashmap_and_scale() localVariable [all …]
|
/external/e2fsprogs/lib/support/ |
D | Makefile.in | 118 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 128 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 137 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 144 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 159 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 169 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 178 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
|
/external/e2fsprogs/e2fsck/ |
D | Makefile.in | 279 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 293 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 307 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 321 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 335 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 349 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 363 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 377 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 391 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 405 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ [all …]
|
/external/e2fsprogs/resize/ |
D | Makefile.in | 129 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 137 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 145 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 153 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 161 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 169 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
|