diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/test3.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/test3.c b/test/test3.c index bf53396..c39d15b 100644 --- a/test/test3.c +++ b/test/test3.c @@ -12,12 +12,8 @@ int shcl(int a, int b) { return a << (b+1); } -struct p { long x,y; }; -struct p divsh(int a) { - struct p p; - p.x = a << (a / 5); - p.y = a; - return p; +int div(int a,int b) { + return a < 0 ? a / b : b / a; } #if 0 |