Home
last modified time | relevance | path

Searched refs:clz32 (Results 1 – 25 of 37) sorted by relevance

12

/qemu/target/loongarch/
H A Dvec.h56 #define DO_CLO_B(N) (clz32(~N & 0xff) - 24)
57 #define DO_CLO_H(N) (clz32(~N & 0xffff) - 16)
58 #define DO_CLO_W(N) (clz32(~N))
60 #define DO_CLZ_B(N) (clz32(N) - 24)
61 #define DO_CLZ_H(N) (clz32(N) - 16)
62 #define DO_CLZ_W(N) (clz32(N))
H A Dcpu.c270 vector = 31 - clz32(pending); in loongarch_cpu_do_interrupt()
/qemu/include/qemu/
H A Dhost-utils.h166 static inline int clz32(uint32_t val) in clz32() function
179 return clz32(~val); in clo32()
287 return clz32(val ^ ((int32_t)val >> 1)) - 1; in clrsb32()
688 # define clzl clz32
/qemu/target/arm/
H A Dcpu64.c85 max_vq = 32 - clz32(vq_map); in arm_cpu_sve_finalize()
143 max_vq = 32 - clz32(vq_map); in arm_cpu_sve_finalize()
180 vq = 32 - clz32(tmp); in arm_cpu_sve_finalize()
212 vq = 32 - clz32(tmp); in arm_cpu_sve_finalize()
328 vq = 32 - clz32(vq_map); in arm_cpu_sme_finalize()
/qemu/accel/tcg/
H A Dtcg-runtime.c113 return arg ? clz32(arg) : zero_val; in HELPER()
/qemu/include/hw/i386/
H A Dtopology.h86 return count ? 32 - clz32(count) : 0; in apicid_bitwidth_for_count()
/qemu/hw/i2c/
H A Dsmbus_eeprom.c224 sz_log2 = 31 - clz32(size); in spd_data_generate()
/qemu/target/i386/tcg/
H A Dint_helper.c403 # define clztl clz32
H A Dfpu_helper.c1506 int shift = clz32(n) + 32; in helper_fpatan()
2196 shift = clz32(int_exp) + 32; in helper_fyl2x()
/qemu/block/
H A Dblklogwrites.c114 return 31 - clz32(value); in blk_log_writes_log2()
/qemu/target/ppc/
H A Dint_helper.c2075 #define clzb(v) ((v) ? clz32((uint32_t)(v) << 24) : 8)
2076 #define clzh(v) ((v) ? clz32((uint32_t)(v) << 16) : 16)
3067 return clz32(~val); in helper_cntlsw32()
3069 return clz32(val); in helper_cntlsw32()
3075 return clz32(val); in helper_cntlzw32()
/qemu/target/s390x/tcg/
H A Dvec_int_helper.c140 s390_vec_write_element##BITS(v1, i, clz32(a) - 32 + BITS); \
/qemu/hw/intc/
H A Dapic.c68 return 31 - clz32(value); in apic_fls_bit()
H A Dxive.c38 return ibp ? clz32((uint32_t)ibp << 24) : 0xff; in ipb_to_pipr()
/qemu/hw/nvme/
H A Dns.c94 ds = 31 - clz32(ns->blkconf.logical_block_size); in nvme_ns_init()
/qemu/hw/mips/
H A Dmalta.c226 int sz_log2 = MIN(31 - clz32(ram_size), 14); in generate_eeprom_spd()
/qemu/target/hexagon/
H A Dmacros.h626 #define fCL1_2(VAL) (clz32(~(uint16_t)(VAL) & 0xffff) - 16)
/qemu/target/m68k/
H A Dop_helper.c1051 return (n ? clz32(n) : len) + ofs; in HELPER()
/qemu/hw/acpi/
H A Dnvdimm.c337 nfit_caps->highest_cap = 31 - clz32(capabilities); in nvdimm_build_structure_caps()
/qemu/target/arm/tcg/
H A Dtranslate-a64.c4419 len = 31 - clz32((immn << 6) | (~imms & 0x3f)); in logic_imm_decode_wmask()
8907 int size = 32 - clz32(immh) - 1; in handle_scalar_simd_shli()
8942 int size = 32 - clz32(immh) - 1; in handle_vec_simd_sqshrn()
9026 int size = 32 - clz32(immh) - 1; in handle_simd_qshl()
10217 int size = 32 - clz32(immh) - 1; in handle_vec_simd_shri()
10278 int size = 32 - clz32(immh) - 1; in handle_vec_simd_shli()
10305 int size = 32 - clz32(immh) - 1; in handle_vec_simd_wshli()
10343 int size = 32 - clz32(immh) - 1; in handle_vec_simd_shrn()
H A Dmve_helper.c807 #define DO_CLZ_B(N) (clz32(N) - 24)
808 #define DO_CLZ_H(N) (clz32(N) - 16)
812 DO_1OP(vclzw, 4, uint32_t, clz32)
/qemu/target/tricore/
H A Dop_helper.c1756 ret_hw0 = clz32(ret_hw0 << 16); in helper_clz_h()
1757 ret_hw1 = clz32(ret_hw1 << 16); in helper_clz_h()
/qemu/target/riscv/
H A Dvcrypto_helper.c162 RVVCALL(OPIVV1, vclz_v_w, OP_UU_W, H4, H4, clz32) in RVVCALL()
/qemu/tcg/
H A Dtci.c611 regs[r0] = tmp32 ? clz32(tmp32) : regs[r2]; in tcg_qemu_tb_exec()
/qemu/target/i386/
H A Dops_sse.h2048 env->regs[R_ECX] = (ctrl & (1 << 6)) ? 31 - clz32(res) : ctz32(res); in glue()
2086 env->regs[R_ECX] = (ctrl & (1 << 6)) ? 31 - clz32(res) : ctz32(res); in glue()

12