xref: /csrg-svn/usr.bin/pascal/libpc/RELTLT.c (revision 62096)
140865Sbostic /*-
2*62096Sbostic  * Copyright (c) 1979, 1993
3*62096Sbostic  *	The Regents of the University of California.  All rights reserved.
440865Sbostic  *
540865Sbostic  * %sccs.include.redist.c%
640865Sbostic  */
71693Smckusick 
840865Sbostic #ifndef lint
9*62096Sbostic static char sccsid[] = "@(#)RELTLT.c	8.1 (Berkeley) 06/06/93";
1040865Sbostic #endif /* not lint */
111693Smckusick 
121693Smckusick #include "h00vars.h"
131693Smckusick 
143024Smckusic bool
RELTLT(bytecnt,left,right)151693Smckusick RELTLT(bytecnt, left, right)
161693Smckusick 
173024Smckusic 	long		bytecnt;
181693Smckusick 	register long	*left;
191693Smckusick 	register long	*right;
201693Smckusick {
211693Smckusick 	register int	longcnt;
221693Smckusick 
231693Smckusick 	longcnt = bytecnt >> 2;
241693Smckusick 	do	{
251693Smckusick 		if ((*left & ~*right) != 0)
261693Smckusick 			return FALSE;
271693Smckusick 		if ((*right++ & ~*left++) != 0)
281693Smckusick 			goto leq;
291693Smckusick 	} while (--longcnt);
301693Smckusick 	return FALSE;
311693Smckusick leq:
321693Smckusick 	while (--longcnt) {
331693Smckusick 		if ((*left++ & ~*right++) != 0)
341693Smckusick 			return FALSE;
351693Smckusick 	}
361693Smckusick 	return TRUE;
371693Smckusick }
38