Home
last modified time | relevance | path

Searched refs:leading_zero_bits (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/tools/testing/selftests/powerpc/primitives/
Dword-at-a-time.h31 long leading_zero_bits; in find_zero() local
33 asm (PPC_CNTLZL "%0,%1" : "=r" (leading_zero_bits) : "r" (mask)); in find_zero()
34 return leading_zero_bits >> 3; in find_zero()
79 unsigned long leading_zero_bits; in create_zero_mask() local
85 : "=r" (leading_zero_bits), "=&r" (trailing_zero_bit_mask) in create_zero_mask()
88 return leading_zero_bits; in create_zero_mask()
/Linux-v4.19/arch/powerpc/include/asm/
Dword-at-a-time.h31 long leading_zero_bits; in find_zero() local
33 asm (PPC_CNTLZL "%0,%1" : "=r" (leading_zero_bits) : "r" (mask)); in find_zero()
34 return leading_zero_bits >> 3; in find_zero()
79 unsigned long leading_zero_bits; in create_zero_mask() local
85 : "=r" (leading_zero_bits), "=&r" (trailing_zero_bit_mask) in create_zero_mask()
88 return leading_zero_bits; in create_zero_mask()
/Linux-v4.19/drivers/media/platform/coda/
Dcoda-h264.c185 int leading_zero_bits = 0; in rbsp_read_uev() local
190 leading_zero_bits++; in rbsp_read_uev()
194 if (leading_zero_bits > 0) { in rbsp_read_uev()
195 ret = rbsp_read_bits(rbsp, leading_zero_bits, &tmp); in rbsp_read_uev()
201 *val = (1 << leading_zero_bits) - 1 + tmp; in rbsp_read_uev()
211 int leading_zero_bits = fls(tmp) - 1; in rbsp_write_uev() local
213 for (i = 0; i < leading_zero_bits; i++) { in rbsp_write_uev()
219 return rbsp_write_bits(rbsp, leading_zero_bits + 1, tmp); in rbsp_write_uev()