Home
last modified time | relevance | path

Searched refs:TOP_BITS (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/quiche/deps/boringssl/src/crypto/bytestring/
Dunicode.c39 #define TOP_BITS(n) ((uint8_t)~BOTTOM_BITS(8 - (n))) macro
52 if ((c & TOP_BITS(3)) == TOP_BITS(2)) { in cbs_get_utf8()
56 } else if ((c & TOP_BITS(4)) == TOP_BITS(3)) { in cbs_get_utf8()
60 } else if ((c & TOP_BITS(5)) == TOP_BITS(4)) { in cbs_get_utf8()
69 (c & TOP_BITS(2)) != TOP_BITS(1)) { in cbs_get_utf8()
128 return CBB_add_u8(cbb, TOP_BITS(2) | (u >> 6)) && in cbb_add_utf8()
129 CBB_add_u8(cbb, TOP_BITS(1) | (u & BOTTOM_BITS(6))); in cbb_add_utf8()
132 return CBB_add_u8(cbb, TOP_BITS(3) | (u >> 12)) && 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()
[all …]
/external/boringssl/src/crypto/bytestring/
Dunicode.c39 #define TOP_BITS(n) ((uint8_t)~BOTTOM_BITS(8 - (n))) macro
52 if ((c & TOP_BITS(3)) == TOP_BITS(2)) { in cbs_get_utf8()
56 } else if ((c & TOP_BITS(4)) == TOP_BITS(3)) { in cbs_get_utf8()
60 } else if ((c & TOP_BITS(5)) == TOP_BITS(4)) { in cbs_get_utf8()
69 (c & TOP_BITS(2)) != TOP_BITS(1)) { in cbs_get_utf8()
128 return CBB_add_u8(cbb, TOP_BITS(2) | (u >> 6)) && in cbb_add_utf8()
129 CBB_add_u8(cbb, TOP_BITS(1) | (u & BOTTOM_BITS(6))); in cbb_add_utf8()
132 return CBB_add_u8(cbb, TOP_BITS(3) | (u >> 12)) && 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()
[all …]
/external/cronet/third_party/boringssl/src/crypto/bytestring/
Dunicode.c39 #define TOP_BITS(n) ((uint8_t)~BOTTOM_BITS(8 - (n))) macro
52 if ((c & TOP_BITS(3)) == TOP_BITS(2)) { in cbs_get_utf8()
56 } else if ((c & TOP_BITS(4)) == TOP_BITS(3)) { in cbs_get_utf8()
60 } else if ((c & TOP_BITS(5)) == TOP_BITS(4)) { in cbs_get_utf8()
69 (c & TOP_BITS(2)) != TOP_BITS(1)) { in cbs_get_utf8()
128 return CBB_add_u8(cbb, TOP_BITS(2) | (u >> 6)) && in cbb_add_utf8()
129 CBB_add_u8(cbb, TOP_BITS(1) | (u & BOTTOM_BITS(6))); in cbb_add_utf8()
132 return CBB_add_u8(cbb, TOP_BITS(3) | (u >> 12)) && 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()
[all …]