Is there popcount () for Simulator and iOS device?
The closest I can find is T popcount(T x)
in the Metal Standard Library .
Is there a simpler version like:
#include <x86intrin.h>
__builtin_popcount();
which compiles well for the simulator, but not for the iPhone device ...
+3
source to share