| 579 | } |
| 580 | |
| 581 | static uint32_t be_code(const unsigned char *s, size_t n) { |
| 582 | uint32_t v = 0; |
| 583 | for (size_t i = 0; i < n; i++) { |
| 584 | v = (v << 8) | s[i]; |
| 585 | } |
| 586 | return v; |
| 587 | } |
| 588 | |
| 589 | static uint64_t cm_key(size_t n, uint32_t code) { |
| 590 | return ((uint64_t)n << 32) | code; |
no outgoing calls
no test coverage detected