mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
resample-peaks: small improvement
Makes it easier for the compiler to make a constant.
This commit is contained in:
parent
46c8c9ec03
commit
a7c28d64ae
1 changed files with 1 additions and 3 deletions
|
|
@ -41,9 +41,7 @@ static inline float find_abs_max_sse(const float *s, uint32_t n_samples, float m
|
||||||
{
|
{
|
||||||
__m128 in[2], max;
|
__m128 in[2], max;
|
||||||
uint32_t n, unrolled;
|
uint32_t n, unrolled;
|
||||||
const __m128 mask = _mm_andnot_ps(
|
const __m128 mask = (__m128) _mm_set1_epi32(0x7fffffff);
|
||||||
_mm_set_ps1(-0.0f),
|
|
||||||
_mm_cmpeq_ps(_mm_setzero_ps(), _mm_setzero_ps()));
|
|
||||||
|
|
||||||
max = _mm_set1_ps(m);
|
max = _mm_set1_ps(m);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue