diff options
author | Chris Robinson <[email protected]> | 2021-01-22 04:58:42 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-01-22 04:58:42 -0800 |
commit | da59ad51057ce7343e3db4632e8679e1e537779d (patch) | |
tree | 6b4c1f5bd5d6b4bd4b83b9bc290e63ca837f8bc0 /alc/converter.cpp | |
parent | 5ff5fd8eccbdc5888b350059cb1f341a33ddf05f (diff) |
Make PopCount and CountTrailingZeros more standard-like
Diffstat (limited to 'alc/converter.cpp')
-rw-r--r-- | alc/converter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 <iterator> #include <limits.h> +#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<float>(PopCount(mChanMask)))}; + const float scale{std::sqrt(1.0f / static_cast<float>(al::popcount(mChanMask)))}; switch(mSrcType) { #define HANDLE_FMT(T) case T: Multi2Mono<T>(mChanMask, mSrcStep, scale, dst, src, frames); break |