Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jared314
on April 7, 2013
|
parent
|
context
|
favorite
| on:
Bit Level Manipulation
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,
"result = bits[3] xor bits2[3]".
jonsen
on April 7, 2013
[–]
I'm unable to find a reference, but I'm pretty sure you could do that in PL/I.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
"result = bits[3] xor bits2[3]".