DEF_MIN()
Determines the minimum of two values.
Files
lib_def.h
Prototype
DEF_MIN(a, b);
Arguments
a
First value in minimum comparison.
b
Second value in minimum comparison.
Returned Value
The lesser of the two values, a
or b
.
Required Configuration
None.
Notes / Warnings
Ideally, DEF_MIN()
should be defined in the custom mathematics library, lib_math.*
. However, to maintain backwards compatibility with previously-released modules, DEF_MIN()
is still defined in lib_def.h
.
Example Usage
CPU_INT16S x; CPU_INT16S y; CPU_INT16S z; x = 100; y = -101; z = DEF_MIN(x, y);