mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-16 10:37:26 -05:00
Co-authored-by: Denny <denny@denny-desktop>
This commit is contained in:
@@ -85,8 +85,7 @@ public class RealFIRFilter2 extends FIRFilter
|
|||||||
//Use vector dot product to leverage SIMD intrinsics
|
//Use vector dot product to leverage SIMD intrinsics
|
||||||
for(int x = 0; x < mCoefficients.length; x++)
|
for(int x = 0; x < mCoefficients.length; x++)
|
||||||
{
|
{
|
||||||
//Note: Math.fma() is 2.5x faster than explicit multiply then accumulate
|
mAccumulator = Math.fma(mData[x], mCoefficients[x], mAccumulator);
|
||||||
Math.fma(mData[x], mCoefficients[x], mAccumulator);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Apply gain and return the filtered value */
|
/* Apply gain and return the filtered value */
|
||||||
|
|||||||
Reference in New Issue
Block a user