diff options
| author | Ilya Dryomov <[email protected]> | 2016-09-27 10:30:09 +0000 |
|---|---|---|
| committer | Ilya Dryomov <[email protected]> | 2016-10-05 21:02:04 +0000 |
| commit | 74a5293832b3c1f7cb8f86fb9af9ee747138d355 (patch) | |
| tree | 428a431d62ee601f6dd3ed5b0426714d38c7c66b /lib/debugobjects.c | |
| parent | libceph: ceph_build_auth() doesn't need ceph_auth_build_hello() (diff) | |
| download | kernel-74a5293832b3c1f7cb8f86fb9af9ee747138d355.tar.gz kernel-74a5293832b3c1f7cb8f86fb9af9ee747138d355.zip | |
crush: don't normalize input of crush_ln iteratively
Use __builtin_clz() supported by GCC and Clang to figure out
how many bits we should shift instead of shifting by a bit
in a loop until the value gets normalized. Improves performance
of this function by up to 3x in worst-case scenario and overall
straw2 performance by ~10%.
Reflects ceph.git commit 110de33ca497d94fc4737e5154d3fe781fa84a0a.
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
