BSD 4_1_snap release
[unix-history] / usr / src / lib / libpc / RELTLT.c
CommitLineData
4ca77214
KM
1/* Copyright (c) 1979 Regents of the University of California */
2
4b9ccde7 3static char sccsid[] = "@(#)RELTLT.c 1.2 3/7/81";
4ca77214
KM
4
5#include "h00vars.h"
6
492cc5d3 7bool
4ca77214
KM
8RELTLT(bytecnt, left, right)
9
492cc5d3 10 long bytecnt;
4ca77214
KM
11 register long *left;
12 register long *right;
13{
14 register int longcnt;
15
16 longcnt = bytecnt >> 2;
17 do {
18 if ((*left & ~*right) != 0)
19 return FALSE;
20 if ((*right++ & ~*left++) != 0)
21 goto leq;
22 } while (--longcnt);
23 return FALSE;
24leq:
25 while (--longcnt) {
26 if ((*left++ & ~*right++) != 0)
27 return FALSE;
28 }
29 return TRUE;
30}