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:
parent
27ebfb93f8
commit
04b2667fd9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user