lowpass: fmt

This commit is contained in:
Robert Jördens 2021-02-10 14:10:28 +01:00
parent beeb43bf8b
commit a144c099b2

View File

@ -28,7 +28,8 @@ impl<N: ArrayLength<i32>> Lowpass<N> {
let mut x1 = self.xy[0]; let mut x1 = self.xy[0];
self.xy[0] = x0; self.xy[0] = x0;
for y1 in self.xy[1..].iter_mut() { for y1 in self.xy[1..].iter_mut() {
x0 = *y1 + (((x0 >> 2) + (x1 >> 2) - (*y1 >> 1) + (1 << (k - 1))) >> k); x0 = *y1
+ (((x0 >> 2) + (x1 >> 2) - (*y1 >> 1) + (1 << (k - 1))) >> k);
x1 = *y1; x1 = *y1;
*y1 = x0; *y1 = x0;
} }