16c321187Smrg/* 26c321187Smrg 36c321187SmrgCopyright 1987, 1988, 1998 The Open Group 46c321187Smrg 56c321187SmrgPermission to use, copy, modify, distribute, and sell this software and its 66c321187Smrgdocumentation for any purpose is hereby granted without fee, provided that 76c321187Smrgthe above copyright notice appear in all copies and that both that 86c321187Smrgcopyright notice and this permission notice appear in supporting 96c321187Smrgdocumentation. 106c321187Smrg 116c321187SmrgThe above copyright notice and this permission notice shall be included in 126c321187Smrgall copies or substantial portions of the Software. 136c321187Smrg 146c321187SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 156c321187SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 166c321187SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 176c321187SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 186c321187SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 196c321187SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 206c321187Smrg 216c321187SmrgExcept as contained in this notice, the name of The Open Group shall not be 226c321187Smrgused in advertising or otherwise to promote the sale, use or other dealings 236c321187Smrgin this Software without prior written authorization from The Open Group. 246c321187Smrg 256c321187Smrg*/ 266c321187Smrg 276c321187Smrg/*********************************************************** 286c321187Smrg 296c321187SmrgCopyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 306c321187Smrg 316c321187Smrg All Rights Reserved 326c321187Smrg 330cc2eac3SmrgPermission to use, copy, modify, and distribute this software and its 340cc2eac3Smrgdocumentation for any purpose and without fee is hereby granted, 356c321187Smrgprovided that the above copyright notice appear in all copies and that 360cc2eac3Smrgboth that copyright notice and this permission notice appear in 376c321187Smrgsupporting documentation, and that the name of Digital not be 386c321187Smrgused in advertising or publicity pertaining to distribution of the 390cc2eac3Smrgsoftware without specific, written prior permission. 406c321187Smrg 416c321187SmrgDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 426c321187SmrgALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 436c321187SmrgDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 446c321187SmrgANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 456c321187SmrgWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 466c321187SmrgARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 476c321187SmrgSOFTWARE. 486c321187Smrg 496c321187Smrg******************************************************************/ 506c321187Smrg 516c321187Smrg/* Various useful constant and macro definitions */ 526c321187Smrg 536c321187Smrg#ifndef _Xmu_Misc_h 546c321187Smrg#define _Xmu_Misc_h 556c321187Smrg 566c321187Smrg#define MAXDIMENSION ((1 << 31)-1) 576c321187Smrg 586c321187Smrg#define Max(x, y) (((x) > (y)) ? (x) : (y)) 596c321187Smrg#define Min(x, y) (((x) < (y)) ? (x) : (y)) 606c321187Smrg#define AssignMax(x, y) {if ((y) > (x)) x = (y);} 616c321187Smrg#define AssignMin(x, y) {if ((y) < (x)) x = (y);} 626c321187Smrg 636c321187Smrg#endif /*_Xmu_Misc_h*/ 64