summaryrefslogtreecommitdiffstats
path: root/third_party/xsimd/include/xsimd/arch/xsimd_fma3_avx2.hpp
blob: 134053951ac6385f40bfab45267adacc6f680731 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/***************************************************************************
 * Copyright (c) Johan Mabille, Sylvain Corlay, Wolf Vollprecht and         *
 * Martin Renou                                                             *
 * Copyright (c) QuantStack                                                 *
 * Copyright (c) Serge Guelton                                              *
 *                                                                          *
 * Distributed under the terms of the BSD 3-Clause License.                 *
 *                                                                          *
 * The full license is in the file LICENSE, distributed with this software. *
 ****************************************************************************/

#ifndef XSIMD_FMA3_AVX2_HPP
#define XSIMD_FMA3_AVX2_HPP

#include "../types/xsimd_fma3_avx2_register.hpp"

// Allow inclusion of xsimd_fma3_avx.hpp
#ifdef XSIMD_FMA3_AVX_HPP
#undef XSIMD_FMA3_AVX_HPP
#define XSIMD_FORCE_FMA3_AVX_HPP
#endif

// Disallow inclusion of ./xsimd_fma3_avx_register.hpp
#ifndef XSIMD_FMA3_AVX_REGISTER_HPP
#define XSIMD_FMA3_AVX_REGISTER_HPP
#define XSIMD_FORCE_FMA3_AVX_REGISTER_HPP
#endif

// Include ./xsimd_fma3_avx.hpp but s/avx/avx2
#define avx avx2
#include "./xsimd_fma3_avx.hpp"
#undef avx
#undef XSIMD_FMA3_AVX_HPP

// Carefully restore guards
#ifdef XSIMD_FORCE_FMA3_AVX_HPP
#define XSIMD_FMA3_AVX_HPP
#undef XSIMD_FORCE_FMA3_AVX_HPP
#endif

#ifdef XSIMD_FORCE_FMA3_AVX_REGISTER_HPP
#undef XSIMD_FMA3_AVX_REGISTER_HPP
#undef XSIMD_FORCE_FMA3_AVX_REGISTER_HPP
#endif

#endif