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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Bit Level Manipulation

31 点作者 mburst大约 12 年前

3 条评论

ColinWright大约 12 年前
Serious question: How many people here on HN find things at this level useful? I'm always intrigued to find out how many working programmers don't know this sort of thing.<p>I might start a poll on it ...
评论 #5506879 未加载
评论 #5507440 未加载
jared314大约 12 年前
I have always wondered why I was taught binary as if they were arrays, but programming languages never allowed me to use bits like arrays. It's always masking and shifting uint16_t or int32_t, instead of what I really want,<p>"result = bits[3] xor bits2[3]".
评论 #5506843 未加载
simarpreet007大约 12 年前
It's never bad to post something that might seem very trivial at first. I learnt the trick of checking an odd or even with this post. Thanks OP!