MHN
Add a comment on Hacker News →
1 of 166 comments
  1. GCC already solved it:https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.htmlThe operations behave like C++ valarrays. Addition is defined as the addition of the corresponding elements of the operands. For example, in the code below, each of the 4 elements in a is added to the corresponding 4 elements in b and the resulting vector is stored in c.