Mark SIMD conversion functions as always inline
This commit is contained in:
parent
f301726f37
commit
8ecc30e399
|
@ -153,6 +153,7 @@ impl<T: SimdType> BiquadCoefficients<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SimdType for f32 {
|
impl SimdType for f32 {
|
||||||
|
#[inline(always)]
|
||||||
fn from_f32(value: f32) -> Self {
|
fn from_f32(value: f32) -> Self {
|
||||||
value
|
value
|
||||||
}
|
}
|
||||||
|
@ -160,6 +161,7 @@ impl SimdType for f32 {
|
||||||
|
|
||||||
// TODO: Add SIMD
|
// TODO: Add SIMD
|
||||||
// impl SimdType for f32x2 {
|
// impl SimdType for f32x2 {
|
||||||
|
// #[inline(always)]
|
||||||
// fn from_f32(value: f32) -> Self {
|
// fn from_f32(value: f32) -> Self {
|
||||||
// f32x2::splat(value)
|
// f32x2::splat(value)
|
||||||
// }
|
// }
|
||||||
|
|
|
@ -129,12 +129,14 @@ impl<T: SimdType> BiquadCoefficients<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SimdType for f32 {
|
impl SimdType for f32 {
|
||||||
|
#[inline(always)]
|
||||||
fn from_f32(value: f32) -> Self {
|
fn from_f32(value: f32) -> Self {
|
||||||
value
|
value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SimdType for f32x2 {
|
impl SimdType for f32x2 {
|
||||||
|
#[inline(always)]
|
||||||
fn from_f32(value: f32) -> Self {
|
fn from_f32(value: f32) -> Self {
|
||||||
f32x2::splat(value)
|
f32x2::splat(value)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue