From e26567772789c28c79920624e1622a7a3306c560 Mon Sep 17 00:00:00 2001 From: iris Date: Tue, 19 May 2026 00:06:03 +0200 Subject: [PATCH] Squashed 'external/ircolib/' changes from ec06dab..7df4ec2 7df4ec2 clear bit git-subtree-dir: external/ircolib git-subtree-split: 7df4ec22463394c2763fef61b581b3d2980778ef --- types.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types.hpp b/types.hpp index 396a74c..c3e0c41 100644 --- a/types.hpp +++ b/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; }