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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -