]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/include/experimental/simd
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / include / experimental / simd
1 // Components for element-wise operations on data-parallel objects -*- C++ -*-
2
3 // Copyright (C) 2020-2022 Free Software Foundation, Inc.
4 //
5 // This file is part of the GNU ISO C++ Library. This library is free
6 // software; you can redistribute it and/or modify it under the
7 // terms of the GNU General Public License as published by the
8 // Free Software Foundation; either version 3, or (at your option)
9 // any later version.
10
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15
16 // Under Section 7 of GPL version 3, you are granted additional
17 // permissions described in the GCC Runtime Library Exception, version
18 // 3.1, as published by the Free Software Foundation.
19
20 // You should have received a copy of the GNU General Public License and
21 // a copy of the GCC Runtime Library Exception along with this program;
22 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
23 // <http://www.gnu.org/licenses/>.
24
25 /** @file experimental/simd
26 * This is a TS C++ Library header.
27 */
28
29 //
30 // N4773 ยง9 data-parallel types library
31 //
32
33 #ifndef _GLIBCXX_EXPERIMENTAL_SIMD
34 #define _GLIBCXX_EXPERIMENTAL_SIMD
35
36 #if __cplusplus >= 201703L
37
38 /** @defgroup par-ts Parallelism TS
39 * @ingroup experimental
40 *
41 * Components defined by the _C++ Extensions for Parallelism_
42 * Technical Specification.
43 *
44 * - ISO/IEC TS 19570:2015 C++ Extensions for Parallelism
45 * - ISO/IEC TS 19570:2018 C++ Extensions for Parallelism, Version 2
46 */
47
48 /** @defgroup ts_simd Data parallel extensions
49 * @ingroup par-ts
50 *
51 * Data-parallel types library.
52 * @since C++17
53 */
54 /// @ingroup ts_simd
55 #define __cpp_lib_experimental_parallel_simd 201803
56
57 #pragma GCC diagnostic push
58 // Many [[gnu::vector_size(N)]] types might lead to a -Wpsabi warning which is
59 // irrelevant as those functions never appear on ABI borders
60 #ifndef __clang__
61 #pragma GCC diagnostic ignored "-Wpsabi"
62 #endif
63
64 // If __OPTIMIZE__ is not defined some intrinsics are defined as macros, making
65 // use of C casts internally. This requires us to disable the warning as it
66 // would otherwise yield many false positives.
67 #ifndef __OPTIMIZE__
68 #pragma GCC diagnostic ignored "-Wold-style-cast"
69 #endif
70
71 #include "bits/simd_detail.h"
72 #include "bits/simd.h"
73 #include "bits/simd_fixed_size.h"
74 #include "bits/simd_scalar.h"
75 #include "bits/simd_builtin.h"
76 #include "bits/simd_converter.h"
77 #if _GLIBCXX_SIMD_X86INTRIN
78 #include "bits/simd_x86.h"
79 #elif _GLIBCXX_SIMD_HAVE_NEON
80 #include "bits/simd_neon.h"
81 #elif __ALTIVEC__
82 #include "bits/simd_ppc.h"
83 #endif
84 #include "bits/simd_math.h"
85
86 #pragma GCC diagnostic pop
87
88 #endif // C++17
89 #endif // _GLIBCXX_EXPERIMENTAL_SIMD
90 // vim: ft=cpp