Please forgive me for the bikeshedding, but I have a quick question as a C novice: Is the equality check in the following necessary?
if (foo & 0x80 == 0x80) {
I thought if you're checking a bit simply anding would be enough (since everything else would be zeros). In other words, could we just use if (foo & 0x80) {
If so, then it seems like this would be the preferred form to avoid the precedence issue presented in the article.