From a050d9bf1f3bd0225068d42ea2d7c39cf0f951ad Mon Sep 17 00:00:00 2001 From: Ayan Shafqat Date: Thu, 2 Feb 2023 12:05:33 -0500 Subject: [PATCH] Add newly created functions to libardour API --- libs/ardour/ardour/mix.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libs/ardour/ardour/mix.h b/libs/ardour/ardour/mix.h index c619a2389b..2deb28a5e1 100644 --- a/libs/ardour/ardour/mix.h +++ b/libs/ardour/ardour/mix.h @@ -55,6 +55,16 @@ LIBARDOUR_API void x86_sse_avx_find_peaks (float const* buf, uint3 LIBARDOUR_API void x86_fma_mix_buffers_with_gain (float* dst, float const* src, uint32_t nframes, float gain); #endif +/* FMA functions */ +#ifdef FPU_AVX512F_SUPPORT +LIBARDOUR_API float x86_avx512f_compute_peak (float const* buf, uint32_t nsamples, float current); +LIBARDOUR_API void x86_avx512f_apply_gain_to_buffer (float* buf, uint32_t nframes, float gain); +LIBARDOUR_API void x86_avx512f_mix_buffers_with_gain (float* dst, float const* src, uint32_t nframes, float gain); +LIBARDOUR_API void x86_avx512f_mix_buffers_no_gain (float* dst, float const* src, uint32_t nframes); +LIBARDOUR_API void x86_avx512f_copy_vector (float* dst, float const* src, uint32_t nframes); +LIBARDOUR_API void x86_avx512f_find_peaks (float const* buf, uint32_t nsamples, float* min, float* max); +#endif + /* debug wrappers for SSE functions */ LIBARDOUR_API float debug_compute_peak (ARDOUR::Sample const* buf, ARDOUR::pframes_t nsamples, float current);