diff --git a/external/ircolib/types.hpp b/external/ircolib/types.hpp index 396a74c..c3e0c41 100644 --- a/external/ircolib/types.hpp +++ b/external/ircolib/types.hpp @@ -30,6 +30,11 @@ template inline void set_bit(T &val, const std::size_t &bit) { val |= 1 << bit; } + +template +inline void clear_bit(T &val, const std::size_t &bit) { + val &= ~(1 << bit); +} } // namespace ircolib constexpr ircolib::u32 operator""_kib(const unsigned long long v) { return v * 1024; }