Non matching variable found in function unclr_calc_corr_features_fx()
# Basic info
- Float reference:
- Encoder (float): 9a10acdb8466f56d9f53e21963bd96e32638d6ac
- Decoder (float): 9a10acdb8466f56d9f53e21963bd96e32638d6ac
- Fixed point:
- Encoder (fixed): 69eb54668b0ee7424b6210d0c6113c727606ae76
- Decoder (fixed): 69eb54668b0ee7424b6210d0c6113c727606ae76
# Issue description
Static code analysis shows there is a missmatch between a certain variable across float and fixed point versions.
In floating point implementation we have:
`corrLagMax = maximum( corrEst, ( lagSearchRange[1] - lagSearchRange[0] + 1 ), &corrEstMax );`
but in fixed point there is:
`corrLagMax = maximum_l( corrEst, sub( lagSearchRange[1], add( lagSearchRange[0], 1 ) ), &corrEstMax );`
There is a difference of 2 between these versions that can cause bugs.
Please fix it or provide proper justification for it.
issue