summaryrefslogtreecommitdiff
path: root/third_party/g7221/decode/coef2sam.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-04-18 14:29:28 +0000
committerBenny Prijono <bennylp@teluu.com>2009-04-18 14:29:28 +0000
commit345cd27b4a25e0c326ed1efc6f7f8372bde4ed6b (patch)
tree23f45ad5fcde6553d7d0dcfa5065b22c94edc790 /third_party/g7221/decode/coef2sam.c
parenta1af7e95f02cb3744d53b17671ce52cfb5edc7f8 (diff)
More ticket #774: optimization for siren7/siren14 codecs
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2616 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party/g7221/decode/coef2sam.c')
-rw-r--r--third_party/g7221/decode/coef2sam.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/third_party/g7221/decode/coef2sam.c b/third_party/g7221/decode/coef2sam.c
index a52095d1..87deab0e 100644
--- a/third_party/g7221/decode/coef2sam.c
+++ b/third_party/g7221/decode/coef2sam.c
@@ -88,7 +88,7 @@ void rmlt_coefs_to_samples(Word16 *coefs,
- half_dct_size = shr(dct_length,1);
+ half_dct_size = shr_nocheck(dct_length,1);
/* Perform a Type IV (inverse) DCT on the coefficients */
dct_type_iv_s(coefs, new_samples, dct_length);
@@ -98,7 +98,7 @@ void rmlt_coefs_to_samples(Word16 *coefs,
{
for(index=0;index<dct_length;index++)
{
- new_samples[index] = shr(new_samples[index],mag_shift);
+ new_samples[index] = shr_nocheck(new_samples[index],mag_shift);
move16();
}
}
@@ -110,7 +110,7 @@ void rmlt_coefs_to_samples(Word16 *coefs,
mag_shift = negate(mag_shift);
for(index=0;index<dct_length;index++)
{
- new_samples[index] = shl(new_samples[index],mag_shift);
+ new_samples[index] = shl_nocheck(new_samples[index],mag_shift);
move16();
}
}
@@ -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++ = itu_round(L_shl(sum,2));
+ *out_ptr++ = itu_round(L_shl_nocheck(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++ = itu_round(L_shl(sum,2));
+ *out_ptr++ = itu_round(L_shl_nocheck(sum,2));
move16();
}