trig: fix formatting
This commit is contained in:
parent
4add34cf9a
commit
a82b0f3e90
|
@ -1,7 +1,7 @@
|
||||||
use std::fs::File;
|
|
||||||
use std::path::Path;
|
|
||||||
use std::io::prelude::*;
|
|
||||||
use std::f64::consts::PI;
|
use std::f64::consts::PI;
|
||||||
|
use std::fs::File;
|
||||||
|
use std::io::prelude::*;
|
||||||
|
use std::path::Path;
|
||||||
|
|
||||||
const TABLE_DEPTH: usize = 8;
|
const TABLE_DEPTH: usize = 8;
|
||||||
const TABLE_SIZE: usize = 1 << TABLE_DEPTH;
|
const TABLE_SIZE: usize = 1 << TABLE_DEPTH;
|
||||||
|
|
|
@ -17,7 +17,6 @@ pub fn shift_round(x: i32, shift: i32) -> i32 {
|
||||||
(x + (1 << (shift - 1))) >> shift
|
(x + (1 << (shift - 1))) >> shift
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub mod iir;
|
pub mod iir;
|
||||||
pub mod lockin;
|
pub mod lockin;
|
||||||
pub mod pll;
|
pub mod pll;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
use super::{shift_round, Complex};
|
||||||
use core::mem::swap;
|
use core::mem::swap;
|
||||||
use super::{Complex, shift_round};
|
|
||||||
|
|
||||||
const PHASE_BITS: i32 = 20;
|
const PHASE_BITS: i32 = 20;
|
||||||
const LUT_DEPTH: i32 = 8;
|
const LUT_DEPTH: i32 = 8;
|
||||||
|
|
Loading…
Reference in New Issue