Osvaldo Santana Neto

14%
Flag icon
Left shifts fill the vacated bits with zeros, as do right shifts of unsigned numbers, but right shifts of signed numbers fill the vacated bits with copies of the sign bit. For this reason, it is important to use unsigned arithmetic when you’re treating an integer as a bit pattern.
The Go Programming Language
Rate this book
Clear rating
Open Preview