@@ -2502,37 +2502,37 @@ vec_cmplt(vector unsigned long long __a, vector unsigned long long __b) {
25022502
25032503static __inline__ vector unsigned char __ATTRS_o_ai
25042504vec_popcnt(vector signed char __a) {
2505- return (vector unsigned char)__builtin_altivec_vpopcntb (
2505+ return (vector unsigned char)__builtin_elementwise_popcount (
25062506 (vector unsigned char)__a);
25072507}
25082508static __inline__ vector unsigned char __ATTRS_o_ai
25092509vec_popcnt(vector unsigned char __a) {
2510- return __builtin_altivec_vpopcntb (__a);
2510+ return __builtin_elementwise_popcount (__a);
25112511}
25122512static __inline__ vector unsigned short __ATTRS_o_ai
25132513vec_popcnt(vector signed short __a) {
2514- return (vector unsigned short)__builtin_altivec_vpopcnth (
2514+ return (vector unsigned short)__builtin_elementwise_popcount (
25152515 (vector unsigned short)__a);
25162516}
25172517static __inline__ vector unsigned short __ATTRS_o_ai
25182518vec_popcnt(vector unsigned short __a) {
2519- return __builtin_altivec_vpopcnth (__a);
2519+ return __builtin_elementwise_popcount (__a);
25202520}
25212521static __inline__ vector unsigned int __ATTRS_o_ai
25222522vec_popcnt(vector signed int __a) {
2523- return __builtin_altivec_vpopcntw ((vector unsigned int)__a);
2523+ return __builtin_elementwise_popcount ((vector unsigned int)__a);
25242524}
25252525static __inline__ vector unsigned int __ATTRS_o_ai
25262526vec_popcnt(vector unsigned int __a) {
2527- return __builtin_altivec_vpopcntw (__a);
2527+ return __builtin_elementwise_popcount (__a);
25282528}
25292529static __inline__ vector unsigned long long __ATTRS_o_ai
25302530vec_popcnt(vector signed long long __a) {
2531- return __builtin_altivec_vpopcntd ((vector unsigned long long)__a);
2531+ return __builtin_elementwise_popcount ((vector unsigned long long)__a);
25322532}
25332533static __inline__ vector unsigned long long __ATTRS_o_ai
25342534vec_popcnt(vector unsigned long long __a) {
2535- return __builtin_altivec_vpopcntd (__a);
2535+ return __builtin_elementwise_popcount (__a);
25362536}
25372537
25382538#define vec_vclz vec_cntlz
0 commit comments