We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00a352f commit 6b92b7aCopy full SHA for 6b92b7a
src/util/PackedBigEndian.hxx
@@ -111,6 +111,19 @@ public:
111
x = ByteSwap32(x);
112
return x;
113
}
114
+
115
+ constexpr auto operator|(PackedBE32 other) noexcept {
116
+ PackedBE32 result{};
117
+ result.a = a|other.a;
118
+ result.b = b|other.b;
119
+ result.c = c|other.c;
120
+ result.d = d|other.d;
121
+ return result;
122
+ }
123
124
+ constexpr auto &operator|=(PackedBE32 x) noexcept {
125
+ return *this = *this | x;
126
127
};
128
129
static_assert(sizeof(PackedBE32) == sizeof(uint32_t), "Wrong size");
0 commit comments