| 74 | } |
| 75 | |
| 76 | static uint32_t __inline |
| 77 | getbyte(const uint8_t *buf, const uint32_t i, const uint32_t l) |
| 78 | { |
| 79 | if (l == 8) { |
| 80 | return (buf[i]); |
| 81 | } else { |
| 82 | return ((((buf[i] << 8) | buf[i+1]) >> l) & 0xff); |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | static void __inline |
| 87 | lamecopy(uint8_t *dst, uint8_t *src, uint32_t len) |