Lines Matching +full:21 +full:- +full:23

4  * SPDX-License-Identifier: Apache-2.0
128 { 21, 153, { 0b11111111, 0b11111110, 0b11100000, 0b00000000 } },
129 { 21, 161, { 0b11111111, 0b11111110, 0b11101000, 0b00000000 } },
130 { 21, 167, { 0b11111111, 0b11111110, 0b11110000, 0b00000000 } },
131 { 21, 172, { 0b11111111, 0b11111110, 0b11111000, 0b00000000 } },
132 { 21, 176, { 0b11111111, 0b11111111, 0b00000000, 0b00000000 } },
133 { 21, 177, { 0b11111111, 0b11111111, 0b00001000, 0b00000000 } },
134 { 21, 179, { 0b11111111, 0b11111111, 0b00010000, 0b00000000 } },
135 { 21, 209, { 0b11111111, 0b11111111, 0b00011000, 0b00000000 } },
136 { 21, 216, { 0b11111111, 0b11111111, 0b00100000, 0b00000000 } },
137 { 21, 217, { 0b11111111, 0b11111111, 0b00101000, 0b00000000 } },
138 { 21, 227, { 0b11111111, 0b11111111, 0b00110000, 0b00000000 } },
139 { 21, 229, { 0b11111111, 0b11111111, 0b00111000, 0b00000000 } },
140 { 21, 230, { 0b11111111, 0b11111111, 0b01000000, 0b00000000 } },
167 { 23, 1, { 0b11111111, 0b11111111, 0b10110000, 0b00000000 } },
168 { 23, 135, { 0b11111111, 0b11111111, 0b10110010, 0b00000000 } },
169 { 23, 137, { 0b11111111, 0b11111111, 0b10110100, 0b00000000 } },
170 { 23, 138, { 0b11111111, 0b11111111, 0b10110110, 0b00000000 } },
171 { 23, 139, { 0b11111111, 0b11111111, 0b10111000, 0b00000000 } },
172 { 23, 140, { 0b11111111, 0b11111111, 0b10111010, 0b00000000 } },
173 { 23, 141, { 0b11111111, 0b11111111, 0b10111100, 0b00000000 } },
174 { 23, 143, { 0b11111111, 0b11111111, 0b10111110, 0b00000000 } },
175 { 23, 147, { 0b11111111, 0b11111111, 0b11000000, 0b00000000 } },
176 { 23, 149, { 0b11111111, 0b11111111, 0b11000010, 0b00000000 } },
177 { 23, 150, { 0b11111111, 0b11111111, 0b11000100, 0b00000000 } },
178 { 23, 151, { 0b11111111, 0b11111111, 0b11000110, 0b00000000 } },
179 { 23, 152, { 0b11111111, 0b11111111, 0b11001000, 0b00000000 } },
180 { 23, 155, { 0b11111111, 0b11111111, 0b11001010, 0b00000000 } },
181 { 23, 157, { 0b11111111, 0b11111111, 0b11001100, 0b00000000 } },
182 { 23, 158, { 0b11111111, 0b11111111, 0b11001110, 0b00000000 } },
183 { 23, 165, { 0b11111111, 0b11111111, 0b11010000, 0b00000000 } },
184 { 23, 166, { 0b11111111, 0b11111111, 0b11010010, 0b00000000 } },
185 { 23, 168, { 0b11111111, 0b11111111, 0b11010100, 0b00000000 } },
186 { 23, 174, { 0b11111111, 0b11111111, 0b11010110, 0b00000000 } },
187 { 23, 175, { 0b11111111, 0b11111111, 0b11011000, 0b00000000 } },
188 { 23, 180, { 0b11111111, 0b11111111, 0b11011010, 0b00000000 } },
189 { 23, 182, { 0b11111111, 0b11111111, 0b11011100, 0b00000000 } },
190 { 23, 183, { 0b11111111, 0b11111111, 0b11011110, 0b00000000 } },
191 { 23, 188, { 0b11111111, 0b11111111, 0b11100000, 0b00000000 } },
192 { 23, 191, { 0b11111111, 0b11111111, 0b11100010, 0b00000000 } },
193 { 23, 197, { 0b11111111, 0b11111111, 0b11100100, 0b00000000 } },
194 { 23, 231, { 0b11111111, 0b11111111, 0b11100110, 0b00000000 } },
195 { 23, 239, { 0b11111111, 0b11111111, 0b11101000, 0b00000000 } },
262 { 28, 21, { 0b11111111, 0b11111111, 0b11111111, 0b00100000 } },
263 { 28, 23, { 0b11111111, 0b11111111, 0b11111111, 0b00110000 } },
286 #define MSB_MASK(len) (UINT32_MAX << (UINT32_BITLEN - len))
287 #define LSB_MASK(len) ((1UL << len) - 1UL)
291 uint32_t mask = MSB_MASK(entry->bitlen); in huffman_bits_compare()
292 uint32_t code = sys_get_be32(entry->code); in huffman_bits_compare()
340 return -EINVAL; in http_hpack_huffman_decode()
352 bits_needed -= bits_in_byte_left; in http_hpack_huffman_decode()
358 (bits_in_byte_left - bits_needed)) & in http_hpack_huffman_decode()
360 bits_in_byte_left -= bits_needed; in http_hpack_huffman_decode()
373 encoded_len--; in http_hpack_huffman_decode()
382 return -EBADMSG; in http_hpack_huffman_decode()
388 return -EBADMSG; in http_hpack_huffman_decode()
394 if (encoded_bits_len < decoded->bitlen) { in http_hpack_huffman_decode()
396 return -EBADMSG; in http_hpack_huffman_decode()
400 bits_needed += decoded->bitlen; in http_hpack_huffman_decode()
401 encoded_bits_len -= decoded->bitlen; in http_hpack_huffman_decode()
406 return -ENOBUFS; in http_hpack_huffman_decode()
409 *buf = decoded->symbol; in http_hpack_huffman_decode()
411 buflen--; in http_hpack_huffman_decode()
427 return -EINVAL; in http_hpack_huffman_encode()
436 return -EINVAL; in http_hpack_huffman_encode()
439 if (entry->bitlen > buflen_bits) { in http_hpack_huffman_encode()
440 return -ENOBUFS; in http_hpack_huffman_encode()
443 bitlen = entry->bitlen; in http_hpack_huffman_encode()
444 code = sys_get_be32(entry->code); in http_hpack_huffman_encode()
447 uint8_t to_copy = MIN(8 - bit_offset, bitlen); in http_hpack_huffman_encode()
459 bitlen -= to_copy; in http_hpack_huffman_encode()
468 buflen_bits -= entry->bitlen; in http_hpack_huffman_encode()
469 str_len--; in http_hpack_huffman_encode()
475 *buf |= LSB_MASK((8 - bit_offset)); in http_hpack_huffman_encode()