Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Determines the maximum of two values.

Files

lib_def.h

Prototype

          DEF_MAX(a, b);

Arguments

a

First value in maximum comparison.

b

Second value in maximum comparison.

Returned Value

The greater of the two values, a or b.

Required Configuration

None.

Notes / Warnings

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

          CPU_INT16S  x;
          CPU_INT16S  y;
          CPU_INT16S  z;
           
          x =  100;
          y = -101;
          z =  DEF_MAX(x, y);
  • No labels