Main Page   Modules   Compound List   File List   Compound Members   File Members  

Comparison Functions
[Common]


Defines

#define GAN_COMP_TYPE   unsigned char
#define GAN_MAX2   gan_max2_uc
#define GAN_MIN2   gan_min2_uc
#define GAN_MAX3   gan_max3_uc
#define GAN_MIN3   gan_min3_uc
#define GAN_MAX4   gan_max4_uc
#define GAN_MIN4   gan_min4_uc
#define GAN_MAX5   gan_max5_uc
#define GAN_MIN5   gan_min5_uc
#define GAN_MAX6   gan_max6_uc
#define GAN_MIN6   gan_min6_uc

Functions

unsigned char gan_max2_uc (unsigned char a, unsigned char b)
 Return maximum of two values.

unsigned char gan_min2_uc (unsigned char a, unsigned char b)
 Return minimum of two values.

unsigned char gan_max3_uc (unsigned char a, unsigned char b, unsigned char c)
 Return maximum of three values.

unsigned char gan_min3_uc (unsigned char a, unsigned char b, unsigned char c)
 Return minimum of three values.

unsigned char gan_max4_uc (unsigned char a, unsigned char b, unsigned char c, unsigned char d)
 Return maximum of four values.

unsigned char gan_min4_uc (unsigned char a, unsigned char b, unsigned char c, unsigned char d)
 Return minimum of four values.

unsigned char gan_max5_uc (unsigned char a, unsigned char b, unsigned char c, unsigned char d, unsigned char e)
 Return maximum of five values.

unsigned char gan_min5_uc (unsigned char a, unsigned char b, unsigned char c, unsigned char d, unsigned char e)
 Return minimum of five values.

unsigned char gan_max6_uc (unsigned char a, unsigned char b, unsigned char c, unsigned char d, unsigned char e, unsigned char f)
 Return maximum of six values.

unsigned char gan_min6_uc (unsigned char a, unsigned char b, unsigned char c, unsigned char d, unsigned char e, unsigned char f)
 Return minimum of six values.

int gan_max2_i (int a, int b)
 Return maximum of two values.

int gan_min2_i (int a, int b)
 Return minimum of two values.

int gan_max3_i (int a, int b, int c)
 Return maximum of three values.

int gan_min3_i (int a, int b, int c)
 Return minimum of three values.

int gan_max4_i (int a, int b, int c, int d)
 Return maximum of four values.

int gan_min4_i (int a, int b, int c, int d)
 Return minimum of four values.

int gan_max5_i (int a, int b, int c, int d, int e)
 Return maximum of five values.

int gan_min5_i (int a, int b, int c, int d, int e)
 Return minimum of five values.

int gan_max6_i (int a, int b, int c, int d, int e, int f)
 Return maximum of six values.

int gan_min6_i (int a, int b, int c, int d, int e, int f)
 Return minimum of six values.

unsigned int gan_max2_ui (unsigned int a, unsigned int b)
 Return maximum of two values.

unsigned int gan_min2_ui (unsigned int a, unsigned int b)
 Return minimum of two values.

unsigned int gan_max3_ui (unsigned int a, unsigned int b, unsigned int c)
 Return maximum of three values.

unsigned int gan_min3_ui (unsigned int a, unsigned int b, unsigned int c)
 Return minimum of three values.

unsigned int gan_max4_ui (unsigned int a, unsigned int b, unsigned int c, unsigned int d)
 Return maximum of four values.

unsigned int gan_min4_ui (unsigned int a, unsigned int b, unsigned int c, unsigned int d)
 Return minimum of four values.

unsigned int gan_max5_ui (unsigned int a, unsigned int b, unsigned int c, unsigned int d, unsigned int e)
 Return maximum of five values.

unsigned int gan_min5_ui (unsigned int a, unsigned int b, unsigned int c, unsigned int d, unsigned int e)
 Return minimum of five values.

unsigned int gan_max6_ui (unsigned int a, unsigned int b, unsigned int c, unsigned int d, unsigned int e, unsigned int f)
 Return maximum of six values.

unsigned int gan_min6_ui (unsigned int a, unsigned int b, unsigned int c, unsigned int d, unsigned int e, unsigned int f)
 Return minimum of six values.

long gan_max2_l (long a, long b)
 Return maximum of two values.

long gan_min2_l (long a, long b)
 Return minimum of two values.

long gan_max3_l (long a, long b, long c)
 Return maximum of three values.

long gan_min3_l (long a, long b, long c)
 Return minimum of three values.

long gan_max4_l (long a, long b, long c, long d)
 Return maximum of four values.

long gan_min4_l (long a, long b, long c, long d)
 Return minimum of four values.

long gan_max5_l (long a, long b, long c, long d, long e)
 Return maximum of five values.

long gan_min5_l (long a, long b, long c, long d, long e)
 Return minimum of five values.

long gan_max6_l (long a, long b, long c, long d, long e, long f)
 Return maximum of six values.

long gan_min6_l (long a, long b, long c, long d, long e, long f)
 Return minimum of six values.

unsigned long gan_max2_ul (unsigned long a, unsigned long b)
 Return maximum of two values.

unsigned long gan_min2_ul (unsigned long a, unsigned long b)
 Return minimum of two values.

unsigned long gan_max3_ul (unsigned long a, unsigned long b, unsigned long c)
 Return maximum of three values.

unsigned long gan_min3_ul (unsigned long a, unsigned long b, unsigned long c)
 Return minimum of three values.

unsigned long gan_max4_ul (unsigned long a, unsigned long b, unsigned long c, unsigned long d)
 Return maximum of four values.

unsigned long gan_min4_ul (unsigned long a, unsigned long b, unsigned long c, unsigned long d)
 Return minimum of four values.

unsigned long gan_max5_ul (unsigned long a, unsigned long b, unsigned long c, unsigned long d, unsigned long e)
 Return maximum of five values.

unsigned long gan_min5_ul (unsigned long a, unsigned long b, unsigned long c, unsigned long d, unsigned long e)
 Return minimum of five values.

unsigned long gan_max6_ul (unsigned long a, unsigned long b, unsigned long c, unsigned long d, unsigned long e, unsigned long f)
 Return maximum of six values.

unsigned long gan_min6_ul (unsigned long a, unsigned long b, unsigned long c, unsigned long d, unsigned long e, unsigned long f)
 Return minimum of six values.

double gan_max2_d (double a, double b)
 Return maximum of two values.

double gan_min2_d (double a, double b)
 Return minimum of two values.

double gan_max3_d (double a, double b, double c)
 Return maximum of three values.

double gan_min3_d (double a, double b, double c)
 Return minimum of three values.

double gan_max4_d (double a, double b, double c, double d)
 Return maximum of four values.

double gan_min4_d (double a, double b, double c, double d)
 Return minimum of four values.

double gan_max5_d (double a, double b, double c, double d, double e)
 Return maximum of five values.

double gan_min5_d (double a, double b, double c, double d, double e)
 Return minimum of five values.

double gan_max6_d (double a, double b, double c, double d, double e, double f)
 Return maximum of six values.

double gan_min6_d (double a, double b, double c, double d, double e, double f)
 Return minimum of six values.

float gan_max2_f (float a, float b)
 Return maximum of two values.

float gan_min2_f (float a, float b)
 Return minimum of two values.

float gan_max3_f (float a, float b, float c)
 Return maximum of three values.

float gan_min3_f (float a, float b, float c)
 Return minimum of three values.

float gan_max4_f (float a, float b, float c, float d)
 Return maximum of four values.

float gan_min4_f (float a, float b, float c, float d)
 Return minimum of four values.

float gan_max5_f (float a, float b, float c, float d, float e)
 Return maximum of five values.

float gan_min5_f (float a, float b, float c, float d, float e)
 Return minimum of five values.

float gan_max6_f (float a, float b, float c, float d, float e, float f)
 Return maximum of six values.

float gan_min6_f (float a, float b, float c, float d, float e, float f)
 Return minimum of six values.

int gan_max2 (int a, int b)
 Macro: Return maximum of two values of any simple type.

int gan_min2 (int a, int b)
 Macro: Return minimum of two values of any simple type.

int gan_max3 (int a, int b, int c)
 Macro: Return maximum of three values of any simple type.

int gan_min3 (int a, int b, int c)
 Macro: Return minimum of three values of any simple type.

int gan_max4 (int a, int b, int c, int d)
 Macro: Return maximum of four values of any simple type.

int gan_min4 (int a, int b, int c, int d)
 Macro: Return minimum of four values of any simple type.

int gan_max5 (int a, int b, int c, int d, int e)
 Macro: Return maximum of five values of any simple type.

int gan_min5 (int a, int b, int c, int d, int e)
 Macro: Return minimum of five values of any simple type.

int gan_max6 (int a, int b, int c, int d, int e, int f)
 Macro: Return maximum of six values of any simple type.

int gan_min6 (int a, int b, int c, int d, int e, int f)
 Macro: Return minimum of six values of any simple type.


Function Documentation

int gan_max2 int    a,
int    b
 

Macro: Return maximum of two values of any simple type.

double gan_max2_d double    a,
double    b
 

Return maximum of two values.

float gan_max2_f float    a,
float    b
 

Return maximum of two values.

int gan_max2_i int    a,
int    b
 

Return maximum of two values.

long gan_max2_l long    a,
long    b
 

Return maximum of two values.

unsigned char gan_max2_uc unsigned char    a,
unsigned char    b
 

Return maximum of two values.

unsigned int gan_max2_ui unsigned int    a,
unsigned int    b
 

Return maximum of two values.

unsigned long gan_max2_ul unsigned long    a,
unsigned long    b
 

Return maximum of two values.

int gan_max3 int    a,
int    b,
int    c
 

Macro: Return maximum of three values of any simple type.

double gan_max3_d double    a,
double    b,
double    c
 

Return maximum of three values.

float gan_max3_f float    a,
float    b,
float    c
 

Return maximum of three values.

int gan_max3_i int    a,
int    b,
int    c
 

Return maximum of three values.

long gan_max3_l long    a,
long    b,
long    c
 

Return maximum of three values.

unsigned char gan_max3_uc unsigned char    a,
unsigned char    b,
unsigned char    c
 

Return maximum of three values.

unsigned int gan_max3_ui unsigned int    a,
unsigned int    b,
unsigned int    c
 

Return maximum of three values.

unsigned long gan_max3_ul unsigned long    a,
unsigned long    b,
unsigned long    c
 

Return maximum of three values.

int gan_max4 int    a,
int    b,
int    c,
int    d
 

Macro: Return maximum of four values of any simple type.

double gan_max4_d double    a,
double    b,
double    c,
double    d
 

Return maximum of four values.

float gan_max4_f float    a,
float    b,
float    c,
float    d
 

Return maximum of four values.

int gan_max4_i int    a,
int    b,
int    c,
int    d
 

Return maximum of four values.

long gan_max4_l long    a,
long    b,
long    c,
long    d
 

Return maximum of four values.

unsigned char gan_max4_uc unsigned char    a,
unsigned char    b,
unsigned char    c,
unsigned char    d
 

Return maximum of four values.

unsigned int gan_max4_ui unsigned int    a,
unsigned int    b,
unsigned int    c,
unsigned int    d
 

Return maximum of four values.

unsigned long gan_max4_ul unsigned long    a,
unsigned long    b,
unsigned long    c,
unsigned long    d
 

Return maximum of four values.

int gan_max5 int    a,
int    b,
int    c,
int    d,
int    e
 

Macro: Return maximum of five values of any simple type.

double gan_max5_d double    a,
double    b,
double    c,
double    d,
double    e
 

Return maximum of five values.

float gan_max5_f float    a,
float    b,
float    c,
float    d,
float    e
 

Return maximum of five values.

int gan_max5_i int    a,
int    b,
int    c,
int    d,
int    e
 

Return maximum of five values.

long gan_max5_l long    a,
long    b,
long    c,
long    d,
long    e
 

Return maximum of five values.

unsigned char gan_max5_uc unsigned char    a,
unsigned char    b,
unsigned char    c,
unsigned char    d,
unsigned char    e
 

Return maximum of five values.

unsigned int gan_max5_ui unsigned int    a,
unsigned int    b,
unsigned int    c,
unsigned int    d,
unsigned int    e
 

Return maximum of five values.

unsigned long gan_max5_ul unsigned long    a,
unsigned long    b,
unsigned long    c,
unsigned long    d,
unsigned long    e
 

Return maximum of five values.

int gan_max6 int    a,
int    b,
int    c,
int    d,
int    e,
int    f
 

Macro: Return maximum of six values of any simple type.

double gan_max6_d double    a,
double    b,
double    c,
double    d,
double    e,
double    f
 

Return maximum of six values.

float gan_max6_f float    a,
float    b,
float    c,
float    d,
float    e,
float    f
 

Return maximum of six values.

int gan_max6_i int    a,
int    b,
int    c,
int    d,
int    e,
int    f
 

Return maximum of six values.

long gan_max6_l long    a,
long    b,
long    c,
long    d,
long    e,
long    f
 

Return maximum of six values.

unsigned char gan_max6_uc unsigned char    a,
unsigned char    b,
unsigned char    c,
unsigned char    d,
unsigned char    e,
unsigned char    f
 

Return maximum of six values.

unsigned int gan_max6_ui unsigned int    a,
unsigned int    b,
unsigned int    c,
unsigned int    d,
unsigned int    e,
unsigned int    f
 

Return maximum of six values.

unsigned long gan_max6_ul unsigned long    a,
unsigned long    b,
unsigned long    c,
unsigned long    d,
unsigned long    e,
unsigned long    f
 

Return maximum of six values.

int gan_min2 int    a,
int    b
 

Macro: Return minimum of two values of any simple type.

double gan_min2_d double    a,
double    b
 

Return minimum of two values.

float gan_min2_f float    a,
float    b
 

Return minimum of two values.

int gan_min2_i int    a,
int    b
 

Return minimum of two values.

long gan_min2_l long    a,
long    b
 

Return minimum of two values.

unsigned char gan_min2_uc unsigned char    a,
unsigned char    b
 

Return minimum of two values.

unsigned int gan_min2_ui unsigned int    a,
unsigned int    b
 

Return minimum of two values.

unsigned long gan_min2_ul unsigned long    a,
unsigned long    b
 

Return minimum of two values.

int gan_min3 int    a,
int    b,
int    c
 

Macro: Return minimum of three values of any simple type.

double gan_min3_d double    a,
double    b,
double    c
 

Return minimum of three values.

float gan_min3_f float    a,
float    b,
float    c
 

Return minimum of three values.

int gan_min3_i int    a,
int    b,
int    c
 

Return minimum of three values.

long gan_min3_l long    a,
long    b,
long    c
 

Return minimum of three values.

unsigned char gan_min3_uc unsigned char    a,
unsigned char    b,
unsigned char    c
 

Return minimum of three values.

unsigned int gan_min3_ui unsigned int    a,
unsigned int    b,
unsigned int    c
 

Return minimum of three values.

unsigned long gan_min3_ul unsigned long    a,
unsigned long    b,
unsigned long    c
 

Return minimum of three values.

int gan_min4 int    a,
int    b,
int    c,
int    d
 

Macro: Return minimum of four values of any simple type.

double gan_min4_d double    a,
double    b,
double    c,
double    d
 

Return minimum of four values.

float gan_min4_f float    a,
float    b,
float    c,
float    d
 

Return minimum of four values.

int gan_min4_i int    a,
int    b,
int    c,
int    d
 

Return minimum of four values.

long gan_min4_l long    a,
long    b,
long    c,
long    d
 

Return minimum of four values.

unsigned char gan_min4_uc unsigned char    a,
unsigned char    b,
unsigned char    c,
unsigned char    d
 

Return minimum of four values.

unsigned int gan_min4_ui unsigned int    a,
unsigned int    b,
unsigned int    c,
unsigned int    d
 

Return minimum of four values.

unsigned long gan_min4_ul unsigned long    a,
unsigned long    b,
unsigned long    c,
unsigned long    d
 

Return minimum of four values.

int gan_min5 int    a,
int    b,
int    c,
int    d,
int    e
 

Macro: Return minimum of five values of any simple type.

double gan_min5_d double    a,
double    b,
double    c,
double    d,
double    e
 

Return minimum of five values.

float gan_min5_f float    a,
float    b,
float    c,
float    d,
float    e
 

Return minimum of five values.

int gan_min5_i int    a,
int    b,
int    c,
int    d,
int    e
 

Return minimum of five values.

long gan_min5_l long    a,
long    b,
long    c,
long    d,
long    e
 

Return minimum of five values.

unsigned char gan_min5_uc unsigned char    a,
unsigned char    b,
unsigned char    c,
unsigned char    d,
unsigned char    e
 

Return minimum of five values.

unsigned int gan_min5_ui unsigned int    a,
unsigned int    b,
unsigned int    c,
unsigned int    d,
unsigned int    e
 

Return minimum of five values.

unsigned long gan_min5_ul unsigned long    a,
unsigned long    b,
unsigned long    c,
unsigned long    d,
unsigned long    e
 

Return minimum of five values.

int gan_min6 int    a,
int    b,
int    c,
int    d,
int    e,
int    f
 

Macro: Return minimum of six values of any simple type.

double gan_min6_d double    a,
double    b,
double    c,
double    d,
double    e,
double    f
 

Return minimum of six values.

float gan_min6_f float    a,
float    b,
float    c,
float    d,
float    e,
float    f
 

Return minimum of six values.

int gan_min6_i int    a,
int    b,
int    c,
int    d,
int    e,
int    f
 

Return minimum of six values.

long gan_min6_l long    a,
long    b,
long    c,
long    d,
long    e,
long    f
 

Return minimum of six values.

unsigned char gan_min6_uc unsigned char    a,
unsigned char    b,
unsigned char    c,
unsigned char    d,
unsigned char    e,
unsigned char    f
 

Return minimum of six values.

unsigned int gan_min6_ui unsigned int    a,
unsigned int    b,
unsigned int    c,
unsigned int    d,
unsigned int    e,
unsigned int    f
 

Return minimum of six values.

unsigned long gan_min6_ul unsigned long    a,
unsigned long    b,
unsigned long    c,
unsigned long    d,
unsigned long    e,
unsigned long    f
 

Return minimum of six values.


Generated on Mon Oct 13 16:14:47 2003 by doxygen1.3-rc1