make sleep spin-wait during autoconfiguration
[unix-history] / usr / src / old / lib2648 / mat.c
CommitLineData
051b1e55
DF
1/*
2 * Copyright (c) 1980 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
6
7#ifndef lint
8static char sccsid[] = "@(#)mat.c 5.1 (Berkeley) %G%";
9#endif not lint
10
7e33c93f
RC
11/*
12 * mat: retrieve the value in m[r, c].
13 * rows and cols are the size of the matrix in all these routines.
14 */
15
16#include "bit.h"
17
18int
19mat(m, rows, cols, r, c)
20register bitmat m;
21register int c;
22int rows, cols, r;
23{
24 register int thisbyte;
25
26 thisbyte = m[r*((cols+7)>>3) + (c>>3)] & 0xff;
27 thisbyte &= 0x80 >> (c&7);
28 return (thisbyte != 0);
29}