/qemu/target/arm/tcg/ |
H A D | arith_helper.c | 24 static inline uint16_t add16_sat(uint16_t a, uint16_t b) in add16_sat() 40 static inline uint8_t add8_sat(uint8_t a, uint8_t b) in add8_sat() 56 static inline uint16_t sub16_sat(uint16_t a, uint16_t b) in sub16_sat() 72 static inline uint8_t sub8_sat(uint8_t a, uint8_t b) in sub8_sat() 87 #define ADD16(a, b, n) RESULT(add16_sat(a, b), n, 16); argument 88 #define SUB16(a, b, n) RESULT(sub16_sat(a, b), n, 16); argument 89 #define ADD8(a, b, n) RESULT(add8_sat(a, b), n, 8); argument 90 #define SUB8(a, b, n) RESULT(sub8_sat(a, b), n, 8); argument 96 static inline uint16_t add16_usat(uint16_t a, uint16_t b) in add16_usat() 106 static inline uint16_t sub16_usat(uint16_t a, uint16_t b) in sub16_usat() [all …]
|
H A D | gengvec.c | 843 static void gen_mla8_i32(TCGv_i32 d, TCGv_i32 a, TCGv_i32 b) in gen_mla8_i32() 849 static void gen_mls8_i32(TCGv_i32 d, TCGv_i32 a, TCGv_i32 b) in gen_mls8_i32() 855 static void gen_mla16_i32(TCGv_i32 d, TCGv_i32 a, TCGv_i32 b) in gen_mla16_i32() 861 static void gen_mls16_i32(TCGv_i32 d, TCGv_i32 a, TCGv_i32 b) in gen_mls16_i32() 867 static void gen_mla32_i32(TCGv_i32 d, TCGv_i32 a, TCGv_i32 b) in gen_mla32_i32() 873 static void gen_mls32_i32(TCGv_i32 d, TCGv_i32 a, TCGv_i32 b) in gen_mls32_i32() 879 static void gen_mla64_i64(TCGv_i64 d, TCGv_i64 a, TCGv_i64 b) in gen_mla64_i64() 885 static void gen_mls64_i64(TCGv_i64 d, TCGv_i64 a, TCGv_i64 b) in gen_mls64_i64() 891 static void gen_mla_vec(unsigned vece, TCGv_vec d, TCGv_vec a, TCGv_vec b) in gen_mla_vec() 897 static void gen_mls_vec(unsigned vece, TCGv_vec d, TCGv_vec a, TCGv_vec b) in gen_mls_vec() [all …]
|
/qemu/include/qemu/ |
H A D | int128.h | 72 static inline Int128 int128_and(Int128 a, Int128 b) in int128_and() 77 static inline Int128 int128_or(Int128 a, Int128 b) in int128_or() 82 static inline Int128 int128_xor(Int128 a, Int128 b) in int128_xor() 102 static inline Int128 int128_add(Int128 a, Int128 b) in int128_add() 112 static inline Int128 int128_sub(Int128 a, Int128 b) in int128_sub() 122 static inline bool int128_eq(Int128 a, Int128 b) in int128_eq() 127 static inline bool int128_ne(Int128 a, Int128 b) in int128_ne() 132 static inline bool int128_ge(Int128 a, Int128 b) in int128_ge() 137 static inline bool int128_uge(Int128 a, Int128 b) in int128_uge() 142 static inline bool int128_lt(Int128 a, Int128 b) in int128_lt() [all …]
|
H A D | jhash.h | 34 #define __jhash_mix(a, b, c) \ argument 45 #define __jhash_final(a, b, c) \ argument
|
H A D | osdep.h | 403 #define MIN_INTERNAL(a, b, _a, _b) \ argument 409 #define MIN(a, b) \ argument 412 #define MAX_INTERNAL(a, b, _a, _b) \ argument 418 #define MAX(a, b) \ argument 422 # define MIN_CONST(a, b) ((a) < (b) ? (a) : (b)) argument 423 # define MAX_CONST(a, b) ((a) > (b) ? (a) : (b)) argument 425 # define MIN_CONST(a, b) \ argument 430 # define MAX_CONST(a, b) \ argument 445 #define MIN_NON_ZERO_INTERNAL(a, b, _a, _b) \ argument 450 #define MIN_NON_ZERO(a, b) \ argument
|
/qemu/include/system/ |
H A D | tpm_util.h | 34 static inline uint16_t tpm_cmd_get_tag(const void *b) in tpm_cmd_get_tag() 39 static inline void tpm_cmd_set_tag(void *b, uint16_t tag) in tpm_cmd_set_tag() 44 static inline uint32_t tpm_cmd_get_size(const void *b) in tpm_cmd_get_size() 49 static inline void tpm_cmd_set_size(void *b, uint32_t size) in tpm_cmd_set_size() 54 static inline uint32_t tpm_cmd_get_ordinal(const void *b) in tpm_cmd_get_ordinal() 59 static inline uint32_t tpm_cmd_get_errcode(const void *b) in tpm_cmd_get_errcode() 64 static inline void tpm_cmd_set_error(void *b, uint32_t error) in tpm_cmd_set_error()
|
/qemu/include/ui/ |
H A D | pixel_ops.h | 2 unsigned int b) in rgb_to_pixel8() 8 unsigned int b) in rgb_to_pixel15() 14 unsigned int b) in rgb_to_pixel15bgr() 20 unsigned int b) in rgb_to_pixel16() 26 unsigned int b) in rgb_to_pixel16bgr() 32 unsigned int b) in rgb_to_pixel24() 38 unsigned int b) in rgb_to_pixel24bgr() 44 unsigned int b) in rgb_to_pixel32() 50 unsigned int b) in rgb_to_pixel32bgr()
|
/qemu/include/fpu/ |
H A D | softfloat.h | 314 static inline bool float16_eq(float16 a, float16 b, float_status *s) in float16_eq() 319 static inline bool float16_le(float16 a, float16 b, float_status *s) in float16_le() 324 static inline bool float16_lt(float16 a, float16 b, float_status *s) in float16_lt() 329 static inline bool float16_unordered(float16 a, float16 b, float_status *s) in float16_unordered() 334 static inline bool float16_eq_quiet(float16 a, float16 b, float_status *s) in float16_eq_quiet() 339 static inline bool float16_le_quiet(float16 a, float16 b, float_status *s) in float16_le_quiet() 344 static inline bool float16_lt_quiet(float16 a, float16 b, float_status *s) in float16_lt_quiet() 349 static inline bool float16_unordered_quiet(float16 a, float16 b, in float16_unordered_quiet() 508 static inline bool bfloat16_eq(bfloat16 a, bfloat16 b, float_status *s) in bfloat16_eq() 513 static inline bool bfloat16_le(bfloat16 a, bfloat16 b, float_status *s) in bfloat16_le() [all …]
|
/qemu/target/loongarch/ |
H A D | vec.h | 33 #define DO_ADD(a, b) (a + b) argument 34 #define DO_SUB(a, b) (a - b) argument 35 #define DO_VAVG(a, b) ((a >> 1) + (b >> 1) + (a & b & 1)) argument 36 #define DO_VAVGR(a, b) ((a >> 1) + (b >> 1) + ((a | b) & 1)) argument 37 #define DO_VABSD(a, b) ((a > b) ? (a -b) : (b-a)) argument 39 #define DO_MIN(a, b) (a < b ? a : b) argument 40 #define DO_MAX(a, b) (a > b ? a : b) argument 41 #define DO_MUL(a, b) (a * b) argument 42 #define DO_MADD(a, b, c) (a + b * c) argument 43 #define DO_MSUB(a, b, c) (a - b * c) argument [all …]
|
/qemu/tcg/ |
H A D | tcg-op-vec.c | 154 TCGArg r, TCGArg a, TCGArg b) in vec_gen_3() 165 TCGArg r, TCGArg a, TCGArg b, TCGArg c) in vec_gen_4() 177 TCGArg a, TCGArg b, TCGArg c, TCGArg d, TCGArg e) in vec_gen_6() 202 TCGv_vec r, TCGv_vec a, TCGv_vec b) in vec_gen_op3() 257 void tcg_gen_dup_mem_vec(unsigned vece, TCGv_vec r, TCGv_ptr b, in tcg_gen_dup_mem_vec() 268 static void vec_gen_ldst(TCGOpcode opc, TCGv_vec r, TCGv_ptr b, TCGArg o) in vec_gen_ldst() 278 void tcg_gen_ld_vec(TCGv_vec r, TCGv_ptr b, TCGArg o) in tcg_gen_ld_vec() 283 void tcg_gen_st_vec(TCGv_vec r, TCGv_ptr b, TCGArg o) in tcg_gen_st_vec() 288 void tcg_gen_stl_vec(TCGv_vec r, TCGv_ptr b, TCGArg o, TCGType low_type) in tcg_gen_stl_vec() 300 void tcg_gen_and_vec(unsigned vece, TCGv_vec r, TCGv_vec a, TCGv_vec b) in tcg_gen_and_vec() [all …]
|
/qemu/util/ |
H A D | int128.c | 88 Int128 int128_divu(Int128 a, Int128 b) in int128_divu() 95 Int128 int128_remu(Int128 a, Int128 b) in int128_remu() 101 Int128 int128_divs(Int128 a, Int128 b) in int128_divs() 124 Int128 int128_rems(Int128 a, Int128 b) in int128_rems() 151 Int128Alias r, a, b; in int128_divu() local 161 Int128Alias r, a, b; in int128_remu() local 171 Int128Alias r, a, b; in int128_divs() local 181 Int128Alias r, a, b; in int128_rems() local
|
H A D | qht.c | 205 static void qht_bucket_debug__locked(struct qht_bucket *b) in qht_bucket_debug__locked() 240 static inline void qht_bucket_debug__locked(struct qht_bucket *b) in qht_bucket_debug__locked() 258 struct qht_bucket *b, in qht_do_if_first_in_stripe() 274 struct qht_bucket *b, in qht_bucket_lock_do() 287 struct qht_bucket *b) in qht_bucket_lock() 293 struct qht_bucket *b) in qht_bucket_unlock() 298 static inline void qht_head_init(struct qht_map *map, struct qht_bucket *b) in qht_head_init() 317 struct qht_bucket *b = &map->buckets[i]; in qht_map_lock_buckets() local 328 struct qht_bucket *b = &map->buckets[i]; in qht_map_unlock_buckets() local 384 struct qht_bucket *b; in qht_bucket_lock__no_stale() local [all …]
|
/qemu/backends/ |
H A D | vhost-user.c | 24 vhost_user_backend_dev_init(VhostUserBackend *b, VirtIODevice *vdev, in vhost_user_backend_dev_init() 49 vhost_user_backend_start(VhostUserBackend *b) in vhost_user_backend_start() 101 vhost_user_backend_stop(VhostUserBackend *b) in vhost_user_backend_stop() 126 VhostUserBackend *b = VHOST_USER_BACKEND(obj); in set_chardev() local 154 VhostUserBackend *b = VHOST_USER_BACKEND(obj); in get_chardev() local 171 VhostUserBackend *b = VHOST_USER_BACKEND(obj); in vhost_user_backend_finalize() local
|
H A D | cryptodev-vhost.c | 119 CryptoDevBackend *b, in cryptodev_get_vhost() 150 CryptoDevBackend *b, in vhost_set_vring_enable() 179 CryptoDevBackend *b = vcrypto->cryptodev; in cryptodev_vhost_start() local 251 CryptoDevBackend *b = vcrypto->cryptodev; in cryptodev_vhost_stop() local 276 CryptoDevBackend *b = vcrypto->cryptodev; in cryptodev_vhost_virtqueue_mask() local 292 CryptoDevBackend *b = vcrypto->cryptodev; in cryptodev_vhost_virtqueue_pending() local 323 CryptoDevBackend *b, in cryptodev_get_vhost()
|
/qemu/target/ppc/ |
H A D | int_helper.c | 497 void helper_VPRTYBQ(ppc_avr_t *r, ppc_avr_t *b, uint32_t v) in helper_VPRTYBQ() 709 void helper_vcmpbfp(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) in helper_vcmpbfp() 715 ppc_avr_t *b) in helper_vcmpbfp_dot() 751 static int64_t ger_rank8(uint32_t a, uint32_t b, uint32_t mask) in ger_rank8() 762 static int64_t ger_rank4(uint32_t a, uint32_t b, uint32_t mask) in ger_rank4() 773 static int64_t ger_rank2(uint32_t a, uint32_t b, uint32_t mask) in ger_rank2() 785 static void xviger(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, in xviger() 818 void helper_XVI4GER8(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, in helper_XVI4GER8() 825 void helper_XVI4GER8PP(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, in helper_XVI4GER8PP() 832 void helper_XVI8GER4(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, in helper_XVI8GER4() [all …]
|
/qemu/tests/tcg/s390x/ |
H A D | div.c | 8 int32_t b = 101, q, r; in test_dr() local 24 uint32_t b = 101, q, r; in test_dlr() local 40 int64_t b = 101, q, r; in test_dsgr() local 56 uint64_t b = 101, q, r; in test_dlgr() local
|
H A D | add-logical-with-carry.c | 41 static unsigned long test32rm(unsigned long a, unsigned long b, in test32rm() 59 static unsigned long test32mr(unsigned long a, unsigned long b, in test32mr() 77 static unsigned long test64rm(unsigned long a, unsigned long b, in test64rm() 92 static unsigned long test64mr(unsigned long a, unsigned long b, in test64mr() 126 unsigned long a, b, c, sum; in main() local
|
/qemu/target/microblaze/ |
H A D | op_helper.c | 72 static bool check_divz(CPUMBState *env, uint32_t a, uint32_t b, uintptr_t ra) in check_divz() 90 uint32_t helper_divs(CPUMBState *env, uint32_t a, uint32_t b) in helper_divs() 98 uint32_t helper_divu(CPUMBState *env, uint32_t a, uint32_t b) in helper_divu() 143 uint32_t helper_fadd(CPUMBState *env, uint32_t a, uint32_t b) in helper_fadd() 158 uint32_t helper_frsub(CPUMBState *env, uint32_t a, uint32_t b) in helper_frsub() 172 uint32_t helper_fmul(CPUMBState *env, uint32_t a, uint32_t b) in helper_fmul() 187 uint32_t helper_fdiv(CPUMBState *env, uint32_t a, uint32_t b) in helper_fdiv() 202 uint32_t helper_fcmp_un(CPUMBState *env, uint32_t a, uint32_t b) in helper_fcmp_un() 224 uint32_t helper_fcmp_lt(CPUMBState *env, uint32_t a, uint32_t b) in helper_fcmp_lt() 240 uint32_t helper_fcmp_eq(CPUMBState *env, uint32_t a, uint32_t b) in helper_fcmp_eq() [all …]
|
/qemu/target/alpha/ |
H A D | vax_helper.c | 109 uint64_t helper_addf(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_addf() 119 uint64_t helper_subf(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_subf() 129 uint64_t helper_mulf(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_mulf() 139 uint64_t helper_divf(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_divf() 236 uint64_t helper_addg(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_addg() 246 uint64_t helper_subg(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_subg() 256 uint64_t helper_mulg(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_mulg() 266 uint64_t helper_divg(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_divg() 285 uint64_t helper_cmpgeq(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_cmpgeq() 299 uint64_t helper_cmpgle(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_cmpgle() [all …]
|
H A D | fpu_helper.c | 215 uint64_t helper_adds(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_adds() 227 uint64_t helper_subs(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_subs() 239 uint64_t helper_muls(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_muls() 251 uint64_t helper_divs(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_divs() 292 uint64_t helper_addt(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_addt() 304 uint64_t helper_subt(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_subt() 316 uint64_t helper_mult(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_mult() 328 uint64_t helper_divt(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_divt() 352 uint64_t helper_cmptun(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_cmptun() 368 uint64_t helper_cmpteq(CPUAlphaState *env, uint64_t a, uint64_t b) in helper_cmpteq() [all …]
|
/qemu/target/mips/tcg/ |
H A D | dsp_helper.c | 51 #define MIPSDSP_OVERFLOW_ADD(a, b, c, d) (~((a) ^ (b)) & ((a) ^ (c)) & (d)) argument 52 #define MIPSDSP_OVERFLOW_SUB(a, b, c, d) (((a) ^ (b)) & ((a) ^ (c)) & (d)) argument 136 static inline int16_t mipsdsp_add_i16(int16_t a, int16_t b, CPUMIPSState *env) in mipsdsp_add_i16() 149 static inline int16_t mipsdsp_sat_add_i16(int16_t a, int16_t b, in mipsdsp_sat_add_i16() 168 static inline int32_t mipsdsp_sat_add_i32(int32_t a, int32_t b, in mipsdsp_sat_add_i32() 187 static inline uint8_t mipsdsp_add_u8(uint8_t a, uint8_t b, CPUMIPSState *env) in mipsdsp_add_u8() 200 static inline uint16_t mipsdsp_add_u16(uint16_t a, uint16_t b, in mipsdsp_add_u16() 214 static inline uint8_t mipsdsp_sat_add_u8(uint8_t a, uint8_t b, in mipsdsp_sat_add_u8() 231 static inline uint16_t mipsdsp_sat_add_u16(uint16_t a, uint16_t b, in mipsdsp_sat_add_u16() 336 static inline int32_t mipsdsp_mul_i16_i16(int16_t a, int16_t b, in mipsdsp_mul_i16_i16() [all …]
|
/qemu/tests/unit/ |
H A D | test-int128.c | 54 Int128 b = expand(tests[j]); in test_and() local 70 Int128 b = expand(tests[j]); in test_add() local 86 Int128 b = expand(tests[j]); in test_sub() local 128 int32_t b = (int32_t) tests[j]; in test_le() local 142 int32_t b = (int32_t) tests[j]; in test_lt() local 156 int32_t b = (int32_t) tests[j]; in test_ge() local 170 int32_t b = (int32_t) tests[j]; in test_gt() local
|
/qemu/fpu/ |
H A D | softfloat.c | 270 static inline bool f32_is_zon2(union_float32 a, union_float32 b) in f32_is_zon2() 284 static inline bool f64_is_zon2(union_float64 a, union_float64 b) in f64_is_zon2() 296 bool f32_is_zon3(union_float32 a, union_float32 b, union_float32 c) in f32_is_zon3() 309 bool f64_is_zon3(union_float64 a, union_float64 b, union_float64 c) in f64_is_zon3() 946 static bool frac64_add(FloatParts64 *r, FloatParts64 *a, FloatParts64 *b) in frac64_add() 951 static bool frac128_add(FloatParts128 *r, FloatParts128 *a, FloatParts128 *b) in frac128_add() 959 static bool frac256_add(FloatParts256 *r, FloatParts256 *a, FloatParts256 *b) in frac256_add() 996 static FloatRelation frac64_cmp(FloatParts64 *a, FloatParts64 *b) in frac64_cmp() 1003 static FloatRelation frac128_cmp(FloatParts128 *a, FloatParts128 *b) in frac128_cmp() 1029 static bool frac64_div(FloatParts64 *a, FloatParts64 *b) in frac64_div() [all …]
|
/qemu/ui/ |
H A D | vnc-enc-zywrle.h | 215 #define ZYWRLE_LOAD_PIXEL15(src, r, g, b) \ argument 223 #define ZYWRLE_SAVE_PIXEL15(dst, r, g, b) \ argument 234 #define ZYWRLE_LOAD_PIXEL16(src, r, g, b) \ argument 242 #define ZYWRLE_SAVE_PIXEL16(dst, r, g,b) \ argument 253 #define ZYWRLE_LOAD_PIXEL32(src, r, g, b) \ argument 259 #define ZYWRLE_SAVE_PIXEL32(dst, r, g, b) \ argument 472 #define ZYWRLE_LOAD_COEFF(src, r, g, b) \ argument 479 #define ZYWRLE_SAVE_COEFF(dst, r, g, b) \ argument 503 #define ZYWRLE_RGBYUV_(r, g, b, y, u, v, ymask, uvmask) \ argument
|
/qemu/tests/tcg/x86_64/ |
H A D | adox.c | 7 static uint64_t adoxq(bool *c_out, uint64_t a, uint64_t b, bool c) in adoxq() 17 static uint64_t adoxl(bool *c_out, uint64_t a, uint64_t b, bool c) in adoxl()
|