/* RETURN VALUES: largest binary buddy of free bits within a dmap word.  */
static int dbMaxBud(u8 *cp)
/* RETURN VALUES: largest binary buddy of free bits within a dmap word.  */
static int dbMaxBud(u8 *cp)
{
	signed char tmp1, tmp2;
	if (*((uint *) cp) == 0)
		return (BUDMIN);
	if (*((u16 *) cp) == 0 || *((u16 *) cp + 1) == 0)
		return (BUDMIN - 1);
	tmp1 = max(budtab[cp[2]], budtab[cp[3]]);
	tmp2 = max(budtab[cp[0]], budtab[cp[1]]);
	return (max(tmp1, tmp2));
}