Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Type: Program
- // Assembly: NumericsCSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
- // MVID: 96936848-6B89-42E9-9BE9-B86DE1CDABA6
- // Location: NumericsCSharp\bin\Release\NumericsCSharp.exe
- // Sequence point data from NumericsCSharp\bin\Release\NumericsCSharp.pdb
- .class private auto ansi beforefieldinit
- Program
- extends [mscorlib]System.Object
- {
- .method private hidebysig static void
- Main(
- string[] args
- ) cil managed
- {
- .entrypoint
- .maxstack 3
- .locals init (
- [0] class [System]System.Diagnostics.Stopwatch sw,
- [1] int32 iterationCount,
- [2] float32 totalwu,
- [3] float32 total,
- [4] valuetype Vector1 totalV,
- [5] valuetype Vector1Magic totalVM,
- [6] int32 i,
- [7] float32 v,
- [8] int32 i,
- [9] float32 v,
- [10] int32 i,
- [11] valuetype Vector1 v,
- [12] int32 i,
- [13] valuetype Vector1Magic vm
- )
- // [43 3 - 43 28]
- IL_0000: newobj instance void [System]System.Diagnostics.Stopwatch::.ctor()
- IL_0005: stloc.0 // sw
- // [44 3 - 44 14]
- IL_0006: ldloc.0 // sw
- IL_0007: callvirt instance void [System]System.Diagnostics.Stopwatch::Start()
- // [45 3 - 45 35]
- IL_000c: ldc.i4 1000000000 // 0x3b9aca00
- IL_0011: stloc.1 // iterationCount
- // [46 3 - 46 22]
- IL_0012: ldc.r4 0.0
- IL_0017: stloc.2 // totalwu
- // [50 8 - 50 17]
- IL_0018: ldc.i4.0
- IL_0019: stloc.s i
- IL_001b: br.s IL_002d
- // start of loop, entry point: IL_002d
- // [51 4 - 51 22]
- IL_001d: ldloc.s i
- IL_001f: conv.r4
- IL_0020: stloc.s v
- // [52 4 - 52 26]
- IL_0022: ldloc.2 // totalwu
- IL_0023: ldloc.s v
- IL_0025: add
- IL_0026: stloc.2 // totalwu
- // [50 39 - 50 42]
- IL_0027: ldloc.s i
- IL_0029: ldc.i4.1
- IL_002a: add
- IL_002b: stloc.s i
- // [50 19 - 50 37]
- IL_002d: ldloc.s i
- IL_002f: ldloc.1 // iterationCount
- IL_0030: blt.s IL_001d
- // end of loop
- // [54 3 - 54 13]
- IL_0032: ldloc.0 // sw
- IL_0033: callvirt instance void [System]System.Diagnostics.Stopwatch::Stop()
- // [55 3 - 55 14]
- IL_0038: ldloc.0 // sw
- IL_0039: callvirt instance void [System]System.Diagnostics.Stopwatch::Reset()
- // [56 3 - 56 14]
- IL_003e: ldloc.0 // sw
- IL_003f: callvirt instance void [System]System.Diagnostics.Stopwatch::Start()
- // [57 3 - 57 20]
- IL_0044: ldc.r4 0.0
- IL_0049: stloc.3 // total
- // [58 8 - 58 17]
- IL_004a: ldc.i4.0
- IL_004b: stloc.s i
- IL_004d: br.s IL_005f
- // start of loop, entry point: IL_005f
- // [59 4 - 59 22]
- IL_004f: ldloc.s i
- IL_0051: conv.r4
- IL_0052: stloc.s v
- // [60 4 - 60 22]
- IL_0054: ldloc.3 // total
- IL_0055: ldloc.s v
- IL_0057: add
- IL_0058: stloc.3 // total
- // [58 39 - 58 42]
- IL_0059: ldloc.s i
- IL_005b: ldc.i4.1
- IL_005c: add
- IL_005d: stloc.s i
- // [58 19 - 58 37]
- IL_005f: ldloc.s i
- IL_0061: ldloc.1 // iterationCount
- IL_0062: blt.s IL_004f
- // end of loop
- // [62 3 - 62 13]
- IL_0064: ldloc.0 // sw
- IL_0065: callvirt instance void [System]System.Diagnostics.Stopwatch::Stop()
- // [63 3 - 63 91]
- IL_006a: ldstr "Float time was {0} for {1} iterations."
- IL_006f: ldloc.0 // sw
- IL_0070: callvirt instance valuetype [mscorlib]System.TimeSpan [System]System.Diagnostics.Stopwatch::get_Elapsed()
- IL_0075: box [mscorlib]System.TimeSpan
- IL_007a: ldloc.1 // iterationCount
- IL_007b: box [mscorlib]System.Int32
- IL_0080: call void [mscorlib]System.Console::WriteLine(string, object, object)
- // [64 3 - 64 14]
- IL_0085: ldloc.0 // sw
- IL_0086: callvirt instance void [System]System.Diagnostics.Stopwatch::Reset()
- // [65 3 - 65 14]
- IL_008b: ldloc.0 // sw
- IL_008c: callvirt instance void [System]System.Diagnostics.Stopwatch::Start()
- // [66 3 - 66 34]
- IL_0091: ldloca.s totalV
- IL_0093: ldc.r4 0.0
- IL_0098: call instance void Vector1::.ctor(float32)
- // [67 8 - 67 17]
- IL_009d: ldc.i4.0
- IL_009e: stloc.s i
- IL_00a0: br.s IL_00bd
- // start of loop, entry point: IL_00bd
- // [68 4 - 68 27]
- IL_00a2: ldloca.s v
- IL_00a4: ldloc.s i
- IL_00a6: conv.r4
- IL_00a7: call instance void Vector1::.ctor(float32)
- // [69 4 - 69 16]
- IL_00ac: ldloc.s totalV
- IL_00ae: ldloc.s v
- IL_00b0: call valuetype Vector1 Vector1::op_Addition(valuetype Vector1, valuetype Vector1)
- IL_00b5: stloc.s totalV
- // [67 39 - 67 42]
- IL_00b7: ldloc.s i
- IL_00b9: ldc.i4.1
- IL_00ba: add
- IL_00bb: stloc.s i
- // [67 19 - 67 37]
- IL_00bd: ldloc.s i
- IL_00bf: ldloc.1 // iterationCount
- IL_00c0: blt.s IL_00a2
- // end of loop
- // [71 3 - 71 13]
- IL_00c2: ldloc.0 // sw
- IL_00c3: callvirt instance void [System]System.Diagnostics.Stopwatch::Stop()
- // [72 3 - 72 93]
- IL_00c8: ldstr "Vector1 time was {0} for {1} iterations."
- IL_00cd: ldloc.0 // sw
- IL_00ce: callvirt instance valuetype [mscorlib]System.TimeSpan [System]System.Diagnostics.Stopwatch::get_Elapsed()
- IL_00d3: box [mscorlib]System.TimeSpan
- IL_00d8: ldloc.1 // iterationCount
- IL_00d9: box [mscorlib]System.Int32
- IL_00de: call void [mscorlib]System.Console::WriteLine(string, object, object)
- // [73 3 - 73 14]
- IL_00e3: ldloc.0 // sw
- IL_00e4: callvirt instance void [System]System.Diagnostics.Stopwatch::Reset()
- // [74 3 - 74 14]
- IL_00e9: ldloc.0 // sw
- IL_00ea: callvirt instance void [System]System.Diagnostics.Stopwatch::Start()
- // [75 3 - 75 40]
- IL_00ef: ldloca.s totalVM
- IL_00f1: ldc.r4 0.0
- IL_00f6: call instance void Vector1Magic::.ctor(float32)
- // [76 8 - 76 17]
- IL_00fb: ldc.i4.0
- IL_00fc: stloc.s i
- IL_00fe: br.s IL_011b
- // start of loop, entry point: IL_011b
- // [77 4 - 77 33]
- IL_0100: ldloca.s vm
- IL_0102: ldloc.s i
- IL_0104: conv.r4
- IL_0105: call instance void Vector1Magic::.ctor(float32)
- // [78 4 - 78 18]
- IL_010a: ldloc.s totalVM
- IL_010c: ldloc.s vm
- IL_010e: call valuetype Vector1Magic Vector1Magic::op_Addition(valuetype Vector1Magic, valuetype Vector1Magic)
- IL_0113: stloc.s totalVM
- // [76 39 - 76 42]
- IL_0115: ldloc.s i
- IL_0117: ldc.i4.1
- IL_0118: add
- IL_0119: stloc.s i
- // [76 19 - 76 37]
- IL_011b: ldloc.s i
- IL_011d: ldloc.1 // iterationCount
- IL_011e: blt.s IL_0100
- // end of loop
- // [80 3 - 80 13]
- IL_0120: ldloc.0 // sw
- IL_0121: callvirt instance void [System]System.Diagnostics.Stopwatch::Stop()
- // [81 3 - 81 98]
- IL_0126: ldstr "Vector1Magic time was {0} for {1} iterations."
- IL_012b: ldloc.0 // sw
- IL_012c: callvirt instance valuetype [mscorlib]System.TimeSpan [System]System.Diagnostics.Stopwatch::get_Elapsed()
- IL_0131: box [mscorlib]System.TimeSpan
- IL_0136: ldloc.1 // iterationCount
- IL_0137: box [mscorlib]System.Int32
- IL_013c: call void [mscorlib]System.Console::WriteLine(string, object, object)
- // [82 3 - 82 18]
- IL_0141: call int32 [mscorlib]System.Console::Read()
- IL_0146: pop
- // [90 2 - 90 3]
- IL_0147: ret
- } // end of method Program::Main
- .method public hidebysig specialname rtspecialname instance void
- .ctor() cil managed
- {
- .maxstack 8
- IL_0000: ldarg.0 // this
- IL_0001: call instance void [mscorlib]System.Object::.ctor()
- IL_0006: ret
- } // end of method Program::.ctor
- } // end of class Program
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement