stddefs.h

Go to the documentation of this file.
00001 /****************************************************************************/
00002 /*                                                                          */
00003 /*  This file is part of QSopt_ex.                                          */
00004 /*                                                                          */
00005 /*  (c) Copyright 2006 by David Applegate, William Cook, Sanjeeb Dash,      */
00006 /*  and Daniel Espinoza                                                     */
00007 /*                                                                          */
00008 /*  Sanjeeb Dash ownership of copyright in QSopt_ex is derived from his     */
00009 /*  copyright in QSopt.                                                     */
00010 /*                                                                          */
00011 /*  This code may be used under the terms of the GNU General Public License */
00012 /*  (Version 2.1 or later) as published by the Free Software Foundation.    */
00013 /*                                                                          */
00014 /*  Alternatively, use is granted for research purposes only.               */
00015 /*                                                                          */
00016 /*  It is your choice of which of these two licenses you are operating      */
00017 /*  under.                                                                  */
00018 /*                                                                          */
00019 /*  We make no guarantees about the correctness or usefulness of this code. */
00020 /*                                                                          */
00021 /****************************************************************************/
00022 
00023 /* $RCSfile: stddefs.h,v $ $Revision: 1.3 $ $Date: 2003/11/05 16:57:39 $ */
00024 #ifndef ILL_STDDEFS_H
00025 #define ILL_STDDEFS_H
00026 
00027 #define SWAP(x,y,temp) {temp = x; x = y; y = temp;}
00028 
00029 #define QSMIN(x,y) ((x) < (y) ? (x) : (y))
00030 #define QSMAX(x,y) ((x) > (y) ? (x) : (y))
00031 
00032 #define ABS(x) ((x) >= 0 ? (x) : -(x))
00033 
00034 #endif /* ILL_STDDEFS_H */

Generated on Thu Mar 29 09:32:33 2012 for QSopt_ex by  doxygen 1.4.7