News for hackers. Stuff that matters.
Re:Should I Use Signed or Unsigned Ints? (Part 2) by detrino on Tuesday September 01, 2015 @10:45PM (#10157151)
I found this odd too. I'd add that comparison and right shift also differ, but signed right shift does have obvious semantics: sign extension. I'd also argue that signed division has obvious semantics: round towards negative infinity, which matches the semantics of right shift with sign extension. I'm saddened that none of C/C++/x86 have native support for this kind of division, it's _always_ what I want from signed division.

There are no comments on this comment yet.