6 extern inline int cris_lz(int x
)
9 asm ("lz\t%1, %0\n" : "=r" (r
) : "r" (x
));
28 /* try all positions with a single bit. */
29 for (i
= 1; i
< 32; i
++) {
30 if (cris_lz(1 << (i
-1)) != (32 - i
))
34 /* try all positions with all bits. */
35 for (i
= 1; i
< 32; i
++) {
36 /* split up this computation to clarify it. */
38 val
= (unsigned int)-1 >> (32 - i
);
39 if (cris_lz(val
) != (32 - i
))