_DAddSatInt (Windows Embedded CE 6.0)
1/5/2010
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
Architecture | ARM10, ARM-DSP |
Header | armintr.h |
Routine | _DAddSatInt |