Skip to content

Commit c3021a1

Browse files
fixed some comparisons
1 parent 7938821 commit c3021a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benches/comparisons.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fn log2_benchmarks(c: &mut Criterion<CyclesPerByte>) {
3636
b.iter(|| unsafe { (black_box(f32x8::splat(0.0_f32))).log2_fast_approx::<0>() })
3737
});
3838
c.bench_function("fath f32x8 log2 precision: 3 range-reduced: true", |b| {
39-
b.iter(|| unsafe { (black_box(f32x8::splat(0.0_f32))).log2_fast_approx::<0>() })
39+
b.iter(|| unsafe { (black_box(f32x8::splat(0.0_f32))).log2_fast_approx::<3>() })
4040
});
4141
c.bench_function("sleef f32x8 log2 3.5 ULP range-reduced: true", |b| {
4242
b.iter(|| log2_u35(black_box(f32x8::splat(0.0_f32))))
@@ -48,7 +48,7 @@ fn ln_benchmarks(c: &mut Criterion<CyclesPerByte>) {
4848
b.iter(|| unsafe { (black_box(f32x8::splat(0.0_f32))).ln_fast_approx::<0>() })
4949
});
5050
c.bench_function("fath f32x8 ln precision: 3 range-reduced: true", |b| {
51-
b.iter(|| unsafe { (black_box(f32x8::splat(0.0_f32))).ln_fast_approx::<0>() })
51+
b.iter(|| unsafe { (black_box(f32x8::splat(0.0_f32))).ln_fast_approx::<3>() })
5252
});
5353
c.bench_function("sleef f32x8 ln 3.5 ULP range-reduced: true", |b| {
5454
b.iter(|| (black_box(f32x8::splat(0.0_f32))).ln())

0 commit comments

Comments
 (0)