/* %Z%%M% %I% %E% */

/*
 * Copyright (c) 1990, 1991, 1995 by Wayne C. Gramlich.
 * All rights reserved.
 *
 * Permission to use, copy, modify, distribute, and sell this software
 * for any purpose is hereby granted without fee provided that the above
 * copyright notice and this permission are retained.  The author makes
 * no representations about the suitability of this software for any purpose.
 * It is provided "as is" without express or implied warranty.
 */

/* An implementation of some useful interger routines: */

#ifndef INT_EXPORTS_H
#include "int_exports.h"
#endif

/* LINTLIBRARY */

/*
 * int_compare(int1, int2)
 *	This routine will return {>0, ==0, <0} depending upon whether "int1"
 *	is greater than, equal to, or less than.
 */
/* VARARGS2 */
int
int_compare(
	int		int1,
	int		int2)
{
	return int1 - int2;
}

/*
 * int_hash(int1)
 *	This routine will return a hash value for "int1".
 */
int
int_hash(
	int		int1)
{
	return int1;
}

/*
 * int_equal(int1, int2)
 *	This routine will return 1 if "int1" equals "int2" and 0 otherwise.
 */
int
int_equal(
	int		int1,
	int		int2)
{
	return (int1 == int2);
}

