Home
last modified time | relevance | path

Searched refs:lws_safe_modulo (Results 1 – 2 of 2) sorted by relevance

/third_party/libwebsockets/lib/roles/h2/
Dhpack.c402 index = lws_safe_modulo(dyn->pos - 1 - index, dyn->num_entries); in lws_token_from_index()
440 m = lws_safe_modulo(dyn->pos - 1 - n, dyn->num_entries); in lws_h2_dynamic_table_dump()
505 new_index = lws_safe_modulo(dyn->pos, dyn->num_entries); in lws_dynamic_token_insert()
523 int n = lws_safe_modulo(dyn->pos - dyn->used_entries, in lws_dynamic_token_insert()
560 dyn->pos = (uint16_t)lws_safe_modulo(dyn->pos + 1, dyn->num_entries); in lws_dynamic_token_insert()
642 n = lws_safe_modulo(dyn->pos - dyn->used_entries, dyn->num_entries); in lws_hpack_dynamic_size()
667 dyn->pos = (uint16_t)lws_safe_modulo(min, size); in lws_hpack_dynamic_size()
/third_party/libwebsockets/lib/core/
Dprivate-lib-core.h288 #define lws_safe_modulo(_a, _b) ((_b) ? ((_a) % (_b)) : 0) macro