INumberBase<TSelf>.MultiplyAddEstimate(TSelf, TSelf, TSelf) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Computes an estimate of (left
* right
) + addend
.
public:
static override TSelf MultiplyAddEstimate(TSelf left, TSelf right, TSelf addend);
public static virtual TSelf MultiplyAddEstimate (TSelf left, TSelf right, TSelf addend);
static member MultiplyAddEstimate : 'Self * 'Self * 'Self -> 'Self
Public Shared Overrides Function MultiplyAddEstimate (left As TSelf, right As TSelf, addend As TSelf) As TSelf
Parameters
- left
- TSelf
The value to be multiplied with right
.
- right
- TSelf
The value to be multiplied with left
.
- addend
- TSelf
The value to be added to the result of left
multiplied by right
.
Returns
An estimate of (left
* right
) + addend
.
Remarks
On hardware that natively supports FusedMultiplyAdd(TSelf, TSelf, TSelf), this may return a result that was rounded as one ternary operation.
On hardware without specialized support, this may just return (left
* right
) + addend
.