Skip to content

Instantly share code, notes, and snippets.

@akaita
Last active August 19, 2019 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akaita/f0a6080e2fb68f770e4950144b5e010c to your computer and use it in GitHub Desktop.
Save akaita/f0a6080e2fb68f770e4950144b5e010c to your computer and use it in GitHub Desktop.
for(j=0; j<array_len; j+ =8) {
total += array[j+0 ];
  total += array[j+1 ];
  total += array[j+2 ]; /* Main body of
  total += array[j+3 ]; * loop is unrolled
  total += array[j+4 ]; * for greater speed.
  total += array[j+5 ]; */
  total += array[j+6 ];
  total += array[j+7 ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment