1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

[Support][Endian] Define |= and &= for u{big,little}{16,32,64}_t.

llvm-svn: 239716
This commit is contained in:
Rui Ueyama 2015-06-15 03:00:15 +00:00
parent 27ebfb93f8
commit 04b2667fd9

View File

@ -104,6 +104,16 @@ struct packed_endian_specific_integral {
return *this;
}
packed_endian_specific_integral &operator|=(value_type newValue) {
*this = *this | newValue;
return *this;
}
packed_endian_specific_integral &operator&=(value_type newValue) {
*this = *this & newValue;
return *this;
}
private:
AlignedCharArray<PickAlignment<value_type, alignment>::value,
sizeof(value_type)> Value;