Share via


_DAddSatInt

9/7/2007

This operation calculates SAT(Rm + SAT(Rn*2)); that is, the operation first saturates the double of Rn, adds the result to Rm, then saturates the sum.

Syntax

int _DAddSatInt(
  int Arg1, 
  int Arg2
);

Parameters

  • Arg1
    [in] This integer is added to the doubled Arg2. It is analogous to the value in Rm.
  • Arg2
    [in] This integer is the term that is doubled. It is analogous to the value in Rn.

Return Values

The result of the binary arithmetic.

Remarks

The compiler translates this instruction into the qdadd assembly instruction.

Saturation can occur on the doubling operation, on the addition, or both. If saturation occurs on the doubling operation, but not on the addition, the Q flag is set and the the final result is unsaturated.

Requirements

Routine Required header Architecture

_DAddSatInt

<armintr.h>

ARM10, ARM-DSP

See Also

Reference

ARM DSP-enhanced Intrinsic Functions
_DSubSatInt