]>
Commit | Line | Data |
---|---|---|
12da1d1f TR |
1 | commit 6ce3c4ff690136099bb17e1a8766b75764726ea7 |
2 | Author: Thomas Rast <trast@student.ethz.ch> | |
3 | Date: Thu Feb 28 10:49:50 2013 +0100 | |
4 | ||
5 | another simple change | |
6 | ||
7 | diff --git a/b.c b/b.c | |
8 | --- a/b.c | |
9 | +++ b/b.c | |
10 | @@ -4,9 +4,9 @@ | |
11 | long f(long x) | |
12 | { | |
13 | int s = 0; | |
14 | while (x) { | |
15 | - x >>= 1; | |
16 | + x /= 2; | |
17 | s++; | |
18 | } | |
19 | return s; | |
20 | } | |
21 | ||
035ff398 | 22 | commit a6eb82647d5d67f893da442f8f9375fd89a3b1e2 |
12da1d1f | 23 | Author: Thomas Rast <trast@student.ethz.ch> |
035ff398 | 24 | Date: Thu Feb 28 10:45:16 2013 +0100 |
12da1d1f | 25 | |
035ff398 | 26 | touch both functions |
12da1d1f | 27 | |
035ff398 TR |
28 | diff --git a/a.c b/a.c |
29 | --- a/a.c | |
30 | +++ b/a.c | |
31 | @@ -3,9 +3,9 @@ | |
32 | -int f(int x) | |
12da1d1f | 33 | +long f(long x) |
035ff398 TR |
34 | { |
35 | int s = 0; | |
36 | while (x) { | |
37 | x >>= 1; | |
38 | s++; | |
39 | } | |
40 | return s; | |
41 | } | |
42 | ||
43 | commit f04fb20f2c77850996cba739709acc6faecc58f7 | |
44 | Author: Thomas Rast <trast@student.ethz.ch> | |
45 | Date: Thu Feb 28 10:44:55 2013 +0100 | |
46 | ||
47 | change f() | |
48 | ||
49 | diff --git a/a.c b/a.c | |
50 | --- a/a.c | |
51 | +++ b/a.c | |
52 | @@ -3,8 +3,9 @@ | |
53 | int f(int x) | |
54 | { | |
55 | int s = 0; | |
56 | while (x) { | |
57 | x >>= 1; | |
58 | s++; | |
59 | } | |
60 | + return s; | |
61 | } | |
62 | ||
63 | commit de4c48ae814792c02a49c4c3c0c757ae69c55f6a | |
64 | Author: Thomas Rast <trast@student.ethz.ch> | |
65 | Date: Thu Feb 28 10:44:48 2013 +0100 | |
66 | ||
67 | initial | |
68 | ||
69 | diff --git a/a.c b/a.c | |
70 | --- /dev/null | |
71 | +++ b/a.c | |
72 | @@ -0,0 +3,8 @@ | |
73 | +int f(int x) | |
12da1d1f TR |
74 | +{ |
75 | + int s = 0; | |
76 | + while (x) { | |
77 | + x >>= 1; | |
78 | + s++; | |
79 | + } | |
12da1d1f | 80 | +} |