diff options
author | 2015-02-12 15:02:10 -0800 | |
---|---|---|
committer | 2015-02-12 18:54:14 -0800 | |
commit | f6a1f5db8d7a7a94ff07251996959d27daba4ee7 (patch) | |
tree | 60e8d219664966cab66732850ac0e40f9aa5dc5e /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | lib/bitmap.c: simplify bitmap_pos_to_ord (diff) | |
download | wireguard-linux-f6a1f5db8d7a7a94ff07251996959d27daba4ee7.tar.xz wireguard-linux-f6a1f5db8d7a7a94ff07251996959d27daba4ee7.zip |
lib/bitmap.c: simplify bitmap_ord_to_pos
Make the return value and the ord and nbits parameters of
bitmap_ord_to_pos unsigned.
Also, simplify the implementation and as a side effect make the result
fully defined, returning nbits for ord >= weight, in analogy with what
find_{first,next}_bit does. This is a better sentinel than the former
("unofficial") 0. No current users are affected by this change.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions