aboutsummaryrefslogtreecommitdiffstats
path: root/alc/converter.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-10-13 01:21:44 -0700
committerChris Robinson <[email protected]>2020-10-13 01:21:44 -0700
commit303ca3af72aa7aecc25d94690f3886085c5c6e5b (patch)
tree05c0a6626b7884a76d181c8972d04f69800c2ece /alc/converter.cpp
parent45ff10fb4d847662ec7d1048f7e740c0ca55cf27 (diff)
Use inline functions for popcnt and ctz instead of macros
Diffstat (limited to 'alc/converter.cpp')
-rw-r--r--alc/converter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/converter.cpp b/alc/converter.cpp
index b07e8619..6e5b2207 100644
--- a/alc/converter.cpp
+++ b/alc/converter.cpp
@@ -340,7 +340,7 @@ void ChannelConverter::convert(const void *src, float *dst, ALuint frames) const
{
if(mDstChans == DevFmtMono)
{
- const float scale{std::sqrt(1.0f / static_cast<float>(POPCNT32(mChanMask)))};
+ const float scale{std::sqrt(1.0f / static_cast<float>(PopCount(mChanMask)))};
switch(mSrcType)
{
#define HANDLE_FMT(T) case T: Multi2Mono<T>(mChanMask, mSrcStep, scale, dst, src, frames); break