1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:47:37 +00:00

Kernel: Add and use bitwise operators to CPUFeature

This commit is contained in:
Hendiadyoin1 2022-03-22 19:12:42 +01:00 committed by Linus Groh
parent cd6896d343
commit 150e6a59c0
3 changed files with 32 additions and 34 deletions

View file

@ -399,7 +399,7 @@ public:
ALWAYS_INLINE bool has_feature(CPUFeature f) const
{
return (static_cast<u32>(m_features) & static_cast<u32>(f)) != 0;
return has_flag(m_features, f);
}
void check_invoke_scheduler();