fix crash when copy'ing latent plugins
[ardour.git] / libs / ardour / sse_functions_avx_linux.cc
1 /*
2     Copyright (C) 2015 Paul Davis
3
4     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.
8
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13
14     You should have received a copy of the GNU General Public License
15     along with this program; if not, write to the Free Software
16     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 */
19
20 #include "ardour/mix.h"
21
22 float
23 x86_sse_avx_compute_peak (const float * buf, uint32_t nsamples, float current)
24 {
25         return default_compute_peak (buf, nsamples, current);
26 }
27
28 void
29 x86_sse_avx_apply_gain_to_buffer (float * buf, uint32_t nframes, float gain)
30 {
31         default_apply_gain_to_buffer (buf, nframes, gain);
32 }
33
34 void
35 x86_sse_avx_mix_buffers_with_gain (float * dst, const float * src, uint32_t nframes, float gain)
36 {
37         default_mix_buffers_with_gain (dst, src, nframes, gain);
38 }
39
40 void
41 x86_sse_avx_mix_buffers_no_gain (float * dst, const float * src, uint32_t nframes)
42 {
43         default_mix_buffers_no_gain (dst, src, nframes);
44 }
45
46 void
47 x86_sse_avx_copy_vector (float * dst, const float * src, uint32_t nframes)
48 {
49         default_copy_vector (dst, src, nframes);
50 }
51
52 void
53 x86_sse_avx_find_peaks (const float * buf, uint32_t nsamples, float *min, float *max)
54 {
55         default_find_peaks (buf, nsamples, min, max);
56 }