Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Commit ce3605e

Browse files
committed
Remove conditional compilation from iai
It's not worth it
1 parent 136d183 commit ce3605e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

benches/iai.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,10 @@ fn blur_argb_16() { stackblur_iter::blur_argb(&mut img(), 16) }
1414
fn blur_argb_128() { stackblur_iter::blur_argb(&mut img(), 128) }
1515
fn blur_argb_1024() { stackblur_iter::blur_argb(&mut img(), 1024) }
1616

17-
#[cfg(feature = "blend-srgb")]
1817
fn blur_srgb_16() { stackblur_iter::blur_srgb(&mut img(), 16) }
19-
#[cfg(feature = "blend-srgb")]
2018
fn blur_srgb_128() { stackblur_iter::blur_srgb(&mut img(), 128) }
21-
#[cfg(feature = "blend-srgb")]
2219
fn blur_srgb_1024() { stackblur_iter::blur_srgb(&mut img(), 1024) }
2320

24-
#[cfg(not(feature = "blend-srgb"))]
25-
iai::main!(
26-
blur_argb_16,
27-
blur_argb_128,
28-
blur_argb_1024
29-
);
30-
31-
#[cfg(feature = "blend-srgb")]
3221
iai::main!(
3322
blur_argb_16,
3423
blur_argb_128,

0 commit comments

Comments
 (0)