do {
if (likely(rc->next >= rc->begin)) {
if (rc->next != rc->end) {
- put_unaligned_u16_le(rc->cache +
+ put_unaligned_le16(rc->cache +
(u16)(rc->lower_bound >> 32),
rc->next++);
}
/* Write a coding unit, unless it would underflow the buffer. */
if (os->next != os->begin)
- put_unaligned_u16_le(os->bitbuf >> os->bitcount, --os->next);
+ put_unaligned_le16(os->bitbuf >> os->bitcount, --os->next);
/* Optimization for call sites that never write more than 16
* bits at once. */
return false;
if (os->bitcount != 0)
- put_unaligned_u16_le(os->bitbuf << (16 - os->bitcount), --os->next);
+ put_unaligned_le16(os->bitbuf << (16 - os->bitcount), --os->next);
return true;
}