TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Bit Twiddling Hacks (2005)

66 pointsby kerckerover 7 years ago

3 comments

jdblairover 7 years ago
If you enjoy these bit twiddling hacks, I recommend &quot;Hacker&#x27;s Delight,&quot; by Henry Warren.<p>Author&#x27;s website: <a href="http:&#x2F;&#x2F;www.hackersdelight.org" rel="nofollow">http:&#x2F;&#x2F;www.hackersdelight.org</a><p>2nd edition on Amazon: <a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Hackers-Delight-2nd-Henry-Warren&#x2F;dp&#x2F;0321842685" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Hackers-Delight-2nd-Henry-Warren&#x2F;dp&#x2F;0...</a>
sctbover 7 years ago
A perennial: <a href="https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=Bit%20Twiddling%20Hacks&amp;sort=byDate&amp;dateRange=all&amp;type=story&amp;storyText=false&amp;prefix&amp;page=0" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=Bit%20Twiddling%20Hacks&amp;sort=b...</a>
fanf2over 7 years ago
My favourite bit twiddling hacks:<p>Bitwise parallel &quot;SIMD within a register&quot; Life, by Thomas Rokicki: <a href="https:&#x2F;&#x2F;fanf.livejournal.com&#x2F;93032.html" rel="nofollow">https:&#x2F;&#x2F;fanf.livejournal.com&#x2F;93032.html</a><p>Popcount for radix trees, as seen in Phil Bagwell&#x27;s HAMTs and my qp tries: <a href="https:&#x2F;&#x2F;dotat.at&#x2F;prog&#x2F;qp&#x2F;README.html" rel="nofollow">https:&#x2F;&#x2F;dotat.at&#x2F;prog&#x2F;qp&#x2F;README.html</a>