diff --git a/dsp/build.rs b/dsp/build.rs index 2e6fbfe..1b60363 100644 --- a/dsp/build.rs +++ b/dsp/build.rs @@ -1,7 +1,7 @@ -use std::fs::File; -use std::path::Path; -use std::io::prelude::*; use std::f64::consts::PI; +use std::fs::File; +use std::io::prelude::*; +use std::path::Path; const TABLE_DEPTH: usize = 8; const TABLE_SIZE: usize = 1 << TABLE_DEPTH; diff --git a/dsp/src/lib.rs b/dsp/src/lib.rs index b7bfeeb..798b0fc 100644 --- a/dsp/src/lib.rs +++ b/dsp/src/lib.rs @@ -17,7 +17,6 @@ pub fn shift_round(x: i32, shift: i32) -> i32 { (x + (1 << (shift - 1))) >> shift } - pub mod iir; pub mod lockin; pub mod pll; diff --git a/dsp/src/trig.rs b/dsp/src/trig.rs index e8f170d..3c7eb2b 100644 --- a/dsp/src/trig.rs +++ b/dsp/src/trig.rs @@ -1,5 +1,5 @@ +use super::{shift_round, Complex}; use core::mem::swap; -use super::{Complex, shift_round}; const PHASE_BITS: i32 = 20; const LUT_DEPTH: i32 = 8;