1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#![feature(in_band_lifetimes)]
#![feature(stdarch)]
macro_rules! x { ($x:ident) => { mod $x; pub use $x::*; } }
macro_rules! ix { () => ( use crate::{ imports::* , };) }
#[macro_use] pub mod imports;
x![asym];
#[cfg(not(target_arch = "x86_64"))]
x![sse1];
#[cfg(target_arch = "x86_64")]
x![sse2];
#[test] fn smoke() {
ix!();
use surge_math::simd_m128;
let srunit = SampleRateHandle::default();
let tables = TablesHandle::new(&srunit);
let shaper = AsymShaper::new(&tables);
let result = shaper.shape(simd_m128::one(), simd_m128::half());
println!("result: {:?}", result);
let result = shaper.shape(result, simd_m128::half());
println!("result: {:?}", result);
}