Talk:Automatic vectorization

[Untitled]
The free statements in the following example code engages in undefined behavior because the pointers received from malloc have been altered. Segment faults, or other abnormal terminations, would be expected.

int *a = malloc(128*sizeof(int)); int *b = malloc(128*sizeof(int)); // initialize b for (i = 0; i<128; i++, a++, b++) *a = *b + 5; // ...  // ...  // ...  free(b); free(a);

A very simple fix changes the following two lines:

for (i = 0; i<128; i++ ) a[i] = b[i] + 5;

YetAnotherAuthor (talk) 23:44, 28 February 2016 (UTC)

External links modified
Hello fellow Wikipedians,

I have just modified 1 one external link on Automatic vectorization. Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:
 * Added archive https://web.archive.org/web/20100610024621/http://www.ess.uci.edu/esmf/ibm_compiler_docs/xl_optimization.pdf to http://www.ess.uci.edu/esmf/ibm_compiler_docs/xl_optimization.pdf

When you have finished reviewing my changes, please set the checked parameter below to true or failed to let others know (documentation at ).

Cheers.— InternetArchiveBot  (Report bug) 06:33, 22 October 2016 (UTC)