Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You don't mask the sign bit...


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: