Path: blob/main/contrib/llvm-project/libcxx/include/__bit/endian.h
35260 views
//===----------------------------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef _LIBCPP___BIT_ENDIAN_H9#define _LIBCPP___BIT_ENDIAN_H1011#include <__config>1213#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)14# pragma GCC system_header15#endif1617#if _LIBCPP_STD_VER >= 201819_LIBCPP_BEGIN_NAMESPACE_STD2021enum class endian {22little = 0xDEAD,23big = 0xFACE,24# if defined(_LIBCPP_LITTLE_ENDIAN)25native = little26# elif defined(_LIBCPP_BIG_ENDIAN)27native = big28# else29native = 0xCAFE30# endif31};3233_LIBCPP_END_NAMESPACE_STD3435#endif // _LIBCPP_STD_VER >= 203637#endif // _LIBCPP___BIT_ENDIAN_H383940