#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "build/build_config.h"
#if defined(ARCH_CPU_X86_FAMILY) && !BUILDFLAG(IS_MAC)
#include <algorithm>
#include <cmath>
#include <cstring>
#include "base/check_op.h"
#include "third_party/blink/renderer/platform/audio/audio_array.h"
namespace blink {
namespace vector_math {
namespace VECTOR_MATH_SIMD_NAMESPACE_NAME {
constexpr size_t kReversedFilterStride = …;
bool IsAligned(const float* p) { … }
void PrepareFilterForConv(const float* filter_p,
int filter_stride,
size_t filter_size,
AudioFloatArray* prepared_filter) { … }
void Conv(const float* source_p,
const float* prepared_filter_p,
float* dest_p,
uint32_t frames_to_process,
size_t filter_size) { … }
void Vadd(const float* source1p,
const float* source2p,
float* dest_p,
uint32_t frames_to_process) { … }
void Vsub(const float* source1p,
const float* source2p,
float* dest_p,
uint32_t frames_to_process) { … }
void Vclip(const float* source_p,
const float* low_threshold_p,
const float* high_threshold_p,
float* dest_p,
uint32_t frames_to_process) { … }
void Vmaxmgv(const float* source_p, float* max_p, uint32_t frames_to_process) { … }
void Vmul(const float* source1p,
const float* source2p,
float* dest_p,
uint32_t frames_to_process) { … }
void Vsma(const float* source_p,
const float* scale,
float* dest_p,
uint32_t frames_to_process) { … }
void Vsmul(const float* source_p,
const float* scale,
float* dest_p,
uint32_t frames_to_process) { … }
void Vsadd(const float* source_p,
const float* addend,
float* dest_p,
uint32_t frames_to_process) { … }
void Vsvesq(const float* source_p, float* sum_p, uint32_t frames_to_process) { … }
void Zvmul(const float* real1p,
const float* imag1p,
const float* real2p,
const float* imag2p,
float* real_dest_p,
float* imag_dest_p,
uint32_t frames_to_process) { … }
}
}
}
#endif