diff options
author | 2021-09-28 12:44:34 +0100 | |
---|---|---|
committer | 2021-10-08 20:02:42 +0800 | |
commit | c3878a786be09d3f7df17936c922be430cdd4e8e (patch) | |
tree | 1d9f0488df16d65aff890eede6791fe1151db8b0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | crypto: qat - remove duplicated logic across GEN2 drivers (diff) | |
download | wireguard-linux-c3878a786be09d3f7df17936c922be430cdd4e8e.tar.xz wireguard-linux-c3878a786be09d3f7df17936c922be430cdd4e8e.zip |
crypto: qat - use hweight for bit counting
Replace homegrown bit counting logic in adf_gen2_get_num_accels() and
adf_gen2_get_num_aes() with the functions hweight16() and hweight32(),
respectively.
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Marco Chiappero <marco.chiappero@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions