linux/arch/tile
Chris Metcalf c90791c763 tile: fix bug where fls(0) was not returning 0
commit 9f1d62bed7 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-06-01 15:18:27 +08:00
..
configs arch/tile/configs: convert to minimal configs via "make savedefconfig" 2012-03-14 14:33:16 -04:00
include tile: fix bug where fls(0) was not returning 0 2012-06-01 15:18:27 +08:00
kernel arch/tile: apply commit 74fca9da0 to the compat signal handling as well 2012-05-16 16:01:45 -04:00
kvm virtio: expose for non-virtualization users too 2011-07-23 16:20:30 +09:30
lib arch/tile: fix finv_buffer_remote() for tilegx 2012-04-02 12:13:53 -04:00
mm arch/tile: remove bogus performance optimization 2012-04-02 12:13:59 -04:00
Kbuild
Kconfig tilegx: enable SYSCALL_WRAPPERS support 2012-05-18 13:33:24 -04:00
Kconfig.debug lib: consolidate DEBUG_STACK_USAGE option 2011-05-25 08:39:54 -07:00
Makefile arch/tile: stop mentioning the "kvm" subdirectory 2012-04-02 12:13:46 -04:00