Hacker GitHub

← All repos

kstenerud/bit-tricks

View on GitHub ↗ ★ 21 C

Various tricks for dealing with bits

4 mentions on Hacker News by 3 people: 0 stories, 4 comments · first 2019-09-27 · latest 2019-10-16

Mentions per year 4 mentions · busiest year 2019 (4)
20082026
  1. In https://github.com/kstenerud/bit-tricks/blob/master/sign.h Why not use: (x > 0) - (x < 0)
  2. > https://github.com/kstenerud/bit-tricks/blob/master/bytes_re... looks like over-engineering of (bits + 7) >> 3
  3. …after you've done all your algorithmic changes, cache locality, sizing, alignment, etc. [1] https://github.com/kstenerud/bit-tricks
  4. What about some sort of code URI? Maybe something like: code:github.com/kstenerud/bit-tricks/absolute_value.h/absolute_value