mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 13:25:45 +00:00
common: bit_util: Add BIT macro.
This commit is contained in:
parent
db53115ed2
commit
50f0ec9849
1 changed files with 2 additions and 0 deletions
|
@ -44,4 +44,6 @@ template <typename T>
|
|||
return static_cast<u32>(log2_f + static_cast<u64>((value ^ (1ULL << log2_f)) != 0ULL));
|
||||
}
|
||||
|
||||
#define BIT(n) (1U << (n))
|
||||
|
||||
} // namespace Common
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue