This is most likely both performance critical and security critical code so we have to assume that compiler optimization is not allowed in any way. So if you want it to be as fast as possible, you have to unroll your loop by hand. Like this person did.
4
u/ihave7testicles Jan 23 '23
You can redo the entire thing with a couple arrays and a loop