aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorChris Metcalf <[email protected]>2012-05-25 16:32:09 +0000
committerChris Metcalf <[email protected]>2012-05-25 19:00:43 +0000
commit9f1d62bed7f015d11b9164078b7fea433b474114 (patch)
tree951254ba2d3ed4fef376351c4ed68b06be3b928d /tools/perf/util/trace-event-scripting.c
parentarch/tile: mark TILEGX as not EXPERIMENTAL (diff)
downloadkernel-9f1d62bed7f015d11b9164078b7fea433b474114.tar.gz
kernel-9f1d62bed7f015d11b9164078b7fea433b474114.zip
tile: fix bug where fls(0) was not returning 0
This is because __builtin_clz(0) returns 64 for the "undefined" case of 0, since the builtin just does a right-shift 32 and "clz" instruction. So, use the alpha approach of casting to u32 and using __builtin_clzll(). Cc: [email protected] Signed-off-by: Chris Metcalf <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions