mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
Kernel: Add and use bitwise operators to CPUFeature
This commit is contained in:
parent
cd6896d343
commit
150e6a59c0
Notes:
sideshowbarker
2024-07-17 16:53:48 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 150e6a59c0
Pull-request: https://github.com/SerenityOS/serenity/pull/13196
Reviewed-by: https://github.com/linusg ✅
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