On Wed Feb 8 14:26:27 2023 +0000, Jinoh Kang wrote:
We can reduce duplicate code by wrapping those in helper functions. Also, have you considered avoiding branches?
I'm not sure what you mean by helpers, I think this is currently reasonably readable and I'm not sure duplication matters much.
Haven't tried removing branches, I'm hoping the compiler will do some magic as it's all static comparison. Readability is important I think but if you have a suggestion go ahead.