diff options
Diffstat (limited to 'debian/htdig/htdig-3.2.0b6/htlib/HtMaxMin.h')
-rw-r--r-- | debian/htdig/htdig-3.2.0b6/htlib/HtMaxMin.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/htdig/htdig-3.2.0b6/htlib/HtMaxMin.h b/debian/htdig/htdig-3.2.0b6/htlib/HtMaxMin.h new file mode 100644 index 00000000..26d0e44e --- /dev/null +++ b/debian/htdig/htdig-3.2.0b6/htlib/HtMaxMin.h @@ -0,0 +1,34 @@ +// HtMaxMin +// +// macros and tools for computing max and min of values +// +// Part of the ht://Dig package <http://www.htdig.org/> +// 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 +// <http://www.gnu.org/copyleft/lgpl.html> +// +// $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 |