Skip to content

Instantly share code, notes, and snippets.

@dsyme
Created June 8, 2018 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsyme/e8fa1ec2ce1b65f43af3c1edad23d4e4 to your computer and use it in GitHub Desktop.
Save dsyme/e8fa1ec2ce1b65f43af3c1edad23d4e4 to your computer and use it in GitHub Desktop.
.method public hidebysig instance void Rec_f() cil managed
{
.custom instance void [BenchmarkDotNet.Core]BenchmarkDotNet.Attributes.BenchmarkAttribute::.ctor() = ( 01 00 00 00 )
// Code size 41 (0x29)
.maxstack 4
.locals init (valuetype Program/SingleRec V_0,
int32 V_1,
valuetype Program/SingleRec V_2)
IL_0000: ldc.i4.0
IL_0001: newobj instance void Program/SingleRec::.ctor(int32)
IL_0006: stloc.0
IL_0007: ldc.i4.1
IL_0008: stloc.1
IL_0009: br.s IL_0020
IL_000b: ldloc.0
IL_000c: stloc.2
IL_000d: ldloca.s V_2
IL_000f: ldfld int32 Program/SingleRec::value@
IL_0014: ldc.i4.1
IL_0015: add
IL_0016: newobj instance void Program/SingleRec::.ctor(int32)
IL_001b: stloc.0
IL_001c: ldloc.1
IL_001d: ldc.i4.1
IL_001e: add
IL_001f: stloc.1
IL_0020: ldloc.1
IL_0021: ldc.i4 0x186a1
IL_0026: blt.s IL_000b
IL_0028: ret
} // end of method Benchm2::Rec_f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment