Mono Class Library: Mono.Simd.VectorOperations Overview | Members

Mono.Simd.VectorOperations.AddWithSaturation Method

Adds two vectors with saturation. [Edit]

[Mono.Simd.Acceleration(Mono.Simd.AccelMode.SSE2)]
public static Vector16b AddWithSaturation (this Vector16b va, Vector16b vb)

Parameters

va
The first vector. [Edit]
vb
The second vector. [Edit]

Returns

The unsigned saturated addition of two vectors. [Edit]

Remarks

The resulting vector contains the unsigned saturated sum of the individual components of the vector.

If the sum of two of the components would overflow, then the result of the saturated sum is Byte.MaxValue.

[Edit]

Requirements

Namespace: Mono.Simd
Assembly: Mono.Simd (in Mono.Simd.dll)
Assembly Versions: 2.0.0.0