Re:Branch predictor: How many “if”s are too many?
by messe on Thursday May 06, 2021 @03:36PM
(#27068109)
> This way the codes are explicit when you read the code
Good call. It might have caught the off-by-one mistake I made (the codes start from 1 and not 0 in the blog post). Maybe even switch to using an enum as our index instead of an int.
Good call. It might have caught the off-by-one mistake I made (the codes start from 1 and not 0 in the blog post). Maybe even switch to using an enum as our index instead of an int.