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:
parent
cd6896d343
commit
150e6a59c0
3 changed files with 32 additions and 34 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue