in reply to Re: behavior of bitwise shift
in thread behavior of bitwise shift
That's right, the underlying c is 32 bit, and Perl simply uses c <<. It is said in perlop that:
"The result of overflowing the range of the integers is undefined because it is undefined also in C. In other words, using 32-bit integers, 1 << 32 is undefined. Shifting by a negative number of bits is also undefined."
|
|---|