_add_ob

This function adds the values in vt to the values in vs. The function perform saturated arithmetic: overflows and underflows clamp to the largest or smallest value that can be represented before writing the result value.

double _add_ob(
  double Arg1,
  double Arg2,
  int Arg3
);

Parameters

  • Arg1
    [in] The contents of vs, the first operand.
  • Arg2
    [in] The contents of vs, the second operand.
  • Arg3
    [in] The value of the select field, which selects the values of vt[i] used for each i. The following table shows the possible values for the select field.
    Select field Description
    0000 Vector-scalar operation where each element of vs is operated against element vt[0].
    0001 Vector-scalar operation where each element of vs is operated against element vt[1].
    0010 Vector-scalar operation where each element of vs is operated against element vt[2].
    0011 Vector-scalar operation where each element of vs is operated against element vt[3].
    0100 Vector-scalar operation where each element of vs is operated against element vt[4].
    0101 Vector-scalar operation where each element of vs is operated against element vt[5].
    0110 Vector-scalar operation where each element of vs is operated against element vt[6].
    0111 Vector-scalar operation where each element of vs is operated against element vt[7].
    1011 Vector-vector operation, where each element of vt is operated against the corresponding elements of vs.

Return Values

The vector addition result of Arg1 and Arg2.

Remarks

The MIPS compiler translates this intrinsic function into the ADD.OB assembly instruction.

No data-dependent exceptions are possible. The operands must be values in the OB format. If they are not, the results are undefined and the values of the operand vectors become undefined. The result of this instruction is undefined if the processor is executing in 16 FP register mode.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Mipsintr.h.

See Also

Common Intrinsic Functions | Intrinsic Functions for MIPS Microprocessors

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.