diff options
author | Chris Robinson <[email protected]> | 2020-10-13 01:21:44 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-10-13 01:21:44 -0700 |
commit | 303ca3af72aa7aecc25d94690f3886085c5c6e5b (patch) | |
tree | 05c0a6626b7884a76d181c8972d04f69800c2ece /alc/backends/wasapi.cpp | |
parent | 45ff10fb4d847662ec7d1048f7e740c0ca55cf27 (diff) |
Use inline functions for popcnt and ctz instead of macros
Diffstat (limited to 'alc/backends/wasapi.cpp')
-rw-r--r-- | alc/backends/wasapi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp index d7b763c4..ba0d52d5 100644 --- a/alc/backends/wasapi.cpp +++ b/alc/backends/wasapi.cpp @@ -1641,7 +1641,7 @@ HRESULT WasapiCapture::resetProxy() if((InputType.dwChannelMask&SPEAKER_LOW_FREQUENCY)) { constexpr auto lfemask = MaskFromTopBits(SPEAKER_LOW_FREQUENCY); - const int lfeidx{POPCNT32(InputType.dwChannelMask&lfemask) - 1}; + const int lfeidx{PopCount(uint32_t{InputType.dwChannelMask&lfemask}) - 1}; chanmask &= ~(1u << lfeidx); } |