tools lib: Add for_each_clear_bit macro
authorJiri Olsa <jolsa@kernel.org>
Mon, 10 Oct 2016 07:26:33 +0000 (09:26 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 24 Oct 2016 14:07:33 +0000 (11:07 -0300)
commit02bc11de567273da8ab25c54336ddbb71986f38f
tree2356fcbb1ad8571a14e61ca58575a752c3de6c2c
parentfe316723a8106c7527710ae7085a1dc6a9c1ab05
tools lib: Add for_each_clear_bit macro

Adding for_each_clear_bit macro plus all its the necessary backbone
functions. Taken from related kernel code. It will be used in following
patch.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-cayv2zbqi0nlmg5sjjxs1775@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/include/asm-generic/bitops.h
tools/include/asm-generic/bitops/__ffz.h [new file with mode: 0644]
tools/include/asm-generic/bitops/find.h
tools/include/linux/bitops.h
tools/lib/find_bit.c
tools/perf/MANIFEST