1// -*- C++ -*- 2//===----------------------------------------------------------------------===// 3// 4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 5// See https://llvm.org/LICENSE.txt for license information. 6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7// 8//===----------------------------------------------------------------------===// 9 10#ifndef _LIBCPP_EXPERIMENTAL_CONFIG 11#define _LIBCPP_EXPERIMENTAL_CONFIG 12 13#include <__config> 14 15#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 16# pragma GCC system_header 17#endif 18 19#define _LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL namespace std { namespace experimental { 20#define _LIBCPP_END_NAMESPACE_EXPERIMENTAL } } 21 22#define _LIBCPP_BEGIN_NAMESPACE_LFTS _LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL inline namespace fundamentals_v1 { 23#define _LIBCPP_END_NAMESPACE_LFTS } } } 24 25#define _LIBCPP_BEGIN_NAMESPACE_LFTS_V2 _LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL inline namespace fundamentals_v2 { 26#define _LIBCPP_END_NAMESPACE_LFTS_V2 } } } 27 28// TODO: support more targets 29#if defined(__AVX__) 30#define _LIBCPP_NATIVE_SIMD_WIDTH_IN_BYTES 32 31#else 32#define _LIBCPP_NATIVE_SIMD_WIDTH_IN_BYTES 16 33#endif 34 35#endif 36