Tor
0.4.7.0-alpha-dev
|
Macro definitions for MIN, MAX, and CLAMP. More...
Go to the source code of this file.
Macros | |
#define | MAX(a, b) ( ((a)<(b)) ? (b) : (a) ) |
#define | MIN(a, b) ( ((a)>(b)) ? (b) : (a) ) |
#define | CLAMP(min, v, max) |
#define | ABS(x) ( ((x)<0) ? -(x) : (x) ) |
Macro definitions for MIN, MAX, and CLAMP.
Definition in file cmp.h.
#define ABS | ( | x | ) | ( ((x)<0) ? -(x) : (x) ) |
#define CLAMP | ( | min, | |
v, | |||
max | |||
) |
#define MAX | ( | a, | |
b | |||
) | ( ((a)<(b)) ? (b) : (a) ) |