Commit f67376e4 by Janis Johnson Committed by Janis Johnson

altivec.h (vec_lvewx, [...]): Remove the const qualifier for the second argument…

altivec.h (vec_lvewx, [...]): Remove the const qualifier for the second argument in the C++ functions.

2004-07-23  Janis Johnson  <janis187@us.ibm.com>

	* config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
	the const qualifier for the second argument in the C++ functions.

From-SVN: r85092
parent be3ec667
2004-07-23 Janis Johnson <janis187@us.ibm.com> 2004-07-23 Janis Johnson <janis187@us.ibm.com>
* config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
the const qualifier for the second argument in the C++ functions.
* config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
specific pointer types. specific pointer types.
......
...@@ -2230,31 +2230,31 @@ vec_lde (int a1, const unsigned long *a2) ...@@ -2230,31 +2230,31 @@ vec_lde (int a1, const unsigned long *a2)
/* vec_lvewx */ /* vec_lvewx */
inline vector float inline vector float
vec_lvewx (int a1, const float *a2) vec_lvewx (int a1, float *a2)
{ {
return (vector float) __builtin_altivec_lvewx (a1, (void *) a2); return (vector float) __builtin_altivec_lvewx (a1, (void *) a2);
} }
inline vector signed int inline vector signed int
vec_lvewx (int a1, const int *a2) vec_lvewx (int a1, int *a2)
{ {
return (vector signed int) __builtin_altivec_lvewx (a1, (void *) a2); return (vector signed int) __builtin_altivec_lvewx (a1, (void *) a2);
} }
inline vector unsigned int inline vector unsigned int
vec_lvewx (int a1, const unsigned int *a2) vec_lvewx (int a1, unsigned int *a2)
{ {
return (vector unsigned int) __builtin_altivec_lvewx (a1, (void *) a2); return (vector unsigned int) __builtin_altivec_lvewx (a1, (void *) a2);
} }
inline vector signed int inline vector signed int
vec_lvewx (int a1, const long *a2) vec_lvewx (int a1, long *a2)
{ {
return (vector signed int) __builtin_altivec_lvewx (a1, (void *) a2); return (vector signed int) __builtin_altivec_lvewx (a1, (void *) a2);
} }
inline vector unsigned int inline vector unsigned int
vec_lvewx (int a1, const unsigned long *a2) vec_lvewx (int a1, unsigned long *a2)
{ {
return (vector unsigned int) __builtin_altivec_lvewx (a1, (void *) a2); return (vector unsigned int) __builtin_altivec_lvewx (a1, (void *) a2);
} }
...@@ -2262,13 +2262,13 @@ vec_lvewx (int a1, const unsigned long *a2) ...@@ -2262,13 +2262,13 @@ vec_lvewx (int a1, const unsigned long *a2)
/* vec_lvehx */ /* vec_lvehx */
inline vector signed short inline vector signed short
vec_lvehx (int a1, const short *a2) vec_lvehx (int a1, short *a2)
{ {
return (vector signed short) __builtin_altivec_lvehx (a1, (void *) a2); return (vector signed short) __builtin_altivec_lvehx (a1, (void *) a2);
} }
inline vector unsigned short inline vector unsigned short
vec_lvehx (int a1, const unsigned short *a2) vec_lvehx (int a1, unsigned short *a2)
{ {
return (vector unsigned short) __builtin_altivec_lvehx (a1, (void *) a2); return (vector unsigned short) __builtin_altivec_lvehx (a1, (void *) a2);
} }
...@@ -2276,13 +2276,13 @@ vec_lvehx (int a1, const unsigned short *a2) ...@@ -2276,13 +2276,13 @@ vec_lvehx (int a1, const unsigned short *a2)
/* vec_lvebx */ /* vec_lvebx */
inline vector signed char inline vector signed char
vec_lvebx (int a1, const signed char *a2) vec_lvebx (int a1, signed char *a2)
{ {
return (vector signed char) __builtin_altivec_lvebx (a1, (void *) a2); return (vector signed char) __builtin_altivec_lvebx (a1, (void *) a2);
} }
inline vector unsigned char inline vector unsigned char
vec_lvebx (int a1, const int *a2) vec_lvebx (int a1, unsigned char *a2)
{ {
return (vector unsigned char) __builtin_altivec_lvebx (a1, (void *) a2); return (vector unsigned char) __builtin_altivec_lvebx (a1, (void *) a2);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment