Comment Comment by Sharlin In this case though you could just use an 11-element array as a lookup table which would technically make this branchless. parent Sharlin 5 years ago