round -> round_fx

This commit is contained in:
Jeff Epler 2023-06-27 19:12:21 -05:00
parent 76b9301b0c
commit 2af7da03a4
No known key found for this signature in database
GPG key ID: D5BF15AB975AB4DE
4 changed files with 14 additions and 14 deletions

View file

@ -147,7 +147,7 @@ void rmlt_coefs_to_samples(Word16 *coefs,
move32();
sum = L_mac(sum,*win_new++, *--new_ptr);
sum = L_mac(sum,*--win_old, *old_ptr++);
*out_ptr++ = round(L_shl(sum,2));
*out_ptr++ = round_fx(L_shl(sum,2));
move16();
}
@ -160,7 +160,7 @@ void rmlt_coefs_to_samples(Word16 *coefs,
move32();
sum = L_mac(sum,*win_new++, *new_ptr++);
sum = L_mac(sum,negate(*--win_old), *--old_ptr);
*out_ptr++ = round(L_shl(sum,2));
*out_ptr++ = round_fx(L_shl(sum,2));
move16();
}

View file

@ -291,7 +291,7 @@ void dct_type_iv_s (Word16 *input,Word16 *output,Word16 dct_length)
{
sum = L_mac(sum, pair_ptr[i],dct_core_s[i][k]);
}
buffer_swap[k] = round(sum);
buffer_swap[k] = round_fx(sum);
}
pair_ptr += CORE_SIZE;
@ -401,25 +401,25 @@ void dct_type_iv_s (Word16 *input,Word16 *output,Word16 dct_length)
sum = L_mac(sum,cos_even,in_low_even);
sum = L_mac(sum,negate(msin_even),in_high_even);
out_low_even = round(L_shl(sum,1));
out_low_even = round_fx(L_shl(sum,1));
sum = 0L;
move32();
sum = L_mac(sum,msin_even,in_low_even);
sum = L_mac(sum,cos_even,in_high_even);
out_high_even = round(L_shl(sum,1));
out_high_even = round_fx(L_shl(sum,1));
sum = 0L;
move32();
sum = L_mac(sum,cos_odd,in_low_odd);
sum = L_mac(sum,msin_odd,in_high_odd);
out_low_odd = round(L_shl(sum,1));
out_low_odd = round_fx(L_shl(sum,1));
sum = 0L;
move32();
sum = L_mac(sum,msin_odd,in_low_odd);
sum = L_mac(sum,negate(cos_odd),in_high_odd);
out_high_odd = round(L_shl(sum,1));
out_high_odd = round_fx(L_shl(sum,1));
*out_ptr_low++ = out_low_even;
move16();

View file

@ -225,7 +225,7 @@ void dct_type_iv_a (Word16 *input,Word16 *output,Word16 dct_length)
{
sum = L_mac(sum, pair_ptr[i],dct_core_a[i][k]);
}
buffer_swap[k] = round(sum);
buffer_swap[k] = round_fx(sum);
}
/* address arithmetic */
pair_ptr += CORE_SIZE;
@ -312,23 +312,23 @@ void dct_type_iv_a (Word16 *input,Word16 *output,Word16 dct_length)
sum=L_mac(sum,cos_even,in_low_even);
neg_msin_even = negate(msin_even);
sum=L_mac(sum,neg_msin_even,in_high_even);
out_low_even = round(sum);
out_low_even = round_fx(sum);
sum = 0L;
sum=L_mac(sum,msin_even,in_low_even);
sum=L_mac(sum,cos_even,in_high_even);
out_high_even= round(sum);
out_high_even= round_fx(sum);
sum = 0L;
sum=L_mac(sum,cos_odd,in_low_odd);
sum=L_mac(sum,msin_odd,in_high_odd);
out_low_odd= round(sum);
out_low_odd= round_fx(sum);
sum = 0L;
sum=L_mac(sum,msin_odd,in_low_odd);
neg_cos_odd = negate(cos_odd);
sum=L_mac(sum,neg_cos_odd,in_high_odd);
out_high_odd= round(sum);
out_high_odd= round_fx(sum);
*out_ptr_low++ = out_low_even;
*--out_ptr_high = out_high_even;

View file

@ -120,7 +120,7 @@ Word16 samples_to_rmlt_coefs(Word16 *new_samples,Word16 *old_samples,Word16 *coe
acca = L_mac(acca,*--win_low, *--sam_low);
acca = L_mac(acca,*win_high++, *sam_high++);
temp = round(acca);
temp = round_fx(acca);
*dst_ptr++ = temp;
move16();
@ -145,7 +145,7 @@ Word16 samples_to_rmlt_coefs(Word16 *new_samples,Word16 *old_samples,Word16 *coe
neg_win_low = negate(*win_low++);
samp_high = *--sam_high;
acca = L_mac(acca, neg_win_low, samp_high);
temp = round(acca);
temp = round_fx(acca);
*dst_ptr++=temp;
move16();