Go to the source code of this file.
#define clipm_priv_math_max |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) > (b) ? (a) : (b)) |
Get the maximum.
- Parameters
-
- Returns
- The maximum
#define clipm_priv_math_min |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) < (b) ? (a) : (b)) |
Get the minimum.
- Parameters
-
- Returns
- The minimum
#define clipm_priv_math_round_d2i |
( |
|
in | ) |
((in < 0) ? (int)(in - 0.5) : (int)(in + 0.5)) |
Round a value to the nearest integer.
- Parameters
-
- Returns
- The rounded value
This macro is intended to replace the non-ANSI-C function rint().
#define clipm_priv_math_sign |
( |
|
in | ) |
((in) >= 0 ? 1 : -1) |
Get the sign of a number.
- Parameters
-
- Returns
- +1 if (in >= 0), else -1