Loading lib_rend/ivas_td_ring_buffer_fx.c +3 −7 Original line number Diff line number Diff line Loading @@ -53,21 +53,17 @@ static UWord32 ivas_td_ringbuf_total_size( TD_RINGBUF_HANDLE h ) { UWord32 total_size; IF( h->is_full ) { total_size = h->capacity; return h->capacity; } IF( h->read_pos <= h->write_pos ) { total_size = L_sub( h->write_pos, h->read_pos ); return L_sub( h->write_pos, h->read_pos ); } /* else wrap around */ total_size = L_add( h->write_pos, L_sub( h->capacity, h->read_pos ) ); return total_size; return L_add( h->write_pos, L_sub( h->capacity, h->read_pos ) ); } Loading Loading
lib_rend/ivas_td_ring_buffer_fx.c +3 −7 Original line number Diff line number Diff line Loading @@ -53,21 +53,17 @@ static UWord32 ivas_td_ringbuf_total_size( TD_RINGBUF_HANDLE h ) { UWord32 total_size; IF( h->is_full ) { total_size = h->capacity; return h->capacity; } IF( h->read_pos <= h->write_pos ) { total_size = L_sub( h->write_pos, h->read_pos ); return L_sub( h->write_pos, h->read_pos ); } /* else wrap around */ total_size = L_add( h->write_pos, L_sub( h->capacity, h->read_pos ) ); return total_size; return L_add( h->write_pos, L_sub( h->capacity, h->read_pos ) ); } Loading