-
-
Save uploadcare-user/7ae06b95a268a700545a8a664de0421d to your computer and use it in GitHub Desktop.
Unwrapping loops even further
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
if (imIn->bands == 4) { | |
for (xx = 0; xx < imOut->xsize; xx++) { | |
// Body, 4 channels | |
} | |
} else if (imIn->bands == 3) { | |
for (xx = 0; xx < imOut->xsize; xx++) { | |
// Body, 3 channels | |
} | |
} else { | |
for (xx = 0; xx < imOut->xsize; xx++) { | |
// Body, 1 and 2 channels | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment