diff options
| author | 2023-06-12 12:44:00 +0200 | |
|---|---|---|
| committer | 2023-06-12 12:44:00 +0200 | |
| commit | 22a9d90ba60f1d8142c3975dff521929bdf05ce8 (patch) | |
| tree | 2531f609f2a1c2784a7dea79e51a8322d76dc7ed /test/test3.c | |
| parent | 984b74da895d7155f68434be9cc9b6d49a77abec (diff) | |
something with phi
Diffstat (limited to 'test/test3.c')
| -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 |