iphone - Is there a popcount() for both Simulator and iOS device? -
the closest thing can find t popcount(t x)
in metal standard library.
is there simpler version, like:
#include <x86intrin.h> __builtin_popcount();
which compiles simulator not iphone device ...
don't #include <x86intrin.h>
:
// #include <x86intrin.h> __builtin_popcount();
Comments
Post a Comment