Annotation of 42BSD/usr.lib/lib2648/mat.c, revision 1.1

1.1     ! root        1: /*     mat.c   4.1     83/03/09        */
        !             2: /*
        !             3:  * mat: retrieve the value in m[r, c].
        !             4:  * rows and cols are the size of the matrix in all these routines.
        !             5:  */
        !             6: 
        !             7: #include "bit.h"
        !             8: 
        !             9: int
        !            10: mat(m, rows, cols, r, c)
        !            11: register bitmat m;
        !            12: register int c;
        !            13: int rows, cols, r;
        !            14: {
        !            15:        register int thisbyte;
        !            16: 
        !            17:        thisbyte = m[r*((cols+7)>>3) + (c>>3)] & 0xff;
        !            18:        thisbyte &= 0x80 >> (c&7);
        !            19:        return (thisbyte != 0);
        !            20: }

unix.superglobalmegacorp.com

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