Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Dylan16807
on Jan 28, 2020
|
parent
|
context
|
favorite
| on:
Why numbering should start at zero (1982)
You get a positive number if you use AND.
0-_-0
on Jan 28, 2020
[–]
You don't mask the sign bit...
Dylan16807
on Jan 28, 2020
|
parent
[–]
In two's complement? You'd need to add extra masks and shifts to replicate the sign bit. It puts you in much more complex territory than throwing an AND at it.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: