dysfun@treehouse.systems ("gaytabase") wrote:
i got zig to unroll my loops for me!
interestingly, because it needs to constant fold to achieve one of the unrollings and doesn't complain, i have good confidence that it must have done exactly what i wanted.
not that this is necessarily the final trick i will go with, but it's interesting that i can do this and be guaranteed that it does what i want. at least before it gets fed to the llvm backend...
https://gist.github.com/jjl/6ca49552a96a66c05fc4146b2017e09a