Displaying 1 result from an estimated 1 matches for "pshift".
Did you mean:
shift
2014 Jul 02
2
[PATCH] two patches of doubtful usefulness
...pc.c, FLAC__lpc_quantize_coefficients():
This function declares "const int nshift = -(*shift)" variable
when *shift is less than 0. Then nshift is used in the loop:
for(i = 0; i < order; i++) {
error += lp_coeff[i] / (1 << nshift);
This patch adds "const int pshift = *shift" variable.
Pros:
* more symmetry for two branches
* compiler doesn't know that lp_coeff[] and *shift
don't alias, so the code for
error += lp_coeff[i] * (1 << *shift);
is less efficient than for
error += lp_coeff[i] * (1 << pshift);
Cons:
* the speed in...