• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:short

1 /*===---- altivec.h - Standard header for type generic math ---------------===*\
21 \*===----------------------------------------------------------------------===*/
49 static __inline__ vector short __ATTRS_o_ai vec_perm(vector signed short __a,
50 vector signed short __b,
53 static __inline__ vector unsigned short __ATTRS_o_ai
54 vec_perm(vector unsigned short __a, vector unsigned short __b,
57 static __inline__ vector bool short __ATTRS_o_ai vec_perm(
58 vector bool short __a, vector bool short __b, vector unsigned char __c);
107 return __builtin_altivec_vmaxsb(__a, -__a); in vec_abs()
110 static __inline__ vector signed short __ATTRS_o_ai
111 vec_abs(vector signed short __a) { in vec_abs()
112 return __builtin_altivec_vmaxsh(__a, -__a); in vec_abs()
117 return __builtin_altivec_vmaxsw(__a, -__a); in vec_abs()
123 return __builtin_altivec_vmaxsd(__a, -__a); in vec_abs()
154 static __inline__ vector signed short __ATTRS_o_ai
155 vec_abss(vector signed short __a) { in vec_abss()
157 __a, __builtin_altivec_vsubshs((vector signed short)(0), __a)); in vec_abss()
198 static __inline__ vector short __ATTRS_o_ai vec_add(vector short __a, in vec_add()
199 vector short __b) { in vec_add()
203 static __inline__ vector short __ATTRS_o_ai vec_add(vector bool short __a, in vec_add()
204 vector short __b) { in vec_add()
205 return (vector short)__a + __b; in vec_add()
208 static __inline__ vector short __ATTRS_o_ai vec_add(vector short __a, in vec_add()
209 vector bool short __b) { in vec_add()
210 return __a + (vector short)__b; in vec_add()
213 static __inline__ vector unsigned short __ATTRS_o_ai
214 vec_add(vector unsigned short __a, vector unsigned short __b) { in vec_add()
218 static __inline__ vector unsigned short __ATTRS_o_ai
219 vec_add(vector bool short __a, vector unsigned short __b) { in vec_add()
220 return (vector unsigned short)__a + __b; in vec_add()
223 static __inline__ vector unsigned short __ATTRS_o_ai
224 vec_add(vector unsigned short __a, vector bool short __b) { in vec_add()
225 return __a + (vector unsigned short)__b; in vec_add()
362 static __inline__ vector short __ATTRS_o_ai vec_vadduhm(vector short __a, in vec_vadduhm()
363 vector short __b) { in vec_vadduhm()
367 static __inline__ vector short __ATTRS_o_ai vec_vadduhm(vector bool short __a, in vec_vadduhm()
368 vector short __b) { in vec_vadduhm()
369 return (vector short)__a + __b; in vec_vadduhm()
372 static __inline__ vector short __ATTRS_o_ai vec_vadduhm(vector short __a, in vec_vadduhm()
373 vector bool short __b) { in vec_vadduhm()
374 return __a + (vector short)__b; in vec_vadduhm()
377 static __inline__ vector unsigned short __ATTRS_o_ai
378 vec_vadduhm(vector unsigned short __a, vector unsigned short __b) { in vec_vadduhm()
382 static __inline__ vector unsigned short __ATTRS_o_ai
383 vec_vadduhm(vector bool short __a, vector unsigned short __b) { in vec_vadduhm()
384 return (vector unsigned short)__a + __b; in vec_vadduhm()
387 static __inline__ vector unsigned short __ATTRS_o_ai
388 vec_vadduhm(vector unsigned short __a, vector bool short __b) { in vec_vadduhm()
389 return __a + (vector unsigned short)__b; in vec_vadduhm()
500 static __inline__ vector short __ATTRS_o_ai vec_adds(vector short __a, in vec_adds()
501 vector short __b) { in vec_adds()
505 static __inline__ vector short __ATTRS_o_ai vec_adds(vector bool short __a, in vec_adds()
506 vector short __b) { in vec_adds()
507 return __builtin_altivec_vaddshs((vector short)__a, __b); in vec_adds()
510 static __inline__ vector short __ATTRS_o_ai vec_adds(vector short __a, in vec_adds()
511 vector bool short __b) { in vec_adds()
512 return __builtin_altivec_vaddshs(__a, (vector short)__b); in vec_adds()
515 static __inline__ vector unsigned short __ATTRS_o_ai
516 vec_adds(vector unsigned short __a, vector unsigned short __b) { in vec_adds()
520 static __inline__ vector unsigned short __ATTRS_o_ai
521 vec_adds(vector bool short __a, vector unsigned short __b) { in vec_adds()
522 return __builtin_altivec_vadduhs((vector unsigned short)__a, __b); in vec_adds()
525 static __inline__ vector unsigned short __ATTRS_o_ai
526 vec_adds(vector unsigned short __a, vector bool short __b) { in vec_adds()
527 return __builtin_altivec_vadduhs(__a, (vector unsigned short)__b); in vec_adds()
596 static __inline__ vector short __ATTRS_o_ai vec_vaddshs(vector short __a, in vec_vaddshs()
597 vector short __b) { in vec_vaddshs()
601 static __inline__ vector short __ATTRS_o_ai vec_vaddshs(vector bool short __a, in vec_vaddshs()
602 vector short __b) { in vec_vaddshs()
603 return __builtin_altivec_vaddshs((vector short)__a, __b); in vec_vaddshs()
606 static __inline__ vector short __ATTRS_o_ai vec_vaddshs(vector short __a, in vec_vaddshs()
607 vector bool short __b) { in vec_vaddshs()
608 return __builtin_altivec_vaddshs(__a, (vector short)__b); in vec_vaddshs()
613 static __inline__ vector unsigned short __ATTRS_o_ai
614 vec_vadduhs(vector unsigned short __a, vector unsigned short __b) { in vec_vadduhs()
618 static __inline__ vector unsigned short __ATTRS_o_ai
619 vec_vadduhs(vector bool short __a, vector unsigned short __b) { in vec_vadduhs()
620 return __builtin_altivec_vadduhs((vector unsigned short)__a, __b); in vec_vadduhs()
623 static __inline__ vector unsigned short __ATTRS_o_ai
624 vec_vadduhs(vector unsigned short __a, vector bool short __b) { in vec_vadduhs()
625 return __builtin_altivec_vadduhs(__a, (vector unsigned short)__b); in vec_vadduhs()
755 static __inline__ vector short __ATTRS_o_ai vec_and(vector short __a, in vec_and()
756 vector short __b) { in vec_and()
760 static __inline__ vector short __ATTRS_o_ai vec_and(vector bool short __a, in vec_and()
761 vector short __b) { in vec_and()
762 return (vector short)__a & __b; in vec_and()
765 static __inline__ vector short __ATTRS_o_ai vec_and(vector short __a, in vec_and()
766 vector bool short __b) { in vec_and()
767 return __a & (vector short)__b; in vec_and()
770 static __inline__ vector unsigned short __ATTRS_o_ai
771 vec_and(vector unsigned short __a, vector unsigned short __b) { in vec_and()
775 static __inline__ vector unsigned short __ATTRS_o_ai
776 vec_and(vector bool short __a, vector unsigned short __b) { in vec_and()
777 return (vector unsigned short)__a & __b; in vec_and()
780 static __inline__ vector unsigned short __ATTRS_o_ai
781 vec_and(vector unsigned short __a, vector bool short __b) { in vec_and()
782 return __a & (vector unsigned short)__b; in vec_and()
785 static __inline__ vector bool short __ATTRS_o_ai
786 vec_and(vector bool short __a, vector bool short __b) { in vec_and()
941 static __inline__ vector short __ATTRS_o_ai vec_vand(vector short __a, in vec_vand()
942 vector short __b) { in vec_vand()
946 static __inline__ vector short __ATTRS_o_ai vec_vand(vector bool short __a, in vec_vand()
947 vector short __b) { in vec_vand()
948 return (vector short)__a & __b; in vec_vand()
951 static __inline__ vector short __ATTRS_o_ai vec_vand(vector short __a, in vec_vand()
952 vector bool short __b) { in vec_vand()
953 return __a & (vector short)__b; in vec_vand()
956 static __inline__ vector unsigned short __ATTRS_o_ai
957 vec_vand(vector unsigned short __a, vector unsigned short __b) { in vec_vand()
961 static __inline__ vector unsigned short __ATTRS_o_ai
962 vec_vand(vector bool short __a, vector unsigned short __b) { in vec_vand()
963 return (vector unsigned short)__a & __b; in vec_vand()
966 static __inline__ vector unsigned short __ATTRS_o_ai
967 vec_vand(vector unsigned short __a, vector bool short __b) { in vec_vand()
968 return __a & (vector unsigned short)__b; in vec_vand()
971 static __inline__ vector bool short __ATTRS_o_ai
972 vec_vand(vector bool short __a, vector bool short __b) { in vec_vand()
1108 static __inline__ vector short __ATTRS_o_ai vec_andc(vector short __a, in vec_andc()
1109 vector short __b) { in vec_andc()
1113 static __inline__ vector short __ATTRS_o_ai vec_andc(vector bool short __a, in vec_andc()
1114 vector short __b) { in vec_andc()
1115 return (vector short)__a & ~__b; in vec_andc()
1118 static __inline__ vector short __ATTRS_o_ai vec_andc(vector short __a, in vec_andc()
1119 vector bool short __b) { in vec_andc()
1120 return __a & ~(vector short)__b; in vec_andc()
1123 static __inline__ vector unsigned short __ATTRS_o_ai
1124 vec_andc(vector unsigned short __a, vector unsigned short __b) { in vec_andc()
1128 static __inline__ vector unsigned short __ATTRS_o_ai
1129 vec_andc(vector bool short __a, vector unsigned short __b) { in vec_andc()
1130 return (vector unsigned short)__a & ~__b; in vec_andc()
1133 static __inline__ vector unsigned short __ATTRS_o_ai
1134 vec_andc(vector unsigned short __a, vector bool short __b) { in vec_andc()
1135 return __a & ~(vector unsigned short)__b; in vec_andc()
1138 static __inline__ vector bool short __ATTRS_o_ai
1139 vec_andc(vector bool short __a, vector bool short __b) { in vec_andc()
1294 static __inline__ vector short __ATTRS_o_ai vec_vandc(vector short __a, in vec_vandc()
1295 vector short __b) { in vec_vandc()
1299 static __inline__ vector short __ATTRS_o_ai vec_vandc(vector bool short __a, in vec_vandc()
1300 vector short __b) { in vec_vandc()
1301 return (vector short)__a & ~__b; in vec_vandc()
1304 static __inline__ vector short __ATTRS_o_ai vec_vandc(vector short __a, in vec_vandc()
1305 vector bool short __b) { in vec_vandc()
1306 return __a & ~(vector short)__b; in vec_vandc()
1309 static __inline__ vector unsigned short __ATTRS_o_ai
1310 vec_vandc(vector unsigned short __a, vector unsigned short __b) { in vec_vandc()
1314 static __inline__ vector unsigned short __ATTRS_o_ai
1315 vec_vandc(vector bool short __a, vector unsigned short __b) { in vec_vandc()
1316 return (vector unsigned short)__a & ~__b; in vec_vandc()
1319 static __inline__ vector unsigned short __ATTRS_o_ai
1320 vec_vandc(vector unsigned short __a, vector bool short __b) { in vec_vandc()
1321 return __a & ~(vector unsigned short)__b; in vec_vandc()
1324 static __inline__ vector bool short __ATTRS_o_ai
1325 vec_vandc(vector bool short __a, vector bool short __b) { in vec_vandc()
1434 static __inline__ vector short __ATTRS_o_ai vec_avg(vector short __a, in vec_avg()
1435 vector short __b) { in vec_avg()
1439 static __inline__ vector unsigned short __ATTRS_o_ai
1440 vec_avg(vector unsigned short __a, vector unsigned short __b) { in vec_avg()
1470 static __inline__ vector short __attribute__((__always_inline__))
1471 vec_vavgsh(vector short __a, vector short __b) { in vec_vavgsh()
1477 static __inline__ vector unsigned short __attribute__((__always_inline__))
1478 vec_vavguh(vector unsigned short __a, vector unsigned short __b) { in vec_vavguh()
1547 static __inline__ vector bool short __ATTRS_o_ai vec_cmpeq(vector short __a, in vec_cmpeq()
1548 vector short __b) { in vec_cmpeq()
1549 return (vector bool short)__builtin_altivec_vcmpequh(__a, __b); in vec_cmpeq()
1552 static __inline__ vector bool short __ATTRS_o_ai
1553 vec_cmpeq(vector unsigned short __a, vector unsigned short __b) { in vec_cmpeq()
1554 return (vector bool short)__builtin_altivec_vcmpequh((vector short)__a, in vec_cmpeq()
1555 (vector short)__b); in vec_cmpeq()
1610 static __inline__ vector bool short __ATTRS_o_ai vec_cmpgt(vector short __a, in vec_cmpgt()
1611 vector short __b) { in vec_cmpgt()
1612 return (vector bool short)__builtin_altivec_vcmpgtsh(__a, __b); in vec_cmpgt()
1615 static __inline__ vector bool short __ATTRS_o_ai
1616 vec_cmpgt(vector unsigned short __a, vector unsigned short __b) { in vec_cmpgt()
1617 return (vector bool short)__builtin_altivec_vcmpgtuh(__a, __b); in vec_cmpgt()
1670 static __inline__ vector bool short __ATTRS_o_ai
1671 vec_cmpge(vector signed short __a, vector signed short __b) { in vec_cmpge()
1675 static __inline__ vector bool short __ATTRS_o_ai
1676 vec_cmpge(vector unsigned short __a, vector unsigned short __b) { in vec_cmpge()
1741 static __inline__ vector bool short __attribute__((__always_inline__))
1742 vec_vcmpgtsh(vector short __a, vector short __b) { in vec_vcmpgtsh()
1743 return (vector bool short)__builtin_altivec_vcmpgtsh(__a, __b); in vec_vcmpgtsh()
1748 static __inline__ vector bool short __attribute__((__always_inline__))
1749 vec_vcmpgtuh(vector unsigned short __a, vector unsigned short __b) { in vec_vcmpgtuh()
1750 return (vector bool short)__builtin_altivec_vcmpgtuh(__a, __b); in vec_vcmpgtuh()
1786 static __inline__ vector bool short __ATTRS_o_ai
1787 vec_cmple(vector signed short __a, vector signed short __b) { in vec_cmple()
1791 static __inline__ vector bool short __ATTRS_o_ai
1792 vec_cmple(vector unsigned short __a, vector unsigned short __b) { in vec_cmple()
1842 static __inline__ vector bool short __ATTRS_o_ai vec_cmplt(vector short __a, in vec_cmplt()
1843 vector short __b) { in vec_cmplt()
1847 static __inline__ vector bool short __ATTRS_o_ai
1848 vec_cmplt(vector unsigned short __a, vector unsigned short __b) { in vec_cmplt()
1895 static __inline__ vector signed short __ATTRS_o_ai
1896 vec_cntlz(vector signed short __a) { in vec_cntlz()
1899 static __inline__ vector unsigned short __ATTRS_o_ai
1900 vec_cntlz(vector unsigned short __a) { in vec_cntlz()
1950 __ret *= (vector double)(vector unsigned long long)((0x3ffULL - __b) << 52); in vec_ctf()
1957 __ret *= (vector double)(vector unsigned long long)((0x3ffULL - __b) << 52); in vec_ctf()
2050 static __inline__ vector signed short __ATTRS_o_ai
2051 vec_div(vector signed short __a, vector signed short __b) { in vec_div()
2055 static __inline__ vector unsigned short __ATTRS_o_ai
2056 vec_div(vector unsigned short __a, vector unsigned short __b) { in vec_div()
2145 static __inline__ vector signed short __ATTRS_o_ai
2146 vec_eqv(vector signed short __a, vector signed short __b) { in vec_eqv()
2147 return (vector signed short)__builtin_vsx_xxleqv((vector unsigned int)__a, in vec_eqv()
2151 static __inline__ vector unsigned short __ATTRS_o_ai
2152 vec_eqv(vector unsigned short __a, vector unsigned short __b) { in vec_eqv()
2153 return (vector unsigned short)__builtin_vsx_xxleqv((vector unsigned int)__a, in vec_eqv()
2157 static __inline__ vector bool short __ATTRS_o_ai
2158 vec_eqv(vector bool short __a, vector bool short __b) { in vec_eqv()
2159 return (vector bool short)__builtin_vsx_xxleqv((vector unsigned int)__a, in vec_eqv()
2275 static __inline__ vector short __ATTRS_o_ai vec_ld(int __a, in vec_ld()
2276 const vector short *__b) { in vec_ld()
2277 return (vector short)__builtin_altivec_lvx(__a, __b); in vec_ld()
2280 static __inline__ vector short __ATTRS_o_ai vec_ld(int __a, const short *__b) { in vec_ld()
2281 return (vector short)__builtin_altivec_lvx(__a, __b); in vec_ld()
2284 static __inline__ vector unsigned short __ATTRS_o_ai
2285 vec_ld(int __a, const vector unsigned short *__b) { in vec_ld()
2286 return (vector unsigned short)__builtin_altivec_lvx(__a, __b); in vec_ld()
2289 static __inline__ vector unsigned short __ATTRS_o_ai
2290 vec_ld(int __a, const unsigned short *__b) { in vec_ld()
2291 return (vector unsigned short)__builtin_altivec_lvx(__a, __b); in vec_ld()
2294 static __inline__ vector bool short __ATTRS_o_ai
2295 vec_ld(int __a, const vector bool short *__b) { in vec_ld()
2296 return (vector bool short)__builtin_altivec_lvx(__a, __b); in vec_ld()
2364 static __inline__ vector short __ATTRS_o_ai vec_lvx(int __a, in vec_lvx()
2365 const vector short *__b) { in vec_lvx()
2366 return (vector short)__builtin_altivec_lvx(__a, __b); in vec_lvx()
2369 static __inline__ vector short __ATTRS_o_ai vec_lvx(int __a, const short *__b) { in vec_lvx()
2370 return (vector short)__builtin_altivec_lvx(__a, __b); in vec_lvx()
2373 static __inline__ vector unsigned short __ATTRS_o_ai
2374 vec_lvx(int __a, const vector unsigned short *__b) { in vec_lvx()
2375 return (vector unsigned short)__builtin_altivec_lvx(__a, __b); in vec_lvx()
2378 static __inline__ vector unsigned short __ATTRS_o_ai
2379 vec_lvx(int __a, const unsigned short *__b) { in vec_lvx()
2380 return (vector unsigned short)__builtin_altivec_lvx(__a, __b); in vec_lvx()
2383 static __inline__ vector bool short __ATTRS_o_ai
2384 vec_lvx(int __a, const vector bool short *__b) { in vec_lvx()
2385 return (vector bool short)__builtin_altivec_lvx(__a, __b); in vec_lvx()
2438 static __inline__ vector short __ATTRS_o_ai vec_lde(int __a, const short *__b) { in vec_lde()
2439 return (vector short)__builtin_altivec_lvehx(__a, __b); in vec_lde()
2442 static __inline__ vector unsigned short __ATTRS_o_ai
2443 vec_lde(int __a, const unsigned short *__b) { in vec_lde()
2444 return (vector unsigned short)__builtin_altivec_lvehx(__a, __b); in vec_lde()
2474 static __inline__ vector short __ATTRS_o_ai vec_lvehx(int __a, in vec_lvehx()
2475 const short *__b) { in vec_lvehx()
2476 return (vector short)__builtin_altivec_lvehx(__a, __b); in vec_lvehx()
2479 static __inline__ vector unsigned short __ATTRS_o_ai
2480 vec_lvehx(int __a, const unsigned short *__b) { in vec_lvehx()
2481 return (vector unsigned short)__builtin_altivec_lvehx(__a, __b); in vec_lvehx()
2527 static __inline__ vector short __ATTRS_o_ai vec_ldl(int __a, in vec_ldl()
2528 const vector short *__b) { in vec_ldl()
2529 return (vector short)__builtin_altivec_lvxl(__a, __b); in vec_ldl()
2532 static __inline__ vector short __ATTRS_o_ai vec_ldl(int __a, const short *__b) { in vec_ldl()
2533 return (vector short)__builtin_altivec_lvxl(__a, __b); in vec_ldl()
2536 static __inline__ vector unsigned short __ATTRS_o_ai
2537 vec_ldl(int __a, const vector unsigned short *__b) { in vec_ldl()
2538 return (vector unsigned short)__builtin_altivec_lvxl(__a, __b); in vec_ldl()
2541 static __inline__ vector unsigned short __ATTRS_o_ai
2542 vec_ldl(int __a, const unsigned short *__b) { in vec_ldl()
2543 return (vector unsigned short)__builtin_altivec_lvxl(__a, __b); in vec_ldl()
2546 static __inline__ vector bool short __ATTRS_o_ai
2547 vec_ldl(int __a, const vector bool short *__b) { in vec_ldl()
2548 return (vector bool short)__builtin_altivec_lvxl(__a, __b); in vec_ldl()
2553 return (vector pixel short)__builtin_altivec_lvxl(__a, __b); in vec_ldl()
2616 static __inline__ vector short __ATTRS_o_ai vec_lvxl(int __a, in vec_lvxl()
2617 const vector short *__b) { in vec_lvxl()
2618 return (vector short)__builtin_altivec_lvxl(__a, __b); in vec_lvxl()
2621 static __inline__ vector short __ATTRS_o_ai vec_lvxl(int __a, in vec_lvxl()
2622 const short *__b) { in vec_lvxl()
2623 return (vector short)__builtin_altivec_lvxl(__a, __b); in vec_lvxl()
2626 static __inline__ vector unsigned short __ATTRS_o_ai
2627 vec_lvxl(int __a, const vector unsigned short *__b) { in vec_lvxl()
2628 return (vector unsigned short)__builtin_altivec_lvxl(__a, __b); in vec_lvxl()
2631 static __inline__ vector unsigned short __ATTRS_o_ai
2632 vec_lvxl(int __a, const unsigned short *__b) { in vec_lvxl()
2633 return (vector unsigned short)__builtin_altivec_lvxl(__a, __b); in vec_lvxl()
2636 static __inline__ vector bool short __ATTRS_o_ai
2637 vec_lvxl(int __a, const vector bool short *__b) { in vec_lvxl()
2638 return (vector bool short)__builtin_altivec_lvxl(__a, __b); in vec_lvxl()
2733 loads/stores"))) vec_lvsl(int __a, const short *__b) { in vec_lvsl()
2742 const short *__b) { in vec_lvsl()
2750 loads/stores"))) vec_lvsl(int __a, const unsigned short *__b) { in vec_lvsl()
2759 vec_lvsl(int __a, const unsigned short *__b) { in vec_lvsl()
2854 loads/stores"))) vec_lvsr(int __a, const short *__b) { in vec_lvsr()
2863 const short *__b) { in vec_lvsr()
2871 loads/stores"))) vec_lvsr(int __a, const unsigned short *__b) { in vec_lvsr()
2880 vec_lvsr(int __a, const unsigned short *__b) { in vec_lvsr()
2937 static __inline__ vector signed short __ATTRS_o_ai
2938 vec_mladd(vector signed short, vector signed short, vector signed short);
2939 static __inline__ vector signed short __ATTRS_o_ai
2940 vec_mladd(vector signed short, vector unsigned short, vector unsigned short);
2941 static __inline__ vector signed short __ATTRS_o_ai
2942 vec_mladd(vector unsigned short, vector signed short, vector signed short);
2943 static __inline__ vector unsigned short __ATTRS_o_ai
2944 vec_mladd(vector unsigned short, vector unsigned short, vector unsigned short);
2946 static __inline__ vector signed short __ATTRS_o_ai vec_madd( in vec_madd()
2947 vector signed short __a, vector signed short __b, vector signed short __c) { in vec_madd()
2951 static __inline__ vector signed short __ATTRS_o_ai
2952 vec_madd(vector signed short __a, vector unsigned short __b, in vec_madd()
2953 vector unsigned short __c) { in vec_madd()
2957 static __inline__ vector signed short __ATTRS_o_ai
2958 vec_madd(vector unsigned short __a, vector signed short __b, in vec_madd()
2959 vector signed short __c) { in vec_madd()
2963 static __inline__ vector unsigned short __ATTRS_o_ai
2964 vec_madd(vector unsigned short __a, vector unsigned short __b, in vec_madd()
2965 vector unsigned short __c) { in vec_madd()
2996 static __inline__ vector signed short __attribute__((__always_inline__))
2997 vec_madds(vector signed short __a, vector signed short __b, in vec_madds()
2998 vector signed short __c) { in vec_madds()
3003 static __inline__ vector signed short __attribute__((__always_inline__))
3004 vec_vmhaddshs(vector signed short __a, vector signed short __b, in vec_vmhaddshs()
3005 vector signed short __c) { in vec_vmhaddshs()
3057 static __inline__ vector short __ATTRS_o_ai vec_max(vector short __a, in vec_max()
3058 vector short __b) { in vec_max()
3062 static __inline__ vector short __ATTRS_o_ai vec_max(vector bool short __a, in vec_max()
3063 vector short __b) { in vec_max()
3064 return __builtin_altivec_vmaxsh((vector short)__a, __b); in vec_max()
3067 static __inline__ vector short __ATTRS_o_ai vec_max(vector short __a, in vec_max()
3068 vector bool short __b) { in vec_max()
3069 return __builtin_altivec_vmaxsh(__a, (vector short)__b); in vec_max()
3072 static __inline__ vector unsigned short __ATTRS_o_ai
3073 vec_max(vector unsigned short __a, vector unsigned short __b) { in vec_max()
3077 static __inline__ vector unsigned short __ATTRS_o_ai
3078 vec_max(vector bool short __a, vector unsigned short __b) { in vec_max()
3079 return __builtin_altivec_vmaxuh((vector unsigned short)__a, __b); in vec_max()
3082 static __inline__ vector unsigned short __ATTRS_o_ai
3083 vec_max(vector unsigned short __a, vector bool short __b) { in vec_max()
3084 return __builtin_altivec_vmaxuh(__a, (vector unsigned short)__b); in vec_max()
3201 static __inline__ vector short __ATTRS_o_ai vec_vmaxsh(vector short __a, in vec_vmaxsh()
3202 vector short __b) { in vec_vmaxsh()
3206 static __inline__ vector short __ATTRS_o_ai vec_vmaxsh(vector bool short __a, in vec_vmaxsh()
3207 vector short __b) { in vec_vmaxsh()
3208 return __builtin_altivec_vmaxsh((vector short)__a, __b); in vec_vmaxsh()
3211 static __inline__ vector short __ATTRS_o_ai vec_vmaxsh(vector short __a, in vec_vmaxsh()
3212 vector bool short __b) { in vec_vmaxsh()
3213 return __builtin_altivec_vmaxsh(__a, (vector short)__b); in vec_vmaxsh()
3218 static __inline__ vector unsigned short __ATTRS_o_ai
3219 vec_vmaxuh(vector unsigned short __a, vector unsigned short __b) { in vec_vmaxuh()
3223 static __inline__ vector unsigned short __ATTRS_o_ai
3224 vec_vmaxuh(vector bool short __a, vector unsigned short __b) { in vec_vmaxuh()
3225 return __builtin_altivec_vmaxuh((vector unsigned short)__a, __b); in vec_vmaxuh()
3228 static __inline__ vector unsigned short __ATTRS_o_ai
3229 vec_vmaxuh(vector unsigned short __a, vector bool short __b) { in vec_vmaxuh()
3230 return __builtin_altivec_vmaxuh(__a, (vector unsigned short)__b); in vec_vmaxuh()
3304 static __inline__ vector short __ATTRS_o_ai vec_mergeh(vector short __a, in vec_mergeh()
3305 vector short __b) { in vec_mergeh()
3312 static __inline__ vector unsigned short __ATTRS_o_ai
3313 vec_mergeh(vector unsigned short __a, vector unsigned short __b) { in vec_mergeh()
3320 static __inline__ vector bool short __ATTRS_o_ai
3321 vec_mergeh(vector bool short __a, vector bool short __b) { in vec_mergeh()
3480 static __inline__ vector short __ATTRS_o_ai vec_vmrghh(vector short __a, in vec_vmrghh()
3481 vector short __b) { in vec_vmrghh()
3488 static __inline__ vector unsigned short __ATTRS_o_ai
3489 vec_vmrghh(vector unsigned short __a, vector unsigned short __b) { in vec_vmrghh()
3496 static __inline__ vector bool short __ATTRS_o_ai
3497 vec_vmrghh(vector bool short __a, vector bool short __b) { in vec_vmrghh()
3574 static __inline__ vector short __ATTRS_o_ai vec_mergel(vector short __a, in vec_mergel()
3575 vector short __b) { in vec_mergel()
3582 static __inline__ vector unsigned short __ATTRS_o_ai
3583 vec_mergel(vector unsigned short __a, vector unsigned short __b) { in vec_mergel()
3590 static __inline__ vector bool short __ATTRS_o_ai
3591 vec_mergel(vector bool short __a, vector bool short __b) { in vec_mergel()
3743 static __inline__ vector short __ATTRS_o_ai vec_vmrglh(vector short __a, in vec_vmrglh()
3744 vector short __b) { in vec_vmrglh()
3751 static __inline__ vector unsigned short __ATTRS_o_ai
3752 vec_vmrglh(vector unsigned short __a, vector unsigned short __b) { in vec_vmrglh()
3759 static __inline__ vector bool short __ATTRS_o_ai
3760 vec_vmrglh(vector bool short __a, vector bool short __b) { in vec_vmrglh()
3868 static __inline__ vector unsigned short __attribute__((__always_inline__))
3905 static __inline__ vector short __ATTRS_o_ai vec_min(vector short __a, in vec_min()
3906 vector short __b) { in vec_min()
3910 static __inline__ vector short __ATTRS_o_ai vec_min(vector bool short __a, in vec_min()
3911 vector short __b) { in vec_min()
3912 return __builtin_altivec_vminsh((vector short)__a, __b); in vec_min()
3915 static __inline__ vector short __ATTRS_o_ai vec_min(vector short __a, in vec_min()
3916 vector bool short __b) { in vec_min()
3917 return __builtin_altivec_vminsh(__a, (vector short)__b); in vec_min()
3920 static __inline__ vector unsigned short __ATTRS_o_ai
3921 vec_min(vector unsigned short __a, vector unsigned short __b) { in vec_min()
3925 static __inline__ vector unsigned short __ATTRS_o_ai
3926 vec_min(vector bool short __a, vector unsigned short __b) { in vec_min()
3927 return __builtin_altivec_vminuh((vector unsigned short)__a, __b); in vec_min()
3930 static __inline__ vector unsigned short __ATTRS_o_ai
3931 vec_min(vector unsigned short __a, vector bool short __b) { in vec_min()
3932 return __builtin_altivec_vminuh(__a, (vector unsigned short)__b); in vec_min()
4049 static __inline__ vector short __ATTRS_o_ai vec_vminsh(vector short __a, in vec_vminsh()
4050 vector short __b) { in vec_vminsh()
4054 static __inline__ vector short __ATTRS_o_ai vec_vminsh(vector bool short __a, in vec_vminsh()
4055 vector short __b) { in vec_vminsh()
4056 return __builtin_altivec_vminsh((vector short)__a, __b); in vec_vminsh()
4059 static __inline__ vector short __ATTRS_o_ai vec_vminsh(vector short __a, in vec_vminsh()
4060 vector bool short __b) { in vec_vminsh()
4061 return __builtin_altivec_vminsh(__a, (vector short)__b); in vec_vminsh()
4066 static __inline__ vector unsigned short __ATTRS_o_ai
4067 vec_vminuh(vector unsigned short __a, vector unsigned short __b) { in vec_vminuh()
4071 static __inline__ vector unsigned short __ATTRS_o_ai
4072 vec_vminuh(vector bool short __a, vector unsigned short __b) { in vec_vminuh()
4073 return __builtin_altivec_vminuh((vector unsigned short)__a, __b); in vec_vminuh()
4076 static __inline__ vector unsigned short __ATTRS_o_ai
4077 vec_vminuh(vector unsigned short __a, vector bool short __b) { in vec_vminuh()
4078 return __builtin_altivec_vminuh(__a, (vector unsigned short)__b); in vec_vminuh()
4130 static __inline__ vector short __ATTRS_o_ai vec_mladd(vector short __a, in vec_mladd()
4131 vector short __b, in vec_mladd()
4132 vector short __c) { in vec_mladd()
4136 static __inline__ vector short __ATTRS_o_ai vec_mladd( in vec_mladd()
4137 vector short __a, vector unsigned short __b, vector unsigned short __c) { in vec_mladd()
4138 return __a * (vector short)__b + (vector short)__c; in vec_mladd()
4141 static __inline__ vector short __ATTRS_o_ai vec_mladd(vector unsigned short __a, in vec_mladd()
4142 vector short __b, in vec_mladd()
4143 vector short __c) { in vec_mladd()
4144 return (vector short)__a * __b + __c; in vec_mladd()
4147 static __inline__ vector unsigned short __ATTRS_o_ai
4148 vec_mladd(vector unsigned short __a, vector unsigned short __b, in vec_mladd()
4149 vector unsigned short __c) { in vec_mladd()
4155 static __inline__ vector short __ATTRS_o_ai vec_vmladduhm(vector short __a, in vec_vmladduhm()
4156 vector short __b, in vec_vmladduhm()
4157 vector short __c) { in vec_vmladduhm()
4161 static __inline__ vector short __ATTRS_o_ai vec_vmladduhm( in vec_vmladduhm()
4162 vector short __a, vector unsigned short __b, vector unsigned short __c) { in vec_vmladduhm()
4163 return __a * (vector short)__b + (vector short)__c; in vec_vmladduhm()
4166 static __inline__ vector short __ATTRS_o_ai
4167 vec_vmladduhm(vector unsigned short __a, vector short __b, vector short __c) { in vec_vmladduhm()
4168 return (vector short)__a * __b + __c; in vec_vmladduhm()
4171 static __inline__ vector unsigned short __ATTRS_o_ai
4172 vec_vmladduhm(vector unsigned short __a, vector unsigned short __b, in vec_vmladduhm()
4173 vector unsigned short __c) { in vec_vmladduhm()
4179 static __inline__ vector short __attribute__((__always_inline__))
4180 vec_mradds(vector short __a, vector short __b, vector short __c) { in vec_mradds()
4186 static __inline__ vector short __attribute__((__always_inline__))
4187 vec_vmhraddshs(vector short __a, vector short __b, vector short __c) { in vec_vmhraddshs()
4205 static __inline__ vector int __ATTRS_o_ai vec_msum(vector short __a, in vec_msum()
4206 vector short __b, in vec_msum()
4212 vec_msum(vector unsigned short __a, vector unsigned short __b, in vec_msum()
4235 vec_vmsumshm(vector short __a, vector short __b, vector int __c) { in vec_vmsumshm()
4242 vec_vmsumuhm(vector unsigned short __a, vector unsigned short __b, in vec_vmsumuhm()
4249 static __inline__ vector int __ATTRS_o_ai vec_msums(vector short __a, in vec_msums()
4250 vector short __b, in vec_msums()
4256 vec_msums(vector unsigned short __a, vector unsigned short __b, in vec_msums()
4264 vec_vmsumshs(vector short __a, vector short __b, vector int __c) { in vec_vmsumshs()
4271 vec_vmsumuhs(vector unsigned short __a, vector unsigned short __b, in vec_vmsumuhs()
4290 static __inline__ void __ATTRS_o_ai vec_mtvscr(vector short __a) { in vec_mtvscr()
4294 static __inline__ void __ATTRS_o_ai vec_mtvscr(vector unsigned short __a) { in vec_mtvscr()
4298 static __inline__ void __ATTRS_o_ai vec_mtvscr(vector bool short __a) { in vec_mtvscr()
4338 static __inline__ vector signed short __ATTRS_o_ai
4339 vec_mul(vector signed short __a, vector signed short __b) { in vec_mul()
4343 static __inline__ vector unsigned short __ATTRS_o_ai
4344 vec_mul(vector unsigned short __a, vector unsigned short __b) { in vec_mul()
4387 static __inline__ vector short __ATTRS_o_ai vec_mule(vector signed char __a, in vec_mule()
4396 static __inline__ vector unsigned short __ATTRS_o_ai
4405 static __inline__ vector int __ATTRS_o_ai vec_mule(vector short __a, in vec_mule()
4406 vector short __b) { in vec_mule()
4415 vec_mule(vector unsigned short __a, vector unsigned short __b) { in vec_mule()
4445 static __inline__ vector short __attribute__((__always_inline__))
4456 static __inline__ vector unsigned short __attribute__((__always_inline__))
4468 vec_vmulesh(vector short __a, vector short __b) { in vec_vmulesh()
4479 vec_vmuleuh(vector unsigned short __a, vector unsigned short __b) { in vec_vmuleuh()
4489 static __inline__ vector short __ATTRS_o_ai vec_mulo(vector signed char __a, in vec_mulo()
4498 static __inline__ vector unsigned short __ATTRS_o_ai
4507 static __inline__ vector int __ATTRS_o_ai vec_mulo(vector short __a, in vec_mulo()
4508 vector short __b) { in vec_mulo()
4517 vec_mulo(vector unsigned short __a, vector unsigned short __b) { in vec_mulo()
4547 static __inline__ vector short __attribute__((__always_inline__))
4558 static __inline__ vector unsigned short __attribute__((__always_inline__))
4570 vec_vmulosh(vector short __a, vector short __b) { in vec_vmulosh()
4581 vec_vmulouh(vector unsigned short __a, vector unsigned short __b) { in vec_vmulouh()
4627 static __inline__ vector signed short __ATTRS_o_ai
4628 vec_nand(vector signed short __a, vector signed short __b) { in vec_nand()
4632 static __inline__ vector signed short __ATTRS_o_ai
4633 vec_nand(vector signed short __a, vector bool short __b) { in vec_nand()
4637 static __inline__ vector signed short __ATTRS_o_ai
4638 vec_nand(vector bool short __a, vector signed short __b) { in vec_nand()
4642 static __inline__ vector unsigned short __ATTRS_o_ai
4643 vec_nand(vector unsigned short __a, vector unsigned short __b) { in vec_nand()
4647 static __inline__ vector unsigned short __ATTRS_o_ai
4648 vec_nand(vector unsigned short __a, vector bool short __b) { in vec_nand()
4652 static __inline__ vector bool short __ATTRS_o_ai
4653 vec_nand(vector bool short __a, vector bool short __b) { in vec_nand()
4791 static __inline__ vector short __ATTRS_o_ai vec_nor(vector short __a, in vec_nor()
4792 vector short __b) { in vec_nor()
4796 static __inline__ vector unsigned short __ATTRS_o_ai
4797 vec_nor(vector unsigned short __a, vector unsigned short __b) { in vec_nor()
4801 static __inline__ vector bool short __ATTRS_o_ai
4802 vec_nor(vector bool short __a, vector bool short __b) { in vec_nor()
4854 static __inline__ vector short __ATTRS_o_ai vec_vnor(vector short __a, in vec_vnor()
4855 vector short __b) { in vec_vnor()
4859 static __inline__ vector unsigned short __ATTRS_o_ai
4860 vec_vnor(vector unsigned short __a, vector unsigned short __b) { in vec_vnor()
4864 static __inline__ vector bool short __ATTRS_o_ai
4865 vec_vnor(vector bool short __a, vector bool short __b) { in vec_vnor()
4947 static __inline__ vector short __ATTRS_o_ai vec_or(vector short __a, in vec_or()
4948 vector short __b) { in vec_or()
4952 static __inline__ vector short __ATTRS_o_ai vec_or(vector bool short __a, in vec_or()
4953 vector short __b) { in vec_or()
4954 return (vector short)__a | __b; in vec_or()
4957 static __inline__ vector short __ATTRS_o_ai vec_or(vector short __a, in vec_or()
4958 vector bool short __b) { in vec_or()
4959 return __a | (vector short)__b; in vec_or()
4962 static __inline__ vector unsigned short __ATTRS_o_ai
4963 vec_or(vector unsigned short __a, vector unsigned short __b) { in vec_or()
4967 static __inline__ vector unsigned short __ATTRS_o_ai
4968 vec_or(vector bool short __a, vector unsigned short __b) { in vec_or()
4969 return (vector unsigned short)__a | __b; in vec_or()
4972 static __inline__ vector unsigned short __ATTRS_o_ai
4973 vec_or(vector unsigned short __a, vector bool short __b) { in vec_or()
4974 return __a | (vector unsigned short)__b; in vec_or()
4977 static __inline__ vector bool short __ATTRS_o_ai vec_or(vector bool short __a, in vec_or()
4978 vector bool short __b) { in vec_or()
5128 static __inline__ vector signed short __ATTRS_o_ai
5129 vec_orc(vector signed short __a, vector signed short __b) { in vec_orc()
5133 static __inline__ vector signed short __ATTRS_o_ai
5134 vec_orc(vector signed short __a, vector bool short __b) { in vec_orc()
5138 static __inline__ vector signed short __ATTRS_o_ai
5139 vec_orc(vector bool short __a, vector signed short __b) { in vec_orc()
5143 static __inline__ vector unsigned short __ATTRS_o_ai
5144 vec_orc(vector unsigned short __a, vector unsigned short __b) { in vec_orc()
5148 static __inline__ vector unsigned short __ATTRS_o_ai
5149 vec_orc(vector unsigned short __a, vector bool short __b) { in vec_orc()
5153 static __inline__ vector unsigned short __ATTRS_o_ai
5154 vec_orc(vector bool short __a, vector unsigned short __b) { in vec_orc()
5158 static __inline__ vector bool short __ATTRS_o_ai
5159 vec_orc(vector bool short __a, vector bool short __b) { in vec_orc()
5271 static __inline__ vector short __ATTRS_o_ai vec_vor(vector short __a, in vec_vor()
5272 vector short __b) { in vec_vor()
5276 static __inline__ vector short __ATTRS_o_ai vec_vor(vector bool short __a, in vec_vor()
5277 vector short __b) { in vec_vor()
5278 return (vector short)__a | __b; in vec_vor()
5281 static __inline__ vector short __ATTRS_o_ai vec_vor(vector short __a, in vec_vor()
5282 vector bool short __b) { in vec_vor()
5283 return __a | (vector short)__b; in vec_vor()
5286 static __inline__ vector unsigned short __ATTRS_o_ai
5287 vec_vor(vector unsigned short __a, vector unsigned short __b) { in vec_vor()
5291 static __inline__ vector unsigned short __ATTRS_o_ai
5292 vec_vor(vector bool short __a, vector unsigned short __b) { in vec_vor()
5293 return (vector unsigned short)__a | __b; in vec_vor()
5296 static __inline__ vector unsigned short __ATTRS_o_ai
5297 vec_vor(vector unsigned short __a, vector bool short __b) { in vec_vor()
5298 return __a | (vector unsigned short)__b; in vec_vor()
5301 static __inline__ vector bool short __ATTRS_o_ai
5302 vec_vor(vector bool short __a, vector bool short __b) { in vec_vor()
5401 /* The various vector pack instructions have a big-endian bias, so for
5405 vec_pack(vector signed short __a, vector signed short __b) { in vec_pack()
5420 vec_pack(vector unsigned short __a, vector unsigned short __b) { in vec_pack()
5435 vec_pack(vector bool short __a, vector bool short __b) { in vec_pack()
5449 static __inline__ vector short __ATTRS_o_ai vec_pack(vector int __a, in vec_pack()
5452 return (vector short)vec_perm( in vec_pack()
5457 return (vector short)vec_perm( in vec_pack()
5464 static __inline__ vector unsigned short __ATTRS_o_ai
5467 return (vector unsigned short)vec_perm( in vec_pack()
5472 return (vector unsigned short)vec_perm( in vec_pack()
5479 static __inline__ vector bool short __ATTRS_o_ai vec_pack(vector bool int __a, in vec_pack()
5482 return (vector bool short)vec_perm( in vec_pack()
5487 return (vector bool short)vec_perm( in vec_pack()
5546 vec_vpkuhum(vector signed short __a, vector signed short __b) { in vec_vpkuhum()
5561 vec_vpkuhum(vector unsigned short __a, vector unsigned short __b) { in vec_vpkuhum()
5576 vec_vpkuhum(vector bool short __a, vector bool short __b) { in vec_vpkuhum()
5594 static __inline__ vector short __ATTRS_o_ai vec_vpkuwum(vector int __a, in vec_vpkuwum()
5597 return (vector short)vec_perm( in vec_vpkuwum()
5602 return (vector short)vec_perm( in vec_vpkuwum()
5609 static __inline__ vector unsigned short __ATTRS_o_ai
5612 return (vector unsigned short)vec_perm( in vec_vpkuwum()
5617 return (vector unsigned short)vec_perm( in vec_vpkuwum()
5624 static __inline__ vector bool short __ATTRS_o_ai
5627 return (vector bool short)vec_perm( in vec_vpkuwum()
5632 return (vector bool short)vec_perm( in vec_vpkuwum()
5714 static __inline__ vector signed char __ATTRS_o_ai vec_packs(vector short __a, in vec_packs()
5715 vector short __b) { in vec_packs()
5724 vec_packs(vector unsigned short __a, vector unsigned short __b) { in vec_packs()
5732 static __inline__ vector signed short __ATTRS_o_ai vec_packs(vector int __a, in vec_packs()
5741 static __inline__ vector unsigned short __ATTRS_o_ai
5773 vec_vpkshss(vector short __a, vector short __b) { in vec_vpkshss()
5797 vec_vpkuhus(vector unsigned short __a, vector unsigned short __b) { in vec_vpkuhus()
5820 static __inline__ vector signed short __attribute__((__always_inline__))
5831 static __inline__ vector unsigned short __attribute__((__always_inline__))
5843 vec_packsu(vector short __a, vector short __b) { in vec_packsu()
5852 vec_packsu(vector unsigned short __a, vector unsigned short __b) { in vec_packsu()
5860 static __inline__ vector unsigned short __ATTRS_o_ai
5869 static __inline__ vector unsigned short __ATTRS_o_ai
5901 vec_vpkshus(vector short __a, vector short __b) { in vec_vpkshus()
5910 vec_vpkshus(vector unsigned short __a, vector unsigned short __b) { in vec_vpkshus()
5920 static __inline__ vector unsigned short __ATTRS_o_ai
5929 static __inline__ vector unsigned short __ATTRS_o_ai
5953 // The vperm instruction is defined architecturally with a big-endian bias.
6004 static __inline__ vector short __ATTRS_o_ai vec_perm(vector signed short __a, in vec_perm()
6005 vector signed short __b, in vec_perm()
6011 return (vector signed short)__builtin_altivec_vperm_4si((vector int)__b, in vec_perm()
6014 return (vector signed short)__builtin_altivec_vperm_4si((vector int)__a, in vec_perm()
6019 static __inline__ vector unsigned short __ATTRS_o_ai
6020 vec_perm(vector unsigned short __a, vector unsigned short __b, in vec_perm()
6026 return (vector unsigned short)__builtin_altivec_vperm_4si( in vec_perm()
6029 return (vector unsigned short)__builtin_altivec_vperm_4si( in vec_perm()
6034 static __inline__ vector bool short __ATTRS_o_ai vec_perm( in vec_perm()
6035 vector bool short __a, vector bool short __b, vector unsigned char __c) { in vec_perm()
6040 return (vector bool short)__builtin_altivec_vperm_4si((vector int)__b, in vec_perm()
6043 return (vector bool short)__builtin_altivec_vperm_4si((vector int)__a, in vec_perm()
6199 static __inline__ vector short __ATTRS_o_ai
6200 vec_vperm(vector short __a, vector short __b, vector unsigned char __c) { in vec_vperm()
6204 static __inline__ vector unsigned short __ATTRS_o_ai
6205 vec_vperm(vector unsigned short __a, vector unsigned short __b, in vec_vperm()
6210 static __inline__ vector bool short __ATTRS_o_ai vec_vperm( in vec_vperm()
6211 vector bool short __a, vector bool short __b, vector unsigned char __c) { in vec_vperm()
6295 static __inline__ vector short __ATTRS_o_ai vec_rl(vector short __a, in vec_rl()
6296 vector unsigned short __b) { in vec_rl()
6300 static __inline__ vector unsigned short __ATTRS_o_ai
6301 vec_rl(vector unsigned short __a, vector unsigned short __b) { in vec_rl()
6302 return (vector unsigned short)__builtin_altivec_vrlh((vector short)__a, __b); in vec_rl()
6341 static __inline__ vector short __ATTRS_o_ai
6342 vec_vrlh(vector short __a, vector unsigned short __b) { in vec_vrlh()
6346 static __inline__ vector unsigned short __ATTRS_o_ai
6347 vec_vrlh(vector unsigned short __a, vector unsigned short __b) { in vec_vrlh()
6348 return (vector unsigned short)__builtin_altivec_vrlh((vector short)__a, __b); in vec_vrlh()
6477 static __inline__ vector short __ATTRS_o_ai vec_sel(vector short __a, in vec_sel()
6478 vector short __b, in vec_sel()
6479 vector unsigned short __c) { in vec_sel()
6480 return (__a & ~(vector short)__c) | (__b & (vector short)__c); in vec_sel()
6483 static __inline__ vector short __ATTRS_o_ai vec_sel(vector short __a, in vec_sel()
6484 vector short __b, in vec_sel()
6485 vector bool short __c) { in vec_sel()
6486 return (__a & ~(vector short)__c) | (__b & (vector short)__c); in vec_sel()
6489 static __inline__ vector unsigned short __ATTRS_o_ai
6490 vec_sel(vector unsigned short __a, vector unsigned short __b, in vec_sel()
6491 vector unsigned short __c) { in vec_sel()
6495 static __inline__ vector unsigned short __ATTRS_o_ai
6496 vec_sel(vector unsigned short __a, vector unsigned short __b, in vec_sel()
6497 vector bool short __c) { in vec_sel()
6498 return (__a & ~(vector unsigned short)__c) | in vec_sel()
6499 (__b & (vector unsigned short)__c); in vec_sel()
6502 static __inline__ vector bool short __ATTRS_o_ai vec_sel( in vec_sel()
6503 vector bool short __a, vector bool short __b, vector unsigned short __c) { in vec_sel()
6504 return (__a & ~(vector bool short)__c) | (__b & (vector bool short)__c); in vec_sel()
6507 static __inline__ vector bool short __ATTRS_o_ai
6508 vec_sel(vector bool short __a, vector bool short __b, vector bool short __c) { in vec_sel()
6611 static __inline__ vector short __ATTRS_o_ai
6612 vec_vsel(vector short __a, vector short __b, vector unsigned short __c) { in vec_vsel()
6613 return (__a & ~(vector short)__c) | (__b & (vector short)__c); in vec_vsel()
6616 static __inline__ vector short __ATTRS_o_ai vec_vsel(vector short __a, in vec_vsel()
6617 vector short __b, in vec_vsel()
6618 vector bool short __c) { in vec_vsel()
6619 return (__a & ~(vector short)__c) | (__b & (vector short)__c); in vec_vsel()
6622 static __inline__ vector unsigned short __ATTRS_o_ai
6623 vec_vsel(vector unsigned short __a, vector unsigned short __b, in vec_vsel()
6624 vector unsigned short __c) { in vec_vsel()
6628 static __inline__ vector unsigned short __ATTRS_o_ai
6629 vec_vsel(vector unsigned short __a, vector unsigned short __b, in vec_vsel()
6630 vector bool short __c) { in vec_vsel()
6631 return (__a & ~(vector unsigned short)__c) | in vec_vsel()
6632 (__b & (vector unsigned short)__c); in vec_vsel()
6635 static __inline__ vector bool short __ATTRS_o_ai vec_vsel( in vec_vsel()
6636 vector bool short __a, vector bool short __b, vector unsigned short __c) { in vec_vsel()
6637 return (__a & ~(vector bool short)__c) | (__b & (vector bool short)__c); in vec_vsel()
6640 static __inline__ vector bool short __ATTRS_o_ai
6641 vec_vsel(vector bool short __a, vector bool short __b, vector bool short __c) { in vec_vsel()
6706 static __inline__ vector short __ATTRS_o_ai vec_sl(vector short __a, in vec_sl()
6707 vector unsigned short __b) { in vec_sl()
6708 return __a << (vector short)__b; in vec_sl()
6711 static __inline__ vector unsigned short __ATTRS_o_ai
6712 vec_sl(vector unsigned short __a, vector unsigned short __b) { in vec_sl()
6756 static __inline__ vector short __ATTRS_o_ai
6757 vec_vslh(vector short __a, vector unsigned short __b) { in vec_vslh()
6761 static __inline__ vector unsigned short __ATTRS_o_ai
6762 vec_vslh(vector unsigned short __a, vector unsigned short __b) { in vec_vslh()
6789 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_sld()
6790 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_sld()
6791 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_sld()
6792 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_sld()
6808 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_sld()
6809 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_sld()
6810 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_sld()
6811 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_sld()
6826 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_sld()
6827 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_sld()
6828 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_sld()
6829 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_sld()
6839 static __inline__ vector signed short __ATTRS_o_ai vec_sld( in vec_sld()
6840 vector signed short __a, vector signed short __b, unsigned const int __c) { in vec_sld()
6844 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_sld()
6845 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_sld()
6846 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_sld()
6847 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_sld()
6857 static __inline__ vector unsigned short __ATTRS_o_ai
6858 vec_sld(vector unsigned short __a, vector unsigned short __b, in vec_sld()
6863 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_sld()
6864 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_sld()
6865 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_sld()
6866 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_sld()
6876 static __inline__ vector bool short __ATTRS_o_ai
6877 vec_sld(vector bool short __a, vector bool short __b, unsigned const int __c) { in vec_sld()
6881 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_sld()
6882 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_sld()
6883 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_sld()
6884 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_sld()
6900 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_sld()
6901 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_sld()
6902 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_sld()
6903 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_sld()
6918 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_sld()
6919 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_sld()
6920 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_sld()
6921 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_sld()
6936 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_sld()
6937 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_sld()
6938 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_sld()
6939 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_sld()
6955 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_sld()
6956 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_sld()
6957 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_sld()
6958 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_sld()
6974 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_sld()
6975 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_sld()
6976 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_sld()
6977 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_sld()
6994 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_vsldoi()
6995 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_vsldoi()
6996 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_vsldoi()
6997 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_vsldoi()
7012 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_vsldoi()
7013 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_vsldoi()
7014 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_vsldoi()
7015 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_vsldoi()
7025 static __inline__ vector short __ATTRS_o_ai vec_vsldoi(vector short __a, in vec_vsldoi()
7026 vector short __b, in vec_vsldoi()
7031 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_vsldoi()
7032 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_vsldoi()
7033 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_vsldoi()
7034 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_vsldoi()
7044 static __inline__ vector unsigned short __ATTRS_o_ai vec_vsldoi( in vec_vsldoi()
7045 vector unsigned short __a, vector unsigned short __b, unsigned char __c) { in vec_vsldoi()
7049 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_vsldoi()
7050 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_vsldoi()
7051 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_vsldoi()
7052 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_vsldoi()
7068 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_vsldoi()
7069 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_vsldoi()
7070 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_vsldoi()
7071 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_vsldoi()
7087 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_vsldoi()
7088 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_vsldoi()
7089 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_vsldoi()
7090 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_vsldoi()
7105 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_vsldoi()
7106 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_vsldoi()
7107 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_vsldoi()
7108 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_vsldoi()
7124 __b, __a, (vector unsigned char)(16 - __d, 17 - __d, 18 - __d, 19 - __d, in vec_vsldoi()
7125 20 - __d, 21 - __d, 22 - __d, 23 - __d, in vec_vsldoi()
7126 24 - __d, 25 - __d, 26 - __d, 27 - __d, in vec_vsldoi()
7127 28 - __d, 29 - __d, 30 - __d, 31 - __d)); in vec_vsldoi()
7146 vec_sll(vector signed char __a, vector unsigned short __b) { in vec_sll()
7164 vec_sll(vector unsigned char __a, vector unsigned short __b) { in vec_sll()
7182 vec_sll(vector bool char __a, vector unsigned short __b) { in vec_sll()
7193 static __inline__ vector short __ATTRS_o_ai vec_sll(vector short __a, in vec_sll()
7195 return (vector short)__builtin_altivec_vsl((vector int)__a, (vector int)__b); in vec_sll()
7198 static __inline__ vector short __ATTRS_o_ai vec_sll(vector short __a, in vec_sll()
7199 vector unsigned short __b) { in vec_sll()
7200 return (vector short)__builtin_altivec_vsl((vector int)__a, (vector int)__b); in vec_sll()
7203 static __inline__ vector short __ATTRS_o_ai vec_sll(vector short __a, in vec_sll()
7205 return (vector short)__builtin_altivec_vsl((vector int)__a, (vector int)__b); in vec_sll()
7208 static __inline__ vector unsigned short __ATTRS_o_ai
7209 vec_sll(vector unsigned short __a, vector unsigned char __b) { in vec_sll()
7210 return (vector unsigned short)__builtin_altivec_vsl((vector int)__a, in vec_sll()
7214 static __inline__ vector unsigned short __ATTRS_o_ai
7215 vec_sll(vector unsigned short __a, vector unsigned short __b) { in vec_sll()
7216 return (vector unsigned short)__builtin_altivec_vsl((vector int)__a, in vec_sll()
7220 static __inline__ vector unsigned short __ATTRS_o_ai
7221 vec_sll(vector unsigned short __a, vector unsigned int __b) { in vec_sll()
7222 return (vector unsigned short)__builtin_altivec_vsl((vector int)__a, in vec_sll()
7226 static __inline__ vector bool short __ATTRS_o_ai
7227 vec_sll(vector bool short __a, vector unsigned char __b) { in vec_sll()
7228 return (vector bool short)__builtin_altivec_vsl((vector int)__a, in vec_sll()
7232 static __inline__ vector bool short __ATTRS_o_ai
7233 vec_sll(vector bool short __a, vector unsigned short __b) { in vec_sll()
7234 return (vector bool short)__builtin_altivec_vsl((vector int)__a, in vec_sll()
7238 static __inline__ vector bool short __ATTRS_o_ai
7239 vec_sll(vector bool short __a, vector unsigned int __b) { in vec_sll()
7240 return (vector bool short)__builtin_altivec_vsl((vector int)__a, in vec_sll()
7250 vector unsigned short __b) { in vec_sll()
7265 vector unsigned short __b) { in vec_sll()
7281 vec_sll(vector unsigned int __a, vector unsigned short __b) { in vec_sll()
7299 vec_sll(vector bool int __a, vector unsigned short __b) { in vec_sll()
7319 vec_vsl(vector signed char __a, vector unsigned short __b) { in vec_vsl()
7337 vec_vsl(vector unsigned char __a, vector unsigned short __b) { in vec_vsl()
7355 vec_vsl(vector bool char __a, vector unsigned short __b) { in vec_vsl()
7366 static __inline__ vector short __ATTRS_o_ai vec_vsl(vector short __a, in vec_vsl()
7368 return (vector short)__builtin_altivec_vsl((vector int)__a, (vector int)__b); in vec_vsl()
7371 static __inline__ vector short __ATTRS_o_ai vec_vsl(vector short __a, in vec_vsl()
7372 vector unsigned short __b) { in vec_vsl()
7373 return (vector short)__builtin_altivec_vsl((vector int)__a, (vector int)__b); in vec_vsl()
7376 static __inline__ vector short __ATTRS_o_ai vec_vsl(vector short __a, in vec_vsl()
7378 return (vector short)__builtin_altivec_vsl((vector int)__a, (vector int)__b); in vec_vsl()
7381 static __inline__ vector unsigned short __ATTRS_o_ai
7382 vec_vsl(vector unsigned short __a, vector unsigned char __b) { in vec_vsl()
7383 return (vector unsigned short)__builtin_altivec_vsl((vector int)__a, in vec_vsl()
7387 static __inline__ vector unsigned short __ATTRS_o_ai
7388 vec_vsl(vector unsigned short __a, vector unsigned short __b) { in vec_vsl()
7389 return (vector unsigned short)__builtin_altivec_vsl((vector int)__a, in vec_vsl()
7393 static __inline__ vector unsigned short __ATTRS_o_ai
7394 vec_vsl(vector unsigned short __a, vector unsigned int __b) { in vec_vsl()
7395 return (vector unsigned short)__builtin_altivec_vsl((vector int)__a, in vec_vsl()
7399 static __inline__ vector bool short __ATTRS_o_ai
7400 vec_vsl(vector bool short __a, vector unsigned char __b) { in vec_vsl()
7401 return (vector bool short)__builtin_altivec_vsl((vector int)__a, in vec_vsl()
7405 static __inline__ vector bool short __ATTRS_o_ai
7406 vec_vsl(vector bool short __a, vector unsigned short __b) { in vec_vsl()
7407 return (vector bool short)__builtin_altivec_vsl((vector int)__a, in vec_vsl()
7411 static __inline__ vector bool short __ATTRS_o_ai
7412 vec_vsl(vector bool short __a, vector unsigned int __b) { in vec_vsl()
7413 return (vector bool short)__builtin_altivec_vsl((vector int)__a, in vec_vsl()
7423 vector unsigned short __b) { in vec_vsl()
7438 vector unsigned short __b) { in vec_vsl()
7454 vec_vsl(vector unsigned int __a, vector unsigned short __b) { in vec_vsl()
7472 vec_vsl(vector bool int __a, vector unsigned short __b) { in vec_vsl()
7509 static __inline__ vector short __ATTRS_o_ai vec_slo(vector short __a, in vec_slo()
7511 return (vector short)__builtin_altivec_vslo((vector int)__a, (vector int)__b); in vec_slo()
7514 static __inline__ vector short __ATTRS_o_ai vec_slo(vector short __a, in vec_slo()
7516 return (vector short)__builtin_altivec_vslo((vector int)__a, (vector int)__b); in vec_slo()
7519 static __inline__ vector unsigned short __ATTRS_o_ai
7520 vec_slo(vector unsigned short __a, vector signed char __b) { in vec_slo()
7521 return (vector unsigned short)__builtin_altivec_vslo((vector int)__a, in vec_slo()
7525 static __inline__ vector unsigned short __ATTRS_o_ai
7526 vec_slo(vector unsigned short __a, vector unsigned char __b) { in vec_slo()
7527 return (vector unsigned short)__builtin_altivec_vslo((vector int)__a, in vec_slo()
7599 static __inline__ vector short __ATTRS_o_ai vec_vslo(vector short __a, in vec_vslo()
7601 return (vector short)__builtin_altivec_vslo((vector int)__a, (vector int)__b); in vec_vslo()
7604 static __inline__ vector short __ATTRS_o_ai vec_vslo(vector short __a, in vec_vslo()
7606 return (vector short)__builtin_altivec_vslo((vector int)__a, (vector int)__b); in vec_vslo()
7609 static __inline__ vector unsigned short __ATTRS_o_ai
7610 vec_vslo(vector unsigned short __a, vector signed char __b) { in vec_vslo()
7611 return (vector unsigned short)__builtin_altivec_vslo((vector int)__a, in vec_vslo()
7615 static __inline__ vector unsigned short __ATTRS_o_ai
7616 vec_vslo(vector unsigned short __a, vector unsigned char __b) { in vec_vslo()
7617 return (vector unsigned short)__builtin_altivec_vslo((vector int)__a, in vec_vslo()
7680 static __inline__ vector signed short __ATTRS_o_ai
7681 vec_splat(vector signed short __a, unsigned const int __b) { in vec_splat()
7689 static __inline__ vector unsigned short __ATTRS_o_ai
7690 vec_splat(vector unsigned short __a, unsigned const int __b) { in vec_splat()
7698 static __inline__ vector bool short __ATTRS_o_ai
7699 vec_splat(vector bool short __a, unsigned const int __b) { in vec_splat()
7814 static __inline__ vector short __ATTRS_o_ai vec_vsplth(vector short __a, in vec_vsplth()
7823 static __inline__ vector unsigned short __ATTRS_o_ai
7824 vec_vsplth(vector unsigned short __a, unsigned char __b) { in vec_vsplth()
7832 static __inline__ vector bool short __ATTRS_o_ai
7833 vec_vsplth(vector bool short __a, unsigned char __b) { in vec_vsplth()
7894 // FIXME: parameter should be treated as 5-bit signed literal
7902 // FIXME: parameter should be treated as 5-bit signed literal
7912 // FIXME: parameter should be treated as 5-bit signed literal
7913 static __inline__ vector short __ATTRS_o_ai vec_splat_s16(signed char __a) { in vec_splat_s16()
7914 return (vector short)(__a); in vec_splat_s16()
7919 // FIXME: parameter should be treated as 5-bit signed literal
7920 static __inline__ vector short __ATTRS_o_ai vec_vspltish(signed char __a) { in vec_vspltish()
7921 return (vector short)(__a); in vec_vspltish()
7928 // FIXME: parameter should be treated as 5-bit signed literal
7935 // FIXME: parameter should be treated as 5-bit signed literal
7942 // FIXME: parameter should be treated as 5-bit signed literal
7950 // FIXME: parameter should be treated as 5-bit signed literal
7951 static __inline__ vector unsigned short __ATTRS_o_ai
7953 return (vector unsigned short)(__a); in vec_splat_u16()
7958 // FIXME: parameter should be treated as 5-bit signed literal
7977 static __inline__ vector signed short __ATTRS_o_ai
7978 vec_sr(vector signed short __a, vector unsigned short __b) { in vec_sr()
7979 vector unsigned short __res = (vector unsigned short)__a >> __b; in vec_sr()
7980 return (vector signed short)__res; in vec_sr()
7983 static __inline__ vector unsigned short __ATTRS_o_ai
7984 vec_sr(vector unsigned short __a, vector unsigned short __b) { in vec_sr()
8030 static __inline__ vector short __ATTRS_o_ai
8031 vec_vsrh(vector short __a, vector unsigned short __b) { in vec_vsrh()
8032 return __a >> (vector short)__b; in vec_vsrh()
8035 static __inline__ vector unsigned short __ATTRS_o_ai
8036 vec_vsrh(vector unsigned short __a, vector unsigned short __b) { in vec_vsrh()
8066 static __inline__ vector short __ATTRS_o_ai vec_sra(vector short __a, in vec_sra()
8067 vector unsigned short __b) { in vec_sra()
8068 return __builtin_altivec_vsrah(__a, (vector unsigned short)__b); in vec_sra()
8071 static __inline__ vector unsigned short __ATTRS_o_ai
8072 vec_sra(vector unsigned short __a, vector unsigned short __b) { in vec_sra()
8073 return (vector unsigned short)__builtin_altivec_vsrah((vector short)__a, __b); in vec_sra()
8112 static __inline__ vector short __ATTRS_o_ai
8113 vec_vsrah(vector short __a, vector unsigned short __b) { in vec_vsrah()
8114 return __builtin_altivec_vsrah(__a, (vector unsigned short)__b); in vec_vsrah()
8117 static __inline__ vector unsigned short __ATTRS_o_ai
8118 vec_vsrah(vector unsigned short __a, vector unsigned short __b) { in vec_vsrah()
8119 return (vector unsigned short)__builtin_altivec_vsrah((vector short)__a, __b); in vec_vsrah()
8143 vec_srl(vector signed char __a, vector unsigned short __b) { in vec_srl()
8161 vec_srl(vector unsigned char __a, vector unsigned short __b) { in vec_srl()
8179 vec_srl(vector bool char __a, vector unsigned short __b) { in vec_srl()
8190 static __inline__ vector short __ATTRS_o_ai vec_srl(vector short __a, in vec_srl()
8192 return (vector short)__builtin_altivec_vsr((vector int)__a, (vector int)__b); in vec_srl()
8195 static __inline__ vector short __ATTRS_o_ai vec_srl(vector short __a, in vec_srl()
8196 vector unsigned short __b) { in vec_srl()
8197 return (vector short)__builtin_altivec_vsr((vector int)__a, (vector int)__b); in vec_srl()
8200 static __inline__ vector short __ATTRS_o_ai vec_srl(vector short __a, in vec_srl()
8202 return (vector short)__builtin_altivec_vsr((vector int)__a, (vector int)__b); in vec_srl()
8205 static __inline__ vector unsigned short __ATTRS_o_ai
8206 vec_srl(vector unsigned short __a, vector unsigned char __b) { in vec_srl()
8207 return (vector unsigned short)__builtin_altivec_vsr((vector int)__a, in vec_srl()
8211 static __inline__ vector unsigned short __ATTRS_o_ai
8212 vec_srl(vector unsigned short __a, vector unsigned short __b) { in vec_srl()
8213 return (vector unsigned short)__builtin_altivec_vsr((vector int)__a, in vec_srl()
8217 static __inline__ vector unsigned short __ATTRS_o_ai
8218 vec_srl(vector unsigned short __a, vector unsigned int __b) { in vec_srl()
8219 return (vector unsigned short)__builtin_altivec_vsr((vector int)__a, in vec_srl()
8223 static __inline__ vector bool short __ATTRS_o_ai
8224 vec_srl(vector bool short __a, vector unsigned char __b) { in vec_srl()
8225 return (vector bool short)__builtin_altivec_vsr((vector int)__a, in vec_srl()
8229 static __inline__ vector bool short __ATTRS_o_ai
8230 vec_srl(vector bool short __a, vector unsigned short __b) { in vec_srl()
8231 return (vector bool short)__builtin_altivec_vsr((vector int)__a, in vec_srl()
8235 static __inline__ vector bool short __ATTRS_o_ai
8236 vec_srl(vector bool short __a, vector unsigned int __b) { in vec_srl()
8237 return (vector bool short)__builtin_altivec_vsr((vector int)__a, in vec_srl()
8247 vector unsigned short __b) { in vec_srl()
8262 vector unsigned short __b) { in vec_srl()
8278 vec_srl(vector unsigned int __a, vector unsigned short __b) { in vec_srl()
8296 vec_srl(vector bool int __a, vector unsigned short __b) { in vec_srl()
8316 vec_vsr(vector signed char __a, vector unsigned short __b) { in vec_vsr()
8334 vec_vsr(vector unsigned char __a, vector unsigned short __b) { in vec_vsr()
8352 vec_vsr(vector bool char __a, vector unsigned short __b) { in vec_vsr()
8363 static __inline__ vector short __ATTRS_o_ai vec_vsr(vector short __a, in vec_vsr()
8365 return (vector short)__builtin_altivec_vsr((vector int)__a, (vector int)__b); in vec_vsr()
8368 static __inline__ vector short __ATTRS_o_ai vec_vsr(vector short __a, in vec_vsr()
8369 vector unsigned short __b) { in vec_vsr()
8370 return (vector short)__builtin_altivec_vsr((vector int)__a, (vector int)__b); in vec_vsr()
8373 static __inline__ vector short __ATTRS_o_ai vec_vsr(vector short __a, in vec_vsr()
8375 return (vector short)__builtin_altivec_vsr((vector int)__a, (vector int)__b); in vec_vsr()
8378 static __inline__ vector unsigned short __ATTRS_o_ai
8379 vec_vsr(vector unsigned short __a, vector unsigned char __b) { in vec_vsr()
8380 return (vector unsigned short)__builtin_altivec_vsr((vector int)__a, in vec_vsr()
8384 static __inline__ vector unsigned short __ATTRS_o_ai
8385 vec_vsr(vector unsigned short __a, vector unsigned short __b) { in vec_vsr()
8386 return (vector unsigned short)__builtin_altivec_vsr((vector int)__a, in vec_vsr()
8390 static __inline__ vector unsigned short __ATTRS_o_ai
8391 vec_vsr(vector unsigned short __a, vector unsigned int __b) { in vec_vsr()
8392 return (vector unsigned short)__builtin_altivec_vsr((vector int)__a, in vec_vsr()
8396 static __inline__ vector bool short __ATTRS_o_ai
8397 vec_vsr(vector bool short __a, vector unsigned char __b) { in vec_vsr()
8398 return (vector bool short)__builtin_altivec_vsr((vector int)__a, in vec_vsr()
8402 static __inline__ vector bool short __ATTRS_o_ai
8403 vec_vsr(vector bool short __a, vector unsigned short __b) { in vec_vsr()
8404 return (vector bool short)__builtin_altivec_vsr((vector int)__a, in vec_vsr()
8408 static __inline__ vector bool short __ATTRS_o_ai
8409 vec_vsr(vector bool short __a, vector unsigned int __b) { in vec_vsr()
8410 return (vector bool short)__builtin_altivec_vsr((vector int)__a, in vec_vsr()
8420 vector unsigned short __b) { in vec_vsr()
8435 vector unsigned short __b) { in vec_vsr()
8451 vec_vsr(vector unsigned int __a, vector unsigned short __b) { in vec_vsr()
8469 vec_vsr(vector bool int __a, vector unsigned short __b) { in vec_vsr()
8506 static __inline__ vector short __ATTRS_o_ai vec_sro(vector short __a, in vec_sro()
8508 return (vector short)__builtin_altivec_vsro((vector int)__a, (vector int)__b); in vec_sro()
8511 static __inline__ vector short __ATTRS_o_ai vec_sro(vector short __a, in vec_sro()
8513 return (vector short)__builtin_altivec_vsro((vector int)__a, (vector int)__b); in vec_sro()
8516 static __inline__ vector unsigned short __ATTRS_o_ai
8517 vec_sro(vector unsigned short __a, vector signed char __b) { in vec_sro()
8518 return (vector unsigned short)__builtin_altivec_vsro((vector int)__a, in vec_sro()
8522 static __inline__ vector unsigned short __ATTRS_o_ai
8523 vec_sro(vector unsigned short __a, vector unsigned char __b) { in vec_sro()
8524 return (vector unsigned short)__builtin_altivec_vsro((vector int)__a, in vec_sro()
8596 static __inline__ vector short __ATTRS_o_ai vec_vsro(vector short __a, in vec_vsro()
8598 return (vector short)__builtin_altivec_vsro((vector int)__a, (vector int)__b); in vec_vsro()
8601 static __inline__ vector short __ATTRS_o_ai vec_vsro(vector short __a, in vec_vsro()
8603 return (vector short)__builtin_altivec_vsro((vector int)__a, (vector int)__b); in vec_vsro()
8606 static __inline__ vector unsigned short __ATTRS_o_ai
8607 vec_vsro(vector unsigned short __a, vector signed char __b) { in vec_vsro()
8608 return (vector unsigned short)__builtin_altivec_vsro((vector int)__a, in vec_vsro()
8612 static __inline__ vector unsigned short __ATTRS_o_ai
8613 vec_vsro(vector unsigned short __a, vector unsigned char __b) { in vec_vsro()
8614 return (vector unsigned short)__builtin_altivec_vsro((vector int)__a, in vec_vsro()
8697 static __inline__ void __ATTRS_o_ai vec_st(vector short __a, int __b, in vec_st()
8698 vector short *__c) { in vec_st()
8702 static __inline__ void __ATTRS_o_ai vec_st(vector short __a, int __b, in vec_st()
8703 short *__c) { in vec_st()
8707 static __inline__ void __ATTRS_o_ai vec_st(vector unsigned short __a, int __b, in vec_st()
8708 vector unsigned short *__c) { in vec_st()
8712 static __inline__ void __ATTRS_o_ai vec_st(vector unsigned short __a, int __b, in vec_st()
8713 unsigned short *__c) { in vec_st()
8717 static __inline__ void __ATTRS_o_ai vec_st(vector bool short __a, int __b, in vec_st()
8718 short *__c) { in vec_st()
8722 static __inline__ void __ATTRS_o_ai vec_st(vector bool short __a, int __b, in vec_st()
8723 unsigned short *__c) { in vec_st()
8727 static __inline__ void __ATTRS_o_ai vec_st(vector bool short __a, int __b, in vec_st()
8728 vector bool short *__c) { in vec_st()
8733 short *__c) { in vec_st()
8738 unsigned short *__c) { in vec_st()
8828 static __inline__ void __ATTRS_o_ai vec_stvx(vector short __a, int __b, in vec_stvx()
8829 vector short *__c) { in vec_stvx()
8833 static __inline__ void __ATTRS_o_ai vec_stvx(vector short __a, int __b, in vec_stvx()
8834 short *__c) { in vec_stvx()
8838 static __inline__ void __ATTRS_o_ai vec_stvx(vector unsigned short __a, int __b, in vec_stvx()
8839 vector unsigned short *__c) { in vec_stvx()
8843 static __inline__ void __ATTRS_o_ai vec_stvx(vector unsigned short __a, int __b, in vec_stvx()
8844 unsigned short *__c) { in vec_stvx()
8848 static __inline__ void __ATTRS_o_ai vec_stvx(vector bool short __a, int __b, in vec_stvx()
8849 short *__c) { in vec_stvx()
8853 static __inline__ void __ATTRS_o_ai vec_stvx(vector bool short __a, int __b, in vec_stvx()
8854 unsigned short *__c) { in vec_stvx()
8858 static __inline__ void __ATTRS_o_ai vec_stvx(vector bool short __a, int __b, in vec_stvx()
8859 vector bool short *__c) { in vec_stvx()
8864 short *__c) { in vec_stvx()
8869 unsigned short *__c) { in vec_stvx()
8945 static __inline__ void __ATTRS_o_ai vec_ste(vector short __a, int __b, in vec_ste()
8946 short *__c) { in vec_ste()
8950 static __inline__ void __ATTRS_o_ai vec_ste(vector unsigned short __a, int __b, in vec_ste()
8951 unsigned short *__c) { in vec_ste()
8952 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_ste()
8955 static __inline__ void __ATTRS_o_ai vec_ste(vector bool short __a, int __b, in vec_ste()
8956 short *__c) { in vec_ste()
8957 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_ste()
8960 static __inline__ void __ATTRS_o_ai vec_ste(vector bool short __a, int __b, in vec_ste()
8961 unsigned short *__c) { in vec_ste()
8962 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_ste()
8966 short *__c) { in vec_ste()
8967 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_ste()
8971 unsigned short *__c) { in vec_ste()
8972 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_ste()
9023 static __inline__ void __ATTRS_o_ai vec_stvehx(vector short __a, int __b, in vec_stvehx()
9024 short *__c) { in vec_stvehx()
9028 static __inline__ void __ATTRS_o_ai vec_stvehx(vector unsigned short __a, in vec_stvehx()
9029 int __b, unsigned short *__c) { in vec_stvehx()
9030 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_stvehx()
9033 static __inline__ void __ATTRS_o_ai vec_stvehx(vector bool short __a, int __b, in vec_stvehx()
9034 short *__c) { in vec_stvehx()
9035 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_stvehx()
9038 static __inline__ void __ATTRS_o_ai vec_stvehx(vector bool short __a, int __b, in vec_stvehx()
9039 unsigned short *__c) { in vec_stvehx()
9040 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_stvehx()
9044 short *__c) { in vec_stvehx()
9045 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_stvehx()
9049 unsigned short *__c) { in vec_stvehx()
9050 __builtin_altivec_stvehx((vector short)__a, __b, __c); in vec_stvehx()
9117 static __inline__ void __ATTRS_o_ai vec_stl(vector short __a, int __b, in vec_stl()
9118 vector short *__c) { in vec_stl()
9122 static __inline__ void __ATTRS_o_ai vec_stl(vector short __a, int __b, in vec_stl()
9123 short *__c) { in vec_stl()
9127 static __inline__ void __ATTRS_o_ai vec_stl(vector unsigned short __a, int __b, in vec_stl()
9128 vector unsigned short *__c) { in vec_stl()
9132 static __inline__ void __ATTRS_o_ai vec_stl(vector unsigned short __a, int __b, in vec_stl()
9133 unsigned short *__c) { in vec_stl()
9137 static __inline__ void __ATTRS_o_ai vec_stl(vector bool short __a, int __b, in vec_stl()
9138 short *__c) { in vec_stl()
9142 static __inline__ void __ATTRS_o_ai vec_stl(vector bool short __a, int __b, in vec_stl()
9143 unsigned short *__c) { in vec_stl()
9147 static __inline__ void __ATTRS_o_ai vec_stl(vector bool short __a, int __b, in vec_stl()
9148 vector bool short *__c) { in vec_stl()
9153 short *__c) { in vec_stl()
9158 unsigned short *__c) { in vec_stl()
9248 static __inline__ void __ATTRS_o_ai vec_stvxl(vector short __a, int __b, in vec_stvxl()
9249 vector short *__c) { in vec_stvxl()
9253 static __inline__ void __ATTRS_o_ai vec_stvxl(vector short __a, int __b, in vec_stvxl()
9254 short *__c) { in vec_stvxl()
9258 static __inline__ void __ATTRS_o_ai vec_stvxl(vector unsigned short __a, in vec_stvxl()
9260 vector unsigned short *__c) { in vec_stvxl()
9264 static __inline__ void __ATTRS_o_ai vec_stvxl(vector unsigned short __a, in vec_stvxl()
9265 int __b, unsigned short *__c) { in vec_stvxl()
9269 static __inline__ void __ATTRS_o_ai vec_stvxl(vector bool short __a, int __b, in vec_stvxl()
9270 short *__c) { in vec_stvxl()
9274 static __inline__ void __ATTRS_o_ai vec_stvxl(vector bool short __a, int __b, in vec_stvxl()
9275 unsigned short *__c) { in vec_stvxl()
9279 static __inline__ void __ATTRS_o_ai vec_stvxl(vector bool short __a, int __b, in vec_stvxl()
9280 vector bool short *__c) { in vec_stvxl()
9285 short *__c) { in vec_stvxl()
9290 unsigned short *__c) { in vec_stvxl()
9348 return __a - __b; in vec_sub()
9353 return (vector signed char)__a - __b; in vec_sub()
9358 return __a - (vector signed char)__b; in vec_sub()
9363 return __a - __b; in vec_sub()
9368 return (vector unsigned char)__a - __b; in vec_sub()
9373 return __a - (vector unsigned char)__b; in vec_sub()
9376 static __inline__ vector short __ATTRS_o_ai vec_sub(vector short __a, in vec_sub()
9377 vector short __b) { in vec_sub()
9378 return __a - __b; in vec_sub()
9381 static __inline__ vector short __ATTRS_o_ai vec_sub(vector bool short __a, in vec_sub()
9382 vector short __b) { in vec_sub()
9383 return (vector short)__a - __b; in vec_sub()
9386 static __inline__ vector short __ATTRS_o_ai vec_sub(vector short __a, in vec_sub()
9387 vector bool short __b) { in vec_sub()
9388 return __a - (vector short)__b; in vec_sub()
9391 static __inline__ vector unsigned short __ATTRS_o_ai
9392 vec_sub(vector unsigned short __a, vector unsigned short __b) { in vec_sub()
9393 return __a - __b; in vec_sub()
9396 static __inline__ vector unsigned short __ATTRS_o_ai
9397 vec_sub(vector bool short __a, vector unsigned short __b) { in vec_sub()
9398 return (vector unsigned short)__a - __b; in vec_sub()
9401 static __inline__ vector unsigned short __ATTRS_o_ai
9402 vec_sub(vector unsigned short __a, vector bool short __b) { in vec_sub()
9403 return __a - (vector unsigned short)__b; in vec_sub()
9408 return __a - __b; in vec_sub()
9413 return (vector int)__a - __b; in vec_sub()
9418 return __a - (vector int)__b; in vec_sub()
9423 return __a - __b; in vec_sub()
9428 return (vector unsigned int)__a - __b; in vec_sub()
9433 return __a - (vector unsigned int)__b; in vec_sub()
9439 return __a - __b; in vec_sub()
9444 return __a - __b; in vec_sub()
9451 return __a - __b; in vec_sub()
9456 return __a - __b; in vec_sub()
9461 return __a - __b; in vec_sub()
9467 return __a - __b; in vec_sub()
9476 return __a - __b; in vec_vsububm()
9481 return (vector signed char)__a - __b; in vec_vsububm()
9486 return __a - (vector signed char)__b; in vec_vsububm()
9491 return __a - __b; in vec_vsububm()
9496 return (vector unsigned char)__a - __b; in vec_vsububm()
9501 return __a - (vector unsigned char)__b; in vec_vsububm()
9508 static __inline__ vector short __ATTRS_o_ai vec_vsubuhm(vector short __a, in vec_vsubuhm()
9509 vector short __b) { in vec_vsubuhm()
9510 return __a - __b; in vec_vsubuhm()
9513 static __inline__ vector short __ATTRS_o_ai vec_vsubuhm(vector bool short __a, in vec_vsubuhm()
9514 vector short __b) { in vec_vsubuhm()
9515 return (vector short)__a - __b; in vec_vsubuhm()
9518 static __inline__ vector short __ATTRS_o_ai vec_vsubuhm(vector short __a, in vec_vsubuhm()
9519 vector bool short __b) { in vec_vsubuhm()
9520 return __a - (vector short)__b; in vec_vsubuhm()
9523 static __inline__ vector unsigned short __ATTRS_o_ai
9524 vec_vsubuhm(vector unsigned short __a, vector unsigned short __b) { in vec_vsubuhm()
9525 return __a - __b; in vec_vsubuhm()
9528 static __inline__ vector unsigned short __ATTRS_o_ai
9529 vec_vsubuhm(vector bool short __a, vector unsigned short __b) { in vec_vsubuhm()
9530 return (vector unsigned short)__a - __b; in vec_vsubuhm()
9533 static __inline__ vector unsigned short __ATTRS_o_ai
9534 vec_vsubuhm(vector unsigned short __a, vector bool short __b) { in vec_vsubuhm()
9535 return __a - (vector unsigned short)__b; in vec_vsubuhm()
9544 return __a - __b; in vec_vsubuwm()
9549 return (vector int)__a - __b; in vec_vsubuwm()
9554 return __a - (vector int)__b; in vec_vsubuwm()
9559 return __a - __b; in vec_vsubuwm()
9564 return (vector unsigned int)__a - __b; in vec_vsubuwm()
9569 return __a - (vector unsigned int)__b; in vec_vsubuwm()
9578 return __a - __b; in vec_vsubfp()
9639 static __inline__ vector short __ATTRS_o_ai vec_subs(vector short __a, in vec_subs()
9640 vector short __b) { in vec_subs()
9644 static __inline__ vector short __ATTRS_o_ai vec_subs(vector bool short __a, in vec_subs()
9645 vector short __b) { in vec_subs()
9646 return __builtin_altivec_vsubshs((vector short)__a, __b); in vec_subs()
9649 static __inline__ vector short __ATTRS_o_ai vec_subs(vector short __a, in vec_subs()
9650 vector bool short __b) { in vec_subs()
9651 return __builtin_altivec_vsubshs(__a, (vector short)__b); in vec_subs()
9654 static __inline__ vector unsigned short __ATTRS_o_ai
9655 vec_subs(vector unsigned short __a, vector unsigned short __b) { in vec_subs()
9659 static __inline__ vector unsigned short __ATTRS_o_ai
9660 vec_subs(vector bool short __a, vector unsigned short __b) { in vec_subs()
9661 return __builtin_altivec_vsubuhs((vector unsigned short)__a, __b); in vec_subs()
9664 static __inline__ vector unsigned short __ATTRS_o_ai
9665 vec_subs(vector unsigned short __a, vector bool short __b) { in vec_subs()
9666 return __builtin_altivec_vsubuhs(__a, (vector unsigned short)__b); in vec_subs()
9735 static __inline__ vector short __ATTRS_o_ai vec_vsubshs(vector short __a, in vec_vsubshs()
9736 vector short __b) { in vec_vsubshs()
9740 static __inline__ vector short __ATTRS_o_ai vec_vsubshs(vector bool short __a, in vec_vsubshs()
9741 vector short __b) { in vec_vsubshs()
9742 return __builtin_altivec_vsubshs((vector short)__a, __b); in vec_vsubshs()
9745 static __inline__ vector short __ATTRS_o_ai vec_vsubshs(vector short __a, in vec_vsubshs()
9746 vector bool short __b) { in vec_vsubshs()
9747 return __builtin_altivec_vsubshs(__a, (vector short)__b); in vec_vsubshs()
9752 static __inline__ vector unsigned short __ATTRS_o_ai
9753 vec_vsubuhs(vector unsigned short __a, vector unsigned short __b) { in vec_vsubuhs()
9757 static __inline__ vector unsigned short __ATTRS_o_ai
9758 vec_vsubuhs(vector bool short __a, vector unsigned short __b) { in vec_vsubuhs()
9759 return __builtin_altivec_vsubuhs((vector unsigned short)__a, __b); in vec_vsubuhs()
9762 static __inline__ vector unsigned short __ATTRS_o_ai
9763 vec_vsubuhs(vector unsigned short __a, vector bool short __b) { in vec_vsubuhs()
9764 return __builtin_altivec_vsubuhs(__a, (vector unsigned short)__b); in vec_vsubuhs()
9806 return __a - __b; in vec_vsubuqm()
9811 return __a - __b; in vec_vsubuqm()
9867 static __inline__ vector int __ATTRS_o_ai vec_sum4s(vector signed short __a, in vec_sum4s()
9889 vec_vsum4shs(vector signed short __a, vector int __b) { in vec_vsum4shs()
9895 /* The vsum2sws instruction has a big-endian bias, so that the second
9896 input vector and the result always reference big-endian elements
9897 1 and 3 (little-endian element 0 and 2). For ease of porting the
9935 /* The vsumsws instruction has a big-endian bias, so that the second
9936 input vector and the result always reference big-endian element 3
9937 (little-endian element 0). For ease of porting the programmer
9990 /* The vector unpack instructions all have a big-endian bias, so for
9993 static __inline__ vector short __ATTRS_o_ai
10002 static __inline__ vector bool short __ATTRS_o_ai
10005 return (vector bool short)__builtin_altivec_vupklsb((vector char)__a); in vec_unpackh()
10007 return (vector bool short)__builtin_altivec_vupkhsb((vector char)__a); in vec_unpackh()
10011 static __inline__ vector int __ATTRS_o_ai vec_unpackh(vector short __a) { in vec_unpackh()
10020 vec_unpackh(vector bool short __a) { in vec_unpackh()
10022 return (vector bool int)__builtin_altivec_vupklsh((vector short)__a); in vec_unpackh()
10024 return (vector bool int)__builtin_altivec_vupkhsh((vector short)__a); in vec_unpackh()
10031 return (vector unsigned int)__builtin_altivec_vupklpx((vector short)__a); in vec_unpackh()
10033 return (vector unsigned int)__builtin_altivec_vupkhpx((vector short)__a); in vec_unpackh()
10058 static __inline__ vector short __ATTRS_o_ai
10067 static __inline__ vector bool short __ATTRS_o_ai
10070 return (vector bool short)__builtin_altivec_vupklsb((vector char)__a); in vec_vupkhsb()
10072 return (vector bool short)__builtin_altivec_vupkhsb((vector char)__a); in vec_vupkhsb()
10078 static __inline__ vector int __ATTRS_o_ai vec_vupkhsh(vector short __a) { in vec_vupkhsh()
10087 vec_vupkhsh(vector bool short __a) { in vec_vupkhsh()
10089 return (vector bool int)__builtin_altivec_vupklsh((vector short)__a); in vec_vupkhsh()
10091 return (vector bool int)__builtin_altivec_vupkhsh((vector short)__a); in vec_vupkhsh()
10098 return (vector unsigned int)__builtin_altivec_vupklpx((vector short)__a); in vec_vupkhsh()
10100 return (vector unsigned int)__builtin_altivec_vupkhpx((vector short)__a); in vec_vupkhsh()
10127 static __inline__ vector short __ATTRS_o_ai
10136 static __inline__ vector bool short __ATTRS_o_ai
10139 return (vector bool short)__builtin_altivec_vupkhsb((vector char)__a); in vec_unpackl()
10141 return (vector bool short)__builtin_altivec_vupklsb((vector char)__a); in vec_unpackl()
10145 static __inline__ vector int __ATTRS_o_ai vec_unpackl(vector short __a) { in vec_unpackl()
10154 vec_unpackl(vector bool short __a) { in vec_unpackl()
10156 return (vector bool int)__builtin_altivec_vupkhsh((vector short)__a); in vec_unpackl()
10158 return (vector bool int)__builtin_altivec_vupklsh((vector short)__a); in vec_unpackl()
10165 return (vector unsigned int)__builtin_altivec_vupkhpx((vector short)__a); in vec_unpackl()
10167 return (vector unsigned int)__builtin_altivec_vupklpx((vector short)__a); in vec_unpackl()
10192 static __inline__ vector short __ATTRS_o_ai
10201 static __inline__ vector bool short __ATTRS_o_ai
10204 return (vector bool short)__builtin_altivec_vupkhsb((vector char)__a); in vec_vupklsb()
10206 return (vector bool short)__builtin_altivec_vupklsb((vector char)__a); in vec_vupklsb()
10212 static __inline__ vector int __ATTRS_o_ai vec_vupklsh(vector short __a) { in vec_vupklsh()
10221 vec_vupklsh(vector bool short __a) { in vec_vupklsh()
10223 return (vector bool int)__builtin_altivec_vupkhsh((vector short)__a); in vec_vupklsh()
10225 return (vector bool int)__builtin_altivec_vupklsh((vector short)__a); in vec_vupklsh()
10232 return (vector unsigned int)__builtin_altivec_vupkhpx((vector short)__a); in vec_vupklsh()
10234 return (vector unsigned int)__builtin_altivec_vupklpx((vector short)__a); in vec_vupklsh()
10318 static __inline__ vector bool short __ATTRS_o_ai
10319 vec_vsx_ld(int __a, const vector bool short *__b) { in vec_vsx_ld()
10320 return (vector bool short)__builtin_vsx_lxvw4x(__a, __b); in vec_vsx_ld()
10323 static __inline__ vector signed short __ATTRS_o_ai
10324 vec_vsx_ld(int __a, const vector signed short *__b) { in vec_vsx_ld()
10325 return (vector signed short)__builtin_vsx_lxvw4x(__a, __b); in vec_vsx_ld()
10328 static __inline__ vector signed short __ATTRS_o_ai
10329 vec_vsx_ld(int __a, const signed short *__b) { in vec_vsx_ld()
10330 return (vector signed short)__builtin_vsx_lxvw4x(__a, __b); in vec_vsx_ld()
10333 static __inline__ vector unsigned short __ATTRS_o_ai
10334 vec_vsx_ld(int __a, const vector unsigned short *__b) { in vec_vsx_ld()
10335 return (vector unsigned short)__builtin_vsx_lxvw4x(__a, __b); in vec_vsx_ld()
10338 static __inline__ vector unsigned short __ATTRS_o_ai
10339 vec_vsx_ld(int __a, const unsigned short *__b) { in vec_vsx_ld()
10340 return (vector unsigned short)__builtin_vsx_lxvw4x(__a, __b); in vec_vsx_ld()
10441 static __inline__ void __ATTRS_o_ai vec_vsx_st(vector bool short __a, int __b, in vec_vsx_st()
10442 vector bool short *__c) { in vec_vsx_st()
10446 static __inline__ void __ATTRS_o_ai vec_vsx_st(vector bool short __a, int __b, in vec_vsx_st()
10447 signed short *__c) { in vec_vsx_st()
10451 static __inline__ void __ATTRS_o_ai vec_vsx_st(vector bool short __a, int __b, in vec_vsx_st()
10452 unsigned short *__c) { in vec_vsx_st()
10455 static __inline__ void __ATTRS_o_ai vec_vsx_st(vector signed short __a, int __b, in vec_vsx_st()
10456 vector signed short *__c) { in vec_vsx_st()
10460 static __inline__ void __ATTRS_o_ai vec_vsx_st(vector signed short __a, int __b, in vec_vsx_st()
10461 signed short *__c) { in vec_vsx_st()
10465 static __inline__ void __ATTRS_o_ai vec_vsx_st(vector unsigned short __a, in vec_vsx_st()
10467 vector unsigned short *__c) { in vec_vsx_st()
10471 static __inline__ void __ATTRS_o_ai vec_vsx_st(vector unsigned short __a, in vec_vsx_st()
10472 int __b, unsigned short *__c) { in vec_vsx_st()
10553 static __inline__ vector short __ATTRS_o_ai vec_xor(vector short __a, in vec_xor()
10554 vector short __b) { in vec_xor()
10558 static __inline__ vector short __ATTRS_o_ai vec_xor(vector bool short __a, in vec_xor()
10559 vector short __b) { in vec_xor()
10560 return (vector short)__a ^ __b; in vec_xor()
10563 static __inline__ vector short __ATTRS_o_ai vec_xor(vector short __a, in vec_xor()
10564 vector bool short __b) { in vec_xor()
10565 return __a ^ (vector short)__b; in vec_xor()
10568 static __inline__ vector unsigned short __ATTRS_o_ai
10569 vec_xor(vector unsigned short __a, vector unsigned short __b) { in vec_xor()
10573 static __inline__ vector unsigned short __ATTRS_o_ai
10574 vec_xor(vector bool short __a, vector unsigned short __b) { in vec_xor()
10575 return (vector unsigned short)__a ^ __b; in vec_xor()
10578 static __inline__ vector unsigned short __ATTRS_o_ai
10579 vec_xor(vector unsigned short __a, vector bool short __b) { in vec_xor()
10580 return __a ^ (vector unsigned short)__b; in vec_xor()
10583 static __inline__ vector bool short __ATTRS_o_ai
10584 vec_xor(vector bool short __a, vector bool short __b) { in vec_xor()
10736 static __inline__ vector short __ATTRS_o_ai vec_vxor(vector short __a, in vec_vxor()
10737 vector short __b) { in vec_vxor()
10741 static __inline__ vector short __ATTRS_o_ai vec_vxor(vector bool short __a, in vec_vxor()
10742 vector short __b) { in vec_vxor()
10743 return (vector short)__a ^ __b; in vec_vxor()
10746 static __inline__ vector short __ATTRS_o_ai vec_vxor(vector short __a, in vec_vxor()
10747 vector bool short __b) { in vec_vxor()
10748 return __a ^ (vector short)__b; in vec_vxor()
10751 static __inline__ vector unsigned short __ATTRS_o_ai
10752 vec_vxor(vector unsigned short __a, vector unsigned short __b) { in vec_vxor()
10756 static __inline__ vector unsigned short __ATTRS_o_ai
10757 vec_vxor(vector bool short __a, vector unsigned short __b) { in vec_vxor()
10758 return (vector unsigned short)__a ^ __b; in vec_vxor()
10761 static __inline__ vector unsigned short __ATTRS_o_ai
10762 vec_vxor(vector unsigned short __a, vector bool short __b) { in vec_vxor()
10763 return __a ^ (vector unsigned short)__b; in vec_vxor()
10766 static __inline__ vector bool short __ATTRS_o_ai
10767 vec_vxor(vector bool short __a, vector bool short __b) { in vec_vxor()
10864 /* ------------------------ extensions for CBEA ----------------------------- */
10883 static __inline__ signed short __ATTRS_o_ai vec_extract(vector signed short __a, in vec_extract()
10888 static __inline__ unsigned short __ATTRS_o_ai
10889 vec_extract(vector unsigned short __a, int __b) { in vec_extract()
10893 static __inline__ unsigned short __ATTRS_o_ai vec_extract(vector bool short __a, in vec_extract()
10959 static __inline__ vector signed short __ATTRS_o_ai
10960 vec_insert(signed short __a, vector signed short __b, int __c) { in vec_insert()
10965 static __inline__ vector unsigned short __ATTRS_o_ai
10966 vec_insert(unsigned short __a, vector unsigned short __b, int __c) { in vec_insert()
10971 static __inline__ vector bool short __ATTRS_o_ai
10972 vec_insert(unsigned short __a, vector bool short __b, int __c) { in vec_insert()
11061 static __inline__ vector short __ATTRS_o_ai vec_lvlx(int __a, in vec_lvlx()
11062 const short *__b) { in vec_lvlx()
11063 return vec_perm(vec_ld(__a, __b), (vector short)(0), vec_lvsl(__a, __b)); in vec_lvlx()
11066 static __inline__ vector short __ATTRS_o_ai vec_lvlx(int __a, in vec_lvlx()
11067 const vector short *__b) { in vec_lvlx()
11068 return vec_perm(vec_ld(__a, __b), (vector short)(0), in vec_lvlx()
11072 static __inline__ vector unsigned short __ATTRS_o_ai
11073 vec_lvlx(int __a, const unsigned short *__b) { in vec_lvlx()
11074 return vec_perm(vec_ld(__a, __b), (vector unsigned short)(0), in vec_lvlx()
11078 static __inline__ vector unsigned short __ATTRS_o_ai
11079 vec_lvlx(int __a, const vector unsigned short *__b) { in vec_lvlx()
11080 return vec_perm(vec_ld(__a, __b), (vector unsigned short)(0), in vec_lvlx()
11084 static __inline__ vector bool short __ATTRS_o_ai
11085 vec_lvlx(int __a, const vector bool short *__b) { in vec_lvlx()
11086 return vec_perm(vec_ld(__a, __b), (vector bool short)(0), in vec_lvlx()
11167 static __inline__ vector short __ATTRS_o_ai vec_lvlxl(int __a, in vec_lvlxl()
11168 const short *__b) { in vec_lvlxl()
11169 return vec_perm(vec_ldl(__a, __b), (vector short)(0), vec_lvsl(__a, __b)); in vec_lvlxl()
11172 static __inline__ vector short __ATTRS_o_ai vec_lvlxl(int __a, in vec_lvlxl()
11173 const vector short *__b) { in vec_lvlxl()
11174 return vec_perm(vec_ldl(__a, __b), (vector short)(0), in vec_lvlxl()
11178 static __inline__ vector unsigned short __ATTRS_o_ai
11179 vec_lvlxl(int __a, const unsigned short *__b) { in vec_lvlxl()
11180 return vec_perm(vec_ldl(__a, __b), (vector unsigned short)(0), in vec_lvlxl()
11184 static __inline__ vector unsigned short __ATTRS_o_ai
11185 vec_lvlxl(int __a, const vector unsigned short *__b) { in vec_lvlxl()
11186 return vec_perm(vec_ldl(__a, __b), (vector unsigned short)(0), in vec_lvlxl()
11190 static __inline__ vector bool short __ATTRS_o_ai
11191 vec_lvlxl(int __a, const vector bool short *__b) { in vec_lvlxl()
11192 return vec_perm(vec_ldl(__a, __b), (vector bool short)(0), in vec_lvlxl()
11273 static __inline__ vector short __ATTRS_o_ai vec_lvrx(int __a, in vec_lvrx()
11274 const short *__b) { in vec_lvrx()
11275 return vec_perm((vector short)(0), vec_ld(__a, __b), vec_lvsl(__a, __b)); in vec_lvrx()
11278 static __inline__ vector short __ATTRS_o_ai vec_lvrx(int __a, in vec_lvrx()
11279 const vector short *__b) { in vec_lvrx()
11280 return vec_perm((vector short)(0), vec_ld(__a, __b), in vec_lvrx()
11284 static __inline__ vector unsigned short __ATTRS_o_ai
11285 vec_lvrx(int __a, const unsigned short *__b) { in vec_lvrx()
11286 return vec_perm((vector unsigned short)(0), vec_ld(__a, __b), in vec_lvrx()
11290 static __inline__ vector unsigned short __ATTRS_o_ai
11291 vec_lvrx(int __a, const vector unsigned short *__b) { in vec_lvrx()
11292 return vec_perm((vector unsigned short)(0), vec_ld(__a, __b), in vec_lvrx()
11296 static __inline__ vector bool short __ATTRS_o_ai
11297 vec_lvrx(int __a, const vector bool short *__b) { in vec_lvrx()
11298 return vec_perm((vector bool short)(0), vec_ld(__a, __b), in vec_lvrx()
11379 static __inline__ vector short __ATTRS_o_ai vec_lvrxl(int __a, in vec_lvrxl()
11380 const short *__b) { in vec_lvrxl()
11381 return vec_perm((vector short)(0), vec_ldl(__a, __b), vec_lvsl(__a, __b)); in vec_lvrxl()
11384 static __inline__ vector short __ATTRS_o_ai vec_lvrxl(int __a, in vec_lvrxl()
11385 const vector short *__b) { in vec_lvrxl()
11386 return vec_perm((vector short)(0), vec_ldl(__a, __b), in vec_lvrxl()
11390 static __inline__ vector unsigned short __ATTRS_o_ai
11391 vec_lvrxl(int __a, const unsigned short *__b) { in vec_lvrxl()
11392 return vec_perm((vector unsigned short)(0), vec_ldl(__a, __b), in vec_lvrxl()
11396 static __inline__ vector unsigned short __ATTRS_o_ai
11397 vec_lvrxl(int __a, const vector unsigned short *__b) { in vec_lvrxl()
11398 return vec_perm((vector unsigned short)(0), vec_ldl(__a, __b), in vec_lvrxl()
11402 static __inline__ vector bool short __ATTRS_o_ai
11403 vec_lvrxl(int __a, const vector bool short *__b) { in vec_lvrxl()
11404 return vec_perm((vector bool short)(0), vec_ldl(__a, __b), in vec_lvrxl()
11488 static __inline__ void __ATTRS_o_ai vec_stvlx(vector short __a, int __b, in vec_stvlx()
11489 short *__c) { in vec_stvlx()
11494 static __inline__ void __ATTRS_o_ai vec_stvlx(vector short __a, int __b, in vec_stvlx()
11495 vector short *__c) { in vec_stvlx()
11501 static __inline__ void __ATTRS_o_ai vec_stvlx(vector unsigned short __a, in vec_stvlx()
11502 int __b, unsigned short *__c) { in vec_stvlx()
11507 static __inline__ void __ATTRS_o_ai vec_stvlx(vector unsigned short __a, in vec_stvlx()
11509 vector unsigned short *__c) { in vec_stvlx()
11515 static __inline__ void __ATTRS_o_ai vec_stvlx(vector bool short __a, int __b, in vec_stvlx()
11516 vector bool short *__c) { in vec_stvlx()
11605 static __inline__ void __ATTRS_o_ai vec_stvlxl(vector short __a, int __b, in vec_stvlxl()
11606 short *__c) { in vec_stvlxl()
11611 static __inline__ void __ATTRS_o_ai vec_stvlxl(vector short __a, int __b, in vec_stvlxl()
11612 vector short *__c) { in vec_stvlxl()
11618 static __inline__ void __ATTRS_o_ai vec_stvlxl(vector unsigned short __a, in vec_stvlxl()
11619 int __b, unsigned short *__c) { in vec_stvlxl()
11624 static __inline__ void __ATTRS_o_ai vec_stvlxl(vector unsigned short __a, in vec_stvlxl()
11626 vector unsigned short *__c) { in vec_stvlxl()
11632 static __inline__ void __ATTRS_o_ai vec_stvlxl(vector bool short __a, int __b, in vec_stvlxl()
11633 vector bool short *__c) { in vec_stvlxl()
11721 static __inline__ void __ATTRS_o_ai vec_stvrx(vector short __a, int __b, in vec_stvrx()
11722 short *__c) { in vec_stvrx()
11727 static __inline__ void __ATTRS_o_ai vec_stvrx(vector short __a, int __b, in vec_stvrx()
11728 vector short *__c) { in vec_stvrx()
11734 static __inline__ void __ATTRS_o_ai vec_stvrx(vector unsigned short __a, in vec_stvrx()
11735 int __b, unsigned short *__c) { in vec_stvrx()
11740 static __inline__ void __ATTRS_o_ai vec_stvrx(vector unsigned short __a, in vec_stvrx()
11742 vector unsigned short *__c) { in vec_stvrx()
11748 static __inline__ void __ATTRS_o_ai vec_stvrx(vector bool short __a, int __b, in vec_stvrx()
11749 vector bool short *__c) { in vec_stvrx()
11838 static __inline__ void __ATTRS_o_ai vec_stvrxl(vector short __a, int __b, in vec_stvrxl()
11839 short *__c) { in vec_stvrxl()
11844 static __inline__ void __ATTRS_o_ai vec_stvrxl(vector short __a, int __b, in vec_stvrxl()
11845 vector short *__c) { in vec_stvrxl()
11851 static __inline__ void __ATTRS_o_ai vec_stvrxl(vector unsigned short __a, in vec_stvrxl()
11852 int __b, unsigned short *__c) { in vec_stvrxl()
11857 static __inline__ void __ATTRS_o_ai vec_stvrxl(vector unsigned short __a, in vec_stvrxl()
11859 vector unsigned short *__c) { in vec_stvrxl()
11865 static __inline__ void __ATTRS_o_ai vec_stvrxl(vector bool short __a, int __b, in vec_stvrxl()
11866 vector bool short *__c) { in vec_stvrxl()
11935 static __inline__ vector short __ATTRS_o_ai vec_promote(short __a, int __b) { in vec_promote()
11936 vector short __res = (vector short)(0); in vec_promote()
11941 static __inline__ vector unsigned short __ATTRS_o_ai
11942 vec_promote(unsigned short __a, int __b) { in vec_promote()
11943 vector unsigned short __res = (vector unsigned short)(0); in vec_promote()
11978 static __inline__ vector short __ATTRS_o_ai vec_splats(short __a) { in vec_splats()
11979 return (vector short)(__a); in vec_splats()
11982 static __inline__ vector unsigned short __ATTRS_o_ai
11983 vec_splats(unsigned short __a) { in vec_splats()
11984 return (vector unsigned short)(__a); in vec_splats()
12029 /* ----------------------------- predicates --------------------------------- */
12075 static __inline__ int __ATTRS_o_ai vec_all_eq(vector short __a, in vec_all_eq()
12076 vector short __b) { in vec_all_eq()
12080 static __inline__ int __ATTRS_o_ai vec_all_eq(vector short __a, in vec_all_eq()
12081 vector bool short __b) { in vec_all_eq()
12082 return __builtin_altivec_vcmpequh_p(__CR6_LT, __a, (vector short)__b); in vec_all_eq()
12085 static __inline__ int __ATTRS_o_ai vec_all_eq(vector unsigned short __a, in vec_all_eq()
12086 vector unsigned short __b) { in vec_all_eq()
12087 return __builtin_altivec_vcmpequh_p(__CR6_LT, (vector short)__a, in vec_all_eq()
12088 (vector short)__b); in vec_all_eq()
12091 static __inline__ int __ATTRS_o_ai vec_all_eq(vector unsigned short __a, in vec_all_eq()
12092 vector bool short __b) { in vec_all_eq()
12093 return __builtin_altivec_vcmpequh_p(__CR6_LT, (vector short)__a, in vec_all_eq()
12094 (vector short)__b); in vec_all_eq()
12097 static __inline__ int __ATTRS_o_ai vec_all_eq(vector bool short __a, in vec_all_eq()
12098 vector short __b) { in vec_all_eq()
12099 return __builtin_altivec_vcmpequh_p(__CR6_LT, (vector short)__a, in vec_all_eq()
12100 (vector short)__b); in vec_all_eq()
12103 static __inline__ int __ATTRS_o_ai vec_all_eq(vector bool short __a, in vec_all_eq()
12104 vector unsigned short __b) { in vec_all_eq()
12105 return __builtin_altivec_vcmpequh_p(__CR6_LT, (vector short)__a, in vec_all_eq()
12106 (vector short)__b); in vec_all_eq()
12109 static __inline__ int __ATTRS_o_ai vec_all_eq(vector bool short __a, in vec_all_eq()
12110 vector bool short __b) { in vec_all_eq()
12111 return __builtin_altivec_vcmpequh_p(__CR6_LT, (vector short)__a, in vec_all_eq()
12112 (vector short)__b); in vec_all_eq()
12117 return __builtin_altivec_vcmpequh_p(__CR6_LT, (vector short)__a, in vec_all_eq()
12118 (vector short)__b); in vec_all_eq()
12257 static __inline__ int __ATTRS_o_ai vec_all_ge(vector short __a, in vec_all_ge()
12258 vector short __b) { in vec_all_ge()
12262 static __inline__ int __ATTRS_o_ai vec_all_ge(vector short __a, in vec_all_ge()
12263 vector bool short __b) { in vec_all_ge()
12264 return __builtin_altivec_vcmpgtsh_p(__CR6_EQ, (vector short)__b, __a); in vec_all_ge()
12267 static __inline__ int __ATTRS_o_ai vec_all_ge(vector unsigned short __a, in vec_all_ge()
12268 vector unsigned short __b) { in vec_all_ge()
12272 static __inline__ int __ATTRS_o_ai vec_all_ge(vector unsigned short __a, in vec_all_ge()
12273 vector bool short __b) { in vec_all_ge()
12274 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ, (vector unsigned short)__b, in vec_all_ge()
12278 static __inline__ int __ATTRS_o_ai vec_all_ge(vector bool short __a, in vec_all_ge()
12279 vector short __b) { in vec_all_ge()
12280 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ, (vector unsigned short)__b, in vec_all_ge()
12281 (vector unsigned short)__a); in vec_all_ge()
12284 static __inline__ int __ATTRS_o_ai vec_all_ge(vector bool short __a, in vec_all_ge()
12285 vector unsigned short __b) { in vec_all_ge()
12287 (vector unsigned short)__a); in vec_all_ge()
12290 static __inline__ int __ATTRS_o_ai vec_all_ge(vector bool short __a, in vec_all_ge()
12291 vector bool short __b) { in vec_all_ge()
12292 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ, (vector unsigned short)__b, in vec_all_ge()
12293 (vector unsigned short)__a); in vec_all_ge()
12428 static __inline__ int __ATTRS_o_ai vec_all_gt(vector short __a, in vec_all_gt()
12429 vector short __b) { in vec_all_gt()
12433 static __inline__ int __ATTRS_o_ai vec_all_gt(vector short __a, in vec_all_gt()
12434 vector bool short __b) { in vec_all_gt()
12435 return __builtin_altivec_vcmpgtsh_p(__CR6_LT, __a, (vector short)__b); in vec_all_gt()
12438 static __inline__ int __ATTRS_o_ai vec_all_gt(vector unsigned short __a, in vec_all_gt()
12439 vector unsigned short __b) { in vec_all_gt()
12443 static __inline__ int __ATTRS_o_ai vec_all_gt(vector unsigned short __a, in vec_all_gt()
12444 vector bool short __b) { in vec_all_gt()
12446 (vector unsigned short)__b); in vec_all_gt()
12449 static __inline__ int __ATTRS_o_ai vec_all_gt(vector bool short __a, in vec_all_gt()
12450 vector short __b) { in vec_all_gt()
12451 return __builtin_altivec_vcmpgtuh_p(__CR6_LT, (vector unsigned short)__a, in vec_all_gt()
12452 (vector unsigned short)__b); in vec_all_gt()
12455 static __inline__ int __ATTRS_o_ai vec_all_gt(vector bool short __a, in vec_all_gt()
12456 vector unsigned short __b) { in vec_all_gt()
12457 return __builtin_altivec_vcmpgtuh_p(__CR6_LT, (vector unsigned short)__a, in vec_all_gt()
12461 static __inline__ int __ATTRS_o_ai vec_all_gt(vector bool short __a, in vec_all_gt()
12462 vector bool short __b) { in vec_all_gt()
12463 return __builtin_altivec_vcmpgtuh_p(__CR6_LT, (vector unsigned short)__a, in vec_all_gt()
12464 (vector unsigned short)__b); in vec_all_gt()
12606 static __inline__ int __ATTRS_o_ai vec_all_le(vector short __a, in vec_all_le()
12607 vector short __b) { in vec_all_le()
12611 static __inline__ int __ATTRS_o_ai vec_all_le(vector short __a, in vec_all_le()
12612 vector bool short __b) { in vec_all_le()
12613 return __builtin_altivec_vcmpgtsh_p(__CR6_EQ, __a, (vector short)__b); in vec_all_le()
12616 static __inline__ int __ATTRS_o_ai vec_all_le(vector unsigned short __a, in vec_all_le()
12617 vector unsigned short __b) { in vec_all_le()
12621 static __inline__ int __ATTRS_o_ai vec_all_le(vector unsigned short __a, in vec_all_le()
12622 vector bool short __b) { in vec_all_le()
12624 (vector unsigned short)__b); in vec_all_le()
12627 static __inline__ int __ATTRS_o_ai vec_all_le(vector bool short __a, in vec_all_le()
12628 vector short __b) { in vec_all_le()
12629 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ, (vector unsigned short)__a, in vec_all_le()
12630 (vector unsigned short)__b); in vec_all_le()
12633 static __inline__ int __ATTRS_o_ai vec_all_le(vector bool short __a, in vec_all_le()
12634 vector unsigned short __b) { in vec_all_le()
12635 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ, (vector unsigned short)__a, in vec_all_le()
12639 static __inline__ int __ATTRS_o_ai vec_all_le(vector bool short __a, in vec_all_le()
12640 vector bool short __b) { in vec_all_le()
12641 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ, (vector unsigned short)__a, in vec_all_le()
12642 (vector unsigned short)__b); in vec_all_le()
12778 static __inline__ int __ATTRS_o_ai vec_all_lt(vector short __a, in vec_all_lt()
12779 vector short __b) { in vec_all_lt()
12783 static __inline__ int __ATTRS_o_ai vec_all_lt(vector short __a, in vec_all_lt()
12784 vector bool short __b) { in vec_all_lt()
12785 return __builtin_altivec_vcmpgtsh_p(__CR6_LT, (vector short)__b, __a); in vec_all_lt()
12788 static __inline__ int __ATTRS_o_ai vec_all_lt(vector unsigned short __a, in vec_all_lt()
12789 vector unsigned short __b) { in vec_all_lt()
12793 static __inline__ int __ATTRS_o_ai vec_all_lt(vector unsigned short __a, in vec_all_lt()
12794 vector bool short __b) { in vec_all_lt()
12795 return __builtin_altivec_vcmpgtuh_p(__CR6_LT, (vector unsigned short)__b, in vec_all_lt()
12799 static __inline__ int __ATTRS_o_ai vec_all_lt(vector bool short __a, in vec_all_lt()
12800 vector short __b) { in vec_all_lt()
12801 return __builtin_altivec_vcmpgtuh_p(__CR6_LT, (vector unsigned short)__b, in vec_all_lt()
12802 (vector unsigned short)__a); in vec_all_lt()
12805 static __inline__ int __ATTRS_o_ai vec_all_lt(vector bool short __a, in vec_all_lt()
12806 vector unsigned short __b) { in vec_all_lt()
12808 (vector unsigned short)__a); in vec_all_lt()
12811 static __inline__ int __ATTRS_o_ai vec_all_lt(vector bool short __a, in vec_all_lt()
12812 vector bool short __b) { in vec_all_lt()
12813 return __builtin_altivec_vcmpgtuh_p(__CR6_LT, (vector unsigned short)__b, in vec_all_lt()
12814 (vector unsigned short)__a); in vec_all_lt()
12971 static __inline__ int __ATTRS_o_ai vec_all_ne(vector short __a, in vec_all_ne()
12972 vector short __b) { in vec_all_ne()
12976 static __inline__ int __ATTRS_o_ai vec_all_ne(vector short __a, in vec_all_ne()
12977 vector bool short __b) { in vec_all_ne()
12978 return __builtin_altivec_vcmpequh_p(__CR6_EQ, __a, (vector short)__b); in vec_all_ne()
12981 static __inline__ int __ATTRS_o_ai vec_all_ne(vector unsigned short __a, in vec_all_ne()
12982 vector unsigned short __b) { in vec_all_ne()
12983 return __builtin_altivec_vcmpequh_p(__CR6_EQ, (vector short)__a, in vec_all_ne()
12984 (vector short)__b); in vec_all_ne()
12987 static __inline__ int __ATTRS_o_ai vec_all_ne(vector unsigned short __a, in vec_all_ne()
12988 vector bool short __b) { in vec_all_ne()
12989 return __builtin_altivec_vcmpequh_p(__CR6_EQ, (vector short)__a, in vec_all_ne()
12990 (vector short)__b); in vec_all_ne()
12993 static __inline__ int __ATTRS_o_ai vec_all_ne(vector bool short __a, in vec_all_ne()
12994 vector short __b) { in vec_all_ne()
12995 return __builtin_altivec_vcmpequh_p(__CR6_EQ, (vector short)__a, in vec_all_ne()
12996 (vector short)__b); in vec_all_ne()
12999 static __inline__ int __ATTRS_o_ai vec_all_ne(vector bool short __a, in vec_all_ne()
13000 vector unsigned short __b) { in vec_all_ne()
13001 return __builtin_altivec_vcmpequh_p(__CR6_EQ, (vector short)__a, in vec_all_ne()
13002 (vector short)__b); in vec_all_ne()
13005 static __inline__ int __ATTRS_o_ai vec_all_ne(vector bool short __a, in vec_all_ne()
13006 vector bool short __b) { in vec_all_ne()
13007 return __builtin_altivec_vcmpequh_p(__CR6_EQ, (vector short)__a, in vec_all_ne()
13008 (vector short)__b); in vec_all_ne()
13013 return __builtin_altivec_vcmpequh_p(__CR6_EQ, (vector short)__a, in vec_all_ne()
13014 (vector short)__b); in vec_all_ne()
13216 static __inline__ int __ATTRS_o_ai vec_any_eq(vector short __a, in vec_any_eq()
13217 vector short __b) { in vec_any_eq()
13221 static __inline__ int __ATTRS_o_ai vec_any_eq(vector short __a, in vec_any_eq()
13222 vector bool short __b) { in vec_any_eq()
13223 return __builtin_altivec_vcmpequh_p(__CR6_EQ_REV, __a, (vector short)__b); in vec_any_eq()
13226 static __inline__ int __ATTRS_o_ai vec_any_eq(vector unsigned short __a, in vec_any_eq()
13227 vector unsigned short __b) { in vec_any_eq()
13228 return __builtin_altivec_vcmpequh_p(__CR6_EQ_REV, (vector short)__a, in vec_any_eq()
13229 (vector short)__b); in vec_any_eq()
13232 static __inline__ int __ATTRS_o_ai vec_any_eq(vector unsigned short __a, in vec_any_eq()
13233 vector bool short __b) { in vec_any_eq()
13234 return __builtin_altivec_vcmpequh_p(__CR6_EQ_REV, (vector short)__a, in vec_any_eq()
13235 (vector short)__b); in vec_any_eq()
13238 static __inline__ int __ATTRS_o_ai vec_any_eq(vector bool short __a, in vec_any_eq()
13239 vector short __b) { in vec_any_eq()
13240 return __builtin_altivec_vcmpequh_p(__CR6_EQ_REV, (vector short)__a, in vec_any_eq()
13241 (vector short)__b); in vec_any_eq()
13244 static __inline__ int __ATTRS_o_ai vec_any_eq(vector bool short __a, in vec_any_eq()
13245 vector unsigned short __b) { in vec_any_eq()
13246 return __builtin_altivec_vcmpequh_p(__CR6_EQ_REV, (vector short)__a, in vec_any_eq()
13247 (vector short)__b); in vec_any_eq()
13250 static __inline__ int __ATTRS_o_ai vec_any_eq(vector bool short __a, in vec_any_eq()
13251 vector bool short __b) { in vec_any_eq()
13252 return __builtin_altivec_vcmpequh_p(__CR6_EQ_REV, (vector short)__a, in vec_any_eq()
13253 (vector short)__b); in vec_any_eq()
13258 return __builtin_altivec_vcmpequh_p(__CR6_EQ_REV, (vector short)__a, in vec_any_eq()
13259 (vector short)__b); in vec_any_eq()
13402 static __inline__ int __ATTRS_o_ai vec_any_ge(vector short __a, in vec_any_ge()
13403 vector short __b) { in vec_any_ge()
13407 static __inline__ int __ATTRS_o_ai vec_any_ge(vector short __a, in vec_any_ge()
13408 vector bool short __b) { in vec_any_ge()
13409 return __builtin_altivec_vcmpgtsh_p(__CR6_LT_REV, (vector short)__b, __a); in vec_any_ge()
13412 static __inline__ int __ATTRS_o_ai vec_any_ge(vector unsigned short __a, in vec_any_ge()
13413 vector unsigned short __b) { in vec_any_ge()
13417 static __inline__ int __ATTRS_o_ai vec_any_ge(vector unsigned short __a, in vec_any_ge()
13418 vector bool short __b) { in vec_any_ge()
13419 return __builtin_altivec_vcmpgtuh_p(__CR6_LT_REV, (vector unsigned short)__b, in vec_any_ge()
13423 static __inline__ int __ATTRS_o_ai vec_any_ge(vector bool short __a, in vec_any_ge()
13424 vector short __b) { in vec_any_ge()
13425 return __builtin_altivec_vcmpgtuh_p(__CR6_LT_REV, (vector unsigned short)__b, in vec_any_ge()
13426 (vector unsigned short)__a); in vec_any_ge()
13429 static __inline__ int __ATTRS_o_ai vec_any_ge(vector bool short __a, in vec_any_ge()
13430 vector unsigned short __b) { in vec_any_ge()
13432 (vector unsigned short)__a); in vec_any_ge()
13435 static __inline__ int __ATTRS_o_ai vec_any_ge(vector bool short __a, in vec_any_ge()
13436 vector bool short __b) { in vec_any_ge()
13437 return __builtin_altivec_vcmpgtuh_p(__CR6_LT_REV, (vector unsigned short)__b, in vec_any_ge()
13438 (vector unsigned short)__a); in vec_any_ge()
13581 static __inline__ int __ATTRS_o_ai vec_any_gt(vector short __a, in vec_any_gt()
13582 vector short __b) { in vec_any_gt()
13586 static __inline__ int __ATTRS_o_ai vec_any_gt(vector short __a, in vec_any_gt()
13587 vector bool short __b) { in vec_any_gt()
13588 return __builtin_altivec_vcmpgtsh_p(__CR6_EQ_REV, __a, (vector short)__b); in vec_any_gt()
13591 static __inline__ int __ATTRS_o_ai vec_any_gt(vector unsigned short __a, in vec_any_gt()
13592 vector unsigned short __b) { in vec_any_gt()
13596 static __inline__ int __ATTRS_o_ai vec_any_gt(vector unsigned short __a, in vec_any_gt()
13597 vector bool short __b) { in vec_any_gt()
13599 (vector unsigned short)__b); in vec_any_gt()
13602 static __inline__ int __ATTRS_o_ai vec_any_gt(vector bool short __a, in vec_any_gt()
13603 vector short __b) { in vec_any_gt()
13604 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ_REV, (vector unsigned short)__a, in vec_any_gt()
13605 (vector unsigned short)__b); in vec_any_gt()
13608 static __inline__ int __ATTRS_o_ai vec_any_gt(vector bool short __a, in vec_any_gt()
13609 vector unsigned short __b) { in vec_any_gt()
13610 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ_REV, (vector unsigned short)__a, in vec_any_gt()
13614 static __inline__ int __ATTRS_o_ai vec_any_gt(vector bool short __a, in vec_any_gt()
13615 vector bool short __b) { in vec_any_gt()
13616 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ_REV, (vector unsigned short)__a, in vec_any_gt()
13617 (vector unsigned short)__b); in vec_any_gt()
13760 static __inline__ int __ATTRS_o_ai vec_any_le(vector short __a, in vec_any_le()
13761 vector short __b) { in vec_any_le()
13765 static __inline__ int __ATTRS_o_ai vec_any_le(vector short __a, in vec_any_le()
13766 vector bool short __b) { in vec_any_le()
13767 return __builtin_altivec_vcmpgtsh_p(__CR6_LT_REV, __a, (vector short)__b); in vec_any_le()
13770 static __inline__ int __ATTRS_o_ai vec_any_le(vector unsigned short __a, in vec_any_le()
13771 vector unsigned short __b) { in vec_any_le()
13775 static __inline__ int __ATTRS_o_ai vec_any_le(vector unsigned short __a, in vec_any_le()
13776 vector bool short __b) { in vec_any_le()
13778 (vector unsigned short)__b); in vec_any_le()
13781 static __inline__ int __ATTRS_o_ai vec_any_le(vector bool short __a, in vec_any_le()
13782 vector short __b) { in vec_any_le()
13783 return __builtin_altivec_vcmpgtuh_p(__CR6_LT_REV, (vector unsigned short)__a, in vec_any_le()
13784 (vector unsigned short)__b); in vec_any_le()
13787 static __inline__ int __ATTRS_o_ai vec_any_le(vector bool short __a, in vec_any_le()
13788 vector unsigned short __b) { in vec_any_le()
13789 return __builtin_altivec_vcmpgtuh_p(__CR6_LT_REV, (vector unsigned short)__a, in vec_any_le()
13793 static __inline__ int __ATTRS_o_ai vec_any_le(vector bool short __a, in vec_any_le()
13794 vector bool short __b) { in vec_any_le()
13795 return __builtin_altivec_vcmpgtuh_p(__CR6_LT_REV, (vector unsigned short)__a, in vec_any_le()
13796 (vector unsigned short)__b); in vec_any_le()
13939 static __inline__ int __ATTRS_o_ai vec_any_lt(vector short __a, in vec_any_lt()
13940 vector short __b) { in vec_any_lt()
13944 static __inline__ int __ATTRS_o_ai vec_any_lt(vector short __a, in vec_any_lt()
13945 vector bool short __b) { in vec_any_lt()
13946 return __builtin_altivec_vcmpgtsh_p(__CR6_EQ_REV, (vector short)__b, __a); in vec_any_lt()
13949 static __inline__ int __ATTRS_o_ai vec_any_lt(vector unsigned short __a, in vec_any_lt()
13950 vector unsigned short __b) { in vec_any_lt()
13954 static __inline__ int __ATTRS_o_ai vec_any_lt(vector unsigned short __a, in vec_any_lt()
13955 vector bool short __b) { in vec_any_lt()
13956 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ_REV, (vector unsigned short)__b, in vec_any_lt()
13960 static __inline__ int __ATTRS_o_ai vec_any_lt(vector bool short __a, in vec_any_lt()
13961 vector short __b) { in vec_any_lt()
13962 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ_REV, (vector unsigned short)__b, in vec_any_lt()
13963 (vector unsigned short)__a); in vec_any_lt()
13966 static __inline__ int __ATTRS_o_ai vec_any_lt(vector bool short __a, in vec_any_lt()
13967 vector unsigned short __b) { in vec_any_lt()
13969 (vector unsigned short)__a); in vec_any_lt()
13972 static __inline__ int __ATTRS_o_ai vec_any_lt(vector bool short __a, in vec_any_lt()
13973 vector bool short __b) { in vec_any_lt()
13974 return __builtin_altivec_vcmpgtuh_p(__CR6_EQ_REV, (vector unsigned short)__b, in vec_any_lt()
13975 (vector unsigned short)__a); in vec_any_lt()
14127 static __inline__ int __ATTRS_o_ai vec_any_ne(vector short __a, in vec_any_ne()
14128 vector short __b) { in vec_any_ne()
14132 static __inline__ int __ATTRS_o_ai vec_any_ne(vector short __a, in vec_any_ne()
14133 vector bool short __b) { in vec_any_ne()
14134 return __builtin_altivec_vcmpequh_p(__CR6_LT_REV, __a, (vector short)__b); in vec_any_ne()
14137 static __inline__ int __ATTRS_o_ai vec_any_ne(vector unsigned short __a, in vec_any_ne()
14138 vector unsigned short __b) { in vec_any_ne()
14139 return __builtin_altivec_vcmpequh_p(__CR6_LT_REV, (vector short)__a, in vec_any_ne()
14140 (vector short)__b); in vec_any_ne()
14143 static __inline__ int __ATTRS_o_ai vec_any_ne(vector unsigned short __a, in vec_any_ne()
14144 vector bool short __b) { in vec_any_ne()
14145 return __builtin_altivec_vcmpequh_p(__CR6_LT_REV, (vector short)__a, in vec_any_ne()
14146 (vector short)__b); in vec_any_ne()
14149 static __inline__ int __ATTRS_o_ai vec_any_ne(vector bool short __a, in vec_any_ne()
14150 vector short __b) { in vec_any_ne()
14151 return __builtin_altivec_vcmpequh_p(__CR6_LT_REV, (vector short)__a, in vec_any_ne()
14152 (vector short)__b); in vec_any_ne()
14155 static __inline__ int __ATTRS_o_ai vec_any_ne(vector bool short __a, in vec_any_ne()
14156 vector unsigned short __b) { in vec_any_ne()
14157 return __builtin_altivec_vcmpequh_p(__CR6_LT_REV, (vector short)__a, in vec_any_ne()
14158 (vector short)__b); in vec_any_ne()
14161 static __inline__ int __ATTRS_o_ai vec_any_ne(vector bool short __a, in vec_any_ne()
14162 vector bool short __b) { in vec_any_ne()
14163 return __builtin_altivec_vcmpequh_p(__CR6_LT_REV, (vector short)__a, in vec_any_ne()
14164 (vector short)__b); in vec_any_ne()
14169 return __builtin_altivec_vcmpequh_p(__CR6_LT_REV, (vector short)__a, in vec_any_ne()
14170 (vector short)__b); in vec_any_ne()
14316 - Only the SHA and AES instructions and builtins are disabled by -mno-crypto
14317 - The remaining ones are only available on Power8 and up so
14318 require -mpower8-vector
14322 The remaining ones (currently controlled by -mcrypto for GCC) still
14378 static __inline__ vector unsigned short __ATTRS_o_ai
14379 __builtin_crypto_vpermxor(vector unsigned short __a, vector unsigned short __b, in __builtin_crypto_vpermxor()
14380 vector unsigned short __c) { in __builtin_crypto_vpermxor()
14381 return (vector unsigned short)__builtin_altivec_crypto_vpermxor( in __builtin_crypto_vpermxor()
14407 static __inline__ vector unsigned short __ATTRS_o_ai
14408 __builtin_crypto_vpmsumb(vector unsigned short __a, vector unsigned short __b) { in __builtin_crypto_vpmsumb()