Lines Matching +full:24 +full:- +full:28

4  * SPDX-License-Identifier: Apache-2.0
196 { 24, 9, { 0b11111111, 0b11111111, 0b11101010, 0b00000000 } },
197 { 24, 142, { 0b11111111, 0b11111111, 0b11101011, 0b00000000 } },
198 { 24, 144, { 0b11111111, 0b11111111, 0b11101100, 0b00000000 } },
199 { 24, 145, { 0b11111111, 0b11111111, 0b11101101, 0b00000000 } },
200 { 24, 148, { 0b11111111, 0b11111111, 0b11101110, 0b00000000 } },
201 { 24, 159, { 0b11111111, 0b11111111, 0b11101111, 0b00000000 } },
202 { 24, 171, { 0b11111111, 0b11111111, 0b11110000, 0b00000000 } },
203 { 24, 206, { 0b11111111, 0b11111111, 0b11110001, 0b00000000 } },
204 { 24, 215, { 0b11111111, 0b11111111, 0b11110010, 0b00000000 } },
205 { 24, 225, { 0b11111111, 0b11111111, 0b11110011, 0b00000000 } },
206 { 24, 236, { 0b11111111, 0b11111111, 0b11110100, 0b00000000 } },
207 { 24, 237, { 0b11111111, 0b11111111, 0b11110101, 0b00000000 } },
246 { 28, 2, { 0b11111111, 0b11111111, 0b11111110, 0b00100000 } },
247 { 28, 3, { 0b11111111, 0b11111111, 0b11111110, 0b00110000 } },
248 { 28, 4, { 0b11111111, 0b11111111, 0b11111110, 0b01000000 } },
249 { 28, 5, { 0b11111111, 0b11111111, 0b11111110, 0b01010000 } },
250 { 28, 6, { 0b11111111, 0b11111111, 0b11111110, 0b01100000 } },
251 { 28, 7, { 0b11111111, 0b11111111, 0b11111110, 0b01110000 } },
252 { 28, 8, { 0b11111111, 0b11111111, 0b11111110, 0b10000000 } },
253 { 28, 11, { 0b11111111, 0b11111111, 0b11111110, 0b10010000 } },
254 { 28, 12, { 0b11111111, 0b11111111, 0b11111110, 0b10100000 } },
255 { 28, 14, { 0b11111111, 0b11111111, 0b11111110, 0b10110000 } },
256 { 28, 15, { 0b11111111, 0b11111111, 0b11111110, 0b11000000 } },
257 { 28, 16, { 0b11111111, 0b11111111, 0b11111110, 0b11010000 } },
258 { 28, 17, { 0b11111111, 0b11111111, 0b11111110, 0b11100000 } },
259 { 28, 18, { 0b11111111, 0b11111111, 0b11111110, 0b11110000 } },
260 { 28, 19, { 0b11111111, 0b11111111, 0b11111111, 0b00000000 } },
261 { 28, 20, { 0b11111111, 0b11111111, 0b11111111, 0b00010000 } },
262 { 28, 21, { 0b11111111, 0b11111111, 0b11111111, 0b00100000 } },
263 { 28, 23, { 0b11111111, 0b11111111, 0b11111111, 0b00110000 } },
264 { 28, 24, { 0b11111111, 0b11111111, 0b11111111, 0b01000000 } },
265 { 28, 25, { 0b11111111, 0b11111111, 0b11111111, 0b01010000 } },
266 { 28, 26, { 0b11111111, 0b11111111, 0b11111111, 0b01100000 } },
267 { 28, 27, { 0b11111111, 0b11111111, 0b11111111, 0b01110000 } },
268 { 28, 28, { 0b11111111, 0b11111111, 0b11111111, 0b10000000 } },
269 { 28, 29, { 0b11111111, 0b11111111, 0b11111111, 0b10010000 } },
270 { 28, 30, { 0b11111111, 0b11111111, 0b11111111, 0b10100000 } },
271 { 28, 31, { 0b11111111, 0b11111111, 0b11111111, 0b10110000 } },
272 { 28, 127, { 0b11111111, 0b11111111, 0b11111111, 0b11000000 } },
273 { 28, 220, { 0b11111111, 0b11111111, 0b11111111, 0b11010000 } },
274 { 28, 249, { 0b11111111, 0b11111111, 0b11111111, 0b11100000 } },
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()
449 (24 + bit_offset)); 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()