summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/platform/audio/cpu/x86/vector_math_avx.cc
blob: ade6f22898facdb5d688fcaeff6907264417c6c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "build/build_config.h"

#if defined(ARCH_CPU_X86_FAMILY) && !defined(OS_MACOSX)

#include "third_party/blink/renderer/platform/audio/cpu/x86/vector_math_avx.h"

#include <immintrin.h>

namespace blink {
namespace VectorMath {
namespace AVX {

using MType = __m256;

}  // namespace AVX
}  // namespace VectorMath
}  // namespace blink

#define MM_PS(name) _mm256_##name##_ps
#define VECTOR_MATH_SIMD_NAMESPACE_NAME AVX

#include "third_party/blink/renderer/platform/audio/cpu/x86/vector_math_impl.h"

#undef MM_PS
#undef VECTOR_MATH_SIMD_NAMESPACE_NAME

#endif  // defined(ARCH_CPU_X86_FAMILY) && !defined(OS_MACOSX)