Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-08-28 09:11:32

0001 /***************************************************************************
0002  * Copyright (c) Johan Mabille, Sylvain Corlay, Wolf Vollprecht and         *
0003  * Martin Renou                                                             *
0004  * Copyright (c) QuantStack                                                 *
0005  * Copyright (c) Serge Guelton                                              *
0006  *                                                                          *
0007  * Distributed under the terms of the BSD 3-Clause License.                 *
0008  *                                                                          *
0009  * The full license is in the file LICENSE, distributed with this software. *
0010  ****************************************************************************/
0011 
0012 #ifndef XSIMD_FMA3_AVX2_HPP
0013 #define XSIMD_FMA3_AVX2_HPP
0014 
0015 #include "../types/xsimd_fma3_avx2_register.hpp"
0016 
0017 // Allow inclusion of xsimd_fma3_avx.hpp
0018 #ifdef XSIMD_FMA3_AVX_HPP
0019 #undef XSIMD_FMA3_AVX_HPP
0020 #define XSIMD_FORCE_FMA3_AVX_HPP
0021 #endif
0022 
0023 // Disallow inclusion of ./xsimd_fma3_avx_register.hpp
0024 #ifndef XSIMD_FMA3_AVX_REGISTER_HPP
0025 #define XSIMD_FMA3_AVX_REGISTER_HPP
0026 #define XSIMD_FORCE_FMA3_AVX_REGISTER_HPP
0027 #endif
0028 
0029 // Include ./xsimd_fma3_avx.hpp but s/avx/avx2
0030 #define avx avx2
0031 #include "./xsimd_fma3_avx.hpp"
0032 #undef avx
0033 #undef XSIMD_FMA3_AVX_HPP
0034 
0035 // Carefully restore guards
0036 #ifdef XSIMD_FORCE_FMA3_AVX_HPP
0037 #define XSIMD_FMA3_AVX_HPP
0038 #undef XSIMD_FORCE_FMA3_AVX_HPP
0039 #endif
0040 
0041 #ifdef XSIMD_FORCE_FMA3_AVX_REGISTER_HPP
0042 #undef XSIMD_FMA3_AVX_REGISTER_HPP
0043 #undef XSIMD_FORCE_FMA3_AVX_REGISTER_HPP
0044 #endif
0045 
0046 #endif