Main Page | Modules | File List | Globals

Various macros module


Defines

#define GDSL_MAX(X, Y)   (X>Y?X:Y)
 Give the greatest number of two numbers.

#define GDSL_MIN(X, Y)   (X>Y?Y:X)
 Give the lowest number of two numbers.


Define Documentation

#define GDSL_MAX X,
 )     (X>Y?X:Y)
 

Give the greatest number of two numbers.

Note:
Complexity: O( 1 )
Precondition:
X & Y must be basic scalar C types
Parameters:
X First scalar variable
Y Second scalar variable
Returns:
X if X is greather than Y.

Y if Y is greather than X.

See also:
GDSL_MIN()

Definition at line 55 of file gdsl_macros.h.

#define GDSL_MIN X,
 )     (X>Y?Y:X)
 

Give the lowest number of two numbers.

Note:
Complexity: O( 1 )
Precondition:
X & Y must be basic scalar C types
Parameters:
X First scalar variable
Y Second scalar variable
Returns:
Y if Y is lower than X.

X if X is lower than Y.

See also:
GDSL_MAX()

Definition at line 72 of file gdsl_macros.h.


Generated on Fri Oct 1 18:54:53 2004 for GDSL by doxygen 1.3.5