CodeGeneration.CGenState.CGenLongLongConst C# (CSharp) Method

CGenLongLongConst() public method

public CGenLongLongConst ( Int32 lo, Int32 hi ) : String
lo System.Int32
hi System.Int32
return String
        public String CGenLongLongConst(Int32 lo, Int32 hi) {
            String name = ".LC" + this.rodata_idx;
            this.rodata.WriteLine("    .align 8");
            this.rodata.WriteLine(name + ":");
            this.rodata.WriteLine("    .long " + lo);
            this.rodata.WriteLine("    .long " + hi);
            this.rodata_idx++;
            return name;
        }

Usage Example

示例#1
0
 /// <summary>
 /// fldl addr
 /// </summary>
 public override Reg CGenValue(CGenState state) {
     byte[] bytes = BitConverter.GetBytes(this.Value);
     Int32 firstInt = BitConverter.ToInt32(bytes, 0);
     Int32 secondInt = BitConverter.ToInt32(bytes, 4);
     String name = state.CGenLongLongConst(firstInt, secondInt);
     state.FLDL(name);
     return Reg.ST0;
 }