projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2004-09-23 Zoltan Varga <vargaz@freemail.hu>
[mono.git]
/
mono
/
benchmark
/
long-muldiv.cs
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);
7
}
8
9
void X () {
10
long a = 1, b = 2, c = 3, d = 4;
11
12
for (int i = 0; i < 10000000; i ++) {
13
a /= (b + 1);
14
b /= (c + 1);
15
c /= (d + 1);
16
d /= (a + 1);
17
18
a *= (b + 2);
19
b *= (c + 2);
20
c *= (d + 2);
21
d *= (a + 2);
22
}
23
}
24
}