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
6namespace etl {
7
15enum struct endian {
16#if defined(_MSC_VER) and not defined(__clang__)
17 little = 0,
18 big = 1,
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
endian
Indicates the endianness of all scalar types. If all scalar types are little-endian,...
Definition endian.hpp:15
@ native
Definition endian.hpp:23
@ little
Definition endian.hpp:21
@ big
Definition endian.hpp:22
Definition adjacent_find.hpp:8