Lines Matching full:short
60 static __inline__ vector short __ATTRS_o_ai vec_perm(vector signed short __a,
61 vector signed short __b,
64 static __inline__ vector unsigned short __ATTRS_o_ai
65 vec_perm(vector unsigned short __a, vector unsigned short __b,
68 static __inline__ vector bool short __ATTRS_o_ai vec_perm(
69 vector bool short __a, vector bool short __b, vector unsigned char __c);
121 static __inline__ vector signed short __ATTRS_o_ai
122 vec_abs(vector signed short __a) { in vec_abs()
165 static __inline__ vector signed short __ATTRS_o_ai
166 vec_abss(vector signed short __a) { in vec_abss()
168 __a, __builtin_altivec_vsubshs((vector signed short)(0), __a)); in vec_abss()
185 static __inline__ vector unsigned short __ATTRS_o_ai
186 vec_absd(vector unsigned short __a, vector unsigned short __b) { in vec_absd()
229 static __inline__ vector short __ATTRS_o_ai vec_add(vector short __a, in vec_add()
230 vector short __b) { in vec_add()
234 static __inline__ vector short __ATTRS_o_ai vec_add(vector bool short __a, in vec_add()
235 vector short __b) { in vec_add()
236 return (vector short)__a + __b; in vec_add()
239 static __inline__ vector short __ATTRS_o_ai vec_add(vector short __a, in vec_add()
240 vector bool short __b) { in vec_add()
241 return __a + (vector short)__b; in vec_add()
244 static __inline__ vector unsigned short __ATTRS_o_ai
245 vec_add(vector unsigned short __a, vector unsigned short __b) { in vec_add()
249 static __inline__ vector unsigned short __ATTRS_o_ai
250 vec_add(vector bool short __a, vector unsigned short __b) { in vec_add()
251 return (vector unsigned short)__a + __b; in vec_add()
254 static __inline__ vector unsigned short __ATTRS_o_ai
255 vec_add(vector unsigned short __a, vector bool short __b) { in vec_add()
256 return __a + (vector unsigned short)__b; in vec_add()
509 static __inline__ vector short __ATTRS_o_ai vec_vadduhm(vector short __a, in vec_vadduhm()
510 vector short __b) { in vec_vadduhm()
514 static __inline__ vector short __ATTRS_o_ai vec_vadduhm(vector bool short __a, in vec_vadduhm()
515 vector short __b) { in vec_vadduhm()
516 return (vector short)__a + __b; in vec_vadduhm()
519 static __inline__ vector short __ATTRS_o_ai vec_vadduhm(vector short __a, in vec_vadduhm()
520 vector bool short __b) { in vec_vadduhm()
521 return __a + (vector short)__b; in vec_vadduhm()
524 static __inline__ vector unsigned short __ATTRS_o_ai
525 vec_vadduhm(vector unsigned short __a, vector unsigned short __b) { in vec_vadduhm()
529 static __inline__ vector unsigned short __ATTRS_o_ai
530 vec_vadduhm(vector bool short __a, vector unsigned short __b) { in vec_vadduhm()
531 return (vector unsigned short)__a + __b; in vec_vadduhm()
534 static __inline__ vector unsigned short __ATTRS_o_ai
535 vec_vadduhm(vector unsigned short __a, vector bool short __b) { in vec_vadduhm()
536 return __a + (vector unsigned short)__b; in vec_vadduhm()
655 static __inline__ vector short __ATTRS_o_ai vec_adds(vector short __a, in vec_adds()
656 vector short __b) { in vec_adds()
660 static __inline__ vector short __ATTRS_o_ai vec_adds(vector bool short __a, in vec_adds()
661 vector short __b) { in vec_adds()
662 return __builtin_altivec_vaddshs((vector short)__a, __b); in vec_adds()
665 static __inline__ vector short __ATTRS_o_ai vec_adds(vector short __a, in vec_adds()
666 vector bool short __b) { in vec_adds()
667 return __builtin_altivec_vaddshs(__a, (vector short)__b); in vec_adds()
670 static __inline__ vector unsigned short __ATTRS_o_ai
671 vec_adds(vector unsigned short __a, vector unsigned short __b) { in vec_adds()
675 static __inline__ vector unsigned short __ATTRS_o_ai
676 vec_adds(vector bool short __a, vector unsigned short __b) { in vec_adds()
677 return __builtin_altivec_vadduhs((vector unsigned short)__a, __b); in vec_adds()
680 static __inline__ vector unsigned short __ATTRS_o_ai
681 vec_adds(vector unsigned short __a, vector bool short __b) { in vec_adds()
682 return __builtin_altivec_vadduhs(__a, (vector unsigned short)__b); in vec_adds()
751 static __inline__ vector short __ATTRS_o_ai vec_vaddshs(vector short __a, in vec_vaddshs()
752 vector short __b) { in vec_vaddshs()
756 static __inline__ vector short __ATTRS_o_ai vec_vaddshs(vector bool short __a, in vec_vaddshs()
757 vector short __b) { in vec_vaddshs()
758 return __builtin_altivec_vaddshs((vector short)__a, __b); in vec_vaddshs()
761 static __inline__ vector short __ATTRS_o_ai vec_vaddshs(vector short __a, in vec_vaddshs()
762 vector bool short __b) { in vec_vaddshs()
763 return __builtin_altivec_vaddshs(__a, (vector short)__b); in vec_vaddshs()
768 static __inline__ vector unsigned short __ATTRS_o_ai
769 vec_vadduhs(vector unsigned short __a, vector unsigned short __b) { in vec_vadduhs()
773 static __inline__ vector unsigned short __ATTRS_o_ai
774 vec_vadduhs(vector bool short __a, vector unsigned short __b) { in vec_vadduhs()
775 return __builtin_altivec_vadduhs((vector unsigned short)__a, __b); in vec_vadduhs()
778 static __inline__ vector unsigned short __ATTRS_o_ai
779 vec_vadduhs(vector unsigned short __a, vector bool short __b) { in vec_vadduhs()
780 return __builtin_altivec_vadduhs(__a, (vector unsigned short)__b); in vec_vadduhs()
916 static __inline__ vector short __ATTRS_o_ai vec_and(vector short __a, in vec_and()
917 vector short __b) { in vec_and()
921 static __inline__ vector short __ATTRS_o_ai vec_and(vector bool short __a, in vec_and()
922 vector short __b) { in vec_and()
923 return (vector short)__a & __b; in vec_and()
926 static __inline__ vector short __ATTRS_o_ai vec_and(vector short __a, in vec_and()
927 vector bool short __b) { in vec_and()
928 return __a & (vector short)__b; in vec_and()
931 static __inline__ vector unsigned short __ATTRS_o_ai
932 vec_and(vector unsigned short __a, vector unsigned short __b) { in vec_and()
936 static __inline__ vector unsigned short __ATTRS_o_ai
937 vec_and(vector bool short __a, vector unsigned short __b) { in vec_and()
938 return (vector unsigned short)__a & __b; in vec_and()
941 static __inline__ vector unsigned short __ATTRS_o_ai
942 vec_and(vector unsigned short __a, vector bool short __b) { in vec_and()
943 return __a & (vector unsigned short)__b; in vec_and()
946 static __inline__ vector bool short __ATTRS_o_ai
947 vec_and(vector bool short __a, vector bool short __b) { in vec_and()
1102 static __inline__ vector short __ATTRS_o_ai vec_vand(vector short __a, in vec_vand()
1103 vector short __b) { in vec_vand()
1107 static __inline__ vector short __ATTRS_o_ai vec_vand(vector bool short __a, in vec_vand()
1108 vector short __b) { in vec_vand()
1109 return (vector short)__a & __b; in vec_vand()
1112 static __inline__ vector short __ATTRS_o_ai vec_vand(vector short __a, in vec_vand()
1113 vector bool short __b) { in vec_vand()
1114 return __a & (vector short)__b; in vec_vand()
1117 static __inline__ vector unsigned short __ATTRS_o_ai
1118 vec_vand(vector unsigned short __a, vector unsigned short __b) { in vec_vand()
1122 static __inline__ vector unsigned short __ATTRS_o_ai
1123 vec_vand(vector bool short __a, vector unsigned short __b) { in vec_vand()
1124 return (vector unsigned short)__a & __b; in vec_vand()
1127 static __inline__ vector unsigned short __ATTRS_o_ai
1128 vec_vand(vector unsigned short __a, vector bool short __b) { in vec_vand()
1129 return __a & (vector unsigned short)__b; in vec_vand()
1132 static __inline__ vector bool short __ATTRS_o_ai
1133 vec_vand(vector bool short __a, vector bool short __b) { in vec_vand()
1269 static __inline__ vector short __ATTRS_o_ai vec_andc(vector short __a, in vec_andc()
1270 vector short __b) { in vec_andc()
1274 static __inline__ vector short __ATTRS_o_ai vec_andc(vector bool short __a, in vec_andc()
1275 vector short __b) { in vec_andc()
1276 return (vector short)__a & ~__b; in vec_andc()
1279 static __inline__ vector short __ATTRS_o_ai vec_andc(vector short __a, in vec_andc()
1280 vector bool short __b) { in vec_andc()
1281 return __a & ~(vector short)__b; in vec_andc()
1284 static __inline__ vector unsigned short __ATTRS_o_ai
1285 vec_andc(vector unsigned short __a, vector unsigned short __b) { in vec_andc()
1289 static __inline__ vector unsigned short __ATTRS_o_ai
1290 vec_andc(vector bool short __a, vector unsigned short __b) { in vec_andc()
1291 return (vector unsigned short)__a & ~__b; in vec_andc()
1294 static __inline__ vector unsigned short __ATTRS_o_ai
1295 vec_andc(vector unsigned short __a, vector bool short __b) { in vec_andc()
1296 return __a & ~(vector unsigned short)__b; in vec_andc()
1299 static __inline__ vector bool short __ATTRS_o_ai
1300 vec_andc(vector bool short __a, vector bool short __b) { in vec_andc()
1455 static __inline__ vector short __ATTRS_o_ai vec_vandc(vector short __a, in vec_vandc()
1456 vector short __b) { in vec_vandc()
1460 static __inline__ vector short __ATTRS_o_ai vec_vandc(vector bool short __a, in vec_vandc()
1461 vector short __b) { in vec_vandc()
1462 return (vector short)__a & ~__b; in vec_vandc()
1465 static __inline__ vector short __ATTRS_o_ai vec_vandc(vector short __a, in vec_vandc()
1466 vector bool short __b) { in vec_vandc()
1467 return __a & ~(vector short)__b; in vec_vandc()
1470 static __inline__ vector unsigned short __ATTRS_o_ai
1471 vec_vandc(vector unsigned short __a, vector unsigned short __b) { in vec_vandc()
1475 static __inline__ vector unsigned short __ATTRS_o_ai
1476 vec_vandc(vector bool short __a, vector unsigned short __b) { in vec_vandc()
1477 return (vector unsigned short)__a & ~__b; in vec_vandc()
1480 static __inline__ vector unsigned short __ATTRS_o_ai
1481 vec_vandc(vector unsigned short __a, vector bool short __b) { in vec_vandc()
1482 return __a & ~(vector unsigned short)__b; in vec_vandc()
1485 static __inline__ vector bool short __ATTRS_o_ai
1486 vec_vandc(vector bool short __a, vector bool short __b) { in vec_vandc()
1595 static __inline__ vector short __ATTRS_o_ai vec_avg(vector short __a, in vec_avg()
1596 vector short __b) { in vec_avg()
1600 static __inline__ vector unsigned short __ATTRS_o_ai
1601 vec_avg(vector unsigned short __a, vector unsigned short __b) { in vec_avg()
1631 static __inline__ vector short __attribute__((__always_inline__))
1632 vec_vavgsh(vector short __a, vector short __b) { in vec_vavgsh()
1638 static __inline__ vector unsigned short __attribute__((__always_inline__))
1639 vec_vavguh(vector unsigned short __a, vector unsigned short __b) { in vec_vavguh()
1725 static __inline__ vector bool short __ATTRS_o_ai vec_cmpeq(vector short __a, in vec_cmpeq()
1726 vector short __b) { in vec_cmpeq()
1727 return (vector bool short)__builtin_altivec_vcmpequh(__a, __b); in vec_cmpeq()
1730 static __inline__ vector bool short __ATTRS_o_ai
1731 vec_cmpeq(vector unsigned short __a, vector unsigned short __b) { in vec_cmpeq()
1732 return (vector bool short)__builtin_altivec_vcmpequh((vector short)__a, in vec_cmpeq()
1733 (vector short)__b); in vec_cmpeq()
1736 static __inline__ vector bool short __ATTRS_o_ai
1737 vec_cmpeq(vector bool short __a, vector bool short __b) { in vec_cmpeq()
1738 return (vector bool short)__builtin_altivec_vcmpequh((vector short)__a, in vec_cmpeq()
1739 (vector short)__b); in vec_cmpeq()
1860 static __inline__ vector bool short __ATTRS_o_ai
1861 vec_cmpne(vector bool short __a, vector bool short __b) { in vec_cmpne()
1862 return (vector bool short)__builtin_altivec_vcmpneh((vector short)__a, in vec_cmpne()
1863 (vector short)__b); in vec_cmpne()
1866 static __inline__ vector bool short __ATTRS_o_ai
1867 vec_cmpne(vector signed short __a, vector signed short __b) { in vec_cmpne()
1868 return (vector bool short)__builtin_altivec_vcmpneh((vector short)__a, in vec_cmpne()
1869 (vector short)__b); in vec_cmpne()
1872 static __inline__ vector bool short __ATTRS_o_ai
1873 vec_cmpne(vector unsigned short __a, vector unsigned short __b) { in vec_cmpne()
1874 return (vector bool short)__builtin_altivec_vcmpneh((vector short)__a, in vec_cmpne()
1875 (vector short)__b); in vec_cmpne()
1936 static __inline__ vector bool short __ATTRS_o_ai
1937 vec_cmpnez(vector signed short __a, vector signed short __b) { in vec_cmpnez()
1938 return (vector bool short)__builtin_altivec_vcmpnezh((vector short)__a, in vec_cmpnez()
1939 (vector short)__b); in vec_cmpnez()
1942 static __inline__ vector bool short __ATTRS_o_ai
1943 vec_cmpnez(vector unsigned short __a, vector unsigned short __b) { in vec_cmpnez()
1944 return (vector bool short)__builtin_altivec_vcmpnezh((vector short)__a, in vec_cmpnez()
1945 (vector short)__b); in vec_cmpnez()
2046 static __inline__ vector bool short __ATTRS_o_ai
2047 vec_cmpne(vector bool short __a, vector bool short __b) { in vec_cmpne()
2051 static __inline__ vector bool short __ATTRS_o_ai
2052 vec_cmpne(vector signed short __a, vector signed short __b) { in vec_cmpne()
2056 static __inline__ vector bool short __ATTRS_o_ai
2057 vec_cmpne(vector unsigned short __a, vector unsigned short __b) { in vec_cmpne()
2140 static __inline__ vector bool short __ATTRS_o_ai vec_cmpgt(vector short __a, in vec_cmpgt()
2141 vector short __b) { in vec_cmpgt()
2142 return (vector bool short)__builtin_altivec_vcmpgtsh(__a, __b); in vec_cmpgt()
2145 static __inline__ vector bool short __ATTRS_o_ai
2146 vec_cmpgt(vector unsigned short __a, vector unsigned short __b) { in vec_cmpgt()
2147 return (vector bool short)__builtin_altivec_vcmpgtuh(__a, __b); in vec_cmpgt()
2252 static __inline__ vector bool short __ATTRS_o_ai
2253 vec_cmpge(vector signed short __a, vector signed short __b) { in vec_cmpge()
2257 static __inline__ vector bool short __ATTRS_o_ai
2258 vec_cmpge(vector unsigned short __a, vector unsigned short __b) { in vec_cmpge()
2333 static __inline__ vector bool short __attribute__((__always_inline__))
2334 vec_vcmpgtsh(vector short __a, vector short __b) { in vec_vcmpgtsh()
2335 return (vector bool short)__builtin_altivec_vcmpgtsh(__a, __b); in vec_vcmpgtsh()
2340 static __inline__ vector bool short __attribute__((__always_inline__))
2341 vec_vcmpgtuh(vector unsigned short __a, vector unsigned short __b) { in vec_vcmpgtuh()
2342 return (vector bool short)__builtin_altivec_vcmpgtuh(__a, __b); in vec_vcmpgtuh()
2378 static __inline__ vector bool short __ATTRS_o_ai
2379 vec_cmple(vector signed short __a, vector signed short __b) { in vec_cmple()
2383 static __inline__ vector bool short __ATTRS_o_ai
2384 vec_cmple(vector unsigned short __a, vector unsigned short __b) { in vec_cmple()
2444 static __inline__ vector bool short __ATTRS_o_ai vec_cmplt(vector short __a, in vec_cmplt()
2445 vector short __b) { in vec_cmplt()
2449 static __inline__ vector bool short __ATTRS_o_ai
2450 vec_cmplt(vector unsigned short __a, vector unsigned short __b) { in vec_cmplt()
2512 static __inline__ vector unsigned short __ATTRS_o_ai
2513 vec_popcnt(vector signed short __a) { in vec_popcnt()
2514 return (vector unsigned short)__builtin_altivec_vpopcnth( in vec_popcnt()
2515 (vector unsigned short)__a); in vec_popcnt()
2517 static __inline__ vector unsigned short __ATTRS_o_ai
2518 vec_popcnt(vector unsigned short __a) { in vec_popcnt()
2549 static __inline__ vector signed short __ATTRS_o_ai
2550 vec_cntlz(vector signed short __a) { in vec_cntlz()
2551 return (vector signed short)__builtin_altivec_vclzh( in vec_cntlz()
2552 (vector unsigned short)__a); in vec_cntlz()
2554 static __inline__ vector unsigned short __ATTRS_o_ai
2555 vec_cntlz(vector unsigned short __a) { in vec_cntlz()
2589 static __inline__ vector signed short __ATTRS_o_ai
2590 vec_cnttz(vector signed short __a) { in vec_cnttz()
2591 return (vector signed short)__builtin_altivec_vctzh( in vec_cnttz()
2592 (vector unsigned short)__a); in vec_cnttz()
2594 static __inline__ vector unsigned short __ATTRS_o_ai
2595 vec_cnttz(vector unsigned short __a) { in vec_cnttz()
2647 vec_first_match_index(vector signed short __a, vector signed short __b) { in vec_first_match_index()
2661 vec_first_match_index(vector unsigned short __a, vector unsigned short __b) { in vec_first_match_index()
2748 vec_first_match_or_eos_index(vector signed short __a, vector signed short __b) { in vec_first_match_or_eos_index()
2749 vector bool short __tmp1 = vec_cmpeq(__a, __b); in vec_first_match_or_eos_index()
2750 vector bool short __tmp2 = __tmp1 | in vec_first_match_or_eos_index()
2751 vec_cmpeq((vector signed short)__tmp1, __a) | in vec_first_match_or_eos_index()
2752 vec_cmpeq((vector signed short)__tmp1, __b); in vec_first_match_or_eos_index()
2767 vec_first_match_or_eos_index(vector unsigned short __a, in vec_first_match_or_eos_index()
2768 vector unsigned short __b) { in vec_first_match_or_eos_index()
2769 vector bool short __tmp1 = vec_cmpeq(__a, __b); in vec_first_match_or_eos_index()
2770 vector bool short __tmp2 = __tmp1 | in vec_first_match_or_eos_index()
2771 vec_cmpeq((vector unsigned short)__tmp1, __a) | in vec_first_match_or_eos_index()
2772 vec_cmpeq((vector unsigned short)__tmp1, __b); in vec_first_match_or_eos_index()
2854 vec_first_mismatch_index(vector signed short __a, vector signed short __b) { in vec_first_mismatch_index()
2868 vec_first_mismatch_index(vector unsigned short __a, vector unsigned short __b) { in vec_first_mismatch_index()
2942 vec_first_mismatch_or_eos_index(vector signed short __a, in vec_first_mismatch_or_eos_index()
2943 vector signed short __b) { in vec_first_mismatch_or_eos_index()
2957 vec_first_mismatch_or_eos_index(vector unsigned short __a, in vec_first_mismatch_or_eos_index()
2958 vector unsigned short __b) { in vec_first_mismatch_or_eos_index()
3031 static __inline__ vector signed short __ATTRS_o_ai vec_xl_len(const signed short *__a, in vec_xl_len()
3033 return (vector signed short)__builtin_vsx_lxvl(__a, (__b << 56)); in vec_xl_len()
3036 static __inline__ vector unsigned short __ATTRS_o_ai
3037 vec_xl_len(const unsigned short *__a, size_t __b) { in vec_xl_len()
3038 return (vector unsigned short)__builtin_vsx_lxvl(__a, (__b << 56)); in vec_xl_len()
3104 static __inline__ void __ATTRS_o_ai vec_xst_len(vector signed short __a, in vec_xst_len()
3105 signed short *__b, size_t __c) { in vec_xst_len()
3109 static __inline__ void __ATTRS_o_ai vec_xst_len(vector unsigned short __a, in vec_xst_len()
3110 unsigned short *__b, in vec_xst_len()
3462 vec_signexti(vector signed short __a) { in vec_signexti()
3472 vec_signextll(vector signed short __a) { in vec_signextll()
3793 static __inline__ vector signed short __ATTRS_o_ai
3794 vec_div(vector signed short __a, vector signed short __b) { in vec_div()
3798 static __inline__ vector unsigned short __ATTRS_o_ai
3799 vec_div(vector unsigned short __a, vector unsigned short __b) { in vec_div()
3944 static __inline__ vector signed short __ATTRS_o_ai
3945 vec_eqv(vector signed short __a, vector signed short __b) { in vec_eqv()
3946 return (vector signed short)__builtin_vsx_xxleqv((vector unsigned int)__a, in vec_eqv()
3950 static __inline__ vector unsigned short __ATTRS_o_ai
3951 vec_eqv(vector unsigned short __a, vector unsigned short __b) { in vec_eqv()
3952 return (vector unsigned short)__builtin_vsx_xxleqv((vector unsigned int)__a, in vec_eqv()
3956 static __inline__ vector bool short __ATTRS_o_ai
3957 vec_eqv(vector bool short __a, vector bool short __b) { in vec_eqv()
3958 return (vector bool short)__builtin_vsx_xxleqv((vector unsigned int)__a, in vec_eqv()
4085 static __inline__ vector short __ATTRS_o_ai vec_ld(long __a, in vec_ld()
4086 const vector short *__b) { in vec_ld()
4087 return (vector short)__builtin_altivec_lvx(__a, __b); in vec_ld()
4090 static __inline__ vector short __ATTRS_o_ai vec_ld(long __a, const short *__b) { in vec_ld()
4091 return (vector short)__builtin_altivec_lvx(__a, __b); in vec_ld()
4094 static __inline__ vector unsigned short __ATTRS_o_ai
4095 vec_ld(long __a, const vector unsigned short *__b) { in vec_ld()
4096 return (vector unsigned short)__builtin_altivec_lvx(__a, __b); in vec_ld()
4099 static __inline__ vector unsigned short __ATTRS_o_ai
4100 vec_ld(long __a, const unsigned short *__b) { in vec_ld()
4101 return (vector unsigned short)__builtin_altivec_lvx(__a, __b); in vec_ld()
4104 static __inline__ vector bool short __ATTRS_o_ai
4105 vec_ld(long __a, const vector bool short *__b) { in vec_ld()
4106 return (vector bool short)__builtin_altivec_lvx(__a, __b); in vec_ld()
4174 static __inline__ vector short __ATTRS_o_ai vec_lvx(long __a, in vec_lvx()
4175 const vector short *__b) { in vec_lvx()
4176 return (vector short)__builtin_altivec_lvx(__a, __b); in vec_lvx()
4179 static __inline__ vector short __ATTRS_o_ai vec_lvx(long __a, const short *__b) { in vec_lvx()
4180 return (vector short)__builtin_altivec_lvx(__a, __b); in vec_lvx()
4183 static __inline__ vector unsigned short __ATTRS_o_ai
4184 vec_lvx(long __a, const vector unsigned short *__b) { in vec_lvx()
4185 return (vector unsigned short)__builtin_altivec_lvx(__a, __b); in vec_lvx()
4188 static __inline__ vector unsigned short __ATTRS_o_ai
4189 vec_lvx(long __a, const unsigned short *__b) { in vec_lvx()
4190 return (vector unsigned short)__builtin_altivec_lvx(__a, __b); in vec_lvx()
4193 static __inline__ vector bool short __ATTRS_o_ai
4194 vec_lvx(long __a, const vector bool short *__b) { in vec_lvx()
4195 return (vector bool short)__builtin_altivec_lvx(__a, __b); in vec_lvx()
4248 static __inline__ vector short __ATTRS_o_ai vec_lde(long __a, const short *__b) { in vec_lde()
4249 return (vector short)__builtin_altivec_lvehx(__a, __b); in vec_lde()
4252 static __inline__ vector unsigned short __ATTRS_o_ai
4253 vec_lde(long __a, const unsigned short *__b) { in vec_lde()
4254 return (vector unsigned short)__builtin_altivec_lvehx(__a, __b); in vec_lde()
4284 static __inline__ vector short __ATTRS_o_ai vec_lvehx(long __a, in vec_lvehx()
4285 const short *__b) { in vec_lvehx()
4286 return (vector short)__builtin_altivec_lvehx(__a, __b); in vec_lvehx()
4289 static __inline__ vector unsigned short __ATTRS_o_ai
4290 vec_lvehx(long __a, const unsigned short *__b) { in vec_lvehx()
4291 return (vector unsigned short)__builtin_altivec_lvehx(__a, __b); in vec_lvehx()
4337 static __inline__ vector short __ATTRS_o_ai vec_ldl(long __a, in vec_ldl()
4338 const vector short *__b) { in vec_ldl()
4339 return (vector short)__builtin_altivec_lvxl(__a, __b); in vec_ldl()
4342 static __inline__ vector short __ATTRS_o_ai vec_ldl(long __a, const short *__b) { in vec_ldl()
4343 return (vector short)__builtin_altivec_lvxl(__a, __b); in vec_ldl()
4346 static __inline__ vector unsigned short __ATTRS_o_ai
4347 vec_ldl(long __a, const vector unsigned short *__b) { in vec_ldl()
4348 return (vector unsigned short)__builtin_altivec_lvxl(__a, __b); in vec_ldl()
4351 static __inline__ vector unsigned short __ATTRS_o_ai
4352 vec_ldl(long __a, const unsigned short *__b) { in vec_ldl()
4353 return (vector unsigned short)__builtin_altivec_lvxl(__a, __b); in vec_ldl()
4356 static __inline__ vector bool short __ATTRS_o_ai
4357 vec_ldl(long __a, const vector bool short *__b) { in vec_ldl()
4358 return (vector bool short)__builtin_altivec_lvxl(__a, __b); in vec_ldl()
4363 return (vector pixel short)__builtin_altivec_lvxl(__a, __b); in vec_ldl()
4426 static __inline__ vector short __ATTRS_o_ai vec_lvxl(long __a, in vec_lvxl()
4427 const vector short *__b) { in vec_lvxl()
4428 return (vector short)__builtin_altivec_lvxl(__a, __b); in vec_lvxl()
4431 static __inline__ vector short __ATTRS_o_ai vec_lvxl(long __a, in vec_lvxl()
4432 const short *__b) { in vec_lvxl()
4433 return (vector short)__builtin_altivec_lvxl(__a, __b); in vec_lvxl()
4436 static __inline__ vector unsigned short __ATTRS_o_ai
4437 vec_lvxl(long __a, const vector unsigned short *__b) { in vec_lvxl()
4438 return (vector unsigned short)__builtin_altivec_lvxl(__a, __b); in vec_lvxl()
4441 static __inline__ vector unsigned short __ATTRS_o_ai
4442 vec_lvxl(long __a, const unsigned short *__b) { in vec_lvxl()
4443 return (vector unsigned short)__builtin_altivec_lvxl(__a, __b); in vec_lvxl()
4446 static __inline__ vector bool short __ATTRS_o_ai
4447 vec_lvxl(long __a, const vector bool short *__b) { in vec_lvxl()
4448 return (vector bool short)__builtin_altivec_lvxl(__a, __b); in vec_lvxl()
4543 loads/stores"))) vec_lvsl(int __a, const short *__b) { in vec_lvsl()
4552 const short *__b) { in vec_lvsl()
4560 loads/stores"))) vec_lvsl(int __a, const unsigned short *__b) { in vec_lvsl()
4569 vec_lvsl(int __a, const unsigned short *__b) { in vec_lvsl()
4664 loads/stores"))) vec_lvsr(int __a, const short *__b) { in vec_lvsr()
4673 const short *__b) { in vec_lvsr()
4681 loads/stores"))) vec_lvsr(int __a, const unsigned short *__b) { in vec_lvsr()
4690 vec_lvsr(int __a, const unsigned short *__b) { in vec_lvsr()
4747 static __inline__ vector signed short __ATTRS_o_ai
4748 vec_mladd(vector signed short, vector signed short, vector signed short);
4749 static __inline__ vector signed short __ATTRS_o_ai
4750 vec_mladd(vector signed short, vector unsigned short, vector unsigned short);
4751 static __inline__ vector signed short __ATTRS_o_ai
4752 vec_mladd(vector unsigned short, vector signed short, vector signed short);
4753 static __inline__ vector unsigned short __ATTRS_o_ai
4754 vec_mladd(vector unsigned short, vector unsigned short, vector unsigned short);
4756 static __inline__ vector signed short __ATTRS_o_ai vec_madd( in vec_madd()
4757 vector signed short __a, vector signed short __b, vector signed short __c) { in vec_madd()
4761 static __inline__ vector signed short __ATTRS_o_ai
4762 vec_madd(vector signed short __a, vector unsigned short __b, in vec_madd()
4763 vector unsigned short __c) { in vec_madd()
4767 static __inline__ vector signed short __ATTRS_o_ai
4768 vec_madd(vector unsigned short __a, vector signed short __b, in vec_madd()
4769 vector signed short __c) { in vec_madd()
4773 static __inline__ vector unsigned short __ATTRS_o_ai
4774 vec_madd(vector unsigned short __a, vector unsigned short __b, in vec_madd()
4775 vector unsigned short __c) { in vec_madd()
4806 static __inline__ vector signed short __attribute__((__always_inline__))
4807 vec_madds(vector signed short __a, vector signed short __b, in vec_madds()
4808 vector signed short __c) { in vec_madds()
4813 static __inline__ vector signed short __attribute__((__always_inline__))
4814 vec_vmhaddshs(vector signed short __a, vector signed short __b, in vec_vmhaddshs()
4815 vector signed short __c) { in vec_vmhaddshs()
4867 static __inline__ vector short __ATTRS_o_ai vec_max(vector short __a, in vec_max()
4868 vector short __b) { in vec_max()
4872 static __inline__ vector short __ATTRS_o_ai vec_max(vector bool short __a, in vec_max()
4873 vector short __b) { in vec_max()
4874 return __builtin_altivec_vmaxsh((vector short)__a, __b); in vec_max()
4877 static __inline__ vector short __ATTRS_o_ai vec_max(vector short __a, in vec_max()
4878 vector bool short __b) { in vec_max()
4879 return __builtin_altivec_vmaxsh(__a, (vector short)__b); in vec_max()
4882 static __inline__ vector unsigned short __ATTRS_o_ai
4883 vec_max(vector unsigned short __a, vector unsigned short __b) { in vec_max()
4887 static __inline__ vector unsigned short __ATTRS_o_ai
4888 vec_max(vector bool short __a, vector unsigned short __b) { in vec_max()
4889 return __builtin_altivec_vmaxuh((vector unsigned short)__a, __b); in vec_max()
4892 static __inline__ vector unsigned short __ATTRS_o_ai
4893 vec_max(vector unsigned short __a, vector bool short __b) { in vec_max()
4894 return __builtin_altivec_vmaxuh(__a, (vector unsigned short)__b); in vec_max()
5011 static __inline__ vector short __ATTRS_o_ai vec_vmaxsh(vector short __a, in vec_vmaxsh()
5012 vector short __b) { in vec_vmaxsh()
5016 static __inline__ vector short __ATTRS_o_ai vec_vmaxsh(vector bool short __a, in vec_vmaxsh()
5017 vector short __b) { in vec_vmaxsh()
5018 return __builtin_altivec_vmaxsh((vector short)__a, __b); in vec_vmaxsh()
5021 static __inline__ vector short __ATTRS_o_ai vec_vmaxsh(vector short __a, in vec_vmaxsh()
5022 vector bool short __b) { in vec_vmaxsh()
5023 return __builtin_altivec_vmaxsh(__a, (vector short)__b); in vec_vmaxsh()
5028 static __inline__ vector unsigned short __ATTRS_o_ai
5029 vec_vmaxuh(vector unsigned short __a, vector unsigned short __b) { in vec_vmaxuh()
5033 static __inline__ vector unsigned short __ATTRS_o_ai
5034 vec_vmaxuh(vector bool short __a, vector unsigned short __b) { in vec_vmaxuh()
5035 return __builtin_altivec_vmaxuh((vector unsigned short)__a, __b); in vec_vmaxuh()
5038 static __inline__ vector unsigned short __ATTRS_o_ai
5039 vec_vmaxuh(vector unsigned short __a, vector bool short __b) { in vec_vmaxuh()
5040 return __builtin_altivec_vmaxuh(__a, (vector unsigned short)__b); in vec_vmaxuh()
5114 static __inline__ vector short __ATTRS_o_ai vec_mergeh(vector short __a, in vec_mergeh()
5115 vector short __b) { in vec_mergeh()
5122 static __inline__ vector unsigned short __ATTRS_o_ai
5123 vec_mergeh(vector unsigned short __a, vector unsigned short __b) { in vec_mergeh()
5130 static __inline__ vector bool short __ATTRS_o_ai
5131 vec_mergeh(vector bool short __a, vector bool short __b) { in vec_mergeh()
5290 static __inline__ vector short __ATTRS_o_ai vec_vmrghh(vector short __a, in vec_vmrghh()
5291 vector short __b) { in vec_vmrghh()
5298 static __inline__ vector unsigned short __ATTRS_o_ai
5299 vec_vmrghh(vector unsigned short __a, vector unsigned short __b) { in vec_vmrghh()
5306 static __inline__ vector bool short __ATTRS_o_ai
5307 vec_vmrghh(vector bool short __a, vector bool short __b) { in vec_vmrghh()
5384 static __inline__ vector short __ATTRS_o_ai vec_mergel(vector short __a, in vec_mergel()
5385 vector short __b) { in vec_mergel()
5392 static __inline__ vector unsigned short __ATTRS_o_ai
5393 vec_mergel(vector unsigned short __a, vector unsigned short __b) { in vec_mergel()
5400 static __inline__ vector bool short __ATTRS_o_ai
5401 vec_mergel(vector bool short __a, vector bool short __b) { in vec_mergel()
5553 static __inline__ vector short __ATTRS_o_ai vec_vmrglh(vector short __a, in vec_vmrglh()
5554 vector short __b) { in vec_vmrglh()
5561 static __inline__ vector unsigned short __ATTRS_o_ai
5562 vec_vmrglh(vector unsigned short __a, vector unsigned short __b) { in vec_vmrglh()
5569 static __inline__ vector bool short __ATTRS_o_ai
5570 vec_vmrglh(vector bool short __a, vector bool short __b) { in vec_vmrglh()
5734 static __inline__ vector unsigned short __attribute__((__always_inline__))
5771 static __inline__ vector short __ATTRS_o_ai vec_min(vector short __a, in vec_min()
5772 vector short __b) { in vec_min()
5776 static __inline__ vector short __ATTRS_o_ai vec_min(vector bool short __a, in vec_min()
5777 vector short __b) { in vec_min()
5778 return __builtin_altivec_vminsh((vector short)__a, __b); in vec_min()
5781 static __inline__ vector short __ATTRS_o_ai vec_min(vector short __a, in vec_min()
5782 vector bool short __b) { in vec_min()
5783 return __builtin_altivec_vminsh(__a, (vector short)__b); in vec_min()
5786 static __inline__ vector unsigned short __ATTRS_o_ai
5787 vec_min(vector unsigned short __a, vector unsigned short __b) { in vec_min()
5791 static __inline__ vector unsigned short __ATTRS_o_ai
5792 vec_min(vector bool short __a, vector unsigned short __b) { in vec_min()
5793 return __builtin_altivec_vminuh((vector unsigned short)__a, __b); in vec_min()
5796 static __inline__ vector unsigned short __ATTRS_o_ai
5797 vec_min(vector unsigned short __a, vector bool short __b) { in vec_min()
5798 return __builtin_altivec_vminuh(__a, (vector unsigned short)__b); in vec_min()
5915 static __inline__ vector short __ATTRS_o_ai vec_vminsh(vector short __a, in vec_vminsh()
5916 vector short __b) { in vec_vminsh()
5920 static __inline__ vector short __ATTRS_o_ai vec_vminsh(vector bool short __a, in vec_vminsh()
5921 vector short __b) { in vec_vminsh()
5922 return __builtin_altivec_vminsh((vector short)__a, __b); in vec_vminsh()
5925 static __inline__ vector short __ATTRS_o_ai vec_vminsh(vector short __a, in vec_vminsh()
5926 vector bool short __b) { in vec_vminsh()
5927 return __builtin_altivec_vminsh(__a, (vector short)__b); in vec_vminsh()
5932 static __inline__ vector unsigned short __ATTRS_o_ai
5933 vec_vminuh(vector unsigned short __a, vector unsigned short __b) { in vec_vminuh()
5937 static __inline__ vector unsigned short __ATTRS_o_ai
5938 vec_vminuh(vector bool short __a, vector unsigned short __b) { in vec_vminuh()
5939 return __builtin_altivec_vminuh((vector unsigned short)__a, __b); in vec_vminuh()
5942 static __inline__ vector unsigned short __ATTRS_o_ai
5943 vec_vminuh(vector unsigned short __a, vector bool short __b) { in vec_vminuh()
5944 return __builtin_altivec_vminuh(__a, (vector unsigned short)__b); in vec_vminuh()
5996 static __inline__ vector short __ATTRS_o_ai vec_mladd(vector short __a, in vec_mladd()
5997 vector short __b, in vec_mladd()
5998 vector short __c) { in vec_mladd()
6002 static __inline__ vector short __ATTRS_o_ai vec_mladd( in vec_mladd()
6003 vector short __a, vector unsigned short __b, vector unsigned short __c) { in vec_mladd()
6004 return __a * (vector short)__b + (vector short)__c; in vec_mladd()
6007 static __inline__ vector short __ATTRS_o_ai vec_mladd(vector unsigned short __a, in vec_mladd()
6008 vector short __b, in vec_mladd()
6009 vector short __c) { in vec_mladd()
6010 return (vector short)__a * __b + __c; in vec_mladd()
6013 static __inline__ vector unsigned short __ATTRS_o_ai
6014 vec_mladd(vector unsigned short __a, vector unsigned short __b, in vec_mladd()
6015 vector unsigned short __c) { in vec_mladd()
6021 static __inline__ vector short __ATTRS_o_ai vec_vmladduhm(vector short __a, in vec_vmladduhm()
6022 vector short __b, in vec_vmladduhm()
6023 vector short __c) { in vec_vmladduhm()
6027 static __inline__ vector short __ATTRS_o_ai vec_vmladduhm( in vec_vmladduhm()
6028 vector short __a, vector unsigned short __b, vector unsigned short __c) { in vec_vmladduhm()
6029 return __a * (vector short)__b + (vector short)__c; in vec_vmladduhm()
6032 static __inline__ vector short __ATTRS_o_ai
6033 vec_vmladduhm(vector unsigned short __a, vector short __b, vector short __c) { in vec_vmladduhm()
6034 return (vector short)__a * __b + __c; in vec_vmladduhm()
6037 static __inline__ vector unsigned short __ATTRS_o_ai
6038 vec_vmladduhm(vector unsigned short __a, vector unsigned short __b, in vec_vmladduhm()
6039 vector unsigned short __c) { in vec_vmladduhm()
6045 static __inline__ vector short __attribute__((__always_inline__))
6046 vec_mradds(vector short __a, vector short __b, vector short __c) { in vec_mradds()
6052 static __inline__ vector short __attribute__((__always_inline__))
6053 vec_vmhraddshs(vector short __a, vector short __b, vector short __c) { in vec_vmhraddshs()
6071 static __inline__ vector int __ATTRS_o_ai vec_msum(vector short __a, in vec_msum()
6072 vector short __b, in vec_msum()
6078 vec_msum(vector unsigned short __a, vector unsigned short __b, in vec_msum()
6111 vec_vmsumshm(vector short __a, vector short __b, vector int __c) { in vec_vmsumshm()
6118 vec_vmsumuhm(vector unsigned short __a, vector unsigned short __b, in vec_vmsumuhm()
6125 static __inline__ vector int __ATTRS_o_ai vec_msums(vector short __a, in vec_msums()
6126 vector short __b, in vec_msums()
6132 vec_msums(vector unsigned short __a, vector unsigned short __b, in vec_msums()
6140 vec_vmsumshs(vector short __a, vector short __b, vector int __c) { in vec_vmsumshs()
6147 vec_vmsumuhs(vector unsigned short __a, vector unsigned short __b, in vec_vmsumuhs()
6166 static __inline__ void __ATTRS_o_ai vec_mtvscr(vector short __a) { in vec_mtvscr()
6170 static __inline__ void __ATTRS_o_ai vec_mtvscr(vector unsigned short __a) { in vec_mtvscr()
6174 static __inline__ void __ATTRS_o_ai vec_mtvscr(vector bool short __a) { in vec_mtvscr()
6214 static __inline__ vector signed short __ATTRS_o_ai
6215 vec_mul(vector signed short __a, vector signed short __b) { in vec_mul()
6219 static __inline__ vector unsigned short __ATTRS_o_ai
6220 vec_mul(vector unsigned short __a, vector unsigned short __b) { in vec_mul()
6263 static __inline__ vector short __ATTRS_o_ai vec_mule(vector signed char __a, in vec_mule()
6272 static __inline__ vector unsigned short __ATTRS_o_ai
6281 static __inline__ vector int __ATTRS_o_ai vec_mule(vector short __a, in vec_mule()
6282 vector short __b) { in vec_mule()
6291 vec_mule(vector unsigned short __a, vector unsigned short __b) { in vec_mule()
6341 static __inline__ vector short __attribute__((__always_inline__))
6352 static __inline__ vector unsigned short __attribute__((__always_inline__))
6364 vec_vmulesh(vector short __a, vector short __b) { in vec_vmulesh()
6375 vec_vmuleuh(vector unsigned short __a, vector unsigned short __b) { in vec_vmuleuh()
6409 static __inline__ vector short __ATTRS_o_ai vec_mulo(vector signed char __a, in vec_mulo()
6418 static __inline__ vector unsigned short __ATTRS_o_ai
6427 static __inline__ vector int __ATTRS_o_ai vec_mulo(vector short __a, in vec_mulo()
6428 vector short __b) { in vec_mulo()
6437 vec_mulo(vector unsigned short __a, vector unsigned short __b) { in vec_mulo()
6487 static __inline__ vector short __attribute__((__always_inline__))
6498 static __inline__ vector unsigned short __attribute__((__always_inline__))
6510 vec_vmulosh(vector short __a, vector short __b) { in vec_vmulosh()
6521 vec_vmulouh(vector unsigned short __a, vector unsigned short __b) { in vec_vmulouh()
6567 static __inline__ vector signed short __ATTRS_o_ai
6568 vec_nand(vector signed short __a, vector signed short __b) { in vec_nand()
6572 static __inline__ vector signed short __ATTRS_o_ai
6573 vec_nand(vector signed short __a, vector bool short __b) { in vec_nand()
6574 return ~(__a & (vector signed short)__b); in vec_nand()
6577 static __inline__ vector signed short __ATTRS_o_ai
6578 vec_nand(vector bool short __a, vector signed short __b) { in vec_nand()
6579 return (vector signed short)~(__a & (vector bool short)__b); in vec_nand()
6582 static __inline__ vector unsigned short __ATTRS_o_ai
6583 vec_nand(vector unsigned short __a, vector unsigned short __b) { in vec_nand()
6587 static __inline__ vector unsigned short __ATTRS_o_ai
6588 vec_nand(vector unsigned short __a, vector bool short __b) { in vec_nand()
6589 return ~(__a & (vector unsigned short)__b); in vec_nand()
6592 static __inline__ vector bool short __ATTRS_o_ai
6593 vec_nand(vector bool short __a, vector bool short __b) { in vec_nand()
6743 static __inline__ vector short __ATTRS_o_ai vec_nor(vector short __a, in vec_nor()
6744 vector short __b) { in vec_nor()
6748 static __inline__ vector unsigned short __ATTRS_o_ai
6749 vec_nor(vector unsigned short __a, vector unsigned short __b) { in vec_nor()
6753 static __inline__ vector bool short __ATTRS_o_ai
6754 vec_nor(vector bool short __a, vector bool short __b) { in vec_nor()
6806 static __inline__ vector short __ATTRS_o_ai vec_vnor(vector short __a, in vec_vnor()
6807 vector short __b) { in vec_vnor()
6811 static __inline__ vector unsigned short __ATTRS_o_ai
6812 vec_vnor(vector unsigned short __a, vector unsigned short __b) { in vec_vnor()
6816 static __inline__ vector bool short __ATTRS_o_ai
6817 vec_vnor(vector bool short __a, vector bool short __b) { in vec_vnor()
6899 static __inline__ vector short __ATTRS_o_ai vec_or(vector short __a, in vec_or()
6900 vector short __b) { in vec_or()
6904 static __inline__ vector short __ATTRS_o_ai vec_or(vector bool short __a, in vec_or()
6905 vector short __b) { in vec_or()
6906 return (vector short)__a | __b; in vec_or()
6909 static __inline__ vector short __ATTRS_o_ai vec_or(vector short __a, in vec_or()
6910 vector bool short __b) { in vec_or()
6911 return __a | (vector short)__b; in vec_or()
6914 static __inline__ vector unsigned short __ATTRS_o_ai
6915 vec_or(vector unsigned short __a, vector unsigned short __b) { in vec_or()
6919 static __inline__ vector unsigned short __ATTRS_o_ai
6920 vec_or(vector bool short __a, vector unsigned short __b) { in vec_or()
6921 return (vector unsigned short)__a | __b; in vec_or()
6924 static __inline__ vector unsigned short __ATTRS_o_ai
6925 vec_or(vector unsigned short __a, vector bool short __b) { in vec_or()
6926 return __a | (vector unsigned short)__b; in vec_or()
6929 static __inline__ vector bool short __ATTRS_o_ai vec_or(vector bool short __a, in vec_or()
6930 vector bool short __b) { in vec_or()
7081 static __inline__ vector signed short __ATTRS_o_ai
7082 vec_orc(vector signed short __a, vector signed short __b) { in vec_orc()
7086 static __inline__ vector signed short __ATTRS_o_ai
7087 vec_orc(vector signed short __a, vector bool short __b) { in vec_orc()
7088 return __a | (vector signed short)~__b; in vec_orc()
7091 static __inline__ vector signed short __ATTRS_o_ai
7092 vec_orc(vector bool short __a, vector signed short __b) { in vec_orc()
7093 return (vector signed short)(__a | (vector bool short)~__b); in vec_orc()
7096 static __inline__ vector unsigned short __ATTRS_o_ai
7097 vec_orc(vector unsigned short __a, vector unsigned short __b) { in vec_orc()
7101 static __inline__ vector unsigned short __ATTRS_o_ai
7102 vec_orc(vector unsigned short __a, vector bool short __b) { in vec_orc()
7103 return __a | (vector unsigned short)~__b; in vec_orc()
7106 static __inline__ vector unsigned short __ATTRS_o_ai
7107 vec_orc(vector bool short __a, vector unsigned short __b) { in vec_orc()
7108 return (vector unsigned short)(__a | (vector bool short)~__b); in vec_orc()
7111 static __inline__ vector bool short __ATTRS_o_ai
7112 vec_orc(vector bool short __a, vector bool short __b) { in vec_orc()
7255 static __inline__ vector short __ATTRS_o_ai vec_vor(vector short __a, in vec_vor()
7256 vector short __b) { in vec_vor()
7260 static __inline__ vector short __ATTRS_o_ai vec_vor(vector bool short __a, in vec_vor()
7261 vector short __b) { in vec_vor()
7262 return (vector short)__a | __b; in vec_vor()
7265 static __inline__ vector short __ATTRS_o_ai vec_vor(vector short __a, in vec_vor()
7266 vector bool short __b) { in vec_vor()
7267 return __a | (vector short)__b; in vec_vor()
7270 static __inline__ vector unsigned short __ATTRS_o_ai
7271 vec_vor(vector unsigned short __a, vector unsigned short __b) { in vec_vor()
7275 static __inline__ vector unsigned short __ATTRS_o_ai
7276 vec_vor(vector bool short __a, vector unsigned short __b) { in vec_vor()
7277 return (vector unsigned short)__a | __b; in vec_vor()
7280 static __inline__ vector unsigned short __ATTRS_o_ai
7281 vec_vor(vector unsigned short __a, vector bool short __b) { in vec_vor()
7282 return __a | (vector unsigned short)__b; in vec_vor()
7285 static __inline__ vector bool short __ATTRS_o_ai
7286 vec_vor(vector bool short __a, vector bool short __b) { in vec_vor()
7389 vec_pack(vector signed short __a, vector signed short __b) { in vec_pack()
7404 vec_pack(vector unsigned short __a, vector unsigned short __b) { in vec_pack()
7419 vec_pack(vector bool short __a, vector bool short __b) { in vec_pack()
7433 static __inline__ vector short __ATTRS_o_ai vec_pack(vector int __a, in vec_pack()
7436 return (vector short)vec_perm( in vec_pack()
7441 return (vector short)vec_perm( in vec_pack()
7448 static __inline__ vector unsigned short __ATTRS_o_ai
7451 return (vector unsigned short)vec_perm( in vec_pack()
7456 return (vector unsigned short)vec_perm( in vec_pack()
7463 static __inline__ vector bool short __ATTRS_o_ai vec_pack(vector bool int __a, in vec_pack()
7466 return (vector bool short)vec_perm( in vec_pack()
7471 return (vector bool short)vec_perm( in vec_pack()
7530 static __inline__ vector unsigned short __ATTRS_o_ai
7535 return (vector unsigned short)vec_mergee(__resa, __resb); in vec_pack_to_short_fp32()
7537 return (vector unsigned short)vec_mergeo(__resa, __resb); in vec_pack_to_short_fp32()
7547 vec_vpkuhum(vector signed short __a, vector signed short __b) { in vec_vpkuhum()
7562 vec_vpkuhum(vector unsigned short __a, vector unsigned short __b) { in vec_vpkuhum()
7577 vec_vpkuhum(vector bool short __a, vector bool short __b) { in vec_vpkuhum()
7595 static __inline__ vector short __ATTRS_o_ai vec_vpkuwum(vector int __a, in vec_vpkuwum()
7598 return (vector short)vec_perm( in vec_vpkuwum()
7603 return (vector short)vec_perm( in vec_vpkuwum()
7610 static __inline__ vector unsigned short __ATTRS_o_ai
7613 return (vector unsigned short)vec_perm( in vec_vpkuwum()
7618 return (vector unsigned short)vec_perm( in vec_vpkuwum()
7625 static __inline__ vector bool short __ATTRS_o_ai
7628 return (vector bool short)vec_perm( in vec_vpkuwum()
7633 return (vector bool short)vec_perm( in vec_vpkuwum()
7715 static __inline__ vector signed char __ATTRS_o_ai vec_packs(vector short __a, in vec_packs()
7716 vector short __b) { in vec_packs()
7725 vec_packs(vector unsigned short __a, vector unsigned short __b) { in vec_packs()
7733 static __inline__ vector signed short __ATTRS_o_ai vec_packs(vector int __a, in vec_packs()
7742 static __inline__ vector unsigned short __ATTRS_o_ai
7774 vec_vpkshss(vector short __a, vector short __b) { in vec_vpkshss()
7798 vec_vpkuhus(vector unsigned short __a, vector unsigned short __b) { in vec_vpkuhus()
7821 static __inline__ vector signed short __attribute__((__always_inline__))
7832 static __inline__ vector unsigned short __attribute__((__always_inline__))
7844 vec_packsu(vector short __a, vector short __b) { in vec_packsu()
7853 vec_packsu(vector unsigned short __a, vector unsigned short __b) { in vec_packsu()
7861 static __inline__ vector unsigned short __ATTRS_o_ai
7870 static __inline__ vector unsigned short __ATTRS_o_ai
7902 vec_vpkshus(vector short __a, vector short __b) { in vec_vpkshus()
7911 vec_vpkshus(vector unsigned short __a, vector unsigned short __b) { in vec_vpkshus()
7921 static __inline__ vector unsigned short __ATTRS_o_ai
7930 static __inline__ vector unsigned short __ATTRS_o_ai
8005 static __inline__ vector short __ATTRS_o_ai vec_perm(vector signed short __a, in vec_perm()
8006 vector signed short __b, in vec_perm()
8012 return (vector signed short)__builtin_altivec_vperm_4si((vector int)__b, in vec_perm()
8015 return (vector signed short)__builtin_altivec_vperm_4si((vector int)__a, in vec_perm()
8020 static __inline__ vector unsigned short __ATTRS_o_ai
8021 vec_perm(vector unsigned short __a, vector unsigned short __b, in vec_perm()
8027 return (vector unsigned short)__builtin_altivec_vperm_4si( in vec_perm()
8030 return (vector unsigned short)__builtin_altivec_vperm_4si( in vec_perm()
8035 static __inline__ vector bool short __ATTRS_o_ai vec_perm( in vec_perm()
8036 vector bool short __a, vector bool short __b, vector unsigned char __c) { in vec_perm()
8041 return (vector bool short)__builtin_altivec_vperm_4si((vector int)__b, in vec_perm()
8044 return (vector bool short)__builtin_altivec_vperm_4si((vector int)__a, in vec_perm()
8200 static __inline__ vector short __ATTRS_o_ai
8201 vec_vperm(vector short __a, vector short __b, vector unsigned char __c) { in vec_vperm()
8205 static __inline__ vector unsigned short __ATTRS_o_ai
8206 vec_vperm(vector unsigned short __a, vector unsigned short __b, in vec_vperm()
8211 static __inline__ vector bool short __ATTRS_o_ai vec_vperm( in vec_vperm()
8212 vector bool short __a, vector bool short __b, vector unsigned char __c) { in vec_vperm()
8296 static __inline__ vector short __ATTRS_o_ai vec_rl(vector short __a, in vec_rl()
8297 vector unsigned short __b) { in vec_rl()
8301 static __inline__ vector unsigned short __ATTRS_o_ai
8302 vec_rl(vector unsigned short __a, vector unsigned short __b) { in vec_rl()
8303 return (vector unsigned short)__builtin_altivec_vrlh((vector short)__a, __b); in vec_rl()
8445 static __inline__ vector short __ATTRS_o_ai
8446 vec_vrlh(vector short __a, vector unsigned short __b) { in vec_vrlh()
8450 static __inline__ vector unsigned short __ATTRS_o_ai
8451 vec_vrlh(vector unsigned short __a, vector unsigned short __b) { in vec_vrlh()
8452 return (vector unsigned short)__builtin_altivec_vrlh((vector short)__a, __b); in vec_vrlh()
8620 static __inline__ vector short __ATTRS_o_ai vec_sel(vector short __a, in vec_sel()
8621 vector short __b, in vec_sel()
8622 vector unsigned short __c) { in vec_sel()
8623 return (__a & ~(vector short)__c) | (__b & (vector short)__c); in vec_sel()
8626 static __inline__ vector short __ATTRS_o_ai vec_sel(vector short __a, in vec_sel()
8627 vector short __b, in vec_sel()
8628 vector bool short __c) { in vec_sel()
8629 return (__a & ~(vector short)__c) | (__b & (vector short)__c); in vec_sel()
8632 static __inline__ vector unsigned short __ATTRS_o_ai
8633 vec_sel(vector unsigned short __a, vector unsigned short __b, in vec_sel()
8634 vector unsigned short __c) { in vec_sel()
8638 static __inline__ vector unsigned short __ATTRS_o_ai
8639 vec_sel(vector unsigned short __a, vector unsigned short __b, in vec_sel()
8640 vector bool short __c) { in vec_sel()
8641 return (__a & ~(vector unsigned short)__c) | in vec_sel()
8642 (__b & (vector unsigned short)__c); in vec_sel()
8645 static __inline__ vector bool short __ATTRS_o_ai vec_sel( in vec_sel()
8646 vector bool short __a, vector bool short __b, vector unsigned short __c) { in vec_sel()
8647 return (__a & ~(vector bool short)__c) | (__b & (vector bool short)__c); in vec_sel()
8650 static __inline__ vector bool short __ATTRS_o_ai
8651 vec_sel(vector bool short __a, vector bool short __b, vector bool short __c) { in vec_sel()
8794 static __inline__ vector short __ATTRS_o_ai
8795 vec_vsel(vector short __a, vector short __b, vector unsigned short __c) { in vec_vsel()
8796 return (__a & ~(vector short)__c) | (__b & (vector short)__c); in vec_vsel()
8799 static __inline__ vector short __ATTRS_o_ai vec_vsel(vector short __a, in vec_vsel()
8800 vector short __b, in vec_vsel()
8801 vector bool short __c) { in vec_vsel()
8802 return (__a & ~(vector short)__c) | (__b & (vector short)__c); in vec_vsel()
8805 static __inline__ vector unsigned short __ATTRS_o_ai
8806 vec_vsel(vector unsigned short __a, vector unsigned short __b, in vec_vsel()
8807 vector unsigned short __c) { in vec_vsel()
8811 static __inline__ vector unsigned short __ATTRS_o_ai
8812 vec_vsel(vector unsigned short __a, vector unsigned short __b, in vec_vsel()
8813 vector bool short __c) { in vec_vsel()
8814 return (__a & ~(vector unsigned short)__c) | in vec_vsel()
8815 (__b & (vector unsigned short)__c); in vec_vsel()
8818 static __inline__ vector bool short __ATTRS_o_ai vec_vsel( in vec_vsel()
8819 vector bool short __a, vector bool short __b, vector unsigned short __c) { in vec_vsel()
8820 return (__a & ~(vector bool short)__c) | (__b & (vector bool short)__c); in vec_vsel()
8823 static __inline__ vector bool short __ATTRS_o_ai
8824 vec_vsel(vector bool short __a, vector bool short __b, vector bool short __c) { in vec_vsel()
8892 static __inline__ vector unsigned short __ATTRS_o_ai
8893 vec_sl(vector unsigned short __a, vector unsigned short __b) { in vec_sl()
8894 return __a << (__b % (vector unsigned short)(sizeof(unsigned short) * in vec_sl()
8898 static __inline__ vector short __ATTRS_o_ai vec_sl(vector short __a, in vec_sl()
8899 vector unsigned short __b) { in vec_sl()
8900 return (vector short)vec_sl((vector unsigned short)__a, __b); in vec_sl()
8991 static __inline__ vector short __ATTRS_o_ai
8992 vec_vslh(vector short __a, vector unsigned short __b) { in vec_vslh()
8996 static __inline__ vector unsigned short __ATTRS_o_ai
8997 vec_vslh(vector unsigned short __a, vector unsigned short __b) { in vec_vslh()
9074 static __inline__ vector signed short __ATTRS_o_ai vec_sld( in vec_sld()
9075 vector signed short __a, vector signed short __b, unsigned const int __c) { in vec_sld()
9092 static __inline__ vector unsigned short __ATTRS_o_ai
9093 vec_sld(vector unsigned short __a, vector unsigned short __b, in vec_sld()
9111 static __inline__ vector bool short __ATTRS_o_ai
9112 vec_sld(vector bool short __a, vector bool short __b, unsigned const int __c) { in vec_sld()
9312 static __inline__ vector signed short __ATTRS_o_ai vec_sldw( in vec_sldw()
9313 vector signed short __a, vector signed short __b, unsigned const int __c) { in vec_sldw()
9317 static __inline__ vector unsigned short __ATTRS_o_ai
9318 vec_sldw(vector unsigned short __a, vector unsigned short __b, in vec_sldw()
9409 static __inline__ vector short __ATTRS_o_ai vec_vsldoi(vector short __a, in vec_vsldoi()
9410 vector short __b, in vec_vsldoi()
9428 static __inline__ vector unsigned short __ATTRS_o_ai vec_vsldoi( in vec_vsldoi()
9429 vector unsigned short __a, vector unsigned short __b, unsigned char __c) { in vec_vsldoi()
9530 vec_sll(vector signed char __a, vector unsigned short __b) { in vec_sll()
9548 vec_sll(vector unsigned char __a, vector unsigned short __b) { in vec_sll()
9566 vec_sll(vector bool char __a, vector unsigned short __b) { in vec_sll()
9577 static __inline__ vector short __ATTRS_o_ai vec_sll(vector short __a, in vec_sll()
9579 return (vector short)__builtin_altivec_vsl((vector int)__a, (vector int)__b); in vec_sll()
9582 static __inline__ vector short __ATTRS_o_ai vec_sll(vector short __a, in vec_sll()
9583 vector unsigned short __b) { in vec_sll()
9584 return (vector short)__builtin_altivec_vsl((vector int)__a, (vector int)__b); in vec_sll()
9587 static __inline__ vector short __ATTRS_o_ai vec_sll(vector short __a, in vec_sll()
9589 return (vector short)__builtin_altivec_vsl((vector int)__a, (vector int)__b); in vec_sll()
9592 static __inline__ vector unsigned short __ATTRS_o_ai
9593 vec_sll(vector unsigned short __a, vector unsigned char __b) { in vec_sll()
9594 return (vector unsigned short)__builtin_altivec_vsl((vector int)__a, in vec_sll()
9598 static __inline__ vector unsigned short __ATTRS_o_ai
9599 vec_sll(vector unsigned short __a, vector unsigned short __b) { in vec_sll()
9600 return (vector unsigned short)__builtin_altivec_vsl((vector int)__a, in vec_sll()
9604 static __inline__ vector unsigned short __ATTRS_o_ai
9605 vec_sll(vector unsigned short __a, vector unsigned int __b) { in vec_sll()
9606 return (vector unsigned short)__builtin_altivec_vsl((vector int)__a, in vec_sll()
9610 static __inline__ vector bool short __ATTRS_o_ai
9611 vec_sll(vector bool short __a, vector unsigned char __b) { in vec_sll()
9612 return (vector bool short)__builtin_altivec_vsl((vector int)__a, in vec_sll()
9616 static __inline__ vector bool short __ATTRS_o_ai
9617 vec_sll(vector bool short __a, vector unsigned short __b) { in vec_sll()
9618 return (vector bool short)__builtin_altivec_vsl((vector int)__a, in vec_sll()
9622 static __inline__ vector bool short __ATTRS_o_ai
9623 vec_sll(vector bool short __a, vector unsigned int __b) { in vec_sll()
9624 return (vector bool short)__builtin_altivec_vsl((vector int)__a, in vec_sll()
9634 vector unsigned short __b) { in vec_sll()
9649 vector unsigned short __b) { in vec_sll()
9665 vec_sll(vector unsigned int __a, vector unsigned short __b) { in vec_sll()
9683 vec_sll(vector bool int __a, vector unsigned short __b) { in vec_sll()
9717 vec_vsl(vector signed char __a, vector unsigned short __b) { in vec_vsl()
9735 vec_vsl(vector unsigned char __a, vector unsigned short __b) { in vec_vsl()
9753 vec_vsl(vector bool char __a, vector unsigned short __b) { in vec_vsl()
9764 static __inline__ vector short __ATTRS_o_ai vec_vsl(vector short __a, in vec_vsl()
9766 return (vector short)__builtin_altivec_vsl((vector int)__a, (vector int)__b); in vec_vsl()
9769 static __inline__ vector short __ATTRS_o_ai vec_vsl(vector short __a, in vec_vsl()
9770 vector unsigned short __b) { in vec_vsl()
9771 return (vector short)__builtin_altivec_vsl((vector int)__a, (vector int)__b); in vec_vsl()
9774 static __inline__ vector short __ATTRS_o_ai vec_vsl(vector short __a, in vec_vsl()
9776 return (vector short)__builtin_altivec_vsl((vector int)__a, (vector int)__b); in vec_vsl()
9779 static __inline__ vector unsigned short __ATTRS_o_ai
9780 vec_vsl(vector unsigned short __a, vector unsigned char __b) { in vec_vsl()
9781 return (vector unsigned short)__builtin_altivec_vsl((vector int)__a, in vec_vsl()
9785 static __inline__ vector unsigned short __ATTRS_o_ai
9786 vec_vsl(vector unsigned short __a, vector unsigned short __b) { in vec_vsl()
9787 return (vector unsigned short)__builtin_altivec_vsl((vector int)__a, in vec_vsl()
9791 static __inline__ vector unsigned short __ATTRS_o_ai
9792 vec_vsl(vector unsigned short __a, vector unsigned int __b) { in vec_vsl()
9793 return (vector unsigned short)__builtin_altivec_vsl((vector int)__a, in vec_vsl()
9797 static __inline__ vector bool short __ATTRS_o_ai
9798 vec_vsl(vector bool short __a, vector unsigned char __b) { in vec_vsl()
9799 return (vector bool short)__builtin_altivec_vsl((vector int)__a, in vec_vsl()
9803 static __inline__ vector bool short __ATTRS_o_ai
9804 vec_vsl(vector bool short __a, vector unsigned short __b) { in vec_vsl()
9805 return (vector bool short)__builtin_altivec_vsl((vector int)__a, in vec_vsl()
9809 static __inline__ vector bool short __ATTRS_o_ai
9810 vec_vsl(vector bool short __a, vector unsigned int __b) { in vec_vsl()
9811 return (vector bool short)__builtin_altivec_vsl((vector int)__a, in vec_vsl()
9821 vector unsigned short __b) { in vec_vsl()
9836 vector unsigned short __b) { in vec_vsl()
9852 vec_vsl(vector unsigned int __a, vector unsigned short __b) { in vec_vsl()
9870 vec_vsl(vector bool int __a, vector unsigned short __b) { in vec_vsl()
9907 static __inline__ vector short __ATTRS_o_ai vec_slo(vector short __a, in vec_slo()
9909 return (vector short)__builtin_altivec_vslo((vector int)__a, (vector int)__b); in vec_slo()
9912 static __inline__ vector short __ATTRS_o_ai vec_slo(vector short __a, in vec_slo()
9914 return (vector short)__builtin_altivec_vslo((vector int)__a, (vector int)__b); in vec_slo()
9917 static __inline__ vector unsigned short __ATTRS_o_ai
9918 vec_slo(vector unsigned short __a, vector signed char __b) { in vec_slo()
9919 return (vector unsigned short)__builtin_altivec_vslo((vector int)__a, in vec_slo()
9923 static __inline__ vector unsigned short __ATTRS_o_ai
9924 vec_slo(vector unsigned short __a, vector unsigned char __b) { in vec_slo()
9925 return (vector unsigned short)__builtin_altivec_vslo((vector int)__a, in vec_slo()
10023 static __inline__ vector short __ATTRS_o_ai vec_vslo(vector short __a, in vec_vslo()
10025 return (vector short)__builtin_altivec_vslo((vector int)__a, (vector int)__b); in vec_vslo()
10028 static __inline__ vector short __ATTRS_o_ai vec_vslo(vector short __a, in vec_vslo()
10030 return (vector short)__builtin_altivec_vslo((vector int)__a, (vector int)__b); in vec_vslo()
10033 static __inline__ vector unsigned short __ATTRS_o_ai
10034 vec_vslo(vector unsigned short __a, vector signed char __b) { in vec_vslo()
10035 return (vector unsigned short)__builtin_altivec_vslo((vector int)__a, in vec_vslo()
10039 static __inline__ vector unsigned short __ATTRS_o_ai
10040 vec_vslo(vector unsigned short __a, vector unsigned char __b) { in vec_vslo()
10041 return (vector unsigned short)__builtin_altivec_vslo((vector int)__a, in vec_vslo()
10104 static __inline__ vector signed short __ATTRS_o_ai
10105 vec_splat(vector signed short __a, unsigned const int __b) { in vec_splat()
10113 static __inline__ vector unsigned short __ATTRS_o_ai
10114 vec_splat(vector unsigned short __a, unsigned const int __b) { in vec_splat()
10122 static __inline__ vector bool short __ATTRS_o_ai
10123 vec_splat(vector bool short __a, unsigned const int __b) { in vec_splat()
10238 static __inline__ vector short __ATTRS_o_ai vec_vsplth(vector short __a, in vec_vsplth()
10247 static __inline__ vector unsigned short __ATTRS_o_ai
10248 vec_vsplth(vector unsigned short __a, unsigned char __b) { in vec_vsplth()
10256 static __inline__ vector bool short __ATTRS_o_ai
10257 vec_vsplth(vector bool short __a, unsigned char __b) { in vec_vsplth()
10337 static __inline__ vector short __ATTRS_o_ai vec_splat_s16(signed char __a) { in vec_splat_s16()
10338 return (vector short)(__a); in vec_splat_s16()
10344 static __inline__ vector short __ATTRS_o_ai vec_vspltish(signed char __a) { in vec_vspltish()
10345 return (vector short)(__a); in vec_vspltish()
10375 static __inline__ vector unsigned short __ATTRS_o_ai
10377 return (vector unsigned short)(__a); in vec_splat_u16()
10403 static __inline__ vector unsigned short __ATTRS_o_ai
10404 vec_sr(vector unsigned short __a, vector unsigned short __b) { in vec_sr()
10406 (__b % (vector unsigned short)(sizeof(unsigned short) * __CHAR_BIT__)); in vec_sr()
10409 static __inline__ vector short __ATTRS_o_ai vec_sr(vector short __a, in vec_sr()
10410 vector unsigned short __b) { in vec_sr()
10411 return (vector short)vec_sr((vector unsigned short)__a, __b); in vec_sr()
10500 static __inline__ vector short __ATTRS_o_ai
10501 vec_vsrh(vector short __a, vector unsigned short __b) { in vec_vsrh()
10505 static __inline__ vector unsigned short __ATTRS_o_ai
10506 vec_vsrh(vector unsigned short __a, vector unsigned short __b) { in vec_vsrh()
10536 static __inline__ vector short __ATTRS_o_ai vec_sra(vector short __a, in vec_sra()
10537 vector unsigned short __b) { in vec_sra()
10538 return __builtin_altivec_vsrah(__a, (vector unsigned short)__b); in vec_sra()
10541 static __inline__ vector unsigned short __ATTRS_o_ai
10542 vec_sra(vector unsigned short __a, vector unsigned short __b) { in vec_sra()
10543 return (vector unsigned short)__builtin_altivec_vsrah((vector short)__a, __b); in vec_sra()
10594 static __inline__ vector short __ATTRS_o_ai
10595 vec_vsrah(vector short __a, vector unsigned short __b) { in vec_vsrah()
10596 return __builtin_altivec_vsrah(__a, (vector unsigned short)__b); in vec_vsrah()
10599 static __inline__ vector unsigned short __ATTRS_o_ai
10600 vec_vsrah(vector unsigned short __a, vector unsigned short __b) { in vec_vsrah()
10601 return (vector unsigned short)__builtin_altivec_vsrah((vector short)__a, __b); in vec_vsrah()
10625 vec_srl(vector signed char __a, vector unsigned short __b) { in vec_srl()
10643 vec_srl(vector unsigned char __a, vector unsigned short __b) { in vec_srl()
10661 vec_srl(vector bool char __a, vector unsigned short __b) { in vec_srl()
10672 static __inline__ vector short __ATTRS_o_ai vec_srl(vector short __a, in vec_srl()
10674 return (vector short)__builtin_altivec_vsr((vector int)__a, (vector int)__b); in vec_srl()
10677 static __inline__ vector short __ATTRS_o_ai vec_srl(vector short __a, in vec_srl()
10678 vector unsigned short __b) { in vec_srl()
10679 return (vector short)__builtin_altivec_vsr((vector int)__a, (vector int)__b); in vec_srl()
10682 static __inline__ vector short __ATTRS_o_ai vec_srl(vector short __a, in vec_srl()
10684 return (vector short)__builtin_altivec_vsr((vector int)__a, (vector int)__b); in vec_srl()
10687 static __inline__ vector unsigned short __ATTRS_o_ai
10688 vec_srl(vector unsigned short __a, vector unsigned char __b) { in vec_srl()
10689 return (vector unsigned short)__builtin_altivec_vsr((vector int)__a, in vec_srl()
10693 static __inline__ vector unsigned short __ATTRS_o_ai
10694 vec_srl(vector unsigned short __a, vector unsigned short __b) { in vec_srl()
10695 return (vector unsigned short)__builtin_altivec_vsr((vector int)__a, in vec_srl()
10699 static __inline__ vector unsigned short __ATTRS_o_ai
10700 vec_srl(vector unsigned short __a, vector unsigned int __b) { in vec_srl()
10701 return (vector unsigned short)__builtin_altivec_vsr((vector int)__a, in vec_srl()
10705 static __inline__ vector bool short __ATTRS_o_ai
10706 vec_srl(vector bool short __a, vector unsigned char __b) { in vec_srl()
10707 return (vector bool short)__builtin_altivec_vsr((vector int)__a, in vec_srl()
10711 static __inline__ vector bool short __ATTRS_o_ai
10712 vec_srl(vector bool short __a, vector unsigned short __b) { in vec_srl()
10713 return (vector bool short)__builtin_altivec_vsr((vector int)__a, in vec_srl()
10717 static __inline__ vector bool short __ATTRS_o_ai
10718 vec_srl(vector bool short __a, vector unsigned int __b) { in vec_srl()
10719 return (vector bool short)__builtin_altivec_vsr((vector int)__a, in vec_srl()
10729 vector unsigned short __b) { in vec_srl()
10744 vector unsigned short __b) { in vec_srl()
10760 vec_srl(vector unsigned int __a, vector unsigned short __b) { in vec_srl()
10778 vec_srl(vector bool int __a, vector unsigned short __b) { in vec_srl()
10812 vec_vsr(vector signed char __a, vector unsigned short __b) { in vec_vsr()
10830 vec_vsr(vector unsigned char __a, vector unsigned short __b) { in vec_vsr()
10848 vec_vsr(vector bool char __a, vector unsigned short __b) { in vec_vsr()
10859 static __inline__ vector short __ATTRS_o_ai vec_vsr(vector short __a, in vec_vsr()
10861 return (vector short)__builtin_altivec_vsr((vector int)__a, (vector int)__b); in vec_vsr()
10864 static __inline__ vector short __ATTRS_o_ai vec_vsr(vector short __a, in vec_vsr()
10865 vector unsigned short __b) { in vec_vsr()
10866 return (vector short)__builtin_altivec_vsr((vector int)__a, (vector int)__b); in vec_vsr()
10869 static __inline__ vector short __ATTRS_o_ai vec_vsr(vector short __a, in vec_vsr()
10871 return (vector short)__builtin_altivec_vsr((vector int)__a, (vector int)__b); in vec_vsr()
10874 static __inline__ vector unsigned short __ATTRS_o_ai
10875 vec_vsr(vector unsigned short __a, vector unsigned char __b) { in vec_vsr()
10876 return (vector unsigned short)__builtin_altivec_vsr((vector int)__a, in vec_vsr()
10880 static __inline__ vector unsigned short __ATTRS_o_ai
10881 vec_vsr(vector unsigned short __a, vector unsigned short __b) { in vec_vsr()
10882 return (vector unsigned short)__builtin_altivec_vsr((vector int)__a, in vec_vsr()
10886 static __inline__ vector unsigned short __ATTRS_o_ai
10887 vec_vsr(vector unsigned short __a, vector unsigned int __b) { in vec_vsr()
10888 return (vector unsigned short)__builtin_altivec_vsr((vector int)__a, in vec_vsr()
10892 static __inline__ vector bool short __ATTRS_o_ai
10893 vec_vsr(vector bool short __a, vector unsigned char __b) { in vec_vsr()
10894 return (vector bool short)__builtin_altivec_vsr((vector int)__a, in vec_vsr()
10898 static __inline__ vector bool short __ATTRS_o_ai
10899 vec_vsr(vector bool short __a, vector unsigned short __b) { in vec_vsr()
10900 return (vector bool short)__builtin_altivec_vsr((vector int)__a, in vec_vsr()
10904 static __inline__ vector bool short __ATTRS_o_ai
10905 vec_vsr(vector bool short __a, vector unsigned int __b) { in vec_vsr()
10906 return (vector bool short)__builtin_altivec_vsr((vector int)__a, in vec_vsr()
10916 vector unsigned short __b) { in vec_vsr()
10931 vector unsigned short __b) { in vec_vsr()
10947 vec_vsr(vector unsigned int __a, vector unsigned short __b) { in vec_vsr()
10965 vec_vsr(vector bool int __a, vector unsigned short __b) { in vec_vsr()
11002 static __inline__ vector short __ATTRS_o_ai vec_sro(vector short __a, in vec_sro()
11004 return (vector short)__builtin_altivec_vsro((vector int)__a, (vector int)__b); in vec_sro()
11007 static __inline__ vector short __ATTRS_o_ai vec_sro(vector short __a, in vec_sro()
11009 return (vector short)__builtin_altivec_vsro((vector int)__a, (vector int)__b); in vec_sro()
11012 static __inline__ vector unsigned short __ATTRS_o_ai
11013 vec_sro(vector unsigned short __a, vector signed char __b) { in vec_sro()
11014 return (vector unsigned short)__builtin_altivec_vsro((vector int)__a, in vec_sro()
11018 static __inline__ vector unsigned short __ATTRS_o_ai
11019 vec_sro(vector unsigned short __a, vector unsigned char __b) { in vec_sro()
11020 return (vector unsigned short)__builtin_altivec_vsro((vector int)__a, in vec_sro()
11118 static __inline__ vector short __ATTRS_o_ai vec_vsro(vector short __a, in vec_vsro()
11120 return (vector short)__builtin_altivec_vsro((vector int)__a, (vector int)__b); in vec_vsro()
11123 static __inline__ vector short __ATTRS_o_ai vec_vsro(vector short __a, in vec_vsro()
11125 return (vector short)__builtin_altivec_vsro((vector int)__a, (vector int)__b); in vec_vsro()
11128 static __inline__ vector unsigned short __ATTRS_o_ai
11129 vec_vsro(vector unsigned short __a, vector signed char __b) { in vec_vsro()
11130 return (vector unsigned short)__builtin_altivec_vsro((vector int)__a, in vec_vsro()
11134 static __inline__ vector unsigned short __ATTRS_o_ai
11135 vec_vsro(vector unsigned short __a, vector unsigned char __b) { in vec_vsro()
11136 return (vector unsigned short)__builtin_altivec_vsro((vector int)__a, in vec_vsro()
11219 static __inline__ void __ATTRS_o_ai vec_st(vector short __a, long __b, in vec_st()
11220 vector short *__c) { in vec_st()
11224 static __inline__ void __ATTRS_o_ai vec_st(vector short __a, long __b, in vec_st()
11225 short *__c) { in vec_st()
11229 static __inline__ void __ATTRS_o_ai vec_st(vector unsigned short __a, long __b, in vec_st()
11230 vector unsigned short *__c) { in vec_st()
11234 static __inline__ void __ATTRS_o_ai vec_st(vector unsigned short __a, long __b, in vec_st()
11235 unsigned short *__c) { in vec_st()
11239 static __inline__ void __ATTRS_o_ai vec_st(vector bool short __a, long __b, in vec_st()
11240 short *__c) { in vec_st()
11244 static __inline__ void __ATTRS_o_ai vec_st(vector bool short __a, long __b, in vec_st()
11245 unsigned short *__c) { in vec_st()
11249 static __inline__ void __ATTRS_o_ai vec_st(vector bool short __a, long __b, in vec_st()
11250 vector bool short *__c) { in vec_st()
11255 short *__c) { in vec_st()
11260 unsigned short *__c) { in vec_st()
11350 static __inline__ void __ATTRS_o_ai vec_stvx(vector short __a, long __b, in vec_stvx()
11351 vector short *__c) { in vec_stvx()
11355 static __inline__ void __ATTRS_o_ai vec_stvx(vector short __a, long __b, in vec_stvx()
11356 short *__c) { in vec_stvx()
11360 static __inline__ void __ATTRS_o_ai vec_stvx(vector unsigned short __a, long __b, in vec_stvx()
11361 vector unsigned short *__c) { in vec_stvx()
11365 static __inline__ void __ATTRS_o_ai vec_stvx(vector unsigned short __a, long __b, in vec_stvx()
11366 unsigned short *__c) { in vec_stvx()
11370 static __inline__ void __ATTRS_o_ai vec_stvx(vector bool short __a, long __b, in vec_stvx()
11371 short *__c) { in vec_stvx()
11375 static __inline__ void __ATTRS_o_ai vec_stvx(vector bool short __a, long __b, in vec_stvx()
11376 unsigned short *__c) { in vec_stvx()
11380 static __inline__ void __ATTRS_o_ai vec_stvx(vector bool short __a, long __b, in vec_stvx()
11381 vector bool short *__c) { in vec_stvx()
11386 short *__c) { in vec_stvx()
11391 unsigned short *__c) { in vec_stvx()
11467 static __inline__ void __ATTRS_o_ai vec_ste(vector short __a, long __b, in vec_ste()
11468 short *__c) { in vec_ste()
11472 static __inline__ void __ATTRS_o_ai vec_ste(vector unsigned short __a, long __b, in vec_ste()
11473 unsigned short *__c) { in vec_ste()
11474 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_ste()
11477 static __inline__ void __ATTRS_o_ai vec_ste(vector bool short __a, long __b, in vec_ste()
11478 short *__c) { in vec_ste()
11479 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_ste()
11482 static __inline__ void __ATTRS_o_ai vec_ste(vector bool short __a, long __b, in vec_ste()
11483 unsigned short *__c) { in vec_ste()
11484 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_ste()
11488 short *__c) { in vec_ste()
11489 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_ste()
11493 unsigned short *__c) { in vec_ste()
11494 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_ste()
11545 static __inline__ void __ATTRS_o_ai vec_stvehx(vector short __a, long __b, in vec_stvehx()
11546 short *__c) { in vec_stvehx()
11550 static __inline__ void __ATTRS_o_ai vec_stvehx(vector unsigned short __a, in vec_stvehx()
11551 long __b, unsigned short *__c) { in vec_stvehx()
11552 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_stvehx()
11555 static __inline__ void __ATTRS_o_ai vec_stvehx(vector bool short __a, long __b, in vec_stvehx()
11556 short *__c) { in vec_stvehx()
11557 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_stvehx()
11560 static __inline__ void __ATTRS_o_ai vec_stvehx(vector bool short __a, long __b, in vec_stvehx()
11561 unsigned short *__c) { in vec_stvehx()
11562 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_stvehx()
11566 short *__c) { in vec_stvehx()
11567 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_stvehx()
11571 unsigned short *__c) { in vec_stvehx()
11572 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_stvehx()
11639 static __inline__ void __ATTRS_o_ai vec_stl(vector short __a, int __b, in vec_stl()
11640 vector short *__c) { in vec_stl()
11644 static __inline__ void __ATTRS_o_ai vec_stl(vector short __a, int __b, in vec_stl()
11645 short *__c) { in vec_stl()
11649 static __inline__ void __ATTRS_o_ai vec_stl(vector unsigned short __a, int __b, in vec_stl()
11650 vector unsigned short *__c) { in vec_stl()
11654 static __inline__ void __ATTRS_o_ai vec_stl(vector unsigned short __a, int __b, in vec_stl()
11655 unsigned short *__c) { in vec_stl()
11659 static __inline__ void __ATTRS_o_ai vec_stl(vector bool short __a, int __b, in vec_stl()
11660 short *__c) { in vec_stl()
11664 static __inline__ void __ATTRS_o_ai vec_stl(vector bool short __a, int __b, in vec_stl()
11665 unsigned short *__c) { in vec_stl()
11669 static __inline__ void __ATTRS_o_ai vec_stl(vector bool short __a, int __b, in vec_stl()
11670 vector bool short *__c) { in vec_stl()
11675 short *__c) { in vec_stl()
11680 unsigned short *__c) { in vec_stl()
11770 static __inline__ void __ATTRS_o_ai vec_stvxl(vector short __a, int __b, in vec_stvxl()
11771 vector short *__c) { in vec_stvxl()
11775 static __inline__ void __ATTRS_o_ai vec_stvxl(vector short __a, int __b, in vec_stvxl()
11776 short *__c) { in vec_stvxl()
11780 static __inline__ void __ATTRS_o_ai vec_stvxl(vector unsigned short __a, in vec_stvxl()
11782 vector unsigned short *__c) { in vec_stvxl()
11786 static __inline__ void __ATTRS_o_ai vec_stvxl(vector unsigned short __a, in vec_stvxl()
11787 int __b, unsigned short *__c) { in vec_stvxl()
11791 static __inline__ void __ATTRS_o_ai vec_stvxl(vector bool short __a, int __b, in vec_stvxl()
11792 short *__c) { in vec_stvxl()
11796 static __inline__ void __ATTRS_o_ai vec_stvxl(vector bool short __a, int __b, in vec_stvxl()
11797 unsigned short *__c) { in vec_stvxl()
11801 static __inline__ void __ATTRS_o_ai vec_stvxl(vector bool short __a, int __b, in vec_stvxl()
11802 vector bool short *__c) { in vec_stvxl()
11807 short *__c) { in vec_stvxl()
11812 unsigned short *__c) { in vec_stvxl()
11898 static __inline__ vector short __ATTRS_o_ai vec_sub(vector short __a, in vec_sub()
11899 vector short __b) { in vec_sub()
11903 static __inline__ vector short __ATTRS_o_ai vec_sub(vector bool short __a, in vec_sub()
11904 vector short __b) { in vec_sub()
11905 return (vector short)__a - __b; in vec_sub()
11908 static __inline__ vector short __ATTRS_o_ai vec_sub(vector short __a, in vec_sub()
11909 vector bool short __b) { in vec_sub()
11910 return __a - (vector short)__b; in vec_sub()
11913 static __inline__ vector unsigned short __ATTRS_o_ai
11914 vec_sub(vector unsigned short __a, vector unsigned short __b) { in vec_sub()
11918 static __inline__ vector unsigned short __ATTRS_o_ai
11919 vec_sub(vector bool short __a, vector unsigned short __b) { in vec_sub()
11920 return (vector unsigned short)__a - __b; in vec_sub()
11923 static __inline__ vector unsigned short __ATTRS_o_ai
11924 vec_sub(vector unsigned short __a, vector bool short __b) { in vec_sub()
11925 return __a - (vector unsigned short)__b; in vec_sub()
12032 static __inline__ vector short __ATTRS_o_ai vec_vsubuhm(vector short __a, in vec_vsubuhm()
12033 vector short __b) { in vec_vsubuhm()
12037 static __inline__ vector short __ATTRS_o_ai vec_vsubuhm(vector bool short __a, in vec_vsubuhm()
12038 vector short __b) { in vec_vsubuhm()
12039 return (vector short)__a - __b; in vec_vsubuhm()
12042 static __inline__ vector short __ATTRS_o_ai vec_vsubuhm(vector short __a, in vec_vsubuhm()
12043 vector bool short __b) { in vec_vsubuhm()
12044 return __a - (vector short)__b; in vec_vsubuhm()
12047 static __inline__ vector unsigned short __ATTRS_o_ai
12048 vec_vsubuhm(vector unsigned short __a, vector unsigned short __b) { in vec_vsubuhm()
12052 static __inline__ vector unsigned short __ATTRS_o_ai
12053 vec_vsubuhm(vector bool short __a, vector unsigned short __b) { in vec_vsubuhm()
12054 return (vector unsigned short)__a - __b; in vec_vsubuhm()
12057 static __inline__ vector unsigned short __ATTRS_o_ai
12058 vec_vsubuhm(vector unsigned short __a, vector bool short __b) { in vec_vsubuhm()
12059 return __a - (vector unsigned short)__b; in vec_vsubuhm()
12178 static __inline__ vector short __ATTRS_o_ai vec_subs(vector short __a, in vec_subs()
12179 vector short __b) { in vec_subs()
12183 static __inline__ vector short __ATTRS_o_ai vec_subs(vector bool short __a, in vec_subs()
12184 vector short __b) { in vec_subs()
12185 return __builtin_altivec_vsubshs((vector short)__a, __b); in vec_subs()
12188 static __inline__ vector short __ATTRS_o_ai vec_subs(vector short __a, in vec_subs()
12189 vector bool short __b) { in vec_subs()
12190 return __builtin_altivec_vsubshs(__a, (vector short)__b); in vec_subs()
12193 static __inline__ vector unsigned short __ATTRS_o_ai
12194 vec_subs(vector unsigned short __a, vector unsigned short __b) { in vec_subs()
12198 static __inline__ vector unsigned short __ATTRS_o_ai
12199 vec_subs(vector bool short __a, vector unsigned short __b) { in vec_subs()
12200 return __builtin_altivec_vsubuhs((vector unsigned short)__a, __b); in vec_subs()
12203 static __inline__ vector unsigned short __ATTRS_o_ai
12204 vec_subs(vector unsigned short __a, vector bool short __b) { in vec_subs()
12205 return __builtin_altivec_vsubuhs(__a, (vector unsigned short)__b); in vec_subs()
12274 static __inline__ vector short __ATTRS_o_ai vec_vsubshs(vector short __a, in vec_vsubshs()
12275 vector short __b) { in vec_vsubshs()
12279 static __inline__ vector short __ATTRS_o_ai vec_vsubshs(vector bool short __a, in vec_vsubshs()
12280 vector short __b) { in vec_vsubshs()
12281 return __builtin_altivec_vsubshs((vector short)__a, __b); in vec_vsubshs()
12284 static __inline__ vector short __ATTRS_o_ai vec_vsubshs(vector short __a, in vec_vsubshs()
12285 vector bool short __b) { in vec_vsubshs()
12286 return __builtin_altivec_vsubshs(__a, (vector short)__b); in vec_vsubshs()
12291 static __inline__ vector unsigned short __ATTRS_o_ai
12292 vec_vsubuhs(vector unsigned short __a, vector unsigned short __b) { in vec_vsubuhs()
12296 static __inline__ vector unsigned short __ATTRS_o_ai
12297 vec_vsubuhs(vector bool short __a, vector unsigned short __b) { in vec_vsubuhs()
12298 return __builtin_altivec_vsubuhs((vector unsigned short)__a, __b); in vec_vsubuhs()
12301 static __inline__ vector unsigned short __ATTRS_o_ai
12302 vec_vsubuhs(vector unsigned short __a, vector bool short __b) { in vec_vsubuhs()
12303 return __builtin_altivec_vsubuhs(__a, (vector unsigned short)__b); in vec_vsubuhs()
12497 static __inline__ vector int __ATTRS_o_ai vec_sum4s(vector signed short __a, in vec_sum4s()
12519 vec_vsum4shs(vector signed short __a, vector int __b) { in vec_vsum4shs()
12634 #define vec_vupkhpx(__a) __builtin_altivec_vupklpx((vector short)(__a))
12635 #define vec_vupklpx(__a) __builtin_altivec_vupkhpx((vector short)(__a))
12637 #define vec_vupkhpx(__a) __builtin_altivec_vupkhpx((vector short)(__a))
12638 #define vec_vupklpx(__a) __builtin_altivec_vupklpx((vector short)(__a))
12641 static __inline__ vector short __ATTRS_o_ai
12650 static __inline__ vector bool short __ATTRS_o_ai
12653 return (vector bool short)__builtin_altivec_vupklsb((vector char)__a); in vec_unpackh()
12655 return (vector bool short)__builtin_altivec_vupkhsb((vector char)__a); in vec_unpackh()
12659 static __inline__ vector int __ATTRS_o_ai vec_unpackh(vector short __a) { in vec_unpackh()
12668 vec_unpackh(vector bool short __a) { in vec_unpackh()
12670 return (vector bool int)__builtin_altivec_vupklsh((vector short)__a); in vec_unpackh()
12672 return (vector bool int)__builtin_altivec_vupkhsh((vector short)__a); in vec_unpackh()
12679 return (vector unsigned int)__builtin_altivec_vupklpx((vector short)__a); in vec_unpackh()
12681 return (vector unsigned int)__builtin_altivec_vupkhpx((vector short)__a); in vec_unpackh()
12711 static __inline__ vector short __ATTRS_o_ai
12720 static __inline__ vector bool short __ATTRS_o_ai
12723 return (vector bool short)__builtin_altivec_vupklsb((vector char)__a); in vec_vupkhsb()
12725 return (vector bool short)__builtin_altivec_vupkhsb((vector char)__a); in vec_vupkhsb()
12731 static __inline__ vector int __ATTRS_o_ai vec_vupkhsh(vector short __a) { in vec_vupkhsh()
12740 vec_vupkhsh(vector bool short __a) { in vec_vupkhsh()
12742 return (vector bool int)__builtin_altivec_vupklsh((vector short)__a); in vec_vupkhsh()
12744 return (vector bool int)__builtin_altivec_vupkhsh((vector short)__a); in vec_vupkhsh()
12751 return (vector unsigned int)__builtin_altivec_vupklpx((vector short)__a); in vec_vupkhsh()
12753 return (vector unsigned int)__builtin_altivec_vupkhpx((vector short)__a); in vec_vupkhsh()
12780 static __inline__ vector short __ATTRS_o_ai
12789 static __inline__ vector bool short __ATTRS_o_ai
12792 return (vector bool short)__builtin_altivec_vupkhsb((vector char)__a); in vec_unpackl()
12794 return (vector bool short)__builtin_altivec_vupklsb((vector char)__a); in vec_unpackl()
12798 static __inline__ vector int __ATTRS_o_ai vec_unpackl(vector short __a) { in vec_unpackl()
12807 vec_unpackl(vector bool short __a) { in vec_unpackl()
12809 return (vector bool int)__builtin_altivec_vupkhsh((vector short)__a); in vec_unpackl()
12811 return (vector bool int)__builtin_altivec_vupklsh((vector short)__a); in vec_unpackl()
12818 return (vector unsigned int)__builtin_altivec_vupkhpx((vector short)__a); in vec_unpackl()
12820 return (vector unsigned int)__builtin_altivec_vupklpx((vector short)__a); in vec_unpackl()
12850 static __inline__ vector short __ATTRS_o_ai
12859 static __inline__ vector bool short __ATTRS_o_ai
12862 return (vector bool short)__builtin_altivec_vupkhsb((vector char)__a); in vec_vupklsb()
12864 return (vector bool short)__builtin_altivec_vupklsb((vector char)__a); in vec_vupklsb()
12870 static __inline__ vector int __ATTRS_o_ai vec_vupklsh(vector short __a) { in vec_vupklsh()
12879 vec_vupklsh(vector bool short __a) { in vec_vupklsh()
12881 return (vector bool int)__builtin_altivec_vupkhsh((vector short)__a); in vec_vupklsh()
12883 return (vector bool int)__builtin_altivec_vupklsh((vector short)__a); in vec_vupklsh()
12890 return (vector unsigned int)__builtin_altivec_vupkhpx((vector short)__a); in vec_vupklsh()
12892 return (vector unsigned int)__builtin_altivec_vupklpx((vector short)__a); in vec_vupklsh()
12976 static __inline__ vector bool short __ATTRS_o_ai
12977 vec_vsx_ld(int __a, const vector bool short *__b) { in vec_vsx_ld()
12978 return (vector bool short)__builtin_vsx_lxvw4x(__a, __b); in vec_vsx_ld()
12981 static __inline__ vector signed short __ATTRS_o_ai
12982 vec_vsx_ld(int __a, const vector signed short *__b) { in vec_vsx_ld()
12983 return (vector signed short)__builtin_vsx_lxvw4x(__a, __b); in vec_vsx_ld()
12986 static __inline__ vector signed short __ATTRS_o_ai
12987 vec_vsx_ld(int __a, const signed short *__b) { in vec_vsx_ld()
12988 return (vector signed short)__builtin_vsx_lxvw4x(__a, __b); in vec_vsx_ld()
12991 static __inline__ vector unsigned short __ATTRS_o_ai
12992 vec_vsx_ld(int __a, const vector unsigned short *__b) { in vec_vsx_ld()
12993 return (vector unsigned short)__builtin_vsx_lxvw4x(__a, __b); in vec_vsx_ld()
12996 static __inline__ vector unsigned short __ATTRS_o_ai
12997 vec_vsx_ld(int __a, const unsigned short *__b) { in vec_vsx_ld()
12998 return (vector unsigned short)__builtin_vsx_lxvw4x(__a, __b); in vec_vsx_ld()
13099 static __inline__ void __ATTRS_o_ai vec_vsx_st(vector bool short __a, int __b, in vec_vsx_st()
13100 vector bool short *__c) { in vec_vsx_st()
13104 static __inline__ void __ATTRS_o_ai vec_vsx_st(vector bool short __a, int __b, in vec_vsx_st()
13105 signed short *__c) { in vec_vsx_st()
13109 static __inline__ void __ATTRS_o_ai vec_vsx_st(vector bool short __a, int __b, in vec_vsx_st()
13110 unsigned short *__c) { in vec_vsx_st()
13113 static __inline__ void __ATTRS_o_ai vec_vsx_st(vector signed short __a, int __b, in vec_vsx_st()
13114 vector signed short *__c) { in vec_vsx_st()
13118 static __inline__ void __ATTRS_o_ai vec_vsx_st(vector signed short __a, int __b, in vec_vsx_st()
13119 signed short *__c) { in vec_vsx_st()
13123 static __inline__ void __ATTRS_o_ai vec_vsx_st(vector unsigned short __a, in vec_vsx_st()
13125 vector unsigned short *__c) { in vec_vsx_st()
13129 static __inline__ void __ATTRS_o_ai vec_vsx_st(vector unsigned short __a, in vec_vsx_st()
13130 int __b, unsigned short *__c) { in vec_vsx_st()
13226 static __inline__ vector short __ATTRS_o_ai vec_xor(vector short __a, in vec_xor()
13227 vector short __b) { in vec_xor()
13231 static __inline__ vector short __ATTRS_o_ai vec_xor(vector bool short __a, in vec_xor()
13232 vector short __b) { in vec_xor()
13233 return (vector short)__a ^ __b; in vec_xor()
13236 static __inline__ vector short __ATTRS_o_ai vec_xor(vector short __a, in vec_xor()
13237 vector bool short __b) { in vec_xor()
13238 return __a ^ (vector short)__b; in vec_xor()
13241 static __inline__ vector unsigned short __ATTRS_o_ai
13242 vec_xor(vector unsigned short __a, vector unsigned short __b) { in vec_xor()
13246 static __inline__ vector unsigned short __ATTRS_o_ai
13247 vec_xor(vector bool short __a, vector unsigned short __b) { in vec_xor()
13248 return (vector unsigned short)__a ^ __b; in vec_xor()
13251 static __inline__ vector unsigned short __ATTRS_o_ai
13252 vec_xor(vector unsigned short __a, vector bool short __b) { in vec_xor()
13253 return __a ^ (vector unsigned short)__b; in vec_xor()
13256 static __inline__ vector bool short __ATTRS_o_ai
13257 vec_xor(vector bool short __a, vector bool short __b) { in vec_xor()
13409 static __inline__ vector short __ATTRS_o_ai vec_vxor(vector short __a, in vec_vxor()
13410 vector short __b) { in vec_vxor()
13414 static __inline__ vector short __ATTRS_o_ai vec_vxor(vector bool short __a, in vec_vxor()
13415 vector short __b) { in vec_vxor()
13416 return (vector short)__a ^ __b; in vec_vxor()
13419 static __inline__ vector short __ATTRS_o_ai vec_vxor(vector short __a, in vec_vxor()
13420 vector bool short __b) { in vec_vxor()
13421 return __a ^ (vector short)__b; in vec_vxor()
13424 static __inline__ vector unsigned short __ATTRS_o_ai
13425 vec_vxor(vector unsigned short __a, vector unsigned short __b) { in vec_vxor()
13429 static __inline__ vector unsigned short __ATTRS_o_ai
13430 vec_vxor(vector bool short __a, vector unsigned short __b) { in vec_vxor()
13431 return (vector unsigned short)__a ^ __b; in vec_vxor()
13434 static __inline__ vector unsigned short __ATTRS_o_ai
13435 vec_vxor(vector unsigned short __a, vector bool short __b) { in vec_vxor()
13436 return __a ^ (vector unsigned short)__b; in vec_vxor()
13439 static __inline__ vector bool short __ATTRS_o_ai
13440 vec_vxor(vector bool short __a, vector bool short __b) { in vec_vxor()
13556 static __inline__ signed short __ATTRS_o_ai vec_extract(vector signed short __a, in vec_extract()
13561 static __inline__ unsigned short __ATTRS_o_ai
13562 vec_extract(vector unsigned short __a, signed int __b) { in vec_extract()
13566 static __inline__ unsigned short __ATTRS_o_ai vec_extract(vector bool short __a, in vec_extract()
13643 vec_extract_fp32_from_shorth(vector unsigned short __a) { in vec_extract_fp32_from_shorth()
13644 vector unsigned short __b = in vec_extract_fp32_from_shorth()
13654 vec_extract_fp32_from_shortl(vector unsigned short __a) { in vec_extract_fp32_from_shortl()
13655 vector unsigned short __b = in vec_extract_fp32_from_shortl()
13686 static __inline__ vector signed short __ATTRS_o_ai
13687 vec_insert(signed short __a, vector signed short __b, int __c) { in vec_insert()
13692 static __inline__ vector unsigned short __ATTRS_o_ai
13693 vec_insert(unsigned short __a, vector unsigned short __b, int __c) { in vec_insert()
13698 static __inline__ vector bool short __ATTRS_o_ai
13699 vec_insert(unsigned short __a, vector bool short __b, int __c) { in vec_insert()
13788 static __inline__ vector short __ATTRS_o_ai vec_lvlx(int __a, in vec_lvlx()
13789 const short *__b) { in vec_lvlx()
13790 return vec_perm(vec_ld(__a, __b), (vector short)(0), vec_lvsl(__a, __b)); in vec_lvlx()
13793 static __inline__ vector short __ATTRS_o_ai vec_lvlx(int __a, in vec_lvlx()
13794 const vector short *__b) { in vec_lvlx()
13795 return vec_perm(vec_ld(__a, __b), (vector short)(0), in vec_lvlx()
13799 static __inline__ vector unsigned short __ATTRS_o_ai
13800 vec_lvlx(int __a, const unsigned short *__b) { in vec_lvlx()
13801 return vec_perm(vec_ld(__a, __b), (vector unsigned short)(0), in vec_lvlx()
13805 static __inline__ vector unsigned short __ATTRS_o_ai
13806 vec_lvlx(int __a, const vector unsigned short *__b) { in vec_lvlx()
13807 return vec_perm(vec_ld(__a, __b), (vector unsigned short)(0), in vec_lvlx()
13811 static __inline__ vector bool short __ATTRS_o_ai
13812 vec_lvlx(int __a, const vector bool short *__b) { in vec_lvlx()
13813 return vec_perm(vec_ld(__a, __b), (vector bool short)(0), in vec_lvlx()
13894 static __inline__ vector short __ATTRS_o_ai vec_lvlxl(int __a, in vec_lvlxl()
13895 const short *__b) { in vec_lvlxl()
13896 return vec_perm(vec_ldl(__a, __b), (vector short)(0), vec_lvsl(__a, __b)); in vec_lvlxl()
13899 static __inline__ vector short __ATTRS_o_ai vec_lvlxl(int __a, in vec_lvlxl()
13900 const vector short *__b) { in vec_lvlxl()
13901 return vec_perm(vec_ldl(__a, __b), (vector short)(0), in vec_lvlxl()
13905 static __inline__ vector unsigned short __ATTRS_o_ai
13906 vec_lvlxl(int __a, const unsigned short *__b) { in vec_lvlxl()
13907 return vec_perm(vec_ldl(__a, __b), (vector unsigned short)(0), in vec_lvlxl()
13911 static __inline__ vector unsigned short __ATTRS_o_ai
13912 vec_lvlxl(int __a, const vector unsigned short *__b) { in vec_lvlxl()
13913 return vec_perm(vec_ldl(__a, __b), (vector unsigned short)(0), in vec_lvlxl()
13917 static __inline__ vector bool short __ATTRS_o_ai
13918 vec_lvlxl(int __a, const vector bool short *__b) { in vec_lvlxl()
13919 return vec_perm(vec_ldl(__a, __b), (vector bool short)(0), in vec_lvlxl()
14000 static __inline__ vector short __ATTRS_o_ai vec_lvrx(int __a, in vec_lvrx()
14001 const short *__b) { in vec_lvrx()
14002 return vec_perm((vector short)(0), vec_ld(__a, __b), vec_lvsl(__a, __b)); in vec_lvrx()
14005 static __inline__ vector short __ATTRS_o_ai vec_lvrx(int __a, in vec_lvrx()
14006 const vector short *__b) { in vec_lvrx()
14007 return vec_perm((vector short)(0), vec_ld(__a, __b), in vec_lvrx()
14011 static __inline__ vector unsigned short __ATTRS_o_ai
14012 vec_lvrx(int __a, const unsigned short *__b) { in vec_lvrx()
14013 return vec_perm((vector unsigned short)(0), vec_ld(__a, __b), in vec_lvrx()
14017 static __inline__ vector unsigned short __ATTRS_o_ai
14018 vec_lvrx(int __a, const vector unsigned short *__b) { in vec_lvrx()
14019 return vec_perm((vector unsigned short)(0), vec_ld(__a, __b), in vec_lvrx()
14023 static __inline__ vector bool short __ATTRS_o_ai
14024 vec_lvrx(int __a, const vector bool short *__b) { in vec_lvrx()
14025 return vec_perm((vector bool short)(0), vec_ld(__a, __b), in vec_lvrx()
14106 static __inline__ vector short __ATTRS_o_ai vec_lvrxl(int __a, in vec_lvrxl()
14107 const short *__b) { in vec_lvrxl()
14108 return vec_perm((vector short)(0), vec_ldl(__a, __b), vec_lvsl(__a, __b)); in vec_lvrxl()
14111 static __inline__ vector short __ATTRS_o_ai vec_lvrxl(int __a, in vec_lvrxl()
14112 const vector short *__b) { in vec_lvrxl()
14113 return vec_perm((vector short)(0), vec_ldl(__a, __b), in vec_lvrxl()
14117 static __inline__ vector unsigned short __ATTRS_o_ai
14118 vec_lvrxl(int __a, const unsigned short *__b) { in vec_lvrxl()
14119 return vec_perm((vector unsigned short)(0), vec_ldl(__a, __b), in vec_lvrxl()
14123 static __inline__ vector unsigned short __ATTRS_o_ai
14124 vec_lvrxl(int __a, const vector unsigned short *__b) { in vec_lvrxl()
14125 return vec_perm((vector unsigned short)(0), vec_ldl(__a, __b), in vec_lvrxl()
14129 static __inline__ vector bool short __ATTRS_o_ai
14130 vec_lvrxl(int __a, const vector bool short *__b) { in vec_lvrxl()
14131 return vec_perm((vector bool short)(0), vec_ldl(__a, __b), in vec_lvrxl()
14215 static __inline__ void __ATTRS_o_ai vec_stvlx(vector short __a, int __b, in vec_stvlx()
14216 short *__c) { in vec_stvlx()
14221 static __inline__ void __ATTRS_o_ai vec_stvlx(vector short __a, int __b, in vec_stvlx()
14222 vector short *__c) { in vec_stvlx()
14228 static __inline__ void __ATTRS_o_ai vec_stvlx(vector unsigned short __a, in vec_stvlx()
14229 int __b, unsigned short *__c) { in vec_stvlx()
14234 static __inline__ void __ATTRS_o_ai vec_stvlx(vector unsigned short __a, in vec_stvlx()
14236 vector unsigned short *__c) { in vec_stvlx()
14242 static __inline__ void __ATTRS_o_ai vec_stvlx(vector bool short __a, int __b, in vec_stvlx()
14243 vector bool short *__c) { in vec_stvlx()
14332 static __inline__ void __ATTRS_o_ai vec_stvlxl(vector short __a, int __b, in vec_stvlxl()
14333 short *__c) { in vec_stvlxl()
14338 static __inline__ void __ATTRS_o_ai vec_stvlxl(vector short __a, int __b, in vec_stvlxl()
14339 vector short *__c) { in vec_stvlxl()
14345 static __inline__ void __ATTRS_o_ai vec_stvlxl(vector unsigned short __a, in vec_stvlxl()
14346 int __b, unsigned short *__c) { in vec_stvlxl()
14351 static __inline__ void __ATTRS_o_ai vec_stvlxl(vector unsigned short __a, in vec_stvlxl()
14353 vector unsigned short *__c) { in vec_stvlxl()
14359 static __inline__ void __ATTRS_o_ai vec_stvlxl(vector bool short __a, int __b, in vec_stvlxl()
14360 vector bool short *__c) { in vec_stvlxl()
14448 static __inline__ void __ATTRS_o_ai vec_stvrx(vector short __a, int __b, in vec_stvrx()
14449 short *__c) { in vec_stvrx()
14454 static __inline__ void __ATTRS_o_ai vec_stvrx(vector short __a, int __b, in vec_stvrx()
14455 vector short *__c) { in vec_stvrx()
14461 static __inline__ void __ATTRS_o_ai vec_stvrx(vector unsigned short __a, in vec_stvrx()
14462 int __b, unsigned short *__c) { in vec_stvrx()
14467 static __inline__ void __ATTRS_o_ai vec_stvrx(vector unsigned short __a, in vec_stvrx()
14469 vector unsigned short *__c) { in vec_stvrx()
14475 static __inline__ void __ATTRS_o_ai vec_stvrx(vector bool short __a, int __b, in vec_stvrx()
14476 vector bool short *__c) { in vec_stvrx()
14565 static __inline__ void __ATTRS_o_ai vec_stvrxl(vector short __a, int __b, in vec_stvrxl()
14566 short *__c) { in vec_stvrxl()
14571 static __inline__ void __ATTRS_o_ai vec_stvrxl(vector short __a, int __b, in vec_stvrxl()
14572 vector short *__c) { in vec_stvrxl()
14578 static __inline__ void __ATTRS_o_ai vec_stvrxl(vector unsigned short __a, in vec_stvrxl()
14579 int __b, unsigned short *__c) { in vec_stvrxl()
14584 static __inline__ void __ATTRS_o_ai vec_stvrxl(vector unsigned short __a, in vec_stvrxl()
14586 vector unsigned short *__c) { in vec_stvrxl()
14592 static __inline__ void __ATTRS_o_ai vec_stvrxl(vector bool short __a, int __b, in vec_stvrxl()
14593 vector bool short *__c) { in vec_stvrxl()
14668 static __inline__ vector short __ATTRS_o_ai vec_promote(short __a, int __b) { in vec_promote()
14669 const vector short __zero = (vector short)(0); in vec_promote()
14670 vector short __res = in vec_promote()
14676 static __inline__ vector unsigned short __ATTRS_o_ai
14677 vec_promote(unsigned short __a, int __b) { in vec_promote()
14678 const vector unsigned short __zero = (vector unsigned short)(0); in vec_promote()
14679 vector unsigned short __res = in vec_promote()
14746 static __inline__ vector short __ATTRS_o_ai vec_splats(short __a) { in vec_splats()
14747 return (vector short)(__a); in vec_splats()
14750 static __inline__ vector unsigned short __ATTRS_o_ai
14751 vec_splats(unsigned short __a) { in vec_splats()
14752 return (vector unsigned short)(__a); in vec_splats()
14844 static __inline__ int __ATTRS_o_ai vec_all_eq(vector short __a, in vec_all_eq()
14845 vector short __b) { in vec_all_eq()
14849 static __inline__ int __ATTRS_o_ai vec_all_eq(vector short __a, in vec_all_eq()
14850 vector bool short __b) { in vec_all_eq()
14851 return __builtin_altivec_vcmpequh_p(__CR6_LT, __a, (vector short)__b); in vec_all_eq()
14854 static __inline__ int __ATTRS_o_ai vec_all_eq(vector unsigned short __a, in vec_all_eq()
14855 vector unsigned short __b) { in vec_all_eq()
14856 return __builtin_altivec_vcmpequh_p(__CR6_LT, (vector short)__a, in vec_all_eq()
14857 (vector short)__b); in vec_all_eq()
14860 static __inline__ int __ATTRS_o_ai vec_all_eq(vector unsigned short __a, in vec_all_eq()
14861 vector bool short __b) { in vec_all_eq()
14862 return __builtin_altivec_vcmpequh_p(__CR6_LT, (vector short)__a, in vec_all_eq()
14863 (vector short)__b); in vec_all_eq()
14866 static __inline__ int __ATTRS_o_ai vec_all_eq(vector bool short __a, in vec_all_eq()
14867 vector short __b) { in vec_all_eq()
14868 return __builtin_altivec_vcmpequh_p(__CR6_LT, (vector short)__a, in vec_all_eq()
14869 (vector short)__b); in vec_all_eq()
14872 static __inline__ int __ATTRS_o_ai vec_all_eq(vector bool short __a, in vec_all_eq()
14873 vector unsigned short __b) { in vec_all_eq()
14874 return __builtin_altivec_vcmpequh_p(__CR6_LT, (vector short)__a, in vec_all_eq()
14875 (vector short)__b); in vec_all_eq()
14878 static __inline__ int __ATTRS_o_ai vec_all_eq(vector bool short __a, in vec_all_eq()
14879 vector bool short __b) { in vec_all_eq()
14880 return __builtin_altivec_vcmpequh_p(__CR6_LT, (vector short)__a, in vec_all_eq()
14881 (vector short)__b); in vec_all_eq()
14886 return __builtin_altivec_vcmpequh_p(__CR6_LT, (vector short)__a, in vec_all_eq()
14887 (vector short)__b); in vec_all_eq()
15046 static __inline__ int __ATTRS_o_ai vec_all_ge(vector short __a, in vec_all_ge()
15047 vector short __b) { in vec_all_ge()
15051 static __inline__ int __ATTRS_o_ai vec_all_ge(vector short __a, in vec_all_ge()
15052 vector bool short __b) { in vec_all_ge()
15053 return __builtin_altivec_vcmpgtsh_p(__CR6_EQ, (vector short)__b, __a); in vec_all_ge()
15056 static __inline__ int __ATTRS_o_ai vec_all_ge(vector unsigned short __a, in vec_all_ge()
15057 vector unsigned short __b) { in vec_all_ge()
15061 static __inline__ int __ATTRS_o_ai vec_all_ge(vector unsigned short __a, in vec_all_ge()
15062 vector bool short __b) { in vec_all_ge()
15063 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ, (vector unsigned short)__b, in vec_all_ge()
15067 static __inline__ int __ATTRS_o_ai vec_all_ge(vector bool short __a, in vec_all_ge()
15068 vector short __b) { in vec_all_ge()
15069 return __builtin_altivec_vcmpgtsh_p(__CR6_EQ, __b, (vector signed short)__a); in vec_all_ge()
15072 static __inline__ int __ATTRS_o_ai vec_all_ge(vector bool short __a, in vec_all_ge()
15073 vector unsigned short __b) { in vec_all_ge()
15075 (vector unsigned short)__a); in vec_all_ge()
15078 static __inline__ int __ATTRS_o_ai vec_all_ge(vector bool short __a, in vec_all_ge()
15079 vector bool short __b) { in vec_all_ge()
15080 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ, (vector unsigned short)__b, in vec_all_ge()
15081 (vector unsigned short)__a); in vec_all_ge()
15226 static __inline__ int __ATTRS_o_ai vec_all_gt(vector short __a, in vec_all_gt()
15227 vector short __b) { in vec_all_gt()
15231 static __inline__ int __ATTRS_o_ai vec_all_gt(vector short __a, in vec_all_gt()
15232 vector bool short __b) { in vec_all_gt()
15233 return __builtin_altivec_vcmpgtsh_p(__CR6_LT, __a, (vector short)__b); in vec_all_gt()
15236 static __inline__ int __ATTRS_o_ai vec_all_gt(vector unsigned short __a, in vec_all_gt()
15237 vector unsigned short __b) { in vec_all_gt()
15241 static __inline__ int __ATTRS_o_ai vec_all_gt(vector unsigned short __a, in vec_all_gt()
15242 vector bool short __b) { in vec_all_gt()
15244 (vector unsigned short)__b); in vec_all_gt()
15247 static __inline__ int __ATTRS_o_ai vec_all_gt(vector bool short __a, in vec_all_gt()
15248 vector short __b) { in vec_all_gt()
15249 return __builtin_altivec_vcmpgtsh_p(__CR6_LT, (vector signed short)__a, __b); in vec_all_gt()
15252 static __inline__ int __ATTRS_o_ai vec_all_gt(vector bool short __a, in vec_all_gt()
15253 vector unsigned short __b) { in vec_all_gt()
15254 return __builtin_altivec_vcmpgtuh_p(__CR6_LT, (vector unsigned short)__a, in vec_all_gt()
15258 static __inline__ int __ATTRS_o_ai vec_all_gt(vector bool short __a, in vec_all_gt()
15259 vector bool short __b) { in vec_all_gt()
15260 return __builtin_altivec_vcmpgtuh_p(__CR6_LT, (vector unsigned short)__a, in vec_all_gt()
15261 (vector unsigned short)__b); in vec_all_gt()
15413 static __inline__ int __ATTRS_o_ai vec_all_le(vector short __a, in vec_all_le()
15414 vector short __b) { in vec_all_le()
15418 static __inline__ int __ATTRS_o_ai vec_all_le(vector short __a, in vec_all_le()
15419 vector bool short __b) { in vec_all_le()
15420 return __builtin_altivec_vcmpgtsh_p(__CR6_EQ, __a, (vector short)__b); in vec_all_le()
15423 static __inline__ int __ATTRS_o_ai vec_all_le(vector unsigned short __a, in vec_all_le()
15424 vector unsigned short __b) { in vec_all_le()
15428 static __inline__ int __ATTRS_o_ai vec_all_le(vector unsigned short __a, in vec_all_le()
15429 vector bool short __b) { in vec_all_le()
15431 (vector unsigned short)__b); in vec_all_le()
15434 static __inline__ int __ATTRS_o_ai vec_all_le(vector bool short __a, in vec_all_le()
15435 vector short __b) { in vec_all_le()
15436 return __builtin_altivec_vcmpgtsh_p(__CR6_EQ, (vector signed short)__a, __b); in vec_all_le()
15439 static __inline__ int __ATTRS_o_ai vec_all_le(vector bool short __a, in vec_all_le()
15440 vector unsigned short __b) { in vec_all_le()
15441 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ, (vector unsigned short)__a, in vec_all_le()
15445 static __inline__ int __ATTRS_o_ai vec_all_le(vector bool short __a, in vec_all_le()
15446 vector bool short __b) { in vec_all_le()
15447 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ, (vector unsigned short)__a, in vec_all_le()
15448 (vector unsigned short)__b); in vec_all_le()
15594 static __inline__ int __ATTRS_o_ai vec_all_lt(vector short __a, in vec_all_lt()
15595 vector short __b) { in vec_all_lt()
15599 static __inline__ int __ATTRS_o_ai vec_all_lt(vector short __a, in vec_all_lt()
15600 vector bool short __b) { in vec_all_lt()
15601 return __builtin_altivec_vcmpgtsh_p(__CR6_LT, (vector short)__b, __a); in vec_all_lt()
15604 static __inline__ int __ATTRS_o_ai vec_all_lt(vector unsigned short __a, in vec_all_lt()
15605 vector unsigned short __b) { in vec_all_lt()
15609 static __inline__ int __ATTRS_o_ai vec_all_lt(vector unsigned short __a, in vec_all_lt()
15610 vector bool short __b) { in vec_all_lt()
15611 return __builtin_altivec_vcmpgtuh_p(__CR6_LT, (vector unsigned short)__b, in vec_all_lt()
15615 static __inline__ int __ATTRS_o_ai vec_all_lt(vector bool short __a, in vec_all_lt()
15616 vector short __b) { in vec_all_lt()
15617 return __builtin_altivec_vcmpgtsh_p(__CR6_LT, __b, (vector signed short)__a); in vec_all_lt()
15620 static __inline__ int __ATTRS_o_ai vec_all_lt(vector bool short __a, in vec_all_lt()
15621 vector unsigned short __b) { in vec_all_lt()
15623 (vector unsigned short)__a); in vec_all_lt()
15626 static __inline__ int __ATTRS_o_ai vec_all_lt(vector bool short __a, in vec_all_lt()
15627 vector bool short __b) { in vec_all_lt()
15628 return __builtin_altivec_vcmpgtuh_p(__CR6_LT, (vector unsigned short)__b, in vec_all_lt()
15629 (vector unsigned short)__a); in vec_all_lt()
15797 static __inline__ int __ATTRS_o_ai vec_all_ne(vector short __a, in vec_all_ne()
15798 vector short __b) { in vec_all_ne()
15802 static __inline__ int __ATTRS_o_ai vec_all_ne(vector short __a, in vec_all_ne()
15803 vector bool short __b) { in vec_all_ne()
15804 return __builtin_altivec_vcmpequh_p(__CR6_EQ, __a, (vector short)__b); in vec_all_ne()
15807 static __inline__ int __ATTRS_o_ai vec_all_ne(vector unsigned short __a, in vec_all_ne()
15808 vector unsigned short __b) { in vec_all_ne()
15809 return __builtin_altivec_vcmpequh_p(__CR6_EQ, (vector short)__a, in vec_all_ne()
15810 (vector short)__b); in vec_all_ne()
15813 static __inline__ int __ATTRS_o_ai vec_all_ne(vector unsigned short __a, in vec_all_ne()
15814 vector bool short __b) { in vec_all_ne()
15815 return __builtin_altivec_vcmpequh_p(__CR6_EQ, (vector short)__a, in vec_all_ne()
15816 (vector short)__b); in vec_all_ne()
15819 static __inline__ int __ATTRS_o_ai vec_all_ne(vector bool short __a, in vec_all_ne()
15820 vector short __b) { in vec_all_ne()
15821 return __builtin_altivec_vcmpequh_p(__CR6_EQ, (vector short)__a, in vec_all_ne()
15822 (vector short)__b); in vec_all_ne()
15825 static __inline__ int __ATTRS_o_ai vec_all_ne(vector bool short __a, in vec_all_ne()
15826 vector unsigned short __b) { in vec_all_ne()
15827 return __builtin_altivec_vcmpequh_p(__CR6_EQ, (vector short)__a, in vec_all_ne()
15828 (vector short)__b); in vec_all_ne()
15831 static __inline__ int __ATTRS_o_ai vec_all_ne(vector bool short __a, in vec_all_ne()
15832 vector bool short __b) { in vec_all_ne()
15833 return __builtin_altivec_vcmpequh_p(__CR6_EQ, (vector short)__a, in vec_all_ne()
15834 (vector short)__b); in vec_all_ne()
15839 return __builtin_altivec_vcmpequh_p(__CR6_EQ, (vector short)__a, in vec_all_ne()
15840 (vector short)__b); in vec_all_ne()
16094 static __inline__ int __ATTRS_o_ai vec_any_eq(vector short __a, in vec_any_eq()
16095 vector short __b) { in vec_any_eq()
16099 static __inline__ int __ATTRS_o_ai vec_any_eq(vector short __a, in vec_any_eq()
16100 vector bool short __b) { in vec_any_eq()
16101 return __builtin_altivec_vcmpequh_p(__CR6_EQ_REV, __a, (vector short)__b); in vec_any_eq()
16104 static __inline__ int __ATTRS_o_ai vec_any_eq(vector unsigned short __a, in vec_any_eq()
16105 vector unsigned short __b) { in vec_any_eq()
16106 return __builtin_altivec_vcmpequh_p(__CR6_EQ_REV, (vector short)__a, in vec_any_eq()
16107 (vector short)__b); in vec_any_eq()
16110 static __inline__ int __ATTRS_o_ai vec_any_eq(vector unsigned short __a, in vec_any_eq()
16111 vector bool short __b) { in vec_any_eq()
16112 return __builtin_altivec_vcmpequh_p(__CR6_EQ_REV, (vector short)__a, in vec_any_eq()
16113 (vector short)__b); in vec_any_eq()
16116 static __inline__ int __ATTRS_o_ai vec_any_eq(vector bool short __a, in vec_any_eq()
16117 vector short __b) { in vec_any_eq()
16118 return __builtin_altivec_vcmpequh_p(__CR6_EQ_REV, (vector short)__a, in vec_any_eq()
16119 (vector short)__b); in vec_any_eq()
16122 static __inline__ int __ATTRS_o_ai vec_any_eq(vector bool short __a, in vec_any_eq()
16123 vector unsigned short __b) { in vec_any_eq()
16124 return __builtin_altivec_vcmpequh_p(__CR6_EQ_REV, (vector short)__a, in vec_any_eq()
16125 (vector short)__b); in vec_any_eq()
16128 static __inline__ int __ATTRS_o_ai vec_any_eq(vector bool short __a, in vec_any_eq()
16129 vector bool short __b) { in vec_any_eq()
16130 return __builtin_altivec_vcmpequh_p(__CR6_EQ_REV, (vector short)__a, in vec_any_eq()
16131 (vector short)__b); in vec_any_eq()
16136 return __builtin_altivec_vcmpequh_p(__CR6_EQ_REV, (vector short)__a, in vec_any_eq()
16137 (vector short)__b); in vec_any_eq()
16300 static __inline__ int __ATTRS_o_ai vec_any_ge(vector short __a, in vec_any_ge()
16301 vector short __b) { in vec_any_ge()
16305 static __inline__ int __ATTRS_o_ai vec_any_ge(vector short __a, in vec_any_ge()
16306 vector bool short __b) { in vec_any_ge()
16307 return __builtin_altivec_vcmpgtsh_p(__CR6_LT_REV, (vector short)__b, __a); in vec_any_ge()
16310 static __inline__ int __ATTRS_o_ai vec_any_ge(vector unsigned short __a, in vec_any_ge()
16311 vector unsigned short __b) { in vec_any_ge()
16315 static __inline__ int __ATTRS_o_ai vec_any_ge(vector unsigned short __a, in vec_any_ge()
16316 vector bool short __b) { in vec_any_ge()
16317 return __builtin_altivec_vcmpgtuh_p(__CR6_LT_REV, (vector unsigned short)__b, in vec_any_ge()
16321 static __inline__ int __ATTRS_o_ai vec_any_ge(vector bool short __a, in vec_any_ge()
16322 vector short __b) { in vec_any_ge()
16324 (vector signed short)__a); in vec_any_ge()
16327 static __inline__ int __ATTRS_o_ai vec_any_ge(vector bool short __a, in vec_any_ge()
16328 vector unsigned short __b) { in vec_any_ge()
16330 (vector unsigned short)__a); in vec_any_ge()
16333 static __inline__ int __ATTRS_o_ai vec_any_ge(vector bool short __a, in vec_any_ge()
16334 vector bool short __b) { in vec_any_ge()
16335 return __builtin_altivec_vcmpgtuh_p(__CR6_LT_REV, (vector unsigned short)__b, in vec_any_ge()
16336 (vector unsigned short)__a); in vec_any_ge()
16490 static __inline__ int __ATTRS_o_ai vec_any_gt(vector short __a, in vec_any_gt()
16491 vector short __b) { in vec_any_gt()
16495 static __inline__ int __ATTRS_o_ai vec_any_gt(vector short __a, in vec_any_gt()
16496 vector bool short __b) { in vec_any_gt()
16497 return __builtin_altivec_vcmpgtsh_p(__CR6_EQ_REV, __a, (vector short)__b); in vec_any_gt()
16500 static __inline__ int __ATTRS_o_ai vec_any_gt(vector unsigned short __a, in vec_any_gt()
16501 vector unsigned short __b) { in vec_any_gt()
16505 static __inline__ int __ATTRS_o_ai vec_any_gt(vector unsigned short __a, in vec_any_gt()
16506 vector bool short __b) { in vec_any_gt()
16508 (vector unsigned short)__b); in vec_any_gt()
16511 static __inline__ int __ATTRS_o_ai vec_any_gt(vector bool short __a, in vec_any_gt()
16512 vector short __b) { in vec_any_gt()
16513 return __builtin_altivec_vcmpgtsh_p(__CR6_EQ_REV, (vector signed short)__a, in vec_any_gt()
16517 static __inline__ int __ATTRS_o_ai vec_any_gt(vector bool short __a, in vec_any_gt()
16518 vector unsigned short __b) { in vec_any_gt()
16519 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ_REV, (vector unsigned short)__a, in vec_any_gt()
16523 static __inline__ int __ATTRS_o_ai vec_any_gt(vector bool short __a, in vec_any_gt()
16524 vector bool short __b) { in vec_any_gt()
16525 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ_REV, (vector unsigned short)__a, in vec_any_gt()
16526 (vector unsigned short)__b); in vec_any_gt()
16680 static __inline__ int __ATTRS_o_ai vec_any_le(vector short __a, in vec_any_le()
16681 vector short __b) { in vec_any_le()
16685 static __inline__ int __ATTRS_o_ai vec_any_le(vector short __a, in vec_any_le()
16686 vector bool short __b) { in vec_any_le()
16687 return __builtin_altivec_vcmpgtsh_p(__CR6_LT_REV, __a, (vector short)__b); in vec_any_le()
16690 static __inline__ int __ATTRS_o_ai vec_any_le(vector unsigned short __a, in vec_any_le()
16691 vector unsigned short __b) { in vec_any_le()
16695 static __inline__ int __ATTRS_o_ai vec_any_le(vector unsigned short __a, in vec_any_le()
16696 vector bool short __b) { in vec_any_le()
16698 (vector unsigned short)__b); in vec_any_le()
16701 static __inline__ int __ATTRS_o_ai vec_any_le(vector bool short __a, in vec_any_le()
16702 vector short __b) { in vec_any_le()
16703 return __builtin_altivec_vcmpgtsh_p(__CR6_LT_REV, (vector signed short)__a, in vec_any_le()
16707 static __inline__ int __ATTRS_o_ai vec_any_le(vector bool short __a, in vec_any_le()
16708 vector unsigned short __b) { in vec_any_le()
16709 return __builtin_altivec_vcmpgtuh_p(__CR6_LT_REV, (vector unsigned short)__a, in vec_any_le()
16713 static __inline__ int __ATTRS_o_ai vec_any_le(vector bool short __a, in vec_any_le()
16714 vector bool short __b) { in vec_any_le()
16715 return __builtin_altivec_vcmpgtuh_p(__CR6_LT_REV, (vector unsigned short)__a, in vec_any_le()
16716 (vector unsigned short)__b); in vec_any_le()
16870 static __inline__ int __ATTRS_o_ai vec_any_lt(vector short __a, in vec_any_lt()
16871 vector short __b) { in vec_any_lt()
16875 static __inline__ int __ATTRS_o_ai vec_any_lt(vector short __a, in vec_any_lt()
16876 vector bool short __b) { in vec_any_lt()
16877 return __builtin_altivec_vcmpgtsh_p(__CR6_EQ_REV, (vector short)__b, __a); in vec_any_lt()
16880 static __inline__ int __ATTRS_o_ai vec_any_lt(vector unsigned short __a, in vec_any_lt()
16881 vector unsigned short __b) { in vec_any_lt()
16885 static __inline__ int __ATTRS_o_ai vec_any_lt(vector unsigned short __a, in vec_any_lt()
16886 vector bool short __b) { in vec_any_lt()
16887 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ_REV, (vector unsigned short)__b, in vec_any_lt()
16891 static __inline__ int __ATTRS_o_ai vec_any_lt(vector bool short __a, in vec_any_lt()
16892 vector short __b) { in vec_any_lt()
16894 (vector signed short)__a); in vec_any_lt()
16897 static __inline__ int __ATTRS_o_ai vec_any_lt(vector bool short __a, in vec_any_lt()
16898 vector unsigned short __b) { in vec_any_lt()
16900 (vector unsigned short)__a); in vec_any_lt()
16903 static __inline__ int __ATTRS_o_ai vec_any_lt(vector bool short __a, in vec_any_lt()
16904 vector bool short __b) { in vec_any_lt()
16905 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ_REV, (vector unsigned short)__b, in vec_any_lt()
16906 (vector unsigned short)__a); in vec_any_lt()
17077 static __inline__ int __ATTRS_o_ai vec_any_ne(vector short __a, in vec_any_ne()
17078 vector short __b) { in vec_any_ne()
17082 static __inline__ int __ATTRS_o_ai vec_any_ne(vector short __a, in vec_any_ne()
17083 vector bool short __b) { in vec_any_ne()
17084 return __builtin_altivec_vcmpequh_p(__CR6_LT_REV, __a, (vector short)__b); in vec_any_ne()
17087 static __inline__ int __ATTRS_o_ai vec_any_ne(vector unsigned short __a, in vec_any_ne()
17088 vector unsigned short __b) { in vec_any_ne()
17089 return __builtin_altivec_vcmpequh_p(__CR6_LT_REV, (vector short)__a, in vec_any_ne()
17090 (vector short)__b); in vec_any_ne()
17093 static __inline__ int __ATTRS_o_ai vec_any_ne(vector unsigned short __a, in vec_any_ne()
17094 vector bool short __b) { in vec_any_ne()
17095 return __builtin_altivec_vcmpequh_p(__CR6_LT_REV, (vector short)__a, in vec_any_ne()
17096 (vector short)__b); in vec_any_ne()
17099 static __inline__ int __ATTRS_o_ai vec_any_ne(vector bool short __a, in vec_any_ne()
17100 vector short __b) { in vec_any_ne()
17101 return __builtin_altivec_vcmpequh_p(__CR6_LT_REV, (vector short)__a, in vec_any_ne()
17102 (vector short)__b); in vec_any_ne()
17105 static __inline__ int __ATTRS_o_ai vec_any_ne(vector bool short __a, in vec_any_ne()
17106 vector unsigned short __b) { in vec_any_ne()
17107 return __builtin_altivec_vcmpequh_p(__CR6_LT_REV, (vector short)__a, in vec_any_ne()
17108 (vector short)__b); in vec_any_ne()
17111 static __inline__ int __ATTRS_o_ai vec_any_ne(vector bool short __a, in vec_any_ne()
17112 vector bool short __b) { in vec_any_ne()
17113 return __builtin_altivec_vcmpequh_p(__CR6_LT_REV, (vector short)__a, in vec_any_ne()
17114 (vector short)__b); in vec_any_ne()
17119 return __builtin_altivec_vcmpequh_p(__CR6_LT_REV, (vector short)__a, in vec_any_ne()
17120 (vector short)__b); in vec_any_ne()
17425 static __inline__ vector unsigned short __ATTRS_o_ai
17426 __builtin_crypto_vpermxor(vector unsigned short __a, vector unsigned short __b, in __builtin_crypto_vpermxor()
17427 vector unsigned short __c) { in __builtin_crypto_vpermxor()
17428 return (vector unsigned short)__builtin_altivec_crypto_vpermxor( in __builtin_crypto_vpermxor()
17454 static __inline__ vector unsigned short __ATTRS_o_ai
17455 __builtin_crypto_vpmsumb(vector unsigned short __a, vector unsigned short __b) { in __builtin_crypto_vpmsumb()
17557 static inline __ATTRS_o_ai vector bool short vec_reve(vector bool short __a) { in vec_reve()
17561 static inline __ATTRS_o_ai vector signed short
17562 vec_reve(vector signed short __a) { in vec_reve()
17566 static inline __ATTRS_o_ai vector unsigned short
17567 vec_reve(vector unsigned short __a) { in vec_reve()
17612 static __inline__ vector bool short __ATTRS_o_ai
17613 vec_revb(vector bool short __a) { in vec_revb()
17619 static __inline__ vector signed short __ATTRS_o_ai
17620 vec_revb(vector signed short __a) { in vec_revb()
17626 static __inline__ vector unsigned short __ATTRS_o_ai
17627 vec_revb(vector unsigned short __a) { in vec_revb()
17718 typedef vector signed short unaligned_vec_sshort __attribute__((aligned(1)));
17719 typedef vector unsigned short unaligned_vec_ushort __attribute__((aligned(1)));
17734 static inline __ATTRS_o_ai vector signed short
17735 vec_xl(ptrdiff_t __offset, const signed short *__ptr) { in vec_xl()
17740 static inline __ATTRS_o_ai vector unsigned short
17741 vec_xl(ptrdiff_t __offset, const unsigned short *__ptr) { in vec_xl()
17823 static __inline__ vector signed short __ATTRS_o_ai
17824 vec_xl_be(ptrdiff_t __offset, const signed short *__ptr) { in vec_xl_be()
17825 vector signed short __vec = (vector signed short)__builtin_vsx_lxvd2x_be(__offset, __ptr); in vec_xl_be()
17829 static __inline__ vector unsigned short __ATTRS_o_ai
17830 vec_xl_be(ptrdiff_t __offset, const unsigned short *__ptr) { in vec_xl_be()
17831 vector unsigned short __vec = (vector unsigned short)__builtin_vsx_lxvd2x_be(__offset, __ptr); in vec_xl_be()
17894 vec_xl_sext(ptrdiff_t __offset, const signed short *__pointer) { in vec_xl_sext()
17916 vec_xl_zext(ptrdiff_t __offset, const unsigned short *__pointer) { in vec_xl_zext()
18005 vec_xst(vector signed short __vec, ptrdiff_t __offset, signed short *__ptr) { in vec_xst()
18010 static inline __ATTRS_o_ai void vec_xst(vector unsigned short __vec, in vec_xst()
18012 unsigned short *__ptr) { in vec_xst()
18092 signed short *__ptr) { in vec_xst_trunc()
18093 *(__ptr + __offset) = (signed short)__vec[0]; in vec_xst_trunc()
18098 unsigned short *__ptr) { in vec_xst_trunc()
18099 *(__ptr + __offset) = (unsigned short)__vec[0]; in vec_xst_trunc()
18150 static __inline__ void __ATTRS_o_ai vec_xst_be(vector signed short __vec, in vec_xst_be()
18152 signed short *__ptr) { in vec_xst_be()
18153 vector signed short __tmp = in vec_xst_be()
18159 static __inline__ void __ATTRS_o_ai vec_xst_be(vector unsigned short __vec, in vec_xst_be()
18161 unsigned short *__ptr) { in vec_xst_be()
18162 vector unsigned short __tmp = in vec_xst_be()
18256 static vector signed short __ATTRS_o_ai vec_neg(vector signed short __a) { in vec_neg()
18285 static vector signed short __ATTRS_o_ai vec_nabs(vector signed short __a) { in vec_nabs()
18315 vec_extractm(vector unsigned short __a) { in vec_extractm()
18343 static __inline__ vector unsigned short __ATTRS_o_ai
18344 vec_expandm(vector unsigned short __a) { in vec_expandm()
18371 vector unsigned short \
18372 : __builtin_altivec_vcntmbh((vector unsigned short)(__a), \
18388 static __inline__ vector unsigned short __ATTRS_o_ai
18444 vector unsigned short \
18445 : (vector unsigned short)__builtin_vsx_xxeval( \
18471 vector unsigned short \
18472 : (vector unsigned short)__builtin_vsx_xxeval( \
18496 vector unsigned short \
18497 : __builtin_vsx_xxgenpcvhm((vector unsigned short)(__a), (int)(__imm)), \
18612 vector unsigned short \
18613 : (vector unsigned short)__builtin_altivec_vsldbi( \
18616 vector signed short \
18617 : (vector signed short)__builtin_altivec_vsldbi( \
18647 vector unsigned short \
18648 : (vector unsigned short)__builtin_altivec_vsrdbi( \
18651 vector signed short \
18652 : (vector signed short)__builtin_altivec_vsrdbi( \
18682 static __inline__ vector unsigned short __ATTRS_o_ai
18683 vec_insertl(unsigned short __a, vector unsigned short __b, unsigned int __c) { in vec_insertl()
18720 static __inline__ vector unsigned short __ATTRS_o_ai
18721 vec_insertl(vector unsigned short __a, vector unsigned short __b, in vec_insertl()
18751 static __inline__ vector unsigned short __ATTRS_o_ai
18752 vec_inserth(unsigned short __a, vector unsigned short __b, unsigned int __c) { in vec_inserth()
18789 static __inline__ vector unsigned short __ATTRS_o_ai
18790 vec_inserth(vector unsigned short __a, vector unsigned short __b, in vec_inserth()
18822 vector unsigned short __a, vector unsigned short __b, unsigned int __c) { in vec_extractl()
18865 vector unsigned short __a, vector unsigned short __b, unsigned int __c) { in vec_extracth()
18906 vector unsigned short \
18907 : (vector unsigned short)__builtin_vsx_xxpermx( \
18909 vector signed short \
18910 : (vector signed short)__builtin_vsx_xxpermx( \
18946 static __inline__ vector signed short __ATTRS_o_ai
18947 vec_blendv(vector signed short __a, vector signed short __b, in vec_blendv()
18948 vector unsigned short __c) { in vec_blendv()
18949 return (vector signed short)__builtin_vsx_xxblendvh( in vec_blendv()
18950 (vector unsigned short)__a, (vector unsigned short)__b, __c); in vec_blendv()
18953 static __inline__ vector unsigned short __ATTRS_o_ai
18954 vec_blendv(vector unsigned short __a, vector unsigned short __b, in vec_blendv()
18955 vector unsigned short __c) { in vec_blendv()
19132 static __inline__ vector unsigned short __ATTRS_o_ai
19133 vec_stril(vector unsigned short __a) { in vec_stril()
19135 return (vector unsigned short)__builtin_altivec_vstrihr( in vec_stril()
19136 (vector signed short)__a); in vec_stril()
19138 return (vector unsigned short)__builtin_altivec_vstrihl( in vec_stril()
19139 (vector signed short)__a); in vec_stril()
19143 static __inline__ vector signed short __ATTRS_o_ai
19144 vec_stril(vector signed short __a) { in vec_stril()
19170 static __inline__ int __ATTRS_o_ai vec_stril_p(vector unsigned short __a) { in vec_stril_p()
19172 return __builtin_altivec_vstrihr_p(__CR6_EQ, (vector signed short)__a); in vec_stril_p()
19174 return __builtin_altivec_vstrihl_p(__CR6_EQ, (vector signed short)__a); in vec_stril_p()
19178 static __inline__ int __ATTRS_o_ai vec_stril_p(vector signed short __a) { in vec_stril_p()
19210 static __inline__ vector unsigned short __ATTRS_o_ai
19211 vec_strir(vector unsigned short __a) { in vec_strir()
19213 return (vector unsigned short)__builtin_altivec_vstrihl( in vec_strir()
19214 (vector signed short)__a); in vec_strir()
19216 return (vector unsigned short)__builtin_altivec_vstrihr( in vec_strir()
19217 (vector signed short)__a); in vec_strir()
19221 static __inline__ vector signed short __ATTRS_o_ai
19222 vec_strir(vector signed short __a) { in vec_strir()
19248 static __inline__ int __ATTRS_o_ai vec_strir_p(vector unsigned short __a) { in vec_strir_p()
19250 return __builtin_altivec_vstrihl_p(__CR6_EQ, (vector signed short)__a); in vec_strir_p()
19252 return __builtin_altivec_vstrihr_p(__CR6_EQ, (vector signed short)__a); in vec_strir_p()
19256 static __inline__ int __ATTRS_o_ai vec_strir_p(vector signed short __a) { in vec_strir_p()