Exemple #1
0
        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)));
        }
Exemple #2
0
        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)));
        }
Exemple #3
0
 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));
 }
Exemple #4
0
 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));
 }