Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/vncdll/winvnc/MinMax.cpp
Views: 11780
// Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved.1//2// This file is part of the VNC system.3//4// The VNC system is free software; you can redistribute it and/or modify5// it under the terms of the GNU General Public License as published by6// the Free Software Foundation; either version 2 of the License, or7// (at your option) any later version.8//9// This program is distributed in the hope that it will be useful,10// but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12// GNU General Public License for more details.13//14// You should have received a copy of the GNU General Public License15// along with this program; if not, write to the Free Software16// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,17// USA.18//19// TightVNC distribution homepage on the Web: http://www.tightvnc.com/20//21// If the source code for the VNC system is not available from the place22// whence you received this file, check http://www.uk.research.att.com/vnc or contact23// the authors on [email protected] for information on obtaining it.242526// Some routines used internally to minimise and maximise integers27#include "MinMax.h"2829inline int Max(int x, int y)30{31if (x>y)32return x;33else34return y;35}3637inline int Min(int x, int y)38{39if (x>y)40return y;41else42return x;43}444546