repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[aot] Fix emission of external aot data by aligning tables in the file.
[mono-project.git]
/
mono
/
benchmark
/
long-muldiv.cs
blob
1cdb26c4f69279999be12a87e12d39ab7dcd0c59
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
}