diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-05-25 12:32:09 -0400 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-05-31 00:44:03 +0100 |
commit | 10c9eea8f9831180c52bfbb0ddf9af6e51989a41 (patch) | |
tree | 7e73cf78effed8e6ad1a713ded34fdcdbaf935b9 /ipc/Makefile | |
parent | ada120d8941283a3e921c9f81cb8748f6924aa40 (diff) |
tile: fix bug where fls(0) was not returning 0
commit 9f1d62bed7f015d11b9164078b7fea433b474114 upstream.
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().
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'ipc/Makefile')
0 files changed, 0 insertions, 0 deletions