From 00d9fb121f1f3c6173ae5468a1390db1610fc9ad Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sat, 5 Mar 2022 00:38:59 +0200 Subject: [PATCH] utils: add rename has_flag into one_if in BITOPS --- lib/utils/mu-utils.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/mu-utils.hh b/lib/utils/mu-utils.hh index 77f81950..439db0dc 100644 --- a/lib/utils/mu-utils.hh +++ b/lib/utils/mu-utils.hh @@ -311,7 +311,7 @@ private: constexpr ET operator~(ET e) { return MU_TO_ENUM(ET, ~(MU_TO_NUM(ET, e))); } \ constexpr bool any_of(ET e) { return MU_TO_NUM(ET, e) != 0; } \ constexpr bool none_of(ET e) { return MU_TO_NUM(ET, e) == 0; } \ - constexpr bool has_flag(ET e1, ET e2) { return (e1 & e2) == e2; } \ + constexpr bool one_of(ET e1, ET e2) { return (e1 & e2) == e2; } \ constexpr ET& operator&=(ET& e1, ET e2) { return e1 = e1 & e2; } \ constexpr ET& operator|=(ET& e1, ET e2) { return e1 = e1 | e2; }