Home
last modified time | relevance | path

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

12

/external/libjpeg-turbo/simd/
Djccolext-altivec.c112 rgb0 = vec_perm(rgb0, rgb1, unaligned_shift_index); in jsimd_rgb_ycc_convert_altivec()
113 rgb1 = vec_perm(rgb1, rgb2, unaligned_shift_index); in jsimd_rgb_ycc_convert_altivec()
114 rgb2 = vec_perm(rgb2, rgb3, unaligned_shift_index); in jsimd_rgb_ycc_convert_altivec()
116 rgb3 = vec_perm(rgb3, rgb4, unaligned_shift_index); in jsimd_rgb_ycc_convert_altivec()
156 rgbg0 = vec_perm(rgb0, rgb0, (__vector unsigned char)RGBG_INDEX0); in jsimd_rgb_ycc_convert_altivec()
157 rgbg1 = vec_perm(rgb0, rgb1, (__vector unsigned char)RGBG_INDEX1); in jsimd_rgb_ycc_convert_altivec()
158 rgbg2 = vec_perm(rgb1, rgb2, (__vector unsigned char)RGBG_INDEX2); in jsimd_rgb_ycc_convert_altivec()
159 rgbg3 = vec_perm(rgb2, rgb2, (__vector unsigned char)RGBG_INDEX3); in jsimd_rgb_ycc_convert_altivec()
171 rgbg0 = vec_perm(rgb0, rgb0, (__vector unsigned char)RGBG_INDEX); in jsimd_rgb_ycc_convert_altivec()
172 rgbg1 = vec_perm(rgb1, rgb1, (__vector unsigned char)RGBG_INDEX); in jsimd_rgb_ycc_convert_altivec()
[all …]
Djcgryext-altivec.c107 rgb0 = vec_perm(rgb0, rgb1, unaligned_shift_index); in jsimd_rgb_gray_convert_altivec()
108 rgb1 = vec_perm(rgb1, rgb2, unaligned_shift_index); in jsimd_rgb_gray_convert_altivec()
109 rgb2 = vec_perm(rgb2, rgb3, unaligned_shift_index); in jsimd_rgb_gray_convert_altivec()
111 rgb3 = vec_perm(rgb3, rgb4, unaligned_shift_index); in jsimd_rgb_gray_convert_altivec()
160 rgbg0 = vec_perm(rgb0, rgb0, (__vector unsigned char)RGBG_INDEX0); in jsimd_rgb_gray_convert_altivec()
161 rgbg1 = vec_perm(rgb0, rgb1, (__vector unsigned char)RGBG_INDEX1); in jsimd_rgb_gray_convert_altivec()
162 rgbg2 = vec_perm(rgb1, rgb2, (__vector unsigned char)RGBG_INDEX2); in jsimd_rgb_gray_convert_altivec()
163 rgbg3 = vec_perm(rgb2, rgb2, (__vector unsigned char)RGBG_INDEX3); in jsimd_rgb_gray_convert_altivec()
175 rgbg0 = vec_perm(rgb0, rgb0, (__vector unsigned char)RGBG_INDEX); in jsimd_rgb_gray_convert_altivec()
176 rgbg1 = vec_perm(rgb1, rgb1, (__vector unsigned char)RGBG_INDEX); in jsimd_rgb_gray_convert_altivec()
[all …]
Djdsample-altivec.c64 p_last0 = vec_perm(this0, this0, last_index_col0); in jsimd_h2v1_fancy_upsample_altivec()
71 p_last0 = vec_perm(last0, this0, last_index); in jsimd_h2v1_fancy_upsample_altivec()
76 p_next0 = vec_perm(this0, this0, next_index_lastcol); in jsimd_h2v1_fancy_upsample_altivec()
79 p_next0 = vec_perm(this0, next0, next_index); in jsimd_h2v1_fancy_upsample_altivec()
100 out = vec_perm((__vector unsigned char)outle, in jsimd_h2v1_fancy_upsample_altivec()
113 out = vec_perm((__vector unsigned char)outhe, in jsimd_h2v1_fancy_upsample_altivec()
185 p_lastcolsum_1l = vec_perm(thiscolsum_1l, thiscolsum_1l, last_index_col0); in jsimd_h2v2_fancy_upsample_altivec()
186 p_lastcolsum_1h = vec_perm(thiscolsum_1l, thiscolsum_1h, last_index); in jsimd_h2v2_fancy_upsample_altivec()
194 p_lastcolsum1l = vec_perm(thiscolsum1l, thiscolsum1l, last_index_col0); in jsimd_h2v2_fancy_upsample_altivec()
195 p_lastcolsum1h = vec_perm(thiscolsum1l, thiscolsum1h, last_index); in jsimd_h2v2_fancy_upsample_altivec()
[all …]
Djdcolext-altivec.c146 gl = vec_perm((__vector short)g0, (__vector short)g1, shift_pack_index); in jsimd_ycc_rgb_convert_altivec()
147 gh = vec_perm((__vector short)g2, (__vector short)g3, shift_pack_index); in jsimd_ycc_rgb_convert_altivec()
177 rgb0 = vec_perm(rgbx0, rgbx1, (__vector unsigned char)RGB_INDEX0); in jsimd_ycc_rgb_convert_altivec()
178 rgb1 = vec_perm(rgbx1, rgbx2, (__vector unsigned char)RGB_INDEX1); in jsimd_ycc_rgb_convert_altivec()
179 rgb2 = vec_perm(rgbx2, rgbx3, (__vector unsigned char)RGB_INDEX2); in jsimd_ycc_rgb_convert_altivec()
191 rgb0 = vec_perm(rgbx0, rgbx0, (__vector unsigned char)RGB_INDEX); in jsimd_ycc_rgb_convert_altivec()
192 rgb1 = vec_perm(rgbx1, rgbx1, (__vector unsigned char)RGB_INDEX); in jsimd_ycc_rgb_convert_altivec()
193 rgb2 = vec_perm(rgbx2, rgbx2, (__vector unsigned char)RGB_INDEX); in jsimd_ycc_rgb_convert_altivec()
194 rgb3 = vec_perm(rgbx3, rgbx3, (__vector unsigned char)RGB_INDEX); in jsimd_ycc_rgb_convert_altivec()
223 edges = vec_perm(edgeh, edgel, unaligned_shift_index); in jsimd_ycc_rgb_convert_altivec()
[all …]
Djdmrgext-altivec.c140 g_yl = vec_perm((__vector short)g_y0, (__vector short)g_y1, in jsimd_h2v1_merged_upsample_altivec()
142 g_yh = vec_perm((__vector short)g_y2, (__vector short)g_y3, in jsimd_h2v1_merged_upsample_altivec()
152 ye = (__vector signed short)vec_perm(pb_zero, y, even_index); in jsimd_h2v1_merged_upsample_altivec()
153 yo = (__vector signed short)vec_perm(pb_zero, y, odd_index); in jsimd_h2v1_merged_upsample_altivec()
202 rgb0 = vec_perm(rgbx0, rgbx1, (__vector unsigned char)RGB_INDEX0); in jsimd_h2v1_merged_upsample_altivec()
203 rgb1 = vec_perm(rgbx1, rgbx2, (__vector unsigned char)RGB_INDEX1); in jsimd_h2v1_merged_upsample_altivec()
204 rgb2 = vec_perm(rgbx2, rgbx3, (__vector unsigned char)RGB_INDEX2); in jsimd_h2v1_merged_upsample_altivec()
216 rgb0 = vec_perm(rgbx0, rgbx0, (__vector unsigned char)RGB_INDEX); in jsimd_h2v1_merged_upsample_altivec()
217 rgb1 = vec_perm(rgbx1, rgbx1, (__vector unsigned char)RGB_INDEX); in jsimd_h2v1_merged_upsample_altivec()
218 rgb2 = vec_perm(rgbx2, rgbx2, (__vector unsigned char)RGB_INDEX); in jsimd_h2v1_merged_upsample_altivec()
[all …]
Djcsample-altivec.c60 this0 = vec_perm(this0, this0, even_odd_index); in jsimd_h2v1_downsample_altivec()
69 next0 = vec_perm(next0, next0, even_odd_index); in jsimd_h2v1_downsample_altivec()
120 this0 = vec_perm(this0, this0, even_odd_index); in jsimd_h2v2_downsample_altivec()
126 this1 = vec_perm(this1, this1, even_odd_index); in jsimd_h2v2_downsample_altivec()
137 next0 = vec_perm(next0, next0, even_odd_index); in jsimd_h2v2_downsample_altivec()
143 next1 = vec_perm(next1, next1, even_odd_index); in jsimd_h2v2_downsample_altivec()
Djquanti-altivec.c38 in##row = vec_perm(in##row, in##row, vec_lvsl(0, elemptr)); \
112 out = (__vector short)vec_perm((__vector unsigned short)tmpe, \
/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/libvpx/vpx_dsp/ppc/
Dintrapred_vsx.c623 const uint8x16_t b = vec_perm(a, above_right, sl1); in vpx_d45_predictor_8x8_vsx()
624 const uint8x16_t c = vec_perm(b, above_right, sl1); in vpx_d45_predictor_8x8_vsx()
633 row = vec_perm(row, above_right, sl1); in vpx_d45_predictor_8x8_vsx()
641 const uint8x16_t b = vec_perm(a, above_right, sl1); in vpx_d45_predictor_16x16_vsx()
642 const uint8x16_t c = vec_perm(b, above_right, sl1); in vpx_d45_predictor_16x16_vsx()
650 row = vec_perm(row, above_right, sl1); in vpx_d45_predictor_16x16_vsx()
659 const uint8x16_t b0 = vec_perm(a0, a1, sl1); in vpx_d45_predictor_32x32_vsx()
660 const uint8x16_t b1 = vec_perm(a1, above_right, sl1); in vpx_d45_predictor_32x32_vsx()
661 const uint8x16_t c0 = vec_perm(b0, b1, sl1); in vpx_d45_predictor_32x32_vsx()
662 const uint8x16_t c1 = vec_perm(b1, above_right, sl1); in vpx_d45_predictor_32x32_vsx()
[all …]
Dtypes_vsx.h36 #define xxpermdi(a, b, c) vec_perm(a, b, xxpermdi##c##_perm)
/external/eigen/Eigen/src/Core/arch/AltiVec/
DComplex.h72 res.v = vec_perm(res.v, res.v, p16uc_PSET64_HI);
108 v1 = vec_perm(a.v, a.v, p16uc_PSET32_WODD);
110 v2 = vec_perm(a.v, a.v, p16uc_PSET32_WEVEN);
117 v2 = vec_perm(v2, v2, p16uc_COMPLEX32_REV);
140 rev_a = vec_perm(a.v, a.v, p16uc_COMPLEX32_REV2);
250 return Packet2cf(pdiv(res.v, padd<Packet4f>(s, vec_perm(s, s, p16uc_COMPLEX32_REV))));
255 return Packet2cf(vec_perm(x.v, x.v, p16uc_COMPLEX32_REV));
260 Packet4f tmp = vec_perm(kernel.packet[0].v, kernel.packet[1].v, p16uc_TRANSPOSE64_HI);
261 kernel.packet[1].v = vec_perm(kernel.packet[0].v, kernel.packet[1].v, p16uc_TRANSPOSE64_LO);
340 a_re = vec_perm(a.v, a.v, p16uc_PSET64_HI);
[all …]
DPacketMath.h422 return (Packet4f) vec_perm(MSQ, LSQ, mask); // align the data
434 return (Packet4i) vec_perm(MSQ, LSQ, mask); // align the data
455 return vec_perm(p, p, p16uc_DUPLICATE32_HI);
462 return vec_perm(p, p, p16uc_DUPLICATE32_HI);
477 edges=vec_perm(LSQ,MSQ,edgeAlign); // extract the edges
479 MSQ = vec_perm(edges,(Packet16uc)from,align); // misalign the data (MSQ)
480 LSQ = vec_perm((Packet16uc)from,edges,align); // misalign the data (LSQ)
495 edges=vec_perm(LSQ, MSQ, edgeAlign); // extract the edges
497 MSQ = vec_perm(edges, (Packet16uc) from, align); // misalign the data (MSQ)
498 LSQ = vec_perm((Packet16uc) from, edges, align); // misalign the data (LSQ)
[all …]
DMathFunctions.h303 emm0 = reinterpret_cast<Packet2l>(vec_perm(p4i_ZERO, emm04i, perm));
305 emm0 = reinterpret_cast<Packet2l>(vec_perm(emm04i, p4i_ZERO, perm));
/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.c602 __m128i c0_0 = vec_add_epi32(vec_perm(cx, cx, vshuf_mask0), span_0); in lp_rast_triangle_32_3_16()
603 __m128i c1_0 = vec_add_epi32(vec_perm(cx, cx, vshuf_mask1), span_1); in lp_rast_triangle_32_3_16()
604 __m128i c2_0 = vec_add_epi32(vec_perm(cx, cx, vshuf_mask2), span_2); in lp_rast_triangle_32_3_16()
608 __m128i c0_1 = vec_add_epi32(c0_0, vec_perm(dcdy, dcdy, vshuf_mask0)); in lp_rast_triangle_32_3_16()
609 __m128i c1_1 = vec_add_epi32(c1_0, vec_perm(dcdy, dcdy, vshuf_mask1)); in lp_rast_triangle_32_3_16()
610 __m128i c2_1 = vec_add_epi32(c2_0, vec_perm(dcdy, dcdy, vshuf_mask2)); in lp_rast_triangle_32_3_16()
615 __m128i c0_2 = vec_add_epi32(c0_1, vec_perm(dcdy, dcdy, vshuf_mask0)); in lp_rast_triangle_32_3_16()
616 __m128i c1_2 = vec_add_epi32(c1_1, vec_perm(dcdy, dcdy, vshuf_mask1)); in lp_rast_triangle_32_3_16()
617 __m128i c2_2 = vec_add_epi32(c2_1, vec_perm(dcdy, dcdy, vshuf_mask2)); in lp_rast_triangle_32_3_16()
621 __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/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/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()
Dbuiltins-systemz-zvector.c168 vsc = vec_perm(vsc, vsc, vuc); in test_core()
170 vuc = vec_perm(vuc, vuc, vuc); in test_core()
172 vbc = vec_perm(vbc, vbc, vuc); in test_core()
174 vss = vec_perm(vss, vss, vuc); in test_core()
176 vus = vec_perm(vus, vus, vuc); in test_core()
178 vbs = vec_perm(vbs, vbs, vuc); in test_core()
180 vsi = vec_perm(vsi, vsi, vuc); in test_core()
182 vui = vec_perm(vui, vui, vuc); in test_core()
184 vbi = vec_perm(vbi, vbi, vuc); in test_core()
186 vsl = vec_perm(vsl, vsl, vuc); in test_core()
[all …]
Dbuiltins-ppc-altivec.c2761 res_vsc = vec_perm(vsc, vsc, vuc); in test6()
2765 res_vuc = vec_perm(vuc, vuc, vuc); in test6()
2769 res_vbc = vec_perm(vbc, vbc, vuc); in test6()
2773 res_vs = vec_perm(vs, vs, vuc); in test6()
2777 res_vus = vec_perm(vus, vus, vuc); in test6()
2781 res_vbs = vec_perm(vbs, vbs, vuc); in test6()
2785 res_vp = vec_perm(vp, vp, vuc); in test6()
2789 res_vi = vec_perm(vi, vi, vuc); in test6()
2793 res_vui = vec_perm(vui, vui, vuc); in test6()
2797 res_vbi = vec_perm(vbi, vbi, vuc); in test6()
[all …]
/external/eigen/Eigen/src/Core/arch/ZVector/
DComplex.h154 a_re = vec_perm(a.v, a.v, p16uc_PSET64_HI);
156 a_im = vec_perm(a.v, a.v, p16uc_PSET64_LO);
344 return Packet1cd(pdiv(res.v, s + vec_perm(s, s, p16uc_REVERSE64)));
371 Packet2d tmp = vec_perm(kernel.packet[0].v, kernel.packet[1].v, p16uc_TRANSPOSE64_HI);
372 kernel.packet[1].v = vec_perm(kernel.packet[0].v, kernel.packet[1].v, p16uc_TRANSPOSE64_LO);
DPacketMath.h659 return vec_perm(p, p, p16uc_DUPLICATE32_HI);
673 return vec_perm(p, p, p16uc_PSET64_HI);
690 …return reinterpret_cast<Packet4i>(vec_perm(reinterpret_cast<Packet16uc>(a), reinterpret_cast<Packe…
695 …return reinterpret_cast<Packet2d>(vec_perm(reinterpret_cast<Packet16uc>(a), reinterpret_cast<Packe…
874 Packet2d t0 = vec_perm(kernel.packet[0], kernel.packet[1], p16uc_TRANSPOSE64_HI);
875 Packet2d t1 = vec_perm(kernel.packet[0], kernel.packet[1], p16uc_TRANSPOSE64_LO);

12