| commit | 22823834348e0dc2c4953fd16f53c0a895245590 | [log] [tgz] |
|---|---|---|
| author | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | Sat Mar 22 21:17:45 2008 +1100 |
| committer | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | Sat Mar 22 21:17:45 2008 +1100 |
| tree | ab9e32ee2b504a36ad8d2c99f50de95ad12455e6 | |
| parent | ba238d8793672a4fa2b5f4fd4487e55a239a28b4 [diff] [blame] |
fixed-point: added cheap celt_div() division using a reciprocal
diff --git a/libcelt/vq.c b/libcelt/vq.c index 3da9d33..e9a53ba 100644 --- a/libcelt/vq.c +++ b/libcelt/vq.c
@@ -378,7 +378,7 @@ xy = MAC16_16(xy, x[j], Y[i+N-j-1]); yy = MAC16_16(yy, Y[i+N-j-1], Y[i+N-j-1]); } - score = DIV32(MULT16_16(ROUND16(xy,14),ROUND16(xy,14)), ROUND16(yy,14)); + score = celt_div(MULT16_16(ROUND16(xy,14),ROUND16(xy,14)), ROUND16(yy,14)); if (score > best_score) { best_score = score;