llvm.org GIT mirror llvm / 01e2831
[Support][Endian] Define |= and &= for u{big,little}{16,32,64}_t. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239716 91177308-0d34-0410-b5e6-96231b3b80d8 Rui Ueyama 4 years ago
1 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
103103 return *this;
104104 }
105105
106 packed_endian_specific_integral &operator|=(value_type newValue) {
107 *this = *this | newValue;
108 return *this;
109 }
110
111 packed_endian_specific_integral &operator&=(value_type newValue) {
112 *this = *this & newValue;
113 return *this;
114 }
115
106116 private:
107117 AlignedCharArray::value,
108118 sizeof(value_type)> Value;