inline vector unsigned char
vec_add (vector signed char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vaddubm ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vaddubm ((vector signed char) a1, (vector signed char) a2);
}
inline vector unsigned char
vec_add (vector unsigned char a1, vector signed char a2)
{
- return (vector signed char) __builtin_altivec_vaddubm ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vaddubm ((vector signed char) a1, (vector signed char) a2);
}
inline vector unsigned char
vec_add (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vaddubm ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vaddubm ((vector signed char) a1, (vector signed char) a2);
}
inline vector signed short
inline vector unsigned short
vec_add (vector signed short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vadduhm ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vadduhm ((vector signed short) a1, (vector signed short) a2);
}
inline vector unsigned short
vec_add (vector unsigned short a1, vector signed short a2)
{
- return (vector signed short) __builtin_altivec_vadduhm ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vadduhm ((vector signed short) a1, (vector signed short) a2);
}
inline vector unsigned short
vec_add (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vadduhm ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vadduhm ((vector signed short) a1, (vector signed short) a2);
}
inline vector signed int
inline vector unsigned int
vec_add (vector signed int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vadduwm ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vadduwm ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_add (vector unsigned int a1, vector signed int a2)
{
- return (vector signed int) __builtin_altivec_vadduwm ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vadduwm ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_add (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vadduwm ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vadduwm ((vector signed int) a1, (vector signed int) a2);
}
inline vector float
inline vector unsigned int
vec_addc (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vaddcuw ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vaddcuw ((vector signed int) a1, (vector signed int) a2);
}
/* vec_adds */
inline vector unsigned char
vec_adds (vector signed char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vaddubs ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vaddubs ((vector signed char) a1, (vector signed char) a2);
}
inline vector unsigned char
vec_adds (vector unsigned char a1, vector signed char a2)
{
- return (vector signed char) __builtin_altivec_vaddubs ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vaddubs ((vector signed char) a1, (vector signed char) a2);
}
inline vector unsigned char
vec_adds (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vaddubs ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vaddubs ((vector signed char) a1, (vector signed char) a2);
}
inline vector signed char
inline vector unsigned short
vec_adds (vector signed short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vadduhs ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vadduhs ((vector signed short) a1, (vector signed short) a2);
}
inline vector unsigned short
vec_adds (vector unsigned short a1, vector signed short a2)
{
- return (vector signed short) __builtin_altivec_vadduhs ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vadduhs ((vector signed short) a1, (vector signed short) a2);
}
inline vector unsigned short
vec_adds (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vadduhs ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vadduhs ((vector signed short) a1, (vector signed short) a2);
}
inline vector signed short
inline vector unsigned int
vec_adds (vector signed int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vadduws ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vadduws ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_adds (vector unsigned int a1, vector signed int a2)
{
- return (vector signed int) __builtin_altivec_vadduws ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vadduws ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_adds (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vadduws ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vadduws ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed int
inline vector float
vec_and (vector float a1, vector float a2)
{
- return (vector signed int) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
}
inline vector float
vec_and (vector float a1, vector signed int a2)
{
- return (vector signed int) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
}
inline vector float
vec_and (vector signed int a1, vector float a2)
{
- return (vector signed int) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed int
inline vector unsigned int
vec_and (vector signed int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_and (vector unsigned int a1, vector signed int a2)
{
- return (vector signed int) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_and (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed short
vec_and (vector signed short a1, vector signed short a2)
{
- return (vector signed int) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed short) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_and (vector signed short a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_and (vector unsigned short a1, vector signed short a2)
{
- return (vector signed int) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_and (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed char
vec_and (vector signed char a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed char) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_and (vector signed char a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_and (vector unsigned char a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_and (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vand ((vector signed int) a1, (vector signed int) a2);
}
/* vec_andc */
inline vector float
vec_andc (vector float a1, vector float a2)
{
- return (vector signed int) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
}
inline vector float
vec_andc (vector float a1, vector signed int a2)
{
- return (vector signed int) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
}
inline vector float
vec_andc (vector signed int a1, vector float a2)
{
- return (vector signed int) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed int
inline vector unsigned int
vec_andc (vector signed int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_andc (vector unsigned int a1, vector signed int a2)
{
- return (vector signed int) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_andc (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed short
vec_andc (vector signed short a1, vector signed short a2)
{
- return (vector signed int) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed short) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_andc (vector signed short a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_andc (vector unsigned short a1, vector signed short a2)
{
- return (vector signed int) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_andc (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed char
vec_andc (vector signed char a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed char) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_andc (vector signed char a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_andc (vector unsigned char a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_andc (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vandc ((vector signed int) a1, (vector signed int) a2);
}
/* vec_avg */
inline vector unsigned char
vec_avg (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vavgub ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vavgub ((vector signed char) a1, (vector signed char) a2);
}
inline vector signed char
inline vector unsigned short
vec_avg (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vavguh ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vavguh ((vector signed short) a1, (vector signed short) a2);
}
inline vector signed short
inline vector unsigned int
vec_avg (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vavguw ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vavguw ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed int
inline vector unsigned int
vec_ctu (vector float a1, int a2)
{
- return (vector signed int) __builtin_altivec_vctuxs ((vector float) a1, (const char) a2);
+ return (vector unsigned int) __builtin_altivec_vctuxs ((vector float) a1, (const char) a2);
}
/* vec_dss */
/* vec_lvsl */
inline vector unsigned char
-vec_lvsl (int a1, vector unsigned char *a2)
+vec_lvsl (int a1, unsigned char *a2)
+{
+ return (vector unsigned char) __builtin_altivec_lvsl (a1, (void *) a2);
+}
+
+inline vector unsigned char
+vec_lvsl (int a1, signed char *a2)
+{
+ return (vector unsigned char) __builtin_altivec_lvsl (a1, (void *) a2);
+}
+
+inline vector unsigned char
+vec_lvsl (int a1, unsigned short *a2)
+{
+ return (vector unsigned char) __builtin_altivec_lvsl (a1, (void *) a2);
+}
+
+inline vector unsigned char
+vec_lvsl (int a1, signed short *a2)
+{
+ return (vector unsigned char) __builtin_altivec_lvsl (a1, (void *) a2);
+}
+
+inline vector unsigned char
+vec_lvsl (int a1, unsigned int *a2)
+{
+ return (vector unsigned char) __builtin_altivec_lvsl (a1, (void *) a2);
+}
+
+inline vector unsigned char
+vec_lvsl (int a1, signed int *a2)
+{
+ return (vector unsigned char) __builtin_altivec_lvsl (a1, (void *) a2);
+}
+
+inline vector unsigned char
+vec_lvsl (int a1, float *a2)
{
return (vector unsigned char) __builtin_altivec_lvsl (a1, (void *) a2);
}
/* vec_lvsr */
inline vector unsigned char
-vec_lvsr (int a1, vector unsigned char *a2)
+vec_lvsr (int a1, unsigned char *a2)
+{
+ return (vector unsigned char) __builtin_altivec_lvsr (a1, (void *) a2);
+}
+
+inline vector unsigned char
+vec_lvsr (int a1, signed char *a2)
+{
+ return (vector unsigned char) __builtin_altivec_lvsr (a1, (void *) a2);
+}
+
+inline vector unsigned char
+vec_lvsr (int a1, unsigned short *a2)
{
- return (vector signed char) __builtin_altivec_lvsr (a1, (void *) a2);
+ return (vector unsigned char) __builtin_altivec_lvsr (a1, (void *) a2);
+}
+
+inline vector unsigned char
+vec_lvsr (int a1, signed short *a2)
+{
+ return (vector unsigned char) __builtin_altivec_lvsr (a1, (void *) a2);
+}
+
+inline vector unsigned char
+vec_lvsr (int a1, unsigned int *a2)
+{
+ return (vector unsigned char) __builtin_altivec_lvsr (a1, (void *) a2);
+}
+
+inline vector unsigned char
+vec_lvsr (int a1, signed int *a2)
+{
+ return (vector unsigned char) __builtin_altivec_lvsr (a1, (void *) a2);
+}
+
+inline vector unsigned char
+vec_lvsr (int a1, float *a2)
+{
+ return (vector unsigned char) __builtin_altivec_lvsr (a1, (void *) a2);
}
/* vec_madd */
inline vector unsigned char
vec_max (vector signed char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vmaxub ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vmaxub ((vector signed char) a1, (vector signed char) a2);
}
inline vector unsigned char
vec_max (vector unsigned char a1, vector signed char a2)
{
- return (vector signed char) __builtin_altivec_vmaxub ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vmaxub ((vector signed char) a1, (vector signed char) a2);
}
inline vector unsigned char
vec_max (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vmaxub ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vmaxub ((vector signed char) a1, (vector signed char) a2);
}
inline vector signed char
inline vector unsigned short
vec_max (vector signed short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vmaxuh ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vmaxuh ((vector signed short) a1, (vector signed short) a2);
}
inline vector unsigned short
vec_max (vector unsigned short a1, vector signed short a2)
{
- return (vector signed short) __builtin_altivec_vmaxuh ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vmaxuh ((vector signed short) a1, (vector signed short) a2);
}
inline vector unsigned short
vec_max (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vmaxuh ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vmaxuh ((vector signed short) a1, (vector signed short) a2);
}
inline vector signed short
inline vector unsigned int
vec_max (vector signed int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vmaxuw ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vmaxuw ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_max (vector unsigned int a1, vector signed int a2)
{
- return (vector signed int) __builtin_altivec_vmaxuw ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vmaxuw ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_max (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vmaxuw ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vmaxuw ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed int
inline vector unsigned char
vec_mergeh (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vmrghb ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vmrghb ((vector signed char) a1, (vector signed char) a2);
}
inline vector signed short
inline vector unsigned short
vec_mergeh (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vmrghh ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vmrghh ((vector signed short) a1, (vector signed short) a2);
}
inline vector float
vec_mergeh (vector float a1, vector float a2)
{
- return (vector signed int) __builtin_altivec_vmrghw ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vmrghw ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed int
inline vector unsigned int
vec_mergeh (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vmrghw ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vmrghw ((vector signed int) a1, (vector signed int) a2);
}
/* vec_mergel */
inline vector unsigned char
vec_mergel (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vmrglb ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vmrglb ((vector signed char) a1, (vector signed char) a2);
}
inline vector signed short
inline vector unsigned short
vec_mergel (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vmrglh ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vmrglh ((vector signed short) a1, (vector signed short) a2);
}
inline vector float
vec_mergel (vector float a1, vector float a2)
{
- return (vector signed int) __builtin_altivec_vmrglw ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vmrglw ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed int
inline vector unsigned int
vec_mergel (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vmrglw ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vmrglw ((vector signed int) a1, (vector signed int) a2);
}
/* vec_mfvscr */
inline vector unsigned short
vec_mfvscr ()
{
- return (vector signed short) __builtin_altivec_mfvscr ();
+ return (vector unsigned short) __builtin_altivec_mfvscr ();
}
/* vec_min */
inline vector unsigned char
vec_min (vector signed char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vminub ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vminub ((vector signed char) a1, (vector signed char) a2);
}
inline vector unsigned char
vec_min (vector unsigned char a1, vector signed char a2)
{
- return (vector signed char) __builtin_altivec_vminub ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vminub ((vector signed char) a1, (vector signed char) a2);
}
inline vector unsigned char
vec_min (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vminub ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vminub ((vector signed char) a1, (vector signed char) a2);
}
inline vector signed char
inline vector unsigned short
vec_min (vector signed short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vminuh ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vminuh ((vector signed short) a1, (vector signed short) a2);
}
inline vector unsigned short
vec_min (vector unsigned short a1, vector signed short a2)
{
- return (vector signed short) __builtin_altivec_vminuh ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vminuh ((vector signed short) a1, (vector signed short) a2);
}
inline vector unsigned short
vec_min (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vminuh ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vminuh ((vector signed short) a1, (vector signed short) a2);
}
inline vector signed short
inline vector unsigned int
vec_min (vector signed int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vminuw ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vminuw ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_min (vector unsigned int a1, vector signed int a2)
{
- return (vector signed int) __builtin_altivec_vminuw ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vminuw ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_min (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vminuw ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vminuw ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed int
inline vector unsigned short
vec_mladd (vector unsigned short a1, vector unsigned short a2, vector unsigned short a3)
{
- return (vector signed short) __builtin_altivec_vmladduhm ((vector signed short) a1, (vector signed short) a2, (vector signed short) a3);
+ return (vector unsigned short) __builtin_altivec_vmladduhm ((vector signed short) a1, (vector signed short) a2, (vector signed short) a3);
}
/* vec_mradds */
inline vector unsigned int
vec_msum (vector unsigned char a1, vector unsigned char a2, vector unsigned int a3)
{
- return (vector signed int) __builtin_altivec_vmsumubm ((vector signed char) a1, (vector signed char) a2, (vector signed int) a3);
+ return (vector unsigned int) __builtin_altivec_vmsumubm ((vector signed char) a1, (vector signed char) a2, (vector signed int) a3);
}
inline vector signed int
inline vector unsigned int
vec_msum (vector unsigned short a1, vector unsigned short a2, vector unsigned int a3)
{
- return (vector signed int) __builtin_altivec_vmsumuhm ((vector signed short) a1, (vector signed short) a2, (vector signed int) a3);
+ return (vector unsigned int) __builtin_altivec_vmsumuhm ((vector signed short) a1, (vector signed short) a2, (vector signed int) a3);
}
inline vector signed int
inline vector unsigned int
vec_msums (vector unsigned short a1, vector unsigned short a2, vector unsigned int a3)
{
- return (vector signed int) __builtin_altivec_vmsumuhs ((vector signed short) a1, (vector signed short) a2, (vector signed int) a3);
+ return (vector unsigned int) __builtin_altivec_vmsumuhs ((vector signed short) a1, (vector signed short) a2, (vector signed int) a3);
}
inline vector signed int
inline vector unsigned short
vec_mule (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed short) __builtin_altivec_vmuleub ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned short) __builtin_altivec_vmuleub ((vector signed char) a1, (vector signed char) a2);
}
inline vector signed short
inline vector unsigned int
vec_mule (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vmuleuh ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned int) __builtin_altivec_vmuleuh ((vector signed short) a1, (vector signed short) a2);
}
inline vector signed int
inline vector unsigned short
vec_mulo (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed short) __builtin_altivec_vmuloub ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned short) __builtin_altivec_vmuloub ((vector signed char) a1, (vector signed char) a2);
}
inline vector signed short
inline vector unsigned int
vec_mulo (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vmulouh ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned int) __builtin_altivec_vmulouh ((vector signed short) a1, (vector signed short) a2);
}
inline vector signed int
inline vector float
vec_nor (vector float a1, vector float a2)
{
- return (vector signed int) __builtin_altivec_vnor ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vnor ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed int
inline vector unsigned int
vec_nor (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vnor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vnor ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed short
vec_nor (vector signed short a1, vector signed short a2)
{
- return (vector signed int) __builtin_altivec_vnor ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed short) __builtin_altivec_vnor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_nor (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vnor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vnor ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed char
vec_nor (vector signed char a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vnor ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed char) __builtin_altivec_vnor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_nor (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vnor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vnor ((vector signed int) a1, (vector signed int) a2);
}
/* vec_or */
inline vector float
vec_or (vector float a1, vector float a2)
{
- return (vector signed int) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
}
inline vector float
vec_or (vector float a1, vector signed int a2)
{
- return (vector signed int) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
}
inline vector float
vec_or (vector signed int a1, vector float a2)
{
- return (vector signed int) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed int
inline vector unsigned int
vec_or (vector signed int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_or (vector unsigned int a1, vector signed int a2)
{
- return (vector signed int) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_or (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed short
vec_or (vector signed short a1, vector signed short a2)
{
- return (vector signed int) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed short) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_or (vector signed short a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_or (vector unsigned short a1, vector signed short a2)
{
- return (vector signed int) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_or (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed char
vec_or (vector signed char a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed char) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_or (vector signed char a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_or (vector unsigned char a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_or (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vor ((vector signed int) a1, (vector signed int) a2);
}
/* vec_pack */
inline vector unsigned char
vec_pack (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed char) __builtin_altivec_vpkuhum ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned char) __builtin_altivec_vpkuhum ((vector signed short) a1, (vector signed short) a2);
}
inline vector signed short
inline vector unsigned short
vec_pack (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed short) __builtin_altivec_vpkuwum ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vpkuwum ((vector signed int) a1, (vector signed int) a2);
}
/* vec_packpx */
inline vector unsigned char
vec_packs (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed char) __builtin_altivec_vpkuhus ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned char) __builtin_altivec_vpkuhus ((vector signed short) a1, (vector signed short) a2);
}
inline vector signed char
inline vector unsigned short
vec_packs (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed short) __builtin_altivec_vpkuwus ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vpkuwus ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed short
inline vector unsigned char
vec_packsu (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed char) __builtin_altivec_vpkuhus ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned char) __builtin_altivec_vpkuhus ((vector signed short) a1, (vector signed short) a2);
}
inline vector unsigned char
vec_packsu (vector signed short a1, vector signed short a2)
{
- return (vector signed char) __builtin_altivec_vpkshus ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned char) __builtin_altivec_vpkshus ((vector signed short) a1, (vector signed short) a2);
}
inline vector unsigned short
vec_packsu (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed short) __builtin_altivec_vpkuwus ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vpkuwus ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_packsu (vector signed int a1, vector signed int a2)
{
- return (vector signed short) __builtin_altivec_vpkswus ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vpkswus ((vector signed int) a1, (vector signed int) a2);
}
/* vec_perm */
inline vector float
vec_perm (vector float a1, vector float a2, vector unsigned char a3)
{
- return (vector signed int) __builtin_altivec_vperm_4si ((vector signed int) a1, (vector signed int) a2, (vector signed char) a3);
+ return (vector float) __builtin_altivec_vperm_4si ((vector signed int) a1, (vector signed int) a2, (vector signed char) a3);
}
inline vector signed int
inline vector unsigned int
vec_perm (vector unsigned int a1, vector unsigned int a2, vector unsigned char a3)
{
- return (vector signed int) __builtin_altivec_vperm_4si ((vector signed int) a1, (vector signed int) a2, (vector signed char) a3);
+ return (vector unsigned int) __builtin_altivec_vperm_4si ((vector signed int) a1, (vector signed int) a2, (vector signed char) a3);
}
inline vector signed short
vec_perm (vector signed short a1, vector signed short a2, vector unsigned char a3)
{
- return (vector signed int) __builtin_altivec_vperm_4si ((vector signed int) a1, (vector signed int) a2, (vector signed char) a3);
+ return (vector signed short) __builtin_altivec_vperm_4si ((vector signed int) a1, (vector signed int) a2, (vector signed char) a3);
}
inline vector unsigned short
vec_perm (vector unsigned short a1, vector unsigned short a2, vector unsigned char a3)
{
- return (vector signed int) __builtin_altivec_vperm_4si ((vector signed int) a1, (vector signed int) a2, (vector signed char) a3);
+ return (vector unsigned short) __builtin_altivec_vperm_4si ((vector signed int) a1, (vector signed int) a2, (vector signed char) a3);
}
inline vector signed char
vec_perm (vector signed char a1, vector signed char a2, vector unsigned char a3)
{
- return (vector signed int) __builtin_altivec_vperm_4si ((vector signed int) a1, (vector signed int) a2, (vector signed char) a3);
+ return (vector signed char) __builtin_altivec_vperm_4si ((vector signed int) a1, (vector signed int) a2, (vector signed char) a3);
}
inline vector unsigned char
vec_perm (vector unsigned char a1, vector unsigned char a2, vector unsigned char a3)
{
- return (vector signed int) __builtin_altivec_vperm_4si ((vector signed int) a1, (vector signed int) a2, (vector signed char) a3);
+ return (vector unsigned char) __builtin_altivec_vperm_4si ((vector signed int) a1, (vector signed int) a2, (vector signed char) a3);
}
/* vec_re */
inline vector unsigned char
vec_rl (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vrlb ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vrlb ((vector signed char) a1, (vector signed char) a2);
}
inline vector signed short
inline vector unsigned short
vec_rl (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vrlh ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vrlh ((vector signed short) a1, (vector signed short) a2);
}
inline vector signed int
inline vector unsigned int
vec_rl (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vrlw ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vrlw ((vector signed int) a1, (vector signed int) a2);
}
/* vec_round */
inline vector float
vec_sel (vector float a1, vector float a2, vector signed int a3)
{
- return (vector signed int) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
+ return (vector float) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
}
inline vector float
vec_sel (vector float a1, vector float a2, vector unsigned int a3)
{
- return (vector signed int) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
+ return (vector float) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
}
inline vector signed int
inline vector unsigned int
vec_sel (vector unsigned int a1, vector unsigned int a2, vector signed int a3)
{
- return (vector signed int) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
+ return (vector unsigned int) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
}
inline vector unsigned int
vec_sel (vector unsigned int a1, vector unsigned int a2, vector unsigned int a3)
{
- return (vector signed int) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
+ return (vector unsigned int) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
}
inline vector signed short
vec_sel (vector signed short a1, vector signed short a2, vector signed short a3)
{
- return (vector signed int) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
+ return (vector signed short) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
}
inline vector signed short
vec_sel (vector signed short a1, vector signed short a2, vector unsigned short a3)
{
- return (vector signed int) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
+ return (vector signed short) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
}
inline vector unsigned short
vec_sel (vector unsigned short a1, vector unsigned short a2, vector signed short a3)
{
- return (vector signed int) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
+ return (vector unsigned short) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
}
inline vector unsigned short
vec_sel (vector unsigned short a1, vector unsigned short a2, vector unsigned short a3)
{
- return (vector signed int) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
+ return (vector unsigned short) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
}
inline vector signed char
vec_sel (vector signed char a1, vector signed char a2, vector signed char a3)
{
- return (vector signed int) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
+ return (vector signed char) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
}
inline vector signed char
vec_sel (vector signed char a1, vector signed char a2, vector unsigned char a3)
{
- return (vector signed int) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
+ return (vector signed char) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
}
inline vector unsigned char
vec_sel (vector unsigned char a1, vector unsigned char a2, vector signed char a3)
{
- return (vector signed int) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
+ return (vector unsigned char) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
}
inline vector unsigned char
vec_sel (vector unsigned char a1, vector unsigned char a2, vector unsigned char a3)
{
- return (vector signed int) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
+ return (vector unsigned char) __builtin_altivec_vsel_4si ((vector signed int) a1, (vector signed int) a2, (vector signed int) a3);
}
/* vec_sl */
inline vector unsigned char
vec_sl (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vslb ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vslb ((vector signed char) a1, (vector signed char) a2);
}
inline vector signed short
inline vector unsigned short
vec_sl (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vslh ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vslh ((vector signed short) a1, (vector signed short) a2);
}
inline vector signed int
inline vector unsigned int
vec_sl (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vslw ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vslw ((vector signed int) a1, (vector signed int) a2);
}
/* vec_sld */
inline vector float
vec_sld (vector float a1, vector float a2, int a3)
{
- return (vector signed int) __builtin_altivec_vsldoi_4si ((vector signed int) a1, (vector signed int) a2, (const char) a3);
+ return (vector float) __builtin_altivec_vsldoi_4si ((vector signed int) a1, (vector signed int) a2, (const char) a3);
}
inline vector signed int
inline vector unsigned int
vec_sld (vector unsigned int a1, vector unsigned int a2, int a3)
{
- return (vector signed int) __builtin_altivec_vsldoi_4si ((vector signed int) a1, (vector signed int) a2, (const char) a3);
+ return (vector unsigned int) __builtin_altivec_vsldoi_4si ((vector signed int) a1, (vector signed int) a2, (const char) a3);
}
inline vector signed short
vec_sld (vector signed short a1, vector signed short a2, int a3)
{
- return (vector signed int) __builtin_altivec_vsldoi_4si ((vector signed int) a1, (vector signed int) a2, (const char) a3);
+ return (vector signed short) __builtin_altivec_vsldoi_4si ((vector signed int) a1, (vector signed int) a2, (const char) a3);
}
inline vector unsigned short
vec_sld (vector unsigned short a1, vector unsigned short a2, int a3)
{
- return (vector signed int) __builtin_altivec_vsldoi_4si ((vector signed int) a1, (vector signed int) a2, (const char) a3);
+ return (vector unsigned short) __builtin_altivec_vsldoi_4si ((vector signed int) a1, (vector signed int) a2, (const char) a3);
}
inline vector signed char
vec_sld (vector signed char a1, vector signed char a2, int a3)
{
- return (vector signed int) __builtin_altivec_vsldoi_4si ((vector signed int) a1, (vector signed int) a2, (const char) a3);
+ return (vector signed char) __builtin_altivec_vsldoi_4si ((vector signed int) a1, (vector signed int) a2, (const char) a3);
}
inline vector unsigned char
vec_sld (vector unsigned char a1, vector unsigned char a2, int a3)
{
- return (vector signed int) __builtin_altivec_vsldoi_4si ((vector signed int) a1, (vector signed int) a2, (const char) a3);
+ return (vector unsigned char) __builtin_altivec_vsldoi_4si ((vector signed int) a1, (vector signed int) a2, (const char) a3);
}
/* vec_sll */
inline vector unsigned int
vec_sll (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_sll (vector unsigned int a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_sll (vector unsigned int a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed short
vec_sll (vector signed short a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed short) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed short
vec_sll (vector signed short a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed short) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed short
vec_sll (vector signed short a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed short) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_sll (vector unsigned short a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_sll (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_sll (vector unsigned short a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed char
vec_sll (vector signed char a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed char) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed char
vec_sll (vector signed char a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed char) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed char
vec_sll (vector signed char a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed char) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_sll (vector unsigned char a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_sll (vector unsigned char a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_sll (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vsl ((vector signed int) a1, (vector signed int) a2);
}
/* vec_slo */
inline vector float
vec_slo (vector float a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
}
inline vector float
vec_slo (vector float a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed int
inline vector unsigned int
vec_slo (vector unsigned int a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_slo (vector unsigned int a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed short
vec_slo (vector signed short a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed short) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed short
vec_slo (vector signed short a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed short) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_slo (vector unsigned short a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_slo (vector unsigned short a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed char
vec_slo (vector signed char a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed char) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed char
vec_slo (vector signed char a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed char) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_slo (vector unsigned char a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_slo (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vslo ((vector signed int) a1, (vector signed int) a2);
}
/* vec_splat */
inline vector unsigned char
vec_splat (vector unsigned char a1, int a2)
{
- return (vector signed char) __builtin_altivec_vspltb ((vector signed char) a1, (const char) a2);
+ return (vector unsigned char) __builtin_altivec_vspltb ((vector signed char) a1, (const char) a2);
}
inline vector signed short
inline vector unsigned short
vec_splat (vector unsigned short a1, int a2)
{
- return (vector signed short) __builtin_altivec_vsplth ((vector signed short) a1, (const char) a2);
+ return (vector unsigned short) __builtin_altivec_vsplth ((vector signed short) a1, (const char) a2);
}
inline vector float
vec_splat (vector float a1, int a2)
{
- return (vector signed int) __builtin_altivec_vspltw ((vector signed int) a1, (const char) a2);
+ return (vector float) __builtin_altivec_vspltw ((vector signed int) a1, (const char) a2);
}
inline vector signed int
inline vector unsigned int
vec_splat (vector unsigned int a1, int a2)
{
- return (vector signed int) __builtin_altivec_vspltw ((vector signed int) a1, (const char) a2);
+ return (vector unsigned int) __builtin_altivec_vspltw ((vector signed int) a1, (const char) a2);
}
/* vec_splat_s8 */
inline vector unsigned char
vec_splat_u8 (int a1)
{
- return (vector signed char) __builtin_altivec_vspltisb ((const char) a1);
+ return (vector unsigned char) __builtin_altivec_vspltisb ((const char) a1);
}
/* vec_splat_u16 */
inline vector unsigned short
vec_splat_u16 (int a1)
{
- return (vector signed short) __builtin_altivec_vspltish ((const char) a1);
+ return (vector unsigned short) __builtin_altivec_vspltish ((const char) a1);
}
/* vec_splat_u32 */
inline vector unsigned int
vec_splat_u32 (int a1)
{
- return (vector signed int) __builtin_altivec_vspltisw ((const char) a1);
+ return (vector unsigned int) __builtin_altivec_vspltisw ((const char) a1);
}
/* vec_sr */
inline vector unsigned char
vec_sr (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vsrb ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vsrb ((vector signed char) a1, (vector signed char) a2);
}
inline vector signed short
inline vector unsigned short
vec_sr (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vsrh ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vsrh ((vector signed short) a1, (vector signed short) a2);
}
inline vector signed int
inline vector unsigned int
vec_sr (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsrw ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsrw ((vector signed int) a1, (vector signed int) a2);
}
/* vec_sra */
inline vector unsigned char
vec_sra (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vsrab ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vsrab ((vector signed char) a1, (vector signed char) a2);
}
inline vector signed short
inline vector unsigned short
vec_sra (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vsrah ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vsrah ((vector signed short) a1, (vector signed short) a2);
}
inline vector signed int
inline vector unsigned int
vec_sra (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsraw ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsraw ((vector signed int) a1, (vector signed int) a2);
}
/* vec_srl */
inline vector unsigned int
vec_srl (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_srl (vector unsigned int a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_srl (vector unsigned int a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed short
vec_srl (vector signed short a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed short) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed short
vec_srl (vector signed short a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed short) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed short
vec_srl (vector signed short a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed short) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_srl (vector unsigned short a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_srl (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_srl (vector unsigned short a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed char
vec_srl (vector signed char a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed char) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed char
vec_srl (vector signed char a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed char) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed char
vec_srl (vector signed char a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed char) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_srl (vector unsigned char a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_srl (vector unsigned char a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_srl (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vsr ((vector signed int) a1, (vector signed int) a2);
}
/* vec_sro */
inline vector float
vec_sro (vector float a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
}
inline vector float
vec_sro (vector float a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed int
inline vector unsigned int
vec_sro (vector unsigned int a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_sro (vector unsigned int a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed short
vec_sro (vector signed short a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed short) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed short
vec_sro (vector signed short a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed short) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_sro (vector unsigned short a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_sro (vector unsigned short a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed char
vec_sro (vector signed char a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed char) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed char
vec_sro (vector signed char a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed char) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_sro (vector unsigned char a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_sro (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vsro ((vector signed int) a1, (vector signed int) a2);
}
/* vec_st */
inline vector unsigned char
vec_sub (vector signed char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vsububm ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vsububm ((vector signed char) a1, (vector signed char) a2);
}
inline vector unsigned char
vec_sub (vector unsigned char a1, vector signed char a2)
{
- return (vector signed char) __builtin_altivec_vsububm ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vsububm ((vector signed char) a1, (vector signed char) a2);
}
inline vector unsigned char
vec_sub (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vsububm ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vsububm ((vector signed char) a1, (vector signed char) a2);
}
inline vector signed short
inline vector unsigned short
vec_sub (vector signed short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vsubuhm ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vsubuhm ((vector signed short) a1, (vector signed short) a2);
}
inline vector unsigned short
vec_sub (vector unsigned short a1, vector signed short a2)
{
- return (vector signed short) __builtin_altivec_vsubuhm ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vsubuhm ((vector signed short) a1, (vector signed short) a2);
}
inline vector unsigned short
vec_sub (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vsubuhm ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vsubuhm ((vector signed short) a1, (vector signed short) a2);
}
inline vector signed int
inline vector unsigned int
vec_sub (vector signed int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsubuwm ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsubuwm ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_sub (vector unsigned int a1, vector signed int a2)
{
- return (vector signed int) __builtin_altivec_vsubuwm ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsubuwm ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_sub (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsubuwm ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsubuwm ((vector signed int) a1, (vector signed int) a2);
}
inline vector float
inline vector unsigned int
vec_subc (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsubcuw ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsubcuw ((vector signed int) a1, (vector signed int) a2);
}
/* vec_subs */
inline vector unsigned char
vec_subs (vector signed char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vsububs ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vsububs ((vector signed char) a1, (vector signed char) a2);
}
inline vector unsigned char
vec_subs (vector unsigned char a1, vector signed char a2)
{
- return (vector signed char) __builtin_altivec_vsububs ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vsububs ((vector signed char) a1, (vector signed char) a2);
}
inline vector unsigned char
vec_subs (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed char) __builtin_altivec_vsububs ((vector signed char) a1, (vector signed char) a2);
+ return (vector unsigned char) __builtin_altivec_vsububs ((vector signed char) a1, (vector signed char) a2);
}
inline vector signed char
inline vector unsigned short
vec_subs (vector signed short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vsubuhs ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vsubuhs ((vector signed short) a1, (vector signed short) a2);
}
inline vector unsigned short
vec_subs (vector unsigned short a1, vector signed short a2)
{
- return (vector signed short) __builtin_altivec_vsubuhs ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vsubuhs ((vector signed short) a1, (vector signed short) a2);
}
inline vector unsigned short
vec_subs (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed short) __builtin_altivec_vsubuhs ((vector signed short) a1, (vector signed short) a2);
+ return (vector unsigned short) __builtin_altivec_vsubuhs ((vector signed short) a1, (vector signed short) a2);
}
inline vector signed short
inline vector unsigned int
vec_subs (vector signed int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsubuws ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsubuws ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_subs (vector unsigned int a1, vector signed int a2)
{
- return (vector signed int) __builtin_altivec_vsubuws ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsubuws ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_subs (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsubuws ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsubuws ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed int
inline vector unsigned int
vec_sum4s (vector unsigned char a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vsum4ubs ((vector signed char) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vsum4ubs ((vector signed char) a1, (vector signed int) a2);
}
inline vector signed int
inline vector float
vec_xor (vector float a1, vector float a2)
{
- return (vector signed int) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
}
inline vector float
vec_xor (vector float a1, vector signed int a2)
{
- return (vector signed int) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
}
inline vector float
vec_xor (vector signed int a1, vector float a2)
{
- return (vector signed int) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
+ return (vector float) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed int
inline vector unsigned int
vec_xor (vector signed int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_xor (vector unsigned int a1, vector signed int a2)
{
- return (vector signed int) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned int
vec_xor (vector unsigned int a1, vector unsigned int a2)
{
- return (vector signed int) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned int) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed short
vec_xor (vector signed short a1, vector signed short a2)
{
- return (vector signed int) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed short) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_xor (vector signed short a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_xor (vector unsigned short a1, vector signed short a2)
{
- return (vector signed int) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned short
vec_xor (vector unsigned short a1, vector unsigned short a2)
{
- return (vector signed int) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned short) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
}
inline vector signed char
vec_xor (vector signed char a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
+ return (vector signed char) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_xor (vector signed char a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_xor (vector unsigned char a1, vector signed char a2)
{
- return (vector signed int) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
}
inline vector unsigned char
vec_xor (vector unsigned char a1, vector unsigned char a2)
{
- return (vector signed int) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
+ return (vector unsigned char) __builtin_altivec_vxor ((vector signed int) a1, (vector signed int) a2);
}
/* vec_all_eq */
inline int
vec_all_eq (vector signed char a1, vector unsigned char a2)
{
- return __builtin_altivec_vcmpequb_p (__CR6_LT, a1, a2);
+ return __builtin_altivec_vcmpequb_p (__CR6_LT, a1, (vector signed char) a2);
}
inline int