SeqAn3
The Modern C++ library for sequence analysis.
builtin_simd_intrinsics.hpp
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------------------------------
2 // Copyright (c) 2006-2019, Knut Reinert & Freie Universität Berlin
3 // Copyright (c) 2016-2019, Knut Reinert & MPI für molekulare Genetik
4 // This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
5 // shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md
6 // -----------------------------------------------------------------------------------------------------
7 
13 #pragma once
14 
15 #include <seqan3/core/platform.hpp>
16 
17 #if __has_include(<x86intrin.h>)
18 #include <x86intrin.h> // x86 intrinsics (linux)
19 #endif
20 
21 #if __has_include(<intrin.h>)
22 #include <intrin.h> // x86 intrinsics (windows)
23 #endif
24 
25 // MSVC doesn't define SSE4 macros, even if the instruction set is available (e.g. when AVX is defined)
26 #if defined(_MSC_VER) && defined(__AVX__) && !defined(__SSE4_1__) && !defined(__SSE4_2__)
27 #define __SSE4_1__ 1
28 #define __SSE4_2__ 1
29 #endif
platform.hpp
Provides platform and dependency checks.