Commit aa36b6b4 authored by Jan Kiene's avatar Jan Kiene
Browse files

use MAC operators instead of separate add and mult

parent fd640229
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -190,7 +190,7 @@ void ivas_TD_RINGBUF_Push(
    {
        FOR( c = 0; c < h->num_channels; ++c )
        {
            h->data[h->write_pos] = data[L_add( L_mult0( c, num_samples_per_channel ), s )];
            h->data[h->write_pos] = data[L_mac0( s, c, num_samples_per_channel )];
            move32();
            h->write_pos = L_add( h->write_pos, 1 );

@@ -279,7 +279,7 @@ void ivas_TD_RINGBUF_Pop(
    {
        FOR( c = 0; c < h->num_channels; ++c )
        {
            data[L_add( L_mult0( c, num_samples_per_channel ), s )] = h->data[h->read_pos];
            data[L_mac0( s, c, num_samples_per_channel )] = h->data[h->read_pos];
            move32();
            ++h->read_pos;