source: Daodan/MSYS2/mingw32/include/c++/11.2.0/experimental/simd@ 1177

Last change on this file since 1177 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 2.3 KB
RevLine 
[1166]1// Components for element-wise operations on data-parallel objects -*- C++ -*-
2
3// Copyright (C) 2020-2021 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#define __cpp_lib_experimental_parallel_simd 201803
39
40#pragma GCC diagnostic push
41// Many [[gnu::vector_size(N)]] types might lead to a -Wpsabi warning which is
42// irrelevant as those functions never appear on ABI borders
43#ifndef __clang__
44#pragma GCC diagnostic ignored "-Wpsabi"
45#endif
46
47// If __OPTIMIZE__ is not defined some intrinsics are defined as macros, making
48// use of C casts internally. This requires us to disable the warning as it
49// would otherwise yield many false positives.
50#ifndef __OPTIMIZE__
51#pragma GCC diagnostic ignored "-Wold-style-cast"
52#endif
53
54#include "bits/simd_detail.h"
55#include "bits/simd.h"
56#include "bits/simd_fixed_size.h"
57#include "bits/simd_scalar.h"
58#include "bits/simd_builtin.h"
59#include "bits/simd_converter.h"
60#if _GLIBCXX_SIMD_X86INTRIN
61#include "bits/simd_x86.h"
62#elif _GLIBCXX_SIMD_HAVE_NEON
63#include "bits/simd_neon.h"
64#elif __ALTIVEC__
65#include "bits/simd_ppc.h"
66#endif
67#include "bits/simd_math.h"
68
69#pragma GCC diagnostic pop
70
71#endif // C++17
72#endif // _GLIBCXX_EXPERIMENTAL_SIMD
73// vim: ft=cpp
Note: See TracBrowser for help on using the repository browser.