/openbmc/qemu/target/loongarch/ |
H A D | vec.h | 56 #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 D | cpu.c | 270 vector = 31 - clz32(pending); in loongarch_cpu_do_interrupt()
|
/openbmc/qemu/include/qemu/ |
H A D | host-utils.h | 166 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() 697 # define clzl clz32
|
/openbmc/qemu/target/arm/ |
H A D | cpu64.c | 86 max_vq = 32 - clz32(vq_map); in arm_cpu_sve_finalize() 144 max_vq = 32 - clz32(vq_map); in arm_cpu_sve_finalize() 181 vq = 32 - clz32(tmp); in arm_cpu_sve_finalize() 213 vq = 32 - clz32(tmp); in arm_cpu_sve_finalize() 329 vq = 32 - clz32(vq_map); in arm_cpu_sme_finalize()
|
/openbmc/qemu/include/hw/i386/ |
H A D | topology.h | 72 return count ? 32 - clz32(count) : 0; in apicid_bitwidth_for_count()
|
/openbmc/qemu/accel/tcg/ |
H A D | tcg-runtime.c | 113 return arg ? clz32(arg) : zero_val; in HELPER()
|
/openbmc/qemu/hw/i2c/ |
H A D | smbus_eeprom.c | 221 sz_log2 = 31 - clz32(size); in spd_data_generate()
|
/openbmc/qemu/target/i386/tcg/ |
H A D | int_helper.c | 403 # define clztl clz32
|
H A D | fpu_helper.c | 1546 int shift = clz32(n) + 32; in helper_fpatan() 2236 shift = clz32(int_exp) + 32; in helper_fyl2x()
|
/openbmc/qemu/block/ |
H A D | blklogwrites.c | 114 return 31 - clz32(value); in blk_log_writes_log2()
|
/openbmc/qemu/target/ppc/ |
H A D | int_helper.c | 2075 #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()
|
/openbmc/qemu/hw/intc/ |
H A D | apic.c | 68 return 31 - clz32(value); in apic_fls_bit()
|
H A D | xive.c | 37 return ibp ? clz32((uint32_t)ibp << 24) : 0xff; in ipb_to_pipr()
|
/openbmc/qemu/target/s390x/tcg/ |
H A D | vec_int_helper.c | 140 s390_vec_write_element##BITS(v1, i, clz32(a) - 32 + BITS); \
|
/openbmc/qemu/hw/nvme/ |
H A D | ns.c | 100 ds = 31 - clz32(ns->blkconf.logical_block_size); in nvme_ns_init()
|
/openbmc/qemu/target/hexagon/ |
H A D | macros.h | 626 #define fCL1_2(VAL) (clz32(~(uint16_t)(VAL) & 0xffff) - 16)
|
/openbmc/qemu/hw/mips/ |
H A D | malta.c | 226 int sz_log2 = MIN(31 - clz32(ram_size), 14); in generate_eeprom_spd()
|
/openbmc/qemu/target/m68k/ |
H A D | op_helper.c | 1051 return (n ? clz32(n) : len) + ofs; in HELPER()
|
/openbmc/qemu/hw/acpi/ |
H A D | nvdimm.c | 337 nfit_caps->highest_cap = 31 - clz32(capabilities); in nvdimm_build_structure_caps()
|
/openbmc/qemu/target/tricore/ |
H A D | op_helper.c | 1756 ret_hw0 = clz32(ret_hw0 << 16); in helper_clz_h() 1757 ret_hw1 = clz32(ret_hw1 << 16); in helper_clz_h()
|
/openbmc/qemu/target/arm/tcg/ |
H A D | mve_helper.c | 807 #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)
|
H A D | sve_helper.c | 853 #define DO_CLZ_B(N) (clz32(N) - 24) 854 #define DO_CLZ_H(N) (clz32(N) - 16) 858 DO_ZPZ(sve_clz_s, uint32_t, H1_4, clz32) 4654 return -15 - clz32(frac); in DO_ZPZ_FP() 4682 return -127 - clz32(frac); in do_float32_logb_as_int()
|
/openbmc/qemu/tcg/ |
H A D | tci.c | 611 regs[r0] = tmp32 ? clz32(tmp32) : regs[r2]; in tcg_qemu_tb_exec()
|
/openbmc/qemu/target/riscv/ |
H A D | vcrypto_helper.c | 162 RVVCALL(OPIVV1, vclz_v_w, OP_UU_W, H4, H4, clz32) in RVVCALL()
|
/openbmc/qemu/target/i386/ |
H A D | ops_sse.h | 2048 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()
|