aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test3.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-12 12:44:00 +0200
committerlemon <lsof@mailbox.org>2023-06-12 12:44:00 +0200
commit22a9d90ba60f1d8142c3975dff521929bdf05ce8 (patch)
tree2531f609f2a1c2784a7dea79e51a8322d76dc7ed /test/test3.c
parent984b74da895d7155f68434be9cc9b6d49a77abec (diff)
something with phi
Diffstat (limited to 'test/test3.c')
-rw-r--r--test/test3.c8
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