mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Mark SIMD conversion functions as always inline
This commit is contained in:
@@ -153,6 +153,7 @@ impl<T: SimdType> BiquadCoefficients<T> {
|
||||
}
|
||||
|
||||
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)
|
||||
// }
|
||||
|
||||
@@ -129,12 +129,14 @@ impl<T: SimdType> BiquadCoefficients<T> {
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user