Skip to content

Commit

Permalink
Fix 5dc127f: Remove redundant FIXED_POINT check
Browse files Browse the repository at this point in the history
Thanks Yunho
  • Loading branch information
jmvalin committed Jan 23, 2025
1 parent b3eff53 commit 1474393
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions celt/vq.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,14 @@ void norm_scaleup(celt_norm *X, int N, int shift) {
int i;
celt_assert(shift >= 0);
if (shift <= 0) return;
#ifdef FIXED_POINT
for (i=0;i<N;i++) X[i] = SHL32(X[i], shift);
#endif
}

void norm_scaledown(celt_norm *X, int N, int shift) {
int i;
celt_assert(shift >= 0);
if (shift <= 0) return;
#ifdef FIXED_POINT
for (i=0;i<N;i++) X[i] = PSHR32(X[i], shift);
#endif
}

opus_val32 celt_inner_prod_norm(const celt_norm *x, const celt_norm *y, int len, int arch) {
Expand Down

0 comments on commit 1474393

Please sign in to comment.