|
IUF-SDK-3
Interventional Ultrasound Library
|
Basic functions and macro definitions of IUF. More...
#include "iufTypes.h"Go to the source code of this file.
Macros | |
| #define | IUF_MAX(a, b) ( ( (a) > (b) ) ? (a) : (b) ) |
| Determine maximum of a and b. More... | |
| #define | IUF_MIN(a, b) ( ( (a) < (b) ) ? (a) : (b) ) |
| Determine minimum of a and b. More... | |
| #define | IUF_MAX3(a, b, c) ( IUF_MAX( IUF_MAX((a),(b)), (c) ) ) |
| Maximum of a, b, c. More... | |
| #define | IUF_MIN3(a, b, c) ( IUF_MIN( IUF_MIN((a),(b)), (c) ) ) |
| Minimum of a, b, c. More... | |
| #define | IUF_MAX4(a, b, c, d) ( IUF_MAX( IUF_MAX((a),(b)), IUF_MAX((c),(d)) ) ) |
| Maximum of a, b, c, d with 3 comparisons. More... | |
| #define | IUF_MIN4(a, b, c, d) ( IUF_MIN( IUF_MIN((a),(b)), IUF_MIN((c),(d)) ) ) |
| Minimum of a, b, c, d with 3 comparisons. More... | |
| #define | IUF_CLIP(a, b, c) ( IUF_MIN( IUF_MAX((a),(b)), (c)) ) |
| Clip b between a and c, a < c. The alternate use where a is clipped between b and c is also valid. More... | |
| #define | IUF_MEDIAN(a, b, c) ( IUF_MIN( IUF_MAX( IUF_MIN((a),(b)), (c)), IUF_MAX((a),(b))) ) |
| Determine median of a, b and c. More... | |
| #define | IUF_ABS(a) ( ( (a) < (0) ) ? (-(a)) : (a) ) |
| Determine absolute value of a. More... | |
| #define | IUF_MOD(val, mod) ( ( (val) + (mod) ) % (mod) ) |
| modulo (wrapped) value More... | |
| #define | IUF_PI (3.14159265f) |
| Pi as a floating pointer. More... | |
| #define | IUF_FLT_EPS (1.19209290E-07f) |
| a small flaot value More... | |
| #define | IUF_MAXFLOAT (1.0E37f) |
| the max floating point value More... | |
| #define | IUF_MAX_STRING_LENGTH (1024) |
| maximum string value More... | |
Basic functions and macro definitions of IUF.
| #define IUF_ABS | ( | a | ) | ( ( (a) < (0) ) ? (-(a)) : (a) ) |
Determine absolute value of a.
Clip b between a and c, a < c. The alternate use where a is clipped between b and c is also valid.
| #define IUF_FLT_EPS (1.19209290E-07f) |
a small flaot value
| #define IUF_MAX | ( | a, | |
| b | |||
| ) | ( ( (a) > (b) ) ? (a) : (b) ) |
Determine maximum of a and b.
Maximum of a, b, c, d with 3 comparisons.
| #define IUF_MAX_STRING_LENGTH (1024) |
maximum string value
| #define IUF_MAXFLOAT (1.0E37f) |
the max floating point value
Determine median of a, b and c.
| #define IUF_MIN | ( | a, | |
| b | |||
| ) | ( ( (a) < (b) ) ? (a) : (b) ) |
Determine minimum of a and b.
Minimum of a, b, c, d with 3 comparisons.
| #define IUF_MOD | ( | val, | |
| mod | |||
| ) | ( ( (val) + (mod) ) % (mod) ) |
modulo (wrapped) value
| #define IUF_PI (3.14159265f) |
Pi as a floating pointer.