From 106fe60243bd61d017d28795f6eba68fecc981b4 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 12 Jun 2023 19:16:39 +0200 Subject: dec,inc,sub --- test/test3.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test3.c b/test/test3.c index c39d15b..8bd9020 100644 --- a/test/test3.c +++ b/test/test3.c @@ -12,10 +12,22 @@ int shcl(int a, int b) { return a << (b+1); } -int div(int a,int b) { - return a < 0 ? a / b : b / a; +struct p { long x,y; }; +struct p divsh(int a) { + struct p p; + p.x = a << (a / 5); + p.y = a; + return p; } +struct bitset { unsigned long long u; }; +static inline void +bscopy(struct bitset dst[/*siz*/], const struct bitset src[/*siz*/], unsigned siz) +{ + while (siz--) dst++->u = src++->u; +} + + #if 0 long test(long x) { return x + (long)"abc"; -- cgit v1.2.3