Last active
August 19, 2019 21:47
-
-
Save akaita/f0a6080e2fb68f770e4950144b5e010c to your computer and use it in GitHub Desktop.
Example for unmaintainable-code-5 https://medium.com/@akaita/30-rules-to-make-your-code-unmaintainable-7e5dbafd5bce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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