Annotation of researchv9/jerq/src/lib/C/arith.c, revision 1.1.1.2

1.1.1.2 ! root        1: #include <CC/jerq.h>
        !             2: 
        !             3: #define min(x,y)       ((x < y) ? x : y)
        !             4: #define max(x,y)       ((x > y) ? x : y)
1.1       root        5: 
                      6: Rectangle Rectangle.mbb(Point p)
                      7: {
                      8:        Rectangle r;
                      9:        r.o.x = min(o.x,p.x);
                     10:        r.o.y = min(o.y,p.y);
                     11:        r.c.x = max(c.x,p.x);
                     12:        r.c.y = max(c.y,p.y);
                     13:        return r;
                     14: }
                     15: 
                     16: Rectangle Rectangle.mbb(Rectangle r)
                     17: {
                     18:        r.o.x = min(o.x,r.o.x);
                     19:        r.o.y = min(o.y,r.o.y);
                     20:        r.c.x = max(c.x,r.c.x);
                     21:        r.c.y = max(c.y,r.c.y);
                     22:        return r;
                     23: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.