zephyr/include/toolchain
Carles Cufi 680270f809 toolchain: Add a popcount macro for GCC
Hamming Weight or "popcount" consists in counting the number of bits set
to 1 in a particular word. This commit adds a macro to be able to use
the existing builtin for this purpose with the GCC compiler.

Change-Id: Iec64c19e897de2bc02e981071465bbe230ee9add
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2016-12-12 20:07:53 +00:00
..
common.h toolchain: Add BUILD_ASSERT macro for compile-time checks 2016-10-03 19:41:08 +00:00
gcc.h toolchain: Add a popcount macro for GCC 2016-12-12 20:07:53 +00:00