shithub: opus

Download patch

ref: c543ec1bd3d8e42a32132b139d606e2d3e67fb28
parent: 2e6876c07a2771462eff862bc6fcc423f2cd95af
author: Jean-Marc Valin <[email protected]>
date: Wed Jan 22 19:02:12 EST 2014

Speeding up extract_collapse_mask() slightly

--- a/celt/vq.c
+++ b/celt/vq.c
@@ -147,9 +147,11 @@
    collapse_mask = 0;
    i=0; do {
       int j;
+      unsigned tmp=0;
       j=0; do {
-         collapse_mask |= (iy[i*N0+j]!=0)<<i;
+         tmp |= iy[i*N0+j];
       } while (++j<N0);
+      collapse_mask |= (tmp!=0)<<i;
    } while (++i<B);
    return collapse_mask;
 }