mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 04:39:33 +01:00
aarch64: apply absolute value to peak computation
This commit is contained in:
parent
98eab68044
commit
730e4425dc
1 changed files with 2 additions and 0 deletions
|
|
@ -132,6 +132,7 @@ arm_neon_compute_peak(const float* src, uint32_t nframes, float current)
|
|||
size_t offset = 4 * i;
|
||||
float32x4_t x0;
|
||||
x0 = vld1q_f32(src_aligned + offset);
|
||||
x0 = vabsq_f32(x0);
|
||||
vmax = vmaxq_f32(vmax, x0);
|
||||
}
|
||||
|
||||
|
|
@ -139,6 +140,7 @@ arm_neon_compute_peak(const float* src, uint32_t nframes, float current)
|
|||
{
|
||||
float32x4_t x0;
|
||||
x0 = vld1q_dup_f32(src_aligned + frame);
|
||||
x0 = vabsq_f32(x0);
|
||||
vmax = vmaxq_f32(vmax, x0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue