/qemu/util/ |
A D | int128.c | 43 int s = clz64(v.hi); in divrem128() 47 hi = u.hi; in divrem128() 55 if (hi > u.hi) { in divrem128() 57 tmp = u.hi; in divrem128() 62 tmp = u.hi - hi; in divrem128() 69 tmp = lo * v.hi; in divrem128() 71 hi += tmp; in divrem128() 74 || hi > u.hi /* quotient * divisor > dividend */ in divrem128() 75 || (hi == u.hi && lo > u.lo)) { in divrem128() 78 hi += qq.lo * v.hi; in divrem128() [all …]
|
/qemu/include/qemu/ |
A D | int128.h | 240 int64_t hi; member 244 int64_t hi; 260 return (Int128) { .lo = lo, .hi = hi }; in int128_make128() 276 return a.hi; in int128_gethi() 306 return int128_make128(a.lo & b.lo, a.hi & b.hi); in int128_and() 311 return int128_make128(a.lo | b.lo, a.hi | b.hi); in int128_or() 316 return int128_make128(a.lo ^ b.lo, a.hi ^ b.hi); in int128_xor() 389 return a.lo == b.lo && a.hi == b.hi; in int128_eq() 399 return a.hi > b.hi || (a.hi == b.hi && a.lo >= b.lo); in int128_ge() 404 return (uint64_t)a.hi > (uint64_t)b.hi || (a.hi == b.hi && a.lo >= b.lo); in int128_uge() [all …]
|
A D | timer.h | 979 uint32_t lo, hi, tmph; in cpu_get_host_ticks() local 984 : "=r"(hi), "=r"(lo), "=r"(tmph)); in cpu_get_host_ticks() 985 } while (unlikely(tmph != hi)); in cpu_get_host_ticks() 986 return lo | (uint64_t)hi << 32; in cpu_get_host_ticks()
|
/qemu/tests/tcg/mips/user/isa/r5900/ |
A D | test_r5900_maddu.c | 12 uint32_t hi = a >> 32; in maddu() local 22 : "=r" (rd), "=r" (lo), "=r" (hi) in maddu() 23 : "r" (rs), "r" (rt), "r" (lo), "r" (hi)); in maddu() 24 r = ((uint64_t)hi << 32) | (uint32_t)lo; in maddu() 35 uint32_t hi = a >> 32; in maddu1() local 45 : "=r" (rd), "=r" (lo), "=r" (hi) in maddu1() 46 : "r" (rs), "r" (rt), "r" (lo), "r" (hi)); in maddu1() 47 r = ((uint64_t)hi << 32) | (uint32_t)lo; in maddu1()
|
A D | test_r5900_madd.c | 12 int32_t hi = a >> 32; in madd() local 22 : "=r" (rd), "=r" (lo), "=r" (hi) in madd() 23 : "r" (rs), "r" (rt), "r" (lo), "r" (hi)); in madd() 24 r = ((int64_t)hi << 32) | (uint32_t)lo; in madd() 35 int32_t hi = a >> 32; in madd1() local 45 : "=r" (rd), "=r" (lo), "=r" (hi) in madd1() 46 : "r" (rs), "r" (rt), "r" (lo), "r" (hi)); in madd1() 47 r = ((int64_t)hi << 32) | (uint32_t)lo; in madd1()
|
A D | test_r5900_multu.c | 11 uint32_t rd, lo, hi; in multu() local 18 : "=r" (rd), "=r" (lo), "=r" (hi) in multu() 20 r = ((uint64_t)hi << 32) | (uint32_t)lo; in multu() 30 uint32_t rd, lo, hi; in multu1() local 37 : "=r" (rd), "=r" (lo), "=r" (hi) in multu1() 39 r = ((uint64_t)hi << 32) | (uint32_t)lo; in multu1()
|
A D | test_r5900_mult.c | 11 int32_t rd, lo, hi; in mult() local 18 : "=r" (rd), "=r" (lo), "=r" (hi) in mult() 20 r = ((int64_t)hi << 32) | (uint32_t)lo; in mult() 30 int32_t rd, lo, hi; in mult1() local 37 : "=r" (rd), "=r" (lo), "=r" (hi) in mult1() 39 r = ((int64_t)hi << 32) | (uint32_t)lo; in mult1()
|
A D | test_r5900_divu1.c | 13 uint32_t lo, hi; in divu1() local 19 : "=r" (lo), "=r" (hi) in divu1() 23 assert(rs % rt == hi); in divu1() 25 return (struct quotient_remainder) { .quotient = lo, .remainder = hi }; in divu1()
|
A D | test_r5900_div1.c | 13 int32_t lo, hi; in div1() local 19 : "=r" (lo), "=r" (hi) in div1() 23 assert(rs % rt == hi); in div1() 25 return (struct quotient_remainder) { .quotient = lo, .remainder = hi }; in div1()
|
A D | test_r5900_mflohi1.c | 13 int64_t lo, hi, lo1, hi1; in main() local 24 : "=r" (lo), "=r" (hi), in main() 28 r = ((int64_t)hi << 32) | (uint32_t)lo; in main()
|
/qemu/tests/tcg/tricore/c/ |
A D | crt0-tc2x.S | 57 movh.a %sp,hi:__USTACK # load %sp 59 movh %d0,hi:__ISTACK # load $isp 66 movh %d0,hi:first_trap_table #; load $btv 96 movh.a %a0,hi:_SMALL_DATA_ # %a0 addresses .sdata/.sbss 98 movh.a %a1,hi:_SMALL_DATA2_ # %a1 addresses .sdata2/.sbss2 100 movh.a %a8,hi:_SMALL_DATA3_ # %a8 addresses .sdata3/.sbss3 163 movh %d0,hi:__CSA_BEGIN #; %d0 = begin of CSA 167 movh %d2,hi:__CSA_END #; %d2 = end of CSA 213 movh.a %a13,hi:__clear_table # %a13 = &first table entry 257 movh.a %a13,hi:__copy_table # %a13 = &first table entry [all …]
|
/qemu/hw/core/ |
A D | machine-hmp-cmds.c | 260 HvBalloonDeviceInfo *hi; in hmp_info_memory_devices() local 319 hi = value->u.hv_balloon.data; in hmp_info_memory_devices() 322 hi->id ? hi->id : ""); in hmp_info_memory_devices() 323 if (hi->has_memaddr) { in hmp_info_memory_devices() 325 hi->memaddr); in hmp_info_memory_devices() 327 monitor_printf(mon, " max-size: %" PRIu64 "\n", hi->max_size); in hmp_info_memory_devices() 328 if (hi->memdev) { in hmp_info_memory_devices() 329 monitor_printf(mon, " memdev: %s\n", hi->memdev); in hmp_info_memory_devices()
|
/qemu/hw/i386/ |
A D | intel_iommu.c | 504 vtd_set_quad_raw(s, frcd_reg_addr + 8, hi); in vtd_record_frcd() 506 trace_vtd_frr_new(index, hi, lo); in vtd_record_frcd() 583 uint64_t hi, lo; in vtd_report_dmar_fault() local 593 hi |= VTD_FRCD_T; in vtd_report_dmar_fault() 603 uint64_t hi, lo; in vtd_report_ir_fault() local 648 return re->hi & VTD_ROOT_ENTRY_P; in vtd_root_entry_present() 666 re->hi = le64_to_cpu(re->hi); in vtd_get_root_entry() 688 addr = re->hi & VTD_ROOT_ENTRY_CTP; in vtd_get_context_entry_from_root() 700 ce->hi = le64_to_cpu(ce->hi); in vtd_get_context_entry_from_root() 1579 return VTD_CONTEXT_ENTRY_DID(ce->hi); in vtd_get_domain_id() [all …]
|
A D | trace-events | 7 vtd_inv_desc(const char *type, uint64_t hi, uint64_t lo) "invalidate desc type %s high 0x%"PRIx64" … 19 vtd_inv_desc_wait_write_fail(uint64_t hi, uint64_t lo) "write fail for wait desc hi 0x%"PRIx64" lo … 35 …nt16_t domain, uint64_t hi, uint64_t lo) "%s: replay valid context device %02"PRIx8":%02"PRIx8".%0… 60 vtd_ir_irte_get(int index, uint64_t lo, uint64_t hi) "index %d low 0x%"PRIx64" high 0x%"PRIx64 67 vtd_frr_new(int index, uint64_t hi, uint64_t lo) "index %d high 0x%"PRIx64" low 0x%"PRIx64 111 amdvi_ir_irte_ga_val(uint64_t hi, uint64_t lo) "hi 0x%"PRIx64" lo 0x%"PRIx64
|
/qemu/hw/dma/ |
A D | soc_dma.c | 112 int hi; in soc_dma_lookup() local 115 hi = dma->memmap_size; in soc_dma_lookup() 117 while (hi > 1) { in soc_dma_lookup() 118 hi /= 2; in soc_dma_lookup() 119 if (lo[hi].addr <= addr) in soc_dma_lookup() 120 lo += hi; in soc_dma_lookup()
|
/qemu/target/ppc/translate/ |
A D | vmx-impl.c.inc | 926 tcg_gen_shl_i64(hi, hi, n); 930 tcg_gen_shl_i64(hi, hi, n); 931 tcg_gen_shli_i64(hi, hi, 1); 936 tcg_gen_or_i64(hi, hi, lo); 1720 tcg_gen_or_i64(hi, hi, lo); 2002 tcg_gen_andi_i64(hi, hi, mask); 2026 tcg_gen_or_i64(hi, hi, t0); 2104 tcg_gen_andi_i64(hi, hi, c); 2108 tcg_gen_muli_i64(hi, hi, c); 2149 hi |= hi << (j - i); [all …]
|
/qemu/scripts/kvm/ |
A D | vmxcap | 99 lo, hi = bits 102 lo = hi = bits 105 v = (value >> lo) & ((1 << (hi - lo + 1)) - 1)
|
/qemu/tests/qtest/libqos/ |
A D | virtio-pci-modern.c | 43 uint64_t lo, hi; in get_features() local 56 hi = qpci_io_readl(dev->pdev, dev->bar, dev->common_cfg_offset + in get_features() 59 return (hi << 32) | lo; in get_features() 90 uint64_t lo, hi; in get_guest_features() local 103 hi = qpci_io_readl(dev->pdev, dev->bar, dev->common_cfg_offset + in get_guest_features() 106 return (hi << 32) | lo; in get_guest_features()
|
A D | virtio-mmio.c | 47 uint64_t hi = 0; in qvirtio_mmio_get_features() local 54 hi = qtest_readl(dev->qts, dev->addr + QVIRTIO_MMIO_HOST_FEATURES); in qvirtio_mmio_get_features() 57 return (hi << 32) | lo; in qvirtio_mmio_get_features()
|
/qemu/tcg/ |
A D | tcg-op-ldst.c | 574 TCGv_i64 lo, hi; in tcg_gen_qemu_ld_i128_int() local 580 hi = TCGV128_LOW(val); in tcg_gen_qemu_ld_i128_int() 585 hi = TCGV128_HIGH(val); in tcg_gen_qemu_ld_i128_int() 593 gen_ldst(opc, tcgv_i64_temp(lo), tcgv_i64_temp(hi), addr, oi); in tcg_gen_qemu_ld_i128_int() 597 tcg_gen_bswap64_i64(hi, hi); in tcg_gen_qemu_ld_i128_int() 692 TCGv_i64 lo, hi; in tcg_gen_qemu_st_i128_int() local 698 hi = tcg_temp_ebb_new_i64(); in tcg_gen_qemu_st_i128_int() 700 tcg_gen_bswap64_i64(hi, TCGV128_LOW(val)); in tcg_gen_qemu_st_i128_int() 705 hi = TCGV128_HIGH(val); in tcg_gen_qemu_st_i128_int() 713 gen_ldst(opc, tcgv_i64_temp(lo), tcgv_i64_temp(hi), addr, oi); in tcg_gen_qemu_st_i128_int() [all …]
|
/qemu/include/hw/ |
A D | clock.h | 322 uint64_t hi = ns >> 32; in clock_ns_to_ticks() local 327 divu128(&lo, &hi, clk->period); in clock_ns_to_ticks()
|
/qemu/linux-user/mips64/ |
A D | target_syscall.h | 14 target_ulong hi; member
|
/qemu/linux-user/mips/ |
A D | target_syscall.h | 17 abi_ulong hi; member
|
/qemu/libdecnumber/ |
A D | decNumber.c | 387 hi=lo/10; in decNumberToInt32() 394 if (hi>214748364 || (hi==214748364 && lo>7)) { /* out of range? */ in decNumberToInt32() 400 Int i=X10(hi)+lo; in decNumberToInt32() 423 hi=lo/10; in decNumberToUInt32() 470 if (hi < 0) { in decNumberFromInt128() 480 if (hi < 0) { in decNumberFromInt128() 528 if ((hi < prev) || (hi > INT64_MAX)) { in decNumberIntegralToInt64() 535 if ((hi < prev) || (hi > INT64_MAX)) { in decNumberIntegralToInt64() 538 return (decNumberIsNegative(dn)) ? -((int64_t)hi) : (int64_t)hi; in decNumberIntegralToInt64() 578 if (uadd64_overflow(hi, 1, &hi)) { in decNumberIntegralToInt128() [all …]
|
/qemu/tests/fp/ |
A D | fp-bench.c | 178 uint64_t hi = r.high; in update_random_ops() local 181 hi = xorshift64star(hi); in update_random_ops() 183 r = make_float128(hi, lo); in update_random_ops()
|