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
20082026
-
In https://github.com/kstenerud/bit-tricks/blob/master/sign.h Why not use: (x > 0) - (x < 0)
comment by jacobolus · 2019-10-16 · in Mispredicted branches can multiply your running times -
> https://github.com/kstenerud/bit-tricks/blob/master/bytes_re... looks like over-engineering of (bits + 7) >> 3
comment by omgtehlion · 2019-10-16 · in Mispredicted branches can multiply your running times -
…after you've done all your algorithmic changes, cache locality, sizing, alignment, etc. [1] https://github.com/kstenerud/bit-tricks
comment by kstenerud · 2019-10-16 · in Mispredicted branches can multiply your running times -
What about some sort of code URI? Maybe something like: code:github.com/kstenerud/bit-tricks/absolute_value.h/absolute_value
comment by kstenerud · 2019-09-27 · in GitHub releases an ImageNet for code and a CodeSearchNet challenge