10b57cec5SDimitry Andric// -*- C++ -*- 2349cc55cSDimitry Andric//===----------------------------------------------------------------------===// 30b57cec5SDimitry Andric// 40b57cec5SDimitry Andric// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 50b57cec5SDimitry Andric// See https://llvm.org/LICENSE.txt for license information. 60b57cec5SDimitry Andric// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 70b57cec5SDimitry Andric// 80b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 90b57cec5SDimitry Andric 100b57cec5SDimitry Andric#ifndef _LIBCPP_EXPERIMENTAL_CONFIG 110b57cec5SDimitry Andric#define _LIBCPP_EXPERIMENTAL_CONFIG 120b57cec5SDimitry Andric 130b57cec5SDimitry Andric#include <__config> 140b57cec5SDimitry Andric 150b57cec5SDimitry Andric#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 160b57cec5SDimitry Andric# pragma GCC system_header 170b57cec5SDimitry Andric#endif 180b57cec5SDimitry Andric 19*cb14a3feSDimitry Andric#define _LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL \ 20*cb14a3feSDimitry Andric namespace std { \ 21*cb14a3feSDimitry Andric namespace experimental { 22*cb14a3feSDimitry Andric#define _LIBCPP_END_NAMESPACE_EXPERIMENTAL \ 23*cb14a3feSDimitry Andric } \ 24*cb14a3feSDimitry Andric } 250b57cec5SDimitry Andric 260b57cec5SDimitry Andric#define _LIBCPP_BEGIN_NAMESPACE_LFTS _LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL inline namespace fundamentals_v1 { 27*cb14a3feSDimitry Andric#define _LIBCPP_END_NAMESPACE_LFTS \ 28*cb14a3feSDimitry Andric } \ 29*cb14a3feSDimitry Andric } \ 30*cb14a3feSDimitry Andric } 310b57cec5SDimitry Andric 320b57cec5SDimitry Andric#define _LIBCPP_BEGIN_NAMESPACE_LFTS_V2 _LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL inline namespace fundamentals_v2 { 33*cb14a3feSDimitry Andric#define _LIBCPP_END_NAMESPACE_LFTS_V2 \ 34*cb14a3feSDimitry Andric } \ 35*cb14a3feSDimitry Andric } \ 36*cb14a3feSDimitry Andric } 370b57cec5SDimitry Andric 380b57cec5SDimitry Andric// TODO: support more targets 390b57cec5SDimitry Andric#if defined(__AVX__) 400b57cec5SDimitry Andric# define _LIBCPP_NATIVE_SIMD_WIDTH_IN_BYTES 32 410b57cec5SDimitry Andric#else 420b57cec5SDimitry Andric# define _LIBCPP_NATIVE_SIMD_WIDTH_IN_BYTES 16 430b57cec5SDimitry Andric#endif 440b57cec5SDimitry Andric 450b57cec5SDimitry Andric#endif 46