1// Components for element-wise operations on data-parallel objects -*- C++ -*-
3// Copyright (C) 2020-2022 Free Software Foundation, Inc.
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)
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.
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.
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/>.
25/** @file experimental/simd
26 * This is a TS C++ Library header.
30// N4773 ยง9 data-parallel types library
33#ifndef _GLIBCXX_EXPERIMENTAL_SIMD
34#define _GLIBCXX_EXPERIMENTAL_SIMD
36#if __cplusplus >= 201703L
38/** @defgroup par-ts Parallelism TS
39 * @ingroup experimental
41 * Components defined by the _C++ Extensions for Parallelism_
42 * Technical Specification.
44 * - ISO/IEC TS 19570:2015 C++ Extensions for Parallelism
45 * - ISO/IEC TS 19570:2018 C++ Extensions for Parallelism, Version 2
48/** @defgroup ts_simd Data parallel extensions
51 * Data-parallel types library.
55#define __cpp_lib_experimental_parallel_simd 201803
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
61#pragma GCC diagnostic ignored "-Wpsabi"
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.
68#pragma GCC diagnostic ignored "-Wold-style-cast"
71#include "bits/simd_detail.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"
82#include "bits/simd_ppc.h"
84#include "bits/simd_math.h"
86#pragma GCC diagnostic pop
89#endif // _GLIBCXX_EXPERIMENTAL_SIMD