Home
last modified time | relevance | path

Searched refs:table_size (Results 1 – 9 of 9) sorted by relevance

/php-src/ext/dom/lexbor/lexbor/core/
H A Dshs.c15 #define lexbor_shs_make_id_m(key, size, table_size) \ argument
16 (((((key[0] * key[size - 1]) * key[0]) + size) % table_size) + 0x01)
18 #define lexbor_shs_make_id_lower_m(key, size, table_size) \ argument
23 % table_size) + 0x01)
25 #define lexbor_shs_make_id_upper_m(key, size, table_size) \ argument
30 % table_size) + 0x01)
H A Dhash.c75 return lexbor_calloc(hash->table_size, sizeof(lexbor_hash_entry_t *)); in lexbor_hash_table_create()
81 memset(hash->table, 0, sizeof(lexbor_hash_t *) * hash->table_size); in lexbor_hash_table_clean()
120 lexbor_hash_init(lexbor_hash_t *hash, size_t table_size, size_t struct_size) in lexbor_hash_init() argument
129 if (table_size < LEXBOR_HASH_TABLE_MIN_SIZE) { in lexbor_hash_init()
130 table_size = LEXBOR_HASH_TABLE_MIN_SIZE; in lexbor_hash_init()
133 chunk_size = table_size / 2; in lexbor_hash_init()
135 hash->table_size = table_size; in lexbor_hash_init()
194 table_idx = hash_id % hash->table_size; in lexbor_hash_insert()
235 table_idx = hash_id % hash->table_size; in lexbor_hash_insert_by_entry()
290 table_idx = hash_id % hash->table_size; in lexbor_hash_remove_by_hash_id()
[all …]
H A Dshs.h54 const size_t table_size, const uint32_t key) in lexbor_shs_hash_get_static() argument
58 entry = &table[ (key % table_size) + 1 ]; in lexbor_shs_hash_get_static()
H A Dhash.h71 size_t table_size; member
92 lexbor_hash_init(lexbor_hash_t *hash, size_t table_size, size_t struct_size);
/php-src/ext/dom/lexbor/lexbor/html/
H A Dtokenizer.c246 lxb_html_tokenizer_tags_make(lxb_html_tokenizer_t *tkz, size_t table_size) in lxb_html_tokenizer_tags_make() argument
249 return lexbor_hash_init(tkz->tags, table_size, sizeof(lxb_tag_data_t)); in lxb_html_tokenizer_tags_make()
259 lxb_html_tokenizer_attrs_make(lxb_html_tokenizer_t *tkz, size_t table_size) in lxb_html_tokenizer_attrs_make() argument
262 return lexbor_hash_init(tkz->attrs, table_size, in lxb_html_tokenizer_attrs_make()
H A Dtokenizer.h126 lxb_html_tokenizer_tags_make(lxb_html_tokenizer_t *tkz, size_t table_size);
132 lxb_html_tokenizer_attrs_make(lxb_html_tokenizer_t *tkz, size_t table_size);
/php-src/ext/standard/
H A Dhtml.c462 size_t table_size; in map_from_unicode() local
519 table_size = sizeof(unimap_macroman) / sizeof(*unimap_macroman); in map_from_unicode()
523 table_size = sizeof(unimap_win1251) / sizeof(*unimap_win1251); in map_from_unicode()
527 table_size = sizeof(unimap_koi8r) / sizeof(*unimap_koi8r); in map_from_unicode()
531 table_size = sizeof(unimap_cp866) / sizeof(*unimap_cp866); in map_from_unicode()
537 found = unimap_bsearch(table, code, table_size); in map_from_unicode()
/php-src/ext/mbstring/
H A Dphp_unicode.c102 const unsigned *table, unsigned table_size) in mph_lookup() argument
110 idx = mph_hash(g, code) % table_size; in mph_lookup()
/php-src/ext/dom/lexbor/lexbor/encoding/
H A Dencode.c70 #define LXB_ENCODING_ENCODE_SINGLE_BYTE(table, table_size) \ argument
84 hash = lexbor_shs_hash_get_static(table, table_size, cp); \
97 #define LXB_ENCODING_ENCODE_BYTE_SINGLE(table, table_size) \ argument
105 hash = lexbor_shs_hash_get_static(table, table_size, cp); \

Completed in 41 milliseconds