Home
last modified time | relevance | path

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

/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.h992 uint8_t size_lg2; /* Size of the hashtable part is 2^size_lg2 entries. */
1015 # define UPB_TABLE_INIT(count, mask, ctype, size_lg2, entries) \
1016 {count, mask, ctype, size_lg2, entries}
1021 # define UPB_TABLE_INIT(count, mask, ctype, size_lg2, entries) \
1022 {count, mask, ctype, size_lg2, entries, &upb_alloc_debugrefs}
1024 # define UPB_TABLE_INIT(count, mask, ctype, size_lg2, entries) \
1025 {count, mask, ctype, size_lg2, entries, NULL}
1033 #define UPB_STRTABLE_INIT(count, mask, ctype, size_lg2, entries) \
1034 {UPB_TABLE_INIT(count, mask, ctype, size_lg2, entries)}
1046 #define UPB_INTTABLE_INIT(count, mask, ctype, size_lg2, ent, a, asize, acount) \
[all …]
Dupb.c4336 static bool init(upb_table *t, upb_ctype_t ctype, uint8_t size_lg2, in init() argument
4342 t->size_lg2 = size_lg2; in init()
4376 if (t->size_lg2 == 0) return NULL; in findentry()
4545 bool upb_strtable_resize(upb_strtable *t, size_t size_lg2, upb_alloc *a) { in upb_strtable_resize() argument
4551 if (!init(&new_table.t, t->t.ctype, size_lg2, a)) in upb_strtable_resize()
4577 if (!upb_strtable_resize(t, t->t.size_lg2 + 1, a)) { in upb_strtable_insert3()
4756 if (!init(&new_table, t->t.ctype, t->t.size_lg2 + 1, a)) { in upb_inttable_insert2()
4854 int size_lg2; in upb_inttable_compact2() local
4871 for (size_lg2 = ARRAY_SIZE(counts) - 1; size_lg2 > 0; size_lg2--) { in upb_inttable_compact2()
4872 if (counts[size_lg2] == 0) { in upb_inttable_compact2()
[all …]
/external/protobuf/php/ext/google/protobuf/
Dupb.c4101 static bool init(upb_table *t, upb_ctype_t ctype, uint8_t size_lg2) { in init() argument
4106 t->size_lg2 = size_lg2; in init()
4134 if (t->size_lg2 == 0) return NULL; in findentry()
4303 bool upb_strtable_resize(upb_strtable *t, size_t size_lg2) { in upb_strtable_resize() argument
4307 if (!init(&new_table.t, t->t.ctype, size_lg2)) in upb_strtable_resize()
4330 if (!upb_strtable_resize(t, t->t.size_lg2 + 1)) { in upb_strtable_insert2()
4507 if (!init(&new_table, t->t.ctype, t->t.size_lg2 + 1)) in upb_inttable_insert()
4618 int size_lg2; in upb_inttable_compact() local
4619 for (size_lg2 = ARRAY_SIZE(counts) - 1; size_lg2 > 1; size_lg2--) { in upb_inttable_compact()
4620 arr_size = 1 << size_lg2; in upb_inttable_compact()
[all …]
Dupb.h781 uint8_t size_lg2; /* Size of the hashtable part is 2^size_lg2 entries. */ member
796 #define UPB_STRTABLE_INIT(count, mask, ctype, size_lg2, entries) \ argument
797 {{count, mask, ctype, size_lg2, entries}}
809 #define UPB_INTTABLE_INIT(count, mask, ctype, size_lg2, ent, a, asize, acount) \ argument
810 {{count, mask, ctype, size_lg2, ent}, a, asize, acount}
818 if (t->size_lg2 == 0) in upb_table_size()
821 return 1 << t->size_lg2; in upb_table_size()
950 bool upb_strtable_resize(upb_strtable *t, size_t size_lg2);