Full threadbwasti·in C++17 you can get generic loop unrolling templates in 8 lines of code: https://godbolt.org/g/2Di4PMView on HN