แก้ไข

แชร์ผ่าน


INumberBase<TSelf>.MultiplyAddEstimate(TSelf, TSelf, TSelf) Method

Definition

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

TSelf

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.

Applies to