From ce3605e0e31c46810f16941648421e637bda0bbf Mon Sep 17 00:00:00 2001 From: LoganDark Date: Tue, 21 Jun 2022 20:11:22 -0700 Subject: [PATCH] Remove conditional compilation from iai It's not worth it --- benches/iai.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/benches/iai.rs b/benches/iai.rs index 0c74fe7..8746e66 100755 --- a/benches/iai.rs +++ b/benches/iai.rs @@ -14,21 +14,10 @@ fn blur_argb_16() { stackblur_iter::blur_argb(&mut img(), 16) } fn blur_argb_128() { stackblur_iter::blur_argb(&mut img(), 128) } fn blur_argb_1024() { stackblur_iter::blur_argb(&mut img(), 1024) } -#[cfg(feature = "blend-srgb")] fn blur_srgb_16() { stackblur_iter::blur_srgb(&mut img(), 16) } -#[cfg(feature = "blend-srgb")] fn blur_srgb_128() { stackblur_iter::blur_srgb(&mut img(), 128) } -#[cfg(feature = "blend-srgb")] fn blur_srgb_1024() { stackblur_iter::blur_srgb(&mut img(), 1024) } -#[cfg(not(feature = "blend-srgb"))] -iai::main!( - blur_argb_16, - blur_argb_128, - blur_argb_1024 -); - -#[cfg(feature = "blend-srgb")] iai::main!( blur_argb_16, blur_argb_128,