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 /common/alcomplex.cpp | |
parent | 5ff5fd8eccbdc5888b350059cb1f341a33ddf05f (diff) |
Make PopCount and CountTrailingZeros more standard-like
Diffstat (limited to 'common/alcomplex.cpp')
-rw-r--r-- | common/alcomplex.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 <cstddef> #include <utility> +#include "albit.h" #include "alnumeric.h" #include "math_defs.h" @@ -18,7 +19,7 @@ void complex_fft(const al::span<std::complex<double>> 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<size_t>(CountTrailingZeros(fftsize))}; + const size_t log2_size{static_cast<size_t>(al::countr_zero(fftsize))}; /* Bit-reversal permutation applied to a sequence of fftsize items. */ for(size_t idx{1u};idx < fftsize-1;++idx) |