Skip to content
Snippets Groups Projects
Commit c543ec1b authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Speeding up extract_collapse_mask() slightly

parent 2e6876c0
No related branches found
No related tags found
No related merge requests found
......@@ -147,9 +147,11 @@ static unsigned extract_collapse_mask(int *iy, int N, int B)
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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment