// HtMaxMin // // macros and tools for computing max and min of values // // Part of the ht://Dig package // Copyright (c) 1999-2004 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Library General Public License (LGPL) version 2 or later // // // $Id: HtMaxMin.h,v 1.5 2004/05/28 13:15:20 lha Exp $ // #ifndef _HtMaxMin_h_ #define _HtMaxMin_h_ #define HtMAX(a,b) (((a)>(b)) ? (a) : (b)) #define HtMIN(a,b) (((a)<(b)) ? (a) : (b)) // Max/Min value of an array class HtMaxMin { public: // compute max/min of an array of values static unsigned int max_v(unsigned int *vals,int n); static unsigned short max_v(unsigned short *vals,int n); static unsigned int min_v(unsigned int *vals,int n); static unsigned short min_v(unsigned short *vals,int n); }; #endif