Home
last modified time | relevance | path

Searched refs:vec_perm (Results 1 – 25 of 48) sorted by relevance

12

/external/libpng/powerpc/
Dfilter_vsx_intrinsics.c165 #define vsx_char_to_short(vec,offset,bpp) (vector unsigned short)vec_perm((vec),VSX_CHAR_ZERO,VSX_C…
166 #define vsx_short_to_char(vec,offset,bpp) vec_perm(((vector unsigned char)(vec)),VSX_CHAR_ZERO,VSX_…
207 part_vec = vec_perm(rp_vec,VSX_CHAR_ZERO,VSX_LEFTSHIFTED1_4); in png_read_filter_row_sub4_vsx()
210 part_vec = vec_perm(rp_vec,VSX_CHAR_ZERO,VSX_LEFTSHIFTED2_4); in png_read_filter_row_sub4_vsx()
213 part_vec = vec_perm(rp_vec,VSX_CHAR_ZERO,VSX_LEFTSHIFTED3_4); in png_read_filter_row_sub4_vsx()
264 part_vec = vec_perm(rp_vec,VSX_CHAR_ZERO,VSX_LEFTSHIFTED1_3); in png_read_filter_row_sub3_vsx()
267 part_vec = vec_perm(rp_vec,VSX_CHAR_ZERO,VSX_LEFTSHIFTED2_3); in png_read_filter_row_sub3_vsx()
270 part_vec = vec_perm(rp_vec,VSX_CHAR_ZERO,VSX_LEFTSHIFTED3_3); in png_read_filter_row_sub3_vsx()
273 part_vec = vec_perm(rp_vec,VSX_CHAR_ZERO,VSX_LEFTSHIFTED4_3); in png_read_filter_row_sub3_vsx()
347 rp_part_vec = vec_perm(rp_vec,VSX_CHAR_ZERO,VSX_LEFTSHIFTED1_4); in png_read_filter_row_avg4_vsx()
[all …]
/external/eigen/Eigen/src/Core/arch/AltiVec/
DMatrixProductCommon.h146 acc1.packet[0].v = vec_perm(taccReal.packet[0], taccImag.packet[0], p16uc_SETCOMPLEX32_FIRST); in bcouple_common()
147 acc1.packet[1].v = vec_perm(taccReal.packet[1], taccImag.packet[1], p16uc_SETCOMPLEX32_FIRST); in bcouple_common()
148 acc1.packet[2].v = vec_perm(taccReal.packet[2], taccImag.packet[2], p16uc_SETCOMPLEX32_FIRST); in bcouple_common()
149 acc1.packet[3].v = vec_perm(taccReal.packet[3], taccImag.packet[3], p16uc_SETCOMPLEX32_FIRST); in bcouple_common()
151 acc2.packet[0].v = vec_perm(taccReal.packet[0], taccImag.packet[0], p16uc_SETCOMPLEX32_SECOND); in bcouple_common()
152 acc2.packet[1].v = vec_perm(taccReal.packet[1], taccImag.packet[1], p16uc_SETCOMPLEX32_SECOND); in bcouple_common()
153 acc2.packet[2].v = vec_perm(taccReal.packet[2], taccImag.packet[2], p16uc_SETCOMPLEX32_SECOND); in bcouple_common()
154 acc2.packet[3].v = vec_perm(taccReal.packet[3], taccImag.packet[3], p16uc_SETCOMPLEX32_SECOND); in bcouple_common()
176 acc1.packet[0].v = vec_perm(taccReal.packet[0], taccImag.packet[0], p16uc_SETCOMPLEX32_FIRST); in bcouple_common()
178 acc2.packet[0].v = vec_perm(taccReal.packet[0], taccImag.packet[0], p16uc_SETCOMPLEX32_SECOND); in bcouple_common()
[all …]
DComplex.h40 v1 = vec_perm(a.v, a.v, p16uc_PSET32_WODD); in pmul()
42 v2 = vec_perm(a.v, a.v, p16uc_PSET32_WEVEN); in pmul()
49 v2 = vec_perm(v2, v2, p16uc_COMPLEX32_REV); in pmul()
119 res.v = vec_perm(res.v, res.v, p16uc_PSET64_HI);
144 res0 = vec_perm(res0, res1, p16uc_TRANSPOSE64_HI);
187 rev_a = vec_perm(a.v, a.v, p16uc_COMPLEX32_REV2);
216 return Packet2cf(pdiv(res.v, padd<Packet4f>(s, vec_perm(s, s, p16uc_COMPLEX32_REV))));
221 return Packet2cf(vec_perm(x.v, x.v, p16uc_COMPLEX32_REV));
226 Packet4f tmp = vec_perm(kernel.packet[0].v, kernel.packet[1].v, p16uc_TRANSPOSE64_HI);
227 kernel.packet[1].v = vec_perm(kernel.packet[0].v, kernel.packet[1].v, p16uc_TRANSPOSE64_LO);
[all …]
DPacketMath.h961 return (Packet) vec_perm(MSQ, LSQ, mask); // align the data
1002 return vec_perm(p, p, p16uc_DUPLICATE32_HI);
1018 return vec_perm(p, p, p16uc_DUPLICATE16_HI);
1026 return vec_perm(p, p, p16uc_DUPLICATE16_HI);
1034 return vec_perm(p, p, p16uc_QUADRUPLICATE16_HI);
1042 return vec_perm(p, p, p16uc_QUADRUPLICATE16_HI);
1055 return vec_perm(p, p, p16uc_DUPLICATE8_HI);
1063 return vec_perm(p, p, p16uc_DUPLICATE8_HI);
1078 edges=vec_perm(LSQ,MSQ,edgeAlign); // extract the edges
1080 MSQ = vec_perm(edges,(Packet16uc)from,align); // misalign the data (MSQ)
[all …]
DMatrixProduct.h455 blockr.packet[0] = vec_perm(cblock.packet[0].v, cblock.packet[4].v, p16uc_GETREAL32);
456 blockr.packet[1] = vec_perm(cblock.packet[1].v, cblock.packet[5].v, p16uc_GETREAL32);
457 blockr.packet[2] = vec_perm(cblock.packet[2].v, cblock.packet[6].v, p16uc_GETREAL32);
458 blockr.packet[3] = vec_perm(cblock.packet[3].v, cblock.packet[7].v, p16uc_GETREAL32);
460 blocki.packet[0] = vec_perm(cblock.packet[0].v, cblock.packet[4].v, p16uc_GETIMAG32);
461 blocki.packet[1] = vec_perm(cblock.packet[1].v, cblock.packet[5].v, p16uc_GETIMAG32);
462 blocki.packet[2] = vec_perm(cblock.packet[2].v, cblock.packet[6].v, p16uc_GETIMAG32);
463 blocki.packet[3] = vec_perm(cblock.packet[3].v, cblock.packet[7].v, p16uc_GETIMAG32);
518 blockr.packet[0] = vec_perm(cblock.packet[0].v, cblock.packet[1].v, p16uc_GETREAL32);
519 blocki.packet[0] = vec_perm(cblock.packet[0].v, cblock.packet[1].v, p16uc_GETIMAG32);
[all …]
/external/rust/crates/libz-sys/src/zlib-ng/arch/s390/
Dcrc32-vx.c68 uv2di v1 = vec_perm(((uv2di *)buf)[0], ((uv2di *)buf)[0], perm_le2be); in crc32_le_vgfm_16()
69 uv2di v2 = vec_perm(((uv2di *)buf)[1], ((uv2di *)buf)[1], perm_le2be); in crc32_le_vgfm_16()
70 uv2di v3 = vec_perm(((uv2di *)buf)[2], ((uv2di *)buf)[2], perm_le2be); in crc32_le_vgfm_16()
71 uv2di v4 = vec_perm(((uv2di *)buf)[3], ((uv2di *)buf)[3], perm_le2be); in crc32_le_vgfm_16()
79 uv16qi part1 = vec_perm(((uv16qi *)buf)[0], ((uv16qi *)buf)[0], perm_le2be); in crc32_le_vgfm_16()
80 uv16qi part2 = vec_perm(((uv16qi *)buf)[1], ((uv16qi *)buf)[1], perm_le2be); in crc32_le_vgfm_16()
81 uv16qi part3 = vec_perm(((uv16qi *)buf)[2], ((uv16qi *)buf)[2], perm_le2be); in crc32_le_vgfm_16()
82 uv16qi part4 = vec_perm(((uv16qi *)buf)[3], ((uv16qi *)buf)[3], perm_le2be); in crc32_le_vgfm_16()
111 v2 = vec_perm(*(uv2di *)buf, *(uv2di *)buf, perm_le2be); in crc32_le_vgfm_16()
/external/clang/lib/Headers/
Daltivec.h39 static __inline__ vector signed char __ATTRS_o_ai vec_perm(
43 vec_perm(vector unsigned char __a, vector unsigned char __b,
47 vec_perm(vector bool char __a, vector bool char __b, vector unsigned char __c);
49 static __inline__ vector short __ATTRS_o_ai vec_perm(vector signed short __a,
54 vec_perm(vector unsigned short __a, vector unsigned short __b,
57 static __inline__ vector bool short __ATTRS_o_ai vec_perm(
60 static __inline__ vector pixel __ATTRS_o_ai vec_perm(vector pixel __a,
64 static __inline__ vector int __ATTRS_o_ai vec_perm(vector signed int __a,
68 static __inline__ vector unsigned int __ATTRS_o_ai vec_perm(
72 vec_perm(vector bool int __a, vector bool int __b, vector unsigned char __c);
[all …]
/external/libvpx/vpx_dsp/ppc/
Dintrapred_vsx.c637 const uint8x16_t b = vec_perm(a, above_right, sl1);
638 const uint8x16_t c = vec_perm(b, above_right, sl1);
647 row = vec_perm(row, above_right, sl1);
656 const uint8x16_t b = vec_perm(a, above_right, sl1); in vpx_d45_predictor_16x16_vsx()
657 const uint8x16_t c = vec_perm(b, above_right, sl1); in vpx_d45_predictor_16x16_vsx()
665 row = vec_perm(row, above_right, sl1); in vpx_d45_predictor_16x16_vsx()
674 const uint8x16_t b0 = vec_perm(a0, a1, sl1); in vpx_d45_predictor_32x32_vsx()
675 const uint8x16_t b1 = vec_perm(a1, above_right, sl1); in vpx_d45_predictor_32x32_vsx()
676 const uint8x16_t c0 = vec_perm(b0, b1, sl1); in vpx_d45_predictor_32x32_vsx()
677 const uint8x16_t c1 = vec_perm(b1, above_right, sl1); in vpx_d45_predictor_32x32_vsx()
[all …]
Ddeblock_vsx.c62 ctx[0] = vec_perm(left_ctx, v, l2_perm); in horz_ctx()
63 ctx[1] = vec_perm(left_ctx, v, l1_perm); in horz_ctx()
64 ctx[2] = vec_perm(v, right_ctx, r1_perm); in horz_ctx()
65 ctx[3] = vec_perm(v, right_ctx, r2_perm); in horz_ctx()
88 vec_vsx_st(vec_perm(out, v, st8_perm), col, dst_ptr); in vpx_post_proc_down_and_across_mb_row_vsx()
110 vec_vsx_st(vec_perm(out, v, st8_perm), col, dst_ptr); in vpx_post_proc_down_and_across_mb_row_vsx()
124 return (int16x8_t)vec_perm(c, vec_zeros_u8, next7_perm); in next7l_s16()
187 return vec_perm((bool16x8_t)mask_even, (bool16x8_t)mask_odd, mask_merge); in mask_s16()
268 out = vec_perm((uint8x16_t)masked, vec_vsx_ld(0, src + col), load_merge); in vpx_mbpost_proc_across_ip_vsx()
362 out = vec_perm((uint8x16_t)masked, vec_vsx_ld(0, dst + row * pitch), in vpx_mbpost_proc_down_vsx()
Dquantize_vsx.c78 return (int16x8_t)vec_perm(dqcoeffe, dqcoeffo, vec_perm_odd_even_pack); in dequantize_coeff_32()
91 a = vec_max(a, vec_perm(a, a, vec_perm64)); in vec_max_across()
92 a = vec_max(a, vec_perm(a, a, vec_perm32)); in vec_max_across()
93 return vec_max(a, vec_perm(a, a, vec_perm16)); in vec_max_across()
Dfdct32x32_vsx.c46 *add = (int16x8_t)vec_perm(ssum_e, ssum_o, vec_perm_odd_even_pack); in single_butterfly()
47 *sub = (int16x8_t)vec_perm(sdiff_e, sdiff_o, vec_perm_odd_even_pack); in single_butterfly()
81 *add = (int16x8_t)vec_perm(ssum_e, ssum_o, vec_perm_odd_even_pack); in double_butterfly()
82 *sub = (int16x8_t)vec_perm(sdiff_e, sdiff_o, vec_perm_odd_even_pack); in double_butterfly()
Dtypes_vsx.h39 #define xxpermdi(a, b, c) vec_perm(a, b, xxpermdi##c##_perm)
/external/pffft/simd/
Dpf_altivec_float.h57 inline v4sf ld_ps1(const float *p) { v4sf v=vec_lde(0,p); return vec_splat(vec_perm(v, v, vec_lvsl(… in ld_ps1()
63 v4sf tmp__ = vec_perm(in1, in2, vperm1); out2 = vec_perm(in1, in2, vperm2); out1 = tmp__; \
75 # define VSWAPHL(a,b) vec_perm(a,b, (vector unsigned char)(16,17,18,19,20,21,22,23,8,9,10,11,12,13…
/external/eigen/Eigen/src/Core/arch/ZVector/
DComplex.h126 a_re = vec_perm(a.v, a.v, p16uc_PSET64_HI);
128 a_im = vec_perm(a.v, a.v, p16uc_PSET64_LO);
175 return Packet1cd(pdiv(res.v, s + vec_perm(s, s, p16uc_REVERSE64)));
185 Packet2d tmp = vec_perm(kernel.packet[0].v, kernel.packet[1].v, p16uc_TRANSPOSE64_HI);
186 kernel.packet[1].v = vec_perm(kernel.packet[0].v, kernel.packet[1].v, p16uc_TRANSPOSE64_LO);
221 res.v = vec_perm(res.v, res.v, p16uc_PSET64_HI);
351 a_re = vec_perm(a.v, a.v, p16uc_PSET32_WODD);
354 a_im = vec_perm(a.v, a.v, p16uc_PSET32_WEVEN);
360 prod_im = vec_perm(prod_im, prod_im, p16uc_COMPLEX32_REV);
371 rev_a = vec_perm(a.v, a.v, p16uc_COMPLEX32_REV2);
[all …]
DPacketMath.h448 return vec_perm(p, p, p16uc_DUPLICATE32_HI);
454 return vec_perm(p, p, p16uc_PSET64_HI);
468 …return reinterpret_cast<Packet4i>(vec_perm(reinterpret_cast<Packet16uc>(a), reinterpret_cast<Packe…
473 …return reinterpret_cast<Packet2d>(vec_perm(reinterpret_cast<Packet16uc>(a), reinterpret_cast<Packe…
554 Packet2d t0 = vec_perm(kernel.packet[0], kernel.packet[1], p16uc_TRANSPOSE64_HI);
555 Packet2d t1 = vec_perm(kernel.packet[0], kernel.packet[1], p16uc_TRANSPOSE64_LO);
986 return vec_perm(p, p, p16uc_DUPLICATE32_HI);
991 …return reinterpret_cast<Packet4f>(vec_perm(reinterpret_cast<Packet16uc>(a), reinterpret_cast<Packe…
/external/mesa3d/src/gallium/auxiliary/util/
Du_pwr8.h87 return vec_perm (even, odd, perm_mask); in vec_unpacklo_epi32()
100 return vec_perm (even, odd, perm_mask); in vec_unpackhi_epi32()
113 return vec_perm (even, odd, perm_mask); in vec_unpacklo_epi64()
126 return vec_perm (even, odd, perm_mask); in vec_unpackhi_epi64()
251 vsrc.m128ui = (vector unsigned int) vec_perm (tmp1, tmp2, vmask); in vec_loadu_si128()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_rast_tri.c629 __m128i c0_0 = vec_add_epi32(vec_perm(cx, cx, vshuf_mask0), span_0); in lp_rast_triangle_32_3_16()
630 __m128i c1_0 = vec_add_epi32(vec_perm(cx, cx, vshuf_mask1), span_1); in lp_rast_triangle_32_3_16()
631 __m128i c2_0 = vec_add_epi32(vec_perm(cx, cx, vshuf_mask2), span_2); in lp_rast_triangle_32_3_16()
635 __m128i c0_1 = vec_add_epi32(c0_0, vec_perm(dcdy, dcdy, vshuf_mask0)); in lp_rast_triangle_32_3_16()
636 __m128i c1_1 = vec_add_epi32(c1_0, vec_perm(dcdy, dcdy, vshuf_mask1)); in lp_rast_triangle_32_3_16()
637 __m128i c2_1 = vec_add_epi32(c2_0, vec_perm(dcdy, dcdy, vshuf_mask2)); in lp_rast_triangle_32_3_16()
642 __m128i c0_2 = vec_add_epi32(c0_1, vec_perm(dcdy, dcdy, vshuf_mask0)); in lp_rast_triangle_32_3_16()
643 __m128i c1_2 = vec_add_epi32(c1_1, vec_perm(dcdy, dcdy, vshuf_mask1)); in lp_rast_triangle_32_3_16()
644 __m128i c2_2 = vec_add_epi32(c2_1, vec_perm(dcdy, dcdy, vshuf_mask2)); in lp_rast_triangle_32_3_16()
648 __m128i c0_3 = vec_add_epi32(c0_2, vec_perm(dcdy, dcdy, vshuf_mask0)); in lp_rast_triangle_32_3_16()
[all …]
/external/fec/
Dencode_rs_av.c52 feedback0 = vec_perm(feedback1,feedback1,reverse); in encode_rs_av()
55 shift_register.v[1] = vec_perm(shift_register.v[0],shift_register.v[1],shift_right) ^ feedback1; in encode_rs_av()
Dencode_rs_8.c92 feedback0 = vec_perm(feedback1,feedback1,reverse); in encode_rs_8_av()
95 shift_register.v[1] = vec_perm(shift_register.v[0],shift_register.v[1],shift_right) ^ feedback1; in encode_rs_8_av()
Dpeakval_av.c21 x = vec_perm(vec_ld(0,in),(vector signed short)(0),vec_lvsl(0,in)); in peakval_av()
Dsumsq_av.c23 x = vec_perm(vec_ld(0,in),(vector signed short)(0),vec_lvsl(0,in)); in sumsq_av()
/external/jemalloc_new/test/include/test/
DSFMT-alti.h81 x = vec_perm(a, (vector unsigned int)perm_sl, perm_sl); in vec_recursion()
84 z = vec_perm(c, (vector unsigned int)perm_sr, perm_sr); in vec_recursion()
181 array[i].s = vec_perm(array[i].s, (vector unsigned int)perm, perm); in swap()
/external/libvpx/vp9/encoder/ppc/
Dvp9_quantize_vsx.c36 a = vec_max(a, vec_perm(a, a, vec_perm64)); in vec_max_across()
37 a = vec_max(a, vec_perm(a, a, vec_perm32)); in vec_max_across()
38 return vec_max(a, vec_perm(a, a, vec_perm16)); in vec_max_across()
161 return (int16x8_t)vec_perm(dqcoeffe, dqcoeffo, vec_perm_odd_even_pack); in dequantize_coeff_32()
/external/clang/test/CodeGen/
Dbuiltins-ppc-vsx.c248 res_vsll = vec_perm(vsll, vsll, vuc); in test1()
252 res_vull = vec_perm(vull, vull, vuc); in test1()
256 res_vbll = vec_perm(vbll, vbll, vuc); in test1()
273 res_vd = vec_perm(vd, vd, vuc); in test1()
/external/libaom/av1/common/ppc/
Dcfl_ppc.c69 const int32x4_t perm_64 = vec_perm(sum_32x4, sum_32x4, mask_64); in subtract_average_vsx()
71 const int32x4_t perm_32 = vec_perm(sum_32x4, sum_32x4, mask_32); in subtract_average_vsx()

12