Annotation of lucent/sys/src/libgnot/gaddr.c, revision 1.1.1.1

1.1       root        1: #include <u.h>
                      2: #include <libg.h>
                      3: #include <gnot.h>
                      4: 
                      5: ulong *
                      6: gaddr(GBitmap *b, Point p)
                      7: {
                      8:        return b->base+b->zero+(p.y*b->width)+(p.x>>(5-b->ldepth));
                      9: }
                     10: 
                     11: uchar *
                     12: gbaddr(GBitmap *b, Point p)
                     13: {
                     14:        return (uchar*)(b->base+b->zero+(p.y*b->width))+(p.x>>(3-b->ldepth));
                     15: }

unix.superglobalmegacorp.com

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