Lines Matching defs:byte
19 enum class byte : unsigned char {};
22 LIBC_INLINE constexpr enable_if_t<is_integral_v<IntegerType>, byte>
23 operator>>(byte b, IntegerType shift) noexcept {
24 return static_cast<byte>(static_cast<unsigned char>(b) >> shift);
27 LIBC_INLINE constexpr enable_if_t<is_integral_v<IntegerType>, byte &>
28 operator>>=(byte &b, IntegerType shift) noexcept {
32 LIBC_INLINE constexpr enable_if_t<is_integral_v<IntegerType>, byte>
33 operator<<(byte b, IntegerType shift) noexcept {
34 return static_cast<byte>(static_cast<unsigned char>(b) << shift);
37 LIBC_INLINE constexpr enable_if_t<is_integral_v<IntegerType>, byte &>
38 operator<<=(byte &b, IntegerType shift) noexcept {
41 LIBC_INLINE constexpr byte operator|(byte l, byte r) noexcept {
42 return static_cast<byte>(static_cast<unsigned char>(l) |
45 LIBC_INLINE constexpr byte &operator|=(byte &l, byte r) noexcept {
48 LIBC_INLINE constexpr byte operator&(byte l, byte r) noexcept {
49 return static_cast<byte>(static_cast<unsigned char>(l) &
52 LIBC_INLINE constexpr byte &operator&=(byte &l, byte r) noexcept {
55 LIBC_INLINE constexpr byte operator^(byte l, byte r) noexcept {
56 return static_cast<byte>(static_cast<unsigned char>(l) ^
59 LIBC_INLINE constexpr byte &operator^=(byte &l, byte r) noexcept {
62 LIBC_INLINE constexpr byte operator~(byte b) noexcept {
63 return static_cast<byte>(~static_cast<unsigned char>(b));
67 to_integer(byte b) noexcept {