On 06.04.2016 14:09, Hans Leidekker wrote:
+static inline void read_rewind( struct reader *reader, unsigned int count ) +{
- while (reader->read_pos && count)
- {
reader->read_pos--;
count--;
- }
+}
I know its also done similar in the function above, but it still looks weird to me. Is it really necessary to unroll simple math functions like addition and subtraction?