+/* Read and return the next 16-bit integer embedded in the bitstream. */
+static inline u16
+bitstream_read_u16(struct input_bitstream *is)
+{
+ u16 v;
+
+ if (unlikely(is->end - is->next < 2))
+ return 0;
+ v = le16_to_cpu(*(const le16 *)is->next);
+ is->next += 2;
+ return v;
+}
+