2
* $XConsortium: Misc.h,v 1.1 89/05/10 16:00:25 jim Exp $
5
/***********************************************************
6
Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
7
and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
11
Permission to use, copy, modify, and distribute this software and its
12
documentation for any purpose and without fee is hereby granted,
13
provided that the above copyright notice appear in all copies and that
14
both that copyright notice and this permission notice appear in
15
supporting documentation, and that the names of Digital or MIT not be
16
used in advertising or publicity pertaining to distribution of the
17
software without specific, written prior permission.
19
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
20
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
21
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
22
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
23
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
24
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
27
******************************************************************/
29
/* Various useful constant and macro definitions */
34
#define MAXDIMENSION ((1 << 31)-1)
36
#define Max(x, y) (((x) > (y)) ? (x) : (y))
37
#define Min(x, y) (((x) < (y)) ? (x) : (y))
38
#define AssignMax(x, y) {if ((y) > (x)) x = (y);}
39
#define AssignMin(x, y) {if ((y) < (x)) x = (y);}
41
#endif /*_Xmu_Misc_h*/