public VHDLIntegerValue Rem(VHDLIntegerValue value) { long rem = 0; long div = Math.DivRem(mValue, value.mValue, out rem); return(new VHDLIntegerValue(rem)); }
public override int CompareTo(VHDLScalarValue obj) { if (obj is VHDLIntegerValue) { VHDLIntegerValue els = obj as VHDLIntegerValue; return(mValue.CompareTo(els.mValue)); } throw new ArgumentException("Could not cast {0} to VHDLIntegerValue", obj.GetType().Name); }
public VHDLIntegerValue Multiply(VHDLIntegerValue value) { return(new VHDLIntegerValue(mValue * value.mValue)); }
public VHDLIntegerValue Divide(VHDLIntegerValue value) { return(new VHDLIntegerValue(mValue / value.mValue)); }
VHDLIntegerValue IVHDLArithmetic <VHDLIntegerValue> .Exp(VHDLIntegerValue value) { return(new VHDLIntegerValue((Int64)Math.Pow(mValue, value.mValue))); }
public Int64 Exp(VHDLIntegerValue value) { return((Int64)Math.Pow(mValue, value.mValue)); }
public bool Equals(VHDLIntegerValue value) { return(mValue == value.mValue); }
public VHDLPhysicalValue <T> Divide(VHDLIntegerValue value) { return(new VHDLPhysicalValue <T>(physicalType, mValue / value.Value)); }
public bool GreaterThan(VHDLIntegerValue value) { return(mValue > value.mValue); }
public bool LessEquals(VHDLIntegerValue value) { return(mValue <= value.mValue); }
public bool LessThan(VHDLIntegerValue value) { return(mValue < value.mValue); }
VHDLFloatingPointValue IVHDLArithmetic <VHDLFloatingPointValue> .Exp(VHDLIntegerValue value) { return(new VHDLFloatingPointValue(Math.Pow(mValue, value.Value))); }
public double Exp(VHDLIntegerValue value) { return(Math.Pow(mValue, value.Value)); }
public VHDLIntegerValue Plus(VHDLIntegerValue value) { return(new VHDLIntegerValue(mValue + value.mValue)); }
public bool GreaterEquals(VHDLIntegerValue value) { return(mValue >= value.mValue); }
public VHDLIntegerValue Minus(VHDLIntegerValue value) { return(new VHDLIntegerValue(mValue - value.mValue)); }
public bool NotEquals(VHDLIntegerValue value) { return(mValue != value.mValue); }
public VHDLIntegerValue Mod(VHDLIntegerValue value) { return(new VHDLIntegerValue(mValue % value.mValue)); }
public VHDLPhysicalValue <T> Multiply(VHDLIntegerValue value) { return(new VHDLPhysicalValue <T>(physicalType, mValue * value.Value)); }