tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
endian.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4
#
ifndef
TETL_BIT_ENDIAN_HPP
5
#
define
TETL_BIT_ENDIAN_HPP
6
7
namespace
etl
{
8
9
/// \brief Indicates the endianness of all scalar types. If all scalar types are
10
/// little-endian, `endian::native` equals `endian::little`. If all scalar types
11
/// are big-endian, `endian::native` equals `endian::big`.
12
///
13
/// https://en.cppreference.com/w/cpp/types/endian
14
///
15
/// \ingroup bit
16
enum
struct
endian
{
17
#
if
defined
(
_MSC_VER
)
and
not
defined
(
__clang__
)
18
little
= 0,
19
big
= 1,
20
native
=
little
21
#
else
22
little
=
__ORDER_LITTLE_ENDIAN__
,
23
big
=
__ORDER_BIG_ENDIAN__
,
24
native
=
__BYTE_ORDER__
25
#
endif
26
};
27
28
}
// namespace etl
29
30
#
endif
// TETL_BIT_ENDIAN_HPP
etl::endian
endian
Indicates the endianness of all scalar types. If all scalar types are little-endian,...
Definition
endian.hpp:16
etl::endian::native
@ native
etl::endian::little
@ little
etl::endian::big
@ big
etl
Definition
adjacent_find.hpp:9
include
etl
_bit
endian.hpp
Generated on Sun Sep 7 2025 19:14:48 for tetl by
1.9.8