On Sunday, 17 April 2022 at 11:16:25 UTC, HuskyNator wrote:
As a small disclaimer; I don't know to what extent the compiler already automates these kind of operations, and mostly want to use this as a learning experience.
For your particular case, it is very likely LDC and GDC will be able to optimize your loops using SIMD.