by swatcoder · 3y ago · 0 comments
1. using `restrict` to tell that compiler that src and dest are sure not to overlap
2. Converting your two increment and test blocks to add+mod to allow for uninterrupted pipelining
Neither might make a difference, but either could.
Writing an optimal composite function is of course not really the goal, nor of much educational/entertainment value. For any additional speed I already have a function which slices up compositing tasks into chunks and puts them on a thread pool.