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 --- common/alcomplex.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/alcomplex.cpp') diff --git a/common/alcomplex.cpp b/common/alcomplex.cpp index 8a823b01..de10ede2 100644 --- a/common/alcomplex.cpp +++ b/common/alcomplex.cpp @@ -8,6 +8,7 @@ #include #include +#include "albit.h" #include "alnumeric.h" #include "math_defs.h" @@ -18,7 +19,7 @@ void complex_fft(const al::span> buffer, const double sign) /* Get the number of bits used for indexing. Simplifies bit-reversal and * the main loop count. */ - const size_t log2_size{static_cast(CountTrailingZeros(fftsize))}; + const size_t log2_size{static_cast(al::countr_zero(fftsize))}; /* Bit-reversal permutation applied to a sequence of fftsize items. */ for(size_t idx{1u};idx < fftsize-1;++idx) -- cgit v1.2.3