From da59ad51057ce7343e3db4632e8679e1e537779d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 22 Jan 2021 04:58:42 -0800 Subject: Make PopCount and CountTrailingZeros more standard-like --- alc/converter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'alc/converter.cpp') diff --git a/alc/converter.cpp b/alc/converter.cpp index 5016b373..f7d4fc46 100644 --- a/alc/converter.cpp +++ b/alc/converter.cpp @@ -9,6 +9,7 @@ #include #include +#include "albit.h" #include "albyte.h" #include "alnumeric.h" #include "core/fpu_ctrl.h" @@ -338,7 +339,7 @@ void ChannelConverter::convert(const void *src, float *dst, uint frames) const { if(mDstChans == DevFmtMono) { - const float scale{std::sqrt(1.0f / static_cast(PopCount(mChanMask)))}; + const float scale{std::sqrt(1.0f / static_cast(al::popcount(mChanMask)))}; switch(mSrcType) { #define HANDLE_FMT(T) case T: Multi2Mono(mChanMask, mSrcStep, scale, dst, src, frames); break -- cgit v1.2.3