From 8ecc30e39923ed5d71e0e3fc5f653de9f6e92fd9 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Tue, 29 Mar 2022 03:14:40 +0200 Subject: [PATCH] Mark SIMD conversion functions as always inline --- plugins/crisp/src/filter.rs | 2 ++ plugins/diopser/src/filter.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plugins/crisp/src/filter.rs b/plugins/crisp/src/filter.rs index bd3fd28f..59cbe06f 100644 --- a/plugins/crisp/src/filter.rs +++ b/plugins/crisp/src/filter.rs @@ -153,6 +153,7 @@ impl BiquadCoefficients { } impl SimdType for f32 { + #[inline(always)] fn from_f32(value: f32) -> Self { value } @@ -160,6 +161,7 @@ impl SimdType for f32 { // TODO: Add SIMD // impl SimdType for f32x2 { +// #[inline(always)] // fn from_f32(value: f32) -> Self { // f32x2::splat(value) // } diff --git a/plugins/diopser/src/filter.rs b/plugins/diopser/src/filter.rs index 2836358b..96f2c266 100644 --- a/plugins/diopser/src/filter.rs +++ b/plugins/diopser/src/filter.rs @@ -129,12 +129,14 @@ impl BiquadCoefficients { } impl SimdType for f32 { + #[inline(always)] fn from_f32(value: f32) -> Self { value } } impl SimdType for f32x2 { + #[inline(always)] fn from_f32(value: f32) -> Self { f32x2::splat(value) }