© { JSL }
37
Text Box: Integer Shifting
Integer Shifting
·never throw exceptions
w(u)int shift à count & 0x1F
w(u)long shift à count & 0x3F
  int operator <<(  int x, int count);
 long operator <<( long x, int count);
 uint operator <<( uint x, int count);
ulong operator <<(ulong x, int count);
  int operator >>(  int x, int count);
 long operator >>( long x, int count);
 uint operator >>( uint x, int count);
ulong operator >>(ulong x, int count);
arithmetic shift
logical shift
MSIL == shl
MSIL == shr  and  shr.un