[coop] Refactor/reuse mono_value_box_handle/mono_value_box_checked and reduce raw...
[mono-project.git] / mono / benchmark / long-muldiv.cs
blob1cdb26c4f69279999be12a87e12d39ab7dcd0c59
1 using System;
2 class T {
3 static void Main () {
4 int i = Environment.TickCount;
5 new T ().X ();
6 Console.WriteLine (Environment.TickCount - i);
9 void X () {
10 long a = 1, b = 2, c = 3, d = 4;
12 for (int i = 0; i < 10000000; i ++) {
13 a /= (b + 1);
14 b /= (c + 1);
15 c /= (d + 1);
16 d /= (a + 1);
18 a *= (b + 2);
19 b *= (c + 2);
20 c *= (d + 2);
21 d *= (a + 2);