...
lib_def.h
Prototype
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
DEF_ABS(aval); |
Arguments
a
val
Value to calculate absolute value.
Returned Value
The absolute value of a
val
.
Required Configuration
None.
...
Ideally, DEF_ABS()
should be defined in the custom mathematics library, lib_math.*
. However, to maintain backwards compatibility with previously-released modules, DEF_ABS()
is still defined in lib_def.h
.
Example Usage
Code Block | ||
---|---|---|
Language | C++ | CaptionText | CAPTION
| ||
CPU_INT16S xval; CPU_INT16S zres; xval = -101; zres = DEF_ABS(xval); |