次の方法で共有


_DAddSatInt (Windows CE 5.0)

Send Feedback

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.

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

Header: Armintr.h.

See Also

ARM DSP-enhanced Intrinsic Functions | _DSubSatInt

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.