mozilla/rust — pull request #13506 by huonw (2014-04-14 10:09:42+00:00)
Title: Use the unsigned integer types for bitwise intrinsics.

Use the unsigned integer types for bitwise intrinsics.

Exposing ctpop, ctlz, cttz and bswap as taking signed i8/i16/... is just
exposing the internal LLVM names pointlessly (LLVM doesn't have "signed
integers" or "unsigned integers", it just has sized integer types
with (un)signed *operations*).

These operations are semantically working with raw bytes, which the
unsigned types model better.