Searched refs:BOTTOM_BITS (Results 1 – 1 of 1) sorted by relevance
36 #define BOTTOM_BITS(n) (uint8_t)((1u << (n)) - 1) macro39 #define TOP_BITS(n) ((uint8_t)~BOTTOM_BITS(8 - (n)))53 v = c & BOTTOM_BITS(5); in cbs_get_utf8()57 v = c & BOTTOM_BITS(4); in cbs_get_utf8()61 v = c & BOTTOM_BITS(3); in cbs_get_utf8()73 v |= c & BOTTOM_BITS(6); in cbs_get_utf8()129 CBB_add_u8(cbb, TOP_BITS(1) | (u & BOTTOM_BITS(6))); in cbb_add_utf8()133 CBB_add_u8(cbb, TOP_BITS(1) | ((u >> 6) & BOTTOM_BITS(6))) && in cbb_add_utf8()134 CBB_add_u8(cbb, TOP_BITS(1) | (u & BOTTOM_BITS(6))); in cbb_add_utf8()138 CBB_add_u8(cbb, TOP_BITS(1) | ((u >> 12) & BOTTOM_BITS(6))) && in cbb_add_utf8()[all …]