A[i] += 4 * B[i];
}
+
+Vectorization of Special Idioms
+-------------------------------
+
+The Loop Vectorizer can detect and vectorize
+
+.. code-block:: c++
+
+ for ( k=1 ; k<n ; k++ ) {
+ x[k] = x[k-1] + y[k];
+ }
+
Vectorization of function calls
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+-----+-----+---------+
|fma |trunc|nearbyint|
+-----+-----+---------+
+| | | fmuladd |
++-----+-----+---------+
Performance
-----------