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
3
#ifndef TETL_BIT_ENDIAN_HPP
4
#define TETL_BIT_ENDIAN_HPP
5
6
namespace
etl
{
7
15
enum struct
endian
{
16
#if defined(_MSC_VER) and not defined(__clang__)
17
little
= 0,
18
big
= 1,
19
native
=
little
20
#else
21
little
= __ORDER_LITTLE_ENDIAN__,
22
big
= __ORDER_BIG_ENDIAN__,
23
native
= __BYTE_ORDER__
24
#endif
25
};
26
27
}
// namespace etl
28
29
#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:15
etl::endian::native
@ native
Definition
endian.hpp:23
etl::endian::little
@ little
Definition
endian.hpp:21
etl::endian::big
@ big
Definition
endian.hpp:22
etl
Definition
adjacent_find.hpp:8
include
etl
_bit
endian.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0