diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/test3.c | 16 |
1 files changed, 14 insertions, 2 deletions
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"; |