News for hackers. Stuff that matters.
Re:Branch predictor: How many “if”s are too many? by dusted on Thursday May 06, 2021 @12:47PM (#27065950)
Well caught! I have two off by one errors :D seems they start from 1 instead of 0, and I didn't account for the null byte :D your solution is nicer and easier to read :)
Re:Branch predictor: How many “if”s are too many? by Cerealkiller050 on Thursday May 06, 2021 @01:44PM (#27066742)
This jives with the overall point of the article of keep it simple and readable. The semi fancy indexing caused 2 errors and the upside is negligible after the compiler gets done with it.