[XTENSA] fix bit operations in bitops.h
authorChris Zankel <chris@zankel.net>
Fri, 1 Jun 2007 00:41:14 +0000 (17:41 -0700)
committerChris Zankel <chris@zankel.net>
Fri, 1 Jun 2007 00:41:14 +0000 (17:41 -0700)
commitef6051a90e2ad1af636e99d1d4603fdcf2adfcbe
treeac64477663d0163161f3646cda4e5dd0c1e21893
parent3f0a6766e0cc5a577805732e5adb50a585c58175
[XTENSA] fix bit operations in bitops.h

A macro used internally in the bitops.h file to identify the number of
leading zeros (__cntlz) was implemented incorrectly for Xtensa processors
that don't provide the 'nsa/nsau' instructions. As a result, the dependent
functions and macros (ffs, ffz, fls) were broken.

Signed-off-by: Chris Zankel <chris@zankel.net>
include/asm-xtensa/bitops.h