remove trig.rs (no longer used)

This commit is contained in:
Simon Gardling
2021-03-29 19:29:39 +00:00
parent 5c97379057
commit 6e2b5c3d2a
4 changed files with 0 additions and 76 deletions

View File

@@ -1,16 +0,0 @@
use physarum::trig;
use criterion::{black_box, criterion_group, criterion_main, Criterion};
fn bench_cos_appr(c: &mut Criterion) {
c.bench_function("Approximate cosine", |b| {
b.iter(|| trig::cos(black_box(1.0)))
});
}
fn bench_cos_exact(c: &mut Criterion) {
c.bench_function("Exact cosine", |b| b.iter(|| f32::cos(black_box(1.0))));
}
criterion_group!(benches, bench_cos_appr, bench_cos_exact);
criterion_main!(benches);