3#ifndef TETL_CSTDDEF_BYTE_HPP
4#define TETL_CSTDDEF_BYTE_HPP
25template <etl::
integral Int>
28 return static_cast<Int
>(b);
32template <etl::
integral Int>
35 return etl::byte(
static_cast<unsigned int>(b) << shift);
39template <etl::
integral Int>
42 return etl::byte(
static_cast<unsigned int>(b) >> shift);
46template <etl::
integral Int>
50 return b = b << shift;
54template <etl::
integral Int>
57 return b = b >> shift;
63 return etl::byte(
static_cast<unsigned int>(lhs) |
static_cast<unsigned int>(rhs));
69 return etl::byte(
static_cast<unsigned int>(lhs) &
static_cast<unsigned int>(rhs));
75 return etl::byte(
static_cast<unsigned int>(lhs) ^
static_cast<unsigned int>(rhs));
81 return etl::byte(~
static_cast<unsigned int>(b));
87 return lhs = lhs | rhs;
93 return lhs = lhs & rhs;
99 return lhs = lhs ^ rhs;
#define TETL_MAY_ALIAS
Definition attributes.hpp:31
#define TETL_ALWAYS_INLINE
Definition attributes.hpp:11
Definition adjacent_find.hpp:8
constexpr auto to_integer(etl::byte b) noexcept -> Int
Equivalent to: return Int(b);
Definition byte.hpp:26
constexpr auto operator&=(T &x, T y) noexcept -> T const &
Definition is_bitmask_type.hpp:56
TETL_ALWAYS_INLINE constexpr auto operator<<(etl::byte b, Int shift) noexcept -> etl::byte
Equivalent to: return etl::byte(static_cast<unsigned int>(b) << shift);
Definition byte.hpp:33
TETL_ALWAYS_INLINE constexpr auto operator>>(etl::byte b, Int shift) noexcept -> etl::byte
Equivalent to: return etl::byte(static_cast<unsigned int>(b) >> shift);
Definition byte.hpp:40
TETL_ALWAYS_INLINE constexpr auto operator>>=(etl::byte &b, Int shift) noexcept -> etl::byte &
Equivalent to: return b = b >> shift;
Definition byte.hpp:55
constexpr auto operator~(T x) -> T
Definition is_bitmask_type.hpp:43
constexpr auto operator|(T x, T y) -> T
Definition is_bitmask_type.hpp:29
constexpr auto operator^(T x, T y) -> T
Definition is_bitmask_type.hpp:36
constexpr auto operator&(T x, T y) -> T
Definition is_bitmask_type.hpp:22
constexpr auto operator^=(T &x, T y) noexcept -> T const &
Definition is_bitmask_type.hpp:62
enum TETL_MAY_ALIAS byte
etl::byte is a distinct type that implements the concept of byte as specified in the C++ language def...
Definition byte.hpp:21
TETL_ALWAYS_INLINE constexpr auto operator<<=(etl::byte &b, Int shift) noexcept -> etl::byte &
Equivalent to: return b = b << shift;
Definition byte.hpp:47
constexpr auto operator|=(T &x, T y) noexcept -> T const &
Definition is_bitmask_type.hpp:50