1
0
Fork 0

Mark SIMD conversion functions as always inline

This commit is contained in:
Robbert van der Helm 2022-03-29 03:14:40 +02:00
parent f301726f37
commit 8ecc30e399
2 changed files with 4 additions and 0 deletions

View file

@ -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)
// }

View file

@ -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)
}