Go to the source code of this file.
◆ clipm_priv_math_max
| #define clipm_priv_math_max |
( |
| a, |
|
|
| b ) |
Value:
Get the maximum.
- Copyright
- SPDX-FileCopyrightText: 2026 European Southern Observatory (ESO) SPDX-License-Identifier: LGPL-3.0-only
Get the maximum
- Parameters
-
- Returns
- The maximum
◆ clipm_priv_math_min
| #define clipm_priv_math_min |
( |
| a, |
|
|
| b ) |
Value:
Get the minimum.
- Parameters
-
- Returns
- The minimum
◆ clipm_priv_math_round_d2i
| #define clipm_priv_math_round_d2i |
( |
| in | ) |
|
Value: ((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().
◆ clipm_priv_math_sign
| #define clipm_priv_math_sign |
( |
| in | ) |
|
Value:
Get the sign of a number.
- Parameters
-
- Returns
- +1 if (in >= 0), else -1