From 22a9d90ba60f1d8142c3975dff521929bdf05ce8 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 12 Jun 2023 12:44:00 +0200 Subject: something with phi --- test/test3.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'test/test3.c') 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 -- cgit v1.2.3