Lines Matching defs:to_vec
237 // to_vec<N,T>() below for N=4 and T=float. This workaround seems to help...
238 SI Vec<4,float> to_vec(VExt<4,float> v) { return bit_pun<Vec<4,float>>(v); }
242 SINT Vec <N,T> to_vec(const VExt<N,T>& v) { return bit_pun<Vec <N,T>>(v); }
245 return to_vec<N,T>(to_vext(x) + to_vext(y));
248 return to_vec<N,T>(to_vext(x) - to_vext(y));
251 return to_vec<N,T>(to_vext(x) * to_vext(y));
254 return to_vec<N,T>(to_vext(x) / to_vext(y));
258 return to_vec<N,T>(to_vext(x) ^ to_vext(y));
261 return to_vec<N,T>(to_vext(x) & to_vext(y));
264 return to_vec<N,T>(to_vext(x) | to_vext(y));
267 SINT Vec<N,T> operator!(const Vec<N,T>& x) { return to_vec<N,T>(!to_vext(x)); }
268 SINT Vec<N,T> operator-(const Vec<N,T>& x) { return to_vec<N,T>(-to_vext(x)); }
269 SINT Vec<N,T> operator~(const Vec<N,T>& x) { return to_vec<N,T>(~to_vext(x)); }
271 SINT Vec<N,T> operator<<(const Vec<N,T>& x, int k) { return to_vec<N,T>(to_vext(x) << k); }
272 SINT Vec<N,T> operator>>(const Vec<N,T>& x, int k) { return to_vec<N,T>(to_vext(x) >> k); }
523 return to_vec(__builtin_convertvector(to_vext(src), VExt<N,D>));
560 return to_vec<sizeof...(Ix),T>(__builtin_shufflevector(to_vext(x), to_vext(x), Ix...));
736 return to_vec<4, uint32_t>(vcombine_u32(vshrn_n_u64(lo,32), vshrn_n_u64(hi,32)));
753 return to_vec<8,uint16_t>(vmull_u8(to_vext(x),