| 1 | commit 4f7a58195a92c400e28a2354328587f1ff14fb77f5cf894536f17ccbc72931b9 |
| 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 | index 62c1fc2..69cb69c 100644 |
| 9 | --- a/b.c |
| 10 | +++ b/b.c |
| 11 | @@ -4,9 +4,9 @@ |
| 12 | long f(long x) |
| 13 | { |
| 14 | int s = 0; |
| 15 | while (x) { |
| 16 | - x >>= 1; |
| 17 | + x /= 2; |
| 18 | s++; |
| 19 | } |
| 20 | return s; |
| 21 | } |
| 22 | |
| 23 | commit ccf97b9878189c40a981da50b15713bb80a35755326320ec80900caf22ced46f |
| 24 | Author: Thomas Rast <trast@student.ethz.ch> |
| 25 | Date: Thu Feb 28 10:45:16 2013 +0100 |
| 26 | |
| 27 | touch both functions |
| 28 | |
| 29 | diff --git a/a.c b/a.c |
| 30 | index 7a296b9..75c0119 100644 |
| 31 | --- a/a.c |
| 32 | +++ b/a.c |
| 33 | @@ -3,9 +3,9 @@ |
| 34 | -int f(int x) |
| 35 | +long f(long x) |
| 36 | { |
| 37 | int s = 0; |
| 38 | while (x) { |
| 39 | x >>= 1; |
| 40 | s++; |
| 41 | } |
| 42 | return s; |
| 43 | } |
| 44 | |
| 45 | commit f6434acd34260a6c9f61e96d96bf9a323d330561df5b1ca2631104f82026dfed |
| 46 | Author: Thomas Rast <trast@student.ethz.ch> |
| 47 | Date: Thu Feb 28 10:44:55 2013 +0100 |
| 48 | |
| 49 | change f() |
| 50 | |
| 51 | diff --git a/a.c b/a.c |
| 52 | index 9f550c3..7a296b9 100644 |
| 53 | --- a/a.c |
| 54 | +++ b/a.c |
| 55 | @@ -3,8 +3,9 @@ |
| 56 | int f(int x) |
| 57 | { |
| 58 | int s = 0; |
| 59 | while (x) { |
| 60 | x >>= 1; |
| 61 | s++; |
| 62 | } |
| 63 | + return s; |
| 64 | } |
| 65 | |
| 66 | commit 1dd7e9b2b1699324b53b341e728653b913bc192a14dfea168c5b51f2b3d03592 |
| 67 | Author: Thomas Rast <trast@student.ethz.ch> |
| 68 | Date: Thu Feb 28 10:44:48 2013 +0100 |
| 69 | |
| 70 | initial |
| 71 | |
| 72 | diff --git a/a.c b/a.c |
| 73 | new file mode 100644 |
| 74 | index 0000000..9f550c3 |
| 75 | --- /dev/null |
| 76 | +++ b/a.c |
| 77 | @@ -0,0 +3,8 @@ |
| 78 | +int f(int x) |
| 79 | +{ |
| 80 | + int s = 0; |
| 81 | + while (x) { |
| 82 | + x >>= 1; |
| 83 | + s++; |
| 84 | + } |
| 85 | +} |