Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

lib_def.h

Prototype

Code Block
LanguageC++
CaptionTextCAPTION
languagecpp
          DEF_MAX(a, b);


Arguments

a

First value in maximum comparison.

...

Ideally, DEF_MAX() should be defined in the custom mathematics library, lib_math.*. However, to maintain backwards compatibility with previously-released modules, DEF_MAX() is still defined in lib_def.h .

Example Usage

CAPTION
Code Block
LanguageC++
CaptionText
languagecpp
          CPU_INT16S  x;
          CPU_INT16S  y;
          CPU_INT16S  z;
         


          x =  100;
          y = -101;
          z =  DEF_MAX(x, y);