| 2538 | 0x1ffffff,0x3ffffff,0x7ffffff,0xfffffff,0x1fffffff,0x3fffffff,0x7fffffff,0xffffffff}; |
| 2539 | |
| 2540 | static inline void bits_init(bitbuf_t *bb, uint8_t* buf, int bufsize, int clear) |
| 2541 | { |
| 2542 | bb->pos = 0; |
| 2543 | bb->buf = buf; |
| 2544 | bb->size = bufsize; |
| 2545 | bb->val = ((uint32_t)bb->buf[0] << 24) | (bb->buf[1] << 16) | |
| 2546 | (bb->buf[2] << 8) | bb->buf[3]; |
| 2547 | if (clear) |
| 2548 | memset(bb->buf, 0, bufsize); |
| 2549 | bb->size = bufsize; |
| 2550 | } |
| 2551 | |
| 2552 | static inline void bits_clone( bitbuf_t *dst, bitbuf_t *src, int bufsize ) |
| 2553 | { |
no outgoing calls
no test coverage detected