Sven Eckelmann wrote:
The Kernighan algorithm is not able to calculate the number of set bits in parallel and the compiler cannot replace it with optimized instructions.
The kernel provides specialised functions for each cpu which can either use a software implementation or hardware instruction depending on the target cpu.
Signed-off-by: Sven Eckelmann sven.eckelmann@gmx.de
Maybe someone could do me the favor and add before the Signed-off-by: line one that mentions that David S. Miller is the actual reporter. This would look something like this:
Reported-by: David S. Miller davem@davemloft.net Signed-off-by: Sven Eckelmann sven.eckelmann@gmx.de
thanks, Sven