summaryrefslogtreecommitdiff
path: root/third_party/g7221/encode/sam2coef.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/encode/sam2coef.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/encode/sam2coef.c')
-rw-r--r--third_party/g7221/encode/sam2coef.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/third_party/g7221/encode/sam2coef.c b/third_party/g7221/encode/sam2coef.c
index 57c8fce8..fc369e0c 100644
--- a/third_party/g7221/encode/sam2coef.c
+++ b/third_party/g7221/encode/sam2coef.c
@@ -84,7 +84,7 @@ Word16 samples_to_rmlt_coefs(Word16 *new_samples,Word16 *old_samples,Word16 *coe
Word16 temp2;
Word16 temp5;
- half_dct_size = shr(dct_length,1);
+ half_dct_size = shr_nocheck(dct_length,1);
/*++++++++++++++++++++++++++++++++++++++++++++*/
/* Get the first half of the windowed samples */
@@ -208,7 +208,7 @@ Word16 samples_to_rmlt_coefs(Word16 *new_samples,Word16 *old_samples,Word16 *coe
move16();
}
accb = L_mult(temp,9587);
- acca = L_shr(accb,20);
+ acca = L_shr_nocheck(accb,20);
temp5 = extract_l(acca);
temp = norm_s(temp5);
test();
@@ -230,7 +230,7 @@ Word16 samples_to_rmlt_coefs(Word16 *new_samples,Word16 *old_samples,Word16 *coe
acca = L_add(acca,temp);
}
- acca = L_shr(acca,7);
+ acca = L_shr_nocheck(acca,7);
test();
if (temp1 < acca)
@@ -243,7 +243,7 @@ Word16 samples_to_rmlt_coefs(Word16 *new_samples,Word16 *old_samples,Word16 *coe
{
for(index=0;index<dct_length;index++)
{
- windowed_data[index] = shl(windowed_data[index],mag_shift);
+ windowed_data[index] = shl_nocheck(windowed_data[index],mag_shift);
}
}
else
@@ -254,7 +254,7 @@ Word16 samples_to_rmlt_coefs(Word16 *new_samples,Word16 *old_samples,Word16 *coe
n = negate(mag_shift);
for(index=0;index<dct_length;index++)
{
- windowed_data[index] = shr(windowed_data[index],n);
+ windowed_data[index] = shr_nocheck(windowed_data[index],n);
move16();
}
}