Squashed 'external/ircolib/' changes from ec06dab..7df4ec2
7df4ec2 clear bit git-subtree-dir: external/ircolib git-subtree-split: 7df4ec22463394c2763fef61b581b3d2980778ef
This commit is contained in:
@@ -30,6 +30,11 @@ template <typename T>
|
|||||||
inline void set_bit(T &val, const std::size_t &bit) {
|
inline void set_bit(T &val, const std::size_t &bit) {
|
||||||
val |= 1 << bit;
|
val |= 1 << bit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
inline void clear_bit(T &val, const std::size_t &bit) {
|
||||||
|
val &= ~(1 << bit);
|
||||||
|
}
|
||||||
} // namespace ircolib
|
} // namespace ircolib
|
||||||
|
|
||||||
constexpr ircolib::u32 operator""_kib(const unsigned long long v) { return v * 1024; }
|
constexpr ircolib::u32 operator""_kib(const unsigned long long v) { return v * 1024; }
|
||||||
|
|||||||
Reference in New Issue
Block a user