Main Page | Modules | Class List | File List | Class Members | File Members

compare.c File Reference

#include <gandalf/common/compare.h>

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
#define GAN_COMP_TYPE   int
#define GAN_MAX2   gan_max2_i
#define GAN_MIN2   gan_min2_i
#define GAN_MAX3   gan_max3_i
#define GAN_MIN3   gan_min3_i
#define GAN_MAX4   gan_max4_i
#define GAN_MIN4   gan_min4_i
#define GAN_MAX5   gan_max5_i
#define GAN_MIN5   gan_min5_i
#define GAN_MAX6   gan_max6_i
#define GAN_MIN6   gan_min6_i
#define GAN_COMP_TYPE   unsigned int
#define GAN_MAX2   gan_max2_ui
#define GAN_MIN2   gan_min2_ui
#define GAN_MAX3   gan_max3_ui
#define GAN_MIN3   gan_min3_ui
#define GAN_MAX4   gan_max4_ui
#define GAN_MIN4   gan_min4_ui
#define GAN_MAX5   gan_max5_ui
#define GAN_MIN5   gan_min5_ui
#define GAN_MAX6   gan_max6_ui
#define GAN_MIN6   gan_min6_ui
#define GAN_COMP_TYPE   long
#define GAN_MAX2   gan_max2_l
#define GAN_MIN2   gan_min2_l
#define GAN_MAX3   gan_max3_l
#define GAN_MIN3   gan_min3_l
#define GAN_MAX4   gan_max4_l
#define GAN_MIN4   gan_min4_l
#define GAN_MAX5   gan_max5_l
#define GAN_MIN5   gan_min5_l
#define GAN_MAX6   gan_max6_l
#define GAN_MIN6   gan_min6_l
#define GAN_COMP_TYPE   unsigned long
#define GAN_MAX2   gan_max2_ul
#define GAN_MIN2   gan_min2_ul
#define GAN_MAX3   gan_max3_ul
#define GAN_MIN3   gan_min3_ul
#define GAN_MAX4   gan_max4_ul
#define GAN_MIN4   gan_min4_ul
#define GAN_MAX5   gan_max5_ul
#define GAN_MIN5   gan_min5_ul
#define GAN_MAX6   gan_max6_ul
#define GAN_MIN6   gan_min6_ul
#define GAN_COMP_TYPE   double
#define GAN_MAX2   gan_max2_d
#define GAN_MIN2   gan_min2_d
#define GAN_MAX3   gan_max3_d
#define GAN_MIN3   gan_min3_d
#define GAN_MAX4   gan_max4_d
#define GAN_MIN4   gan_min4_d
#define GAN_MAX5   gan_max5_d
#define GAN_MIN5   gan_min5_d
#define GAN_MAX6   gan_max6_d
#define GAN_MIN6   gan_min6_d
#define GAN_COMP_TYPE   float
#define GAN_MAX2   gan_max2_f
#define GAN_MIN2   gan_min2_f
#define GAN_MAX3   gan_max3_f
#define GAN_MIN3   gan_min3_f
#define GAN_MAX4   gan_max4_f
#define GAN_MIN4   gan_min4_f
#define GAN_MAX5   gan_max5_f
#define GAN_MIN5   gan_min5_f
#define GAN_MAX6   gan_max6_f
#define GAN_MIN6   gan_min6_f

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.

Detailed Description

Module: Numerical comparison

Part of: Gandalf Library

Version:
1.10
Date:
2002/04/22 13:42:15
Author:
pm
Copyright: (c) 2000 Imagineer Software Limited
Generated on Fri Mar 17 12:44:51 2006 by  doxygen 1.3.9.1