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> |
||
|---|---|---|
| .. | ||
| common.h | ||
| gcc.h | ||