示例#1
0
 public int Find(float v, int position)
 {
     foreach (AsmLiteral r in theList)
     {
         FloatLiteral ir = r as FloatLiteral;
         if (ir == null || ir.FloatValue != v)
         {
             continue;
         }
         if (ir.Offset > position)
         {
             return(ir.Offset);
         }
     }
     throw new AsmException(findErrorMsg, v, position);
 }
示例#2
0
	//public override void AddTo(AsmFileInfo fileInfo) { fileInfo.Add(this); }
	
	public override bool Equals(AsmLiteral v) {
		if (v.ConstantType() != AsmLiteralKind.FLOAT) return false;
		FloatLiteral fv = v as FloatLiteral;
		return fval == fv.FloatValue; 
	}