00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef _HtMaxMin_h_
00015 #define _HtMaxMin_h_
00016
00017 #define HtMAX(a,b) (((a)>(b)) ? (a) : (b))
00018 #define HtMIN(a,b) (((a)<(b)) ? (a) : (b))
00019
00020
00021
00022 class HtMaxMin
00023 {
00024 public:
00025
00026 static unsigned int max_v(unsigned int *vals, int n);
00027 static unsigned short max_v(unsigned short *vals, int n);
00028 static unsigned char max_v(unsigned char *vals, int n);
00029 static unsigned int min_v(unsigned int *vals, int n);
00030 static unsigned short min_v(unsigned short *vals, int n);
00031 static unsigned char min_v(unsigned char *vals, int n);
00032 };
00033
00034
00035
00036 #endif