diff options
author | Sven Eckelmann <sven.eckelmann@gmx.de> | 2010-09-05 01:58:22 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-09-05 00:29:43 -0700 |
commit | 8bb22a38d6083d751075829e84421b139dabb460 (patch) | |
tree | 57eb1115dafe8cec963efa662e9c9c72033f1c30 /drivers/staging/octeon/cvmx-wqe.h | |
parent | 556c83ece8e8a897d7cad23315407ecd1a195fce (diff) | |
download | op-kernel-dev-8bb22a38d6083d751075829e84421b139dabb460.zip op-kernel-dev-8bb22a38d6083d751075829e84421b139dabb460.tar.gz |
Staging: batman-adv: Calculate hamming weight using optimized kernel functions
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.
Reported-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/octeon/cvmx-wqe.h')
0 files changed, 0 insertions, 0 deletions