Replace utils::cnttz{32,64} with std::countr_{zero,one}

Make #include <bit> mandatory.
This commit is contained in:
Nekotekina 2020-04-13 15:31:41 +03:00
parent adfc9d93c3
commit d0c199d455
10 changed files with 15 additions and 37 deletions

View file

@ -17,9 +17,12 @@
#include <limits>
#include <array>
#if __has_include(<bit>)
#include <bit>
#ifdef _MSC_VER
#ifndef __cpp_lib_bitops
#define __cpp_lib_bitops
#endif
#endif
#include <bit>
#ifndef __has_builtin
#define __has_builtin(x) 0