Searched refs:TBITS (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/target/s390x/tcg/ |
H A D | vec_helper.c | 68 #define DEF_VPK_HFN(BITS, TBITS) \ argument 69 typedef uint##TBITS##_t (*vpk##BITS##_fn)(uint##BITS##_t, int *); \ 76 for (i = 0; i < (128 / TBITS); i++) { \ 84 s390_vec_write_element##TBITS(&tmp, i, fn(src, &saturated)); \ 93 #define DEF_VPK(BITS, TBITS) \ argument 94 static uint##TBITS##_t vpk##BITS##e(uint##BITS##_t src, int *saturated) \ 107 #define DEF_VPKS(BITS, TBITS) \ argument 108 static uint##TBITS##_t vpks##BITS##e(uint##BITS##_t src, int *saturated) \ 110 if ((int##BITS##_t)src > INT##TBITS##_MAX) { \ 112 return INT##TBITS##_MAX; \ [all …]
|
H A D | vec_int_helper.c | 313 #define DEF_VMAE(BITS, TBITS) \ argument 319 for (i = 0, j = 0; i < (128 / TBITS); i++, j += 2) { \ 320 int##TBITS##_t a = (int##BITS##_t)s390_vec_read_element##BITS(v2, j); \ 321 int##TBITS##_t b = (int##BITS##_t)s390_vec_read_element##BITS(v3, j); \ 322 int##TBITS##_t c = s390_vec_read_element##TBITS(v4, i); \ 324 s390_vec_write_element##TBITS(v1, i, a * b + c); \ 331 #define DEF_VMALE(BITS, TBITS) \ argument 337 for (i = 0, j = 0; i < (128 / TBITS); i++, j += 2) { \ 340 uint##TBITS##_t c = s390_vec_read_element##TBITS(v4, i); \ 358 int##TBITS##_t c = s390_vec_read_element##TBITS(v4, i); \ [all …]
|