date and time created 80/10/31 14:39:48 by mckusick
[unix-history] / usr / src / usr.bin / pascal / libpc / RELTLT.c
CommitLineData
4ca77214
KM
1/* Copyright (c) 1979 Regents of the University of California */
2
3static char sccsid[] = "@(#)RELTLT.c 1.1 %G%";
4
5#include "h00vars.h"
6
7RELTLT(bytecnt, left, right)
8
9 int bytecnt;
10 register long *left;
11 register long *right;
12{
13 register int longcnt;
14
15 longcnt = bytecnt >> 2;
16 do {
17 if ((*left & ~*right) != 0)
18 return FALSE;
19 if ((*right++ & ~*left++) != 0)
20 goto leq;
21 } while (--longcnt);
22 return FALSE;
23leq:
24 while (--longcnt) {
25 if ((*left++ & ~*right++) != 0)
26 return FALSE;
27 }
28 return TRUE;
29}