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 Level Manipulation

31 pointsby mburstabout 12 years ago

3 comments

ColinWrightabout 12 years ago
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 未加载
jared314about 12 years ago
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 未加载
simarpreet007about 12 years ago
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!