diff options
| author | Dan Engelbrecht <[email protected]> | 2022-04-29 08:52:01 +0200 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2022-04-29 08:52:01 +0200 |
| commit | f9f58ce2f568d8e3d39acad746242bbe340f68cc (patch) | |
| tree | 10743a9d912546e3ce9df89308bf6aefca63cfe2 /zencore/iobuffer.cpp | |
| parent | naming cleanup (diff) | |
| download | zen-f9f58ce2f568d8e3d39acad746242bbe340f68cc.tar.xz zen-f9f58ce2f568d8e3d39acad746242bbe340f68cc.zip | |
use IsPow2 for mapping lock count
Diffstat (limited to 'zencore/iobuffer.cpp')
| -rw-r--r-- | zencore/iobuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/iobuffer.cpp b/zencore/iobuffer.cpp index ccf92da62..46b9ab336 100644 --- a/zencore/iobuffer.cpp +++ b/zencore/iobuffer.cpp @@ -227,7 +227,7 @@ IoBufferExtendedCore::~IoBufferExtendedCore() } static constexpr size_t MappingLockCount = 64; -static_assert((MappingLockCount & (MappingLockCount - 1)) == 0, "MappingLockCount must be power of two"); +static_assert(IsPow2(MappingLockCount), "MappingLockCount must be power of two"); static RwLock g_MappingLocks[MappingLockCount]; |