TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Bit Twiddling Hacks (2005)

50 点作者 thealphanerd超过 10 年前

6 条评论

fubarred超过 10 年前
Neat. Also here&#x27;s some other sources beyond the usual CS bookshelf suspects:<p><a href="http://www.hackersdelight.org/" rel="nofollow">http:&#x2F;&#x2F;www.hackersdelight.org&#x2F;</a><p><a href="http://www.inwap.com/pdp10/hbaker/hakmem/hakmem.html" rel="nofollow">http:&#x2F;&#x2F;www.inwap.com&#x2F;pdp10&#x2F;hbaker&#x2F;hakmem&#x2F;hakmem.html</a><p>(We recently had to grab the C standards in order to bust out some integer under&#x2F;overflow macros that wouldn&#x27;t be brittle.)
viraptor超过 10 年前
There&#x27;s also a lot of 64-bit hacks on pages related to chess programming (8x8 boards). For example: <a href="https://chessprogramming.wikispaces.com/Bitboards" rel="nofollow">https:&#x2F;&#x2F;chessprogramming.wikispaces.com&#x2F;Bitboards</a><p>And my faviourite bit hack question on SO: <a href="https://stackoverflow.com/questions/14537831/isolate-specific-row-column-diagonal-from-a-64-bit-number" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;14537831&#x2F;isolate-specifi...</a>
new299超过 10 年前
It&#x27;s an awesome page.<p>I would guess one of the reasons it&#x27;s here though is that it&#x27;s almost required reading for Google interviews, #DetermineIfPowerOf2 is a particular favorite.
drv超过 10 年前
Another resource in the same vein (it links to this page, among others):<p><a href="http://aggregate.org/MAGIC/" rel="nofollow">http:&#x2F;&#x2F;aggregate.org&#x2F;MAGIC&#x2F;</a>
dang超过 10 年前
This has been popular over the years, but hasn&#x27;t had attention on HN in a while:<p><a href="https://hn.algolia.com/?q=bit+twiddling+hacks#!/story/forever/0/bit%20twiddling%20hacks" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?q=bit+twiddling+hacks#!&#x2F;story&#x2F;foreve...</a><p>We put 2005 on it, though the Internet Archive says there were earlier versions.
aosmith超过 10 年前
He should pay bounties in BTC...