Home
last modified time | relevance | path

Searched refs:size_lg2 (Results 1 – 7 of 7) sorted by relevance

/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/
Dtable.c95 static bool init(upb_table *t, uint8_t size_lg2, upb_alloc *a) { in init() argument
99 t->size_lg2 = size_lg2; in init()
138 if (t->size_lg2 == 0) return NULL; in findentry()
300 int size_lg2 = _upb_lg2ceil(need_entries); in upb_strtable_init2() local
301 return init(&t->t, size_lg2, a); in upb_strtable_init2()
317 bool upb_strtable_resize(upb_strtable *t, size_t size_lg2, upb_alloc *a) { in upb_strtable_resize() argument
321 if (!init(&new_table.t, size_lg2, a)) in upb_strtable_resize()
343 if (!upb_strtable_resize(t, t->t.size_lg2 + 1, a)) { in upb_strtable_insert3()
518 if (!init(&new_table, t->t.size_lg2 + 1, a)) { in upb_inttable_insert2()
601 int size_lg2; in upb_inttable_compact2() local
[all …]
Dtable.int.h183 uint8_t size_lg2; /* Size of the hashtable part is 2^size_lg2 entries. */ member
208 if (t->size_lg2 == 0) in upb_table_size()
211 return 1 << t->size_lg2; in upb_table_size()
386 bool upb_strtable_resize(upb_strtable *t, size_t size_lg2, upb_alloc *a);
/external/rust/crates/grpcio-sys/grpc/third_party/upb/tests/
Dtest_table.cc146 void Resize(size_t size_lg2) { in Resize() argument
147 upb_strtable_resize(&table_, size_lg2, &upb_alloc_global); in Resize()
220 void Resize(size_t size_lg2) { in Resize() argument
221 table_.Resize(size_lg2); in Resize()
388 int new_lg2 = table.table_.table_.t.size_lg2 + 1; in test_strtable()
/external/protobuf/php/ext/google/protobuf/
Dupb.c4736 static bool init(upb_table *t, upb_ctype_t ctype, uint8_t size_lg2, in init() argument
4742 t->size_lg2 = size_lg2; in init()
4776 if (t->size_lg2 == 0) return NULL; in findentry()
4939 bool upb_strtable_resize(upb_strtable *t, size_t size_lg2, upb_alloc *a) { in upb_strtable_resize() argument
4945 if (!init(&new_table.t, t->t.ctype, size_lg2, a)) in upb_strtable_resize()
4971 if (!upb_strtable_resize(t, t->t.size_lg2 + 1, a)) { in upb_strtable_insert3()
5151 if (!init(&new_table, t->t.ctype, t->t.size_lg2 + 1, a)) { in upb_inttable_insert2()
5247 int size_lg2; in upb_inttable_compact2() local
5264 for (size_lg2 = ARRAY_SIZE(counts) - 1; size_lg2 > 0; size_lg2--) { in upb_inttable_compact2()
5265 if (counts[size_lg2] == 0) { in upb_inttable_compact2()
[all …]
Dupb.h2797 uint8_t size_lg2; /* Size of the hashtable part is 2^size_lg2 entries. */ member
2830 #define UPB_INTTABLE_INIT(count, mask, ctype, size_lg2, ent, a, asize, acount) \ argument
2831 {UPB_TABLE_INIT(count, mask, ctype, size_lg2, ent), a, asize, acount}
2839 if (t->size_lg2 == 0) in upb_table_size()
2842 return 1 << t->size_lg2; in upb_table_size()
3024 bool upb_strtable_resize(upb_strtable *t, size_t size_lg2, upb_alloc *a);
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.h1085 uint8_t size_lg2; /* Size of the hashtable part is 2^size_lg2 entries. */
1108 # define UPB_TABLE_INIT(count, mask, ctype, size_lg2, entries) \
1109 {count, mask, ctype, size_lg2, entries}
1114 # define UPB_TABLE_INIT(count, mask, ctype, size_lg2, entries) \
1115 {count, mask, ctype, size_lg2, entries, &upb_alloc_debugrefs}
1117 # define UPB_TABLE_INIT(count, mask, ctype, size_lg2, entries) \
1118 {count, mask, ctype, size_lg2, entries, NULL}
1126 #define UPB_STRTABLE_INIT(count, mask, ctype, size_lg2, entries) \
1127 {UPB_TABLE_INIT(count, mask, ctype, size_lg2, entries)}
1139 #define UPB_INTTABLE_INIT(count, mask, ctype, size_lg2, ent, a, asize, acount) \
[all …]
Dupb.c6529 static bool init(upb_table *t, upb_ctype_t ctype, uint8_t size_lg2, in init() argument
6535 t->size_lg2 = size_lg2; in init()
6569 if (t->size_lg2 == 0) return NULL; in findentry()
6732 bool upb_strtable_resize(upb_strtable *t, size_t size_lg2, upb_alloc *a) { in upb_strtable_resize() argument
6738 if (!init(&new_table.t, t->t.ctype, size_lg2, a)) in upb_strtable_resize()
6764 if (!upb_strtable_resize(t, t->t.size_lg2 + 1, a)) { in upb_strtable_insert3()
6942 if (!init(&new_table, t->t.ctype, t->t.size_lg2 + 1, a)) { in upb_inttable_insert2()
7038 int size_lg2; in upb_inttable_compact2() local
7055 for (size_lg2 = ARRAY_SIZE(counts) - 1; size_lg2 > 0; size_lg2--) { in upb_inttable_compact2()
7056 if (counts[size_lg2] == 0) { in upb_inttable_compact2()
[all …]