tag:blogger.com,1999:blog-6042417775578107106.post8404512233431248361..comments2023-08-05T11:30:32.754-04:00Comments on The Hacks of Life: The Very Best Seventies TechnologyChrishttp://www.blogger.com/profile/14648675681957285299noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6042417775578107106.post-20950134403246279662010-11-11T14:20:22.584-05:002010-11-11T14:20:22.584-05:00Good call...although weirdly << is above | s...Good call...although weirdly << is above | so if you are just constructing bit fields you can do<br />1 << position | other_flags<br /><br />But yeah, for things like 1 << bits - 1 it's kind of hosed.Benjamin Supnikhttps://www.blogger.com/profile/04886313844644521178noreply@blogger.comtag:blogger.com,1999:blog-6042417775578107106.post-65660914408344156242010-11-11T14:16:11.412-05:002010-11-11T14:16:11.412-05:00Don't forget about 1 << 2 + 3. Basically...Don't forget about 1 << 2 + 3. Basically, all bit ops have the precedence that's usually useless for performing bit ops. Oh well.Arseny Kapoulkinehttps://www.blogger.com/profile/18310595345818946666noreply@blogger.com