Skip to content
Commit 1f8c53df authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

tests: kernel/common: avoid using compiler builtin popcount



Not all arch has native support for __builtin_popcount() on
hardware and GCC falls back in using software only implementation.
However, with GCC 11, this is no longer included automatically
and requires linking explicitly with libgcc.a. This is not
trivial as it requires changes some linker magic and a sizable
change to most linker scripts. So opt for an easy solution
by implementing our own popcount in the test.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 7bb7454a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment