02-10-2017, 03:00 PM
The thing is if you would have any experience in programming you wouldn't have said so. A function will not make it faster, it will make no difference at all. The compiler will recognize a fixed number of iterations and automatically unroll it back. Finally a function only makes it harder to read, hence the code is as it is.