Home
last modified time | relevance | path

Searched refs:lz (Results 1 – 6 of 6) sorted by relevance

/arch/powerpc/kernel/
Dvecemu.c93 int exp, mant, lz, frac; in elog2() local
107 asm("cntlzw %0,%1" : "=r" (lz) : "r" (mant)); in elog2()
108 mant <<= lz - 8; in elog2()
109 exp = (-118 - lz) << 23; in elog2()
141 asm("cntlzw %0,%1" : "=r" (lz) : "r" (exp)); in elog2()
142 lz = 8 - lz; in elog2()
143 if (lz > 0) in elog2()
144 exp >>= lz; in elog2()
145 else if (lz < 0) in elog2()
146 exp <<= -lz; in elog2()
[all …]
/arch/powerpc/include/asm/
Dbitops.h244 int lz; in __ilog2() local
246 asm (PPC_CNTLZL "%0,%1" : "=r" (lz) : "r" (x)); in __ilog2()
247 return BITS_PER_LONG - 1 - lz; in __ilog2()
310 int lz; in fls() local
312 asm ("cntlzw %0,%1" : "=r" (lz) : "r" (x)); in fls()
313 return 32 - lz; in fls()
329 int lz; in fls64() local
331 asm ("cntlzd %0,%1" : "=r" (lz) : "r" (x)); in fls64()
332 return 64 - lz; in fls64()
/arch/xtensa/include/asm/
Dbitops.h40 int lz; in __cntlz() local
41 asm ("nsau %0, %1" : "=r" (lz) : "r" (x)); in __cntlz()
42 return lz; in __cntlz()
Dpage.h118 int lz; in get_order() local
119 asm ("nsau %0, %1" : "=r" (lz) : "r" ((size - 1) >> PAGE_SHIFT)); in get_order()
120 return 32 - lz; in get_order()
/arch/avr32/include/asm/
Dpage.h51 unsigned lz; in get_order() local
54 asm("clz %0, %1" : "=r"(lz) : "r"(size)); in get_order()
55 return 32 - lz; in get_order()
/arch/powerpc/mm/
Dfsl_booke_mmu.c107 unsigned int tsize, lz; in settlbcam() local
109 asm ("cntlzw %0,%1" : "=r" (lz) : "r" (size)); in settlbcam()
110 tsize = (21 - lz) / 2; in settlbcam()