public virtual IDynamic Op_UnsignedRightShift(IDynamic other) { var lnum = (uint)(double)this.ConvertToUInt32().BaseValue; var rnum = (uint)(double)other.ConvertToUInt32().BaseValue; var shiftCount = (int)(rnum & (uint)0x1F); return(Environment.CreateNumber((double)unchecked (lnum >> shiftCount))); }
public virtual IDynamic Op_LeftShift(IDynamic other) { var lnum = (int)(double)this.ConvertToInt32().BaseValue; var rnum = (uint)(double)other.ConvertToUInt32().BaseValue; var shiftCount = (int)(rnum & (uint)0x1F); return(Environment.CreateNumber((double)(lnum << shiftCount))); }
public virtual IDynamic Op_UnsignedRightShift(IDynamic other) { var lnum = (uint)(double)this.ConvertToUInt32().BaseValue; var rnum = (uint)(double)other.ConvertToUInt32().BaseValue; var shiftCount = (int)(rnum & (uint)0x1F); return Environment.CreateNumber((double)unchecked(lnum >> shiftCount)); }
public virtual IDynamic Op_LeftShift(IDynamic other) { var lnum = (int)(double)this.ConvertToInt32().BaseValue; var rnum = (uint)(double)other.ConvertToUInt32().BaseValue; var shiftCount = (int)(rnum & (uint)0x1F); return Environment.CreateNumber((double)(lnum << shiftCount)); }