Edit

Share via


Vector256.NarrowWithSaturation Method

Definition

Overloads

NarrowWithSaturation(Vector256<Double>, Vector256<Double>)

Narrows two vector of Double instances into one vector of Single using a saturating conversion.

NarrowWithSaturation(Vector256<Int16>, Vector256<Int16>)

Narrows two vector of Int16 instances into one vector of SByte using a saturating conversion.

NarrowWithSaturation(Vector256<Int32>, Vector256<Int32>)

Narrows two vector of Int32 instances into one vector of Int16 using a saturating conversion.

NarrowWithSaturation(Vector256<Int64>, Vector256<Int64>)

Narrows two vector of Int64 instances into one vector of Int32 using a saturating conversion.

NarrowWithSaturation(Vector256<UInt16>, Vector256<UInt16>)

Narrows two vector of UInt16 instances into one vector of Byte using a saturating conversion.

NarrowWithSaturation(Vector256<UInt32>, Vector256<UInt32>)

Narrows two vector of UInt32 instances into one vector of UInt16 using a saturating conversion.

NarrowWithSaturation(Vector256<UInt64>, Vector256<UInt64>)

Narrows two vector of UInt64 instances into one vector of UInt32 using a saturating conversion.

NarrowWithSaturation(Vector256<Double>, Vector256<Double>)

Narrows two vector of Double instances into one vector of Single using a saturating conversion.

public:
 static System::Runtime::Intrinsics::Vector256<float> NarrowWithSaturation(System::Runtime::Intrinsics::Vector256<double> lower, System::Runtime::Intrinsics::Vector256<double> upper);
public static System.Runtime.Intrinsics.Vector256<float> NarrowWithSaturation(System.Runtime.Intrinsics.Vector256<double> lower, System.Runtime.Intrinsics.Vector256<double> upper);
static member NarrowWithSaturation : System.Runtime.Intrinsics.Vector256<double> * System.Runtime.Intrinsics.Vector256<double> -> System.Runtime.Intrinsics.Vector256<single>
Public Function NarrowWithSaturation (lower As Vector256(Of Double), upper As Vector256(Of Double)) As Vector256(Of Single)

Parameters

lower
Vector256<Double>

The vector that will be narrowed to the lower half of the result vector.

upper
Vector256<Double>

The vector that will be narrowed to the upper half of the result vector.

Returns

A vector of Single containing elements narrowed with saturation from lower and upper.

Applies to

NarrowWithSaturation(Vector256<Int16>, Vector256<Int16>)

Important

This API is not CLS-compliant.

Narrows two vector of Int16 instances into one vector of SByte using a saturating conversion.

public:
 static System::Runtime::Intrinsics::Vector256<System::SByte> NarrowWithSaturation(System::Runtime::Intrinsics::Vector256<short> lower, System::Runtime::Intrinsics::Vector256<short> upper);
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<sbyte> NarrowWithSaturation(System.Runtime.Intrinsics.Vector256<short> lower, System.Runtime.Intrinsics.Vector256<short> upper);
[<System.CLSCompliant(false)>]
static member NarrowWithSaturation : System.Runtime.Intrinsics.Vector256<int16> * System.Runtime.Intrinsics.Vector256<int16> -> System.Runtime.Intrinsics.Vector256<sbyte>
Public Function NarrowWithSaturation (lower As Vector256(Of Short), upper As Vector256(Of Short)) As Vector256(Of SByte)

Parameters

lower
Vector256<Int16>

The vector that will be narrowed to the lower half of the result vector.

upper
Vector256<Int16>

The vector that will be narrowed to the upper half of the result vector.

Returns

A vector of SByte containing elements narrowed with saturation from lower and upper.

Attributes

Applies to

NarrowWithSaturation(Vector256<Int32>, Vector256<Int32>)

Narrows two vector of Int32 instances into one vector of Int16 using a saturating conversion.

public:
 static System::Runtime::Intrinsics::Vector256<short> NarrowWithSaturation(System::Runtime::Intrinsics::Vector256<int> lower, System::Runtime::Intrinsics::Vector256<int> upper);
public static System.Runtime.Intrinsics.Vector256<short> NarrowWithSaturation(System.Runtime.Intrinsics.Vector256<int> lower, System.Runtime.Intrinsics.Vector256<int> upper);
static member NarrowWithSaturation : System.Runtime.Intrinsics.Vector256<int> * System.Runtime.Intrinsics.Vector256<int> -> System.Runtime.Intrinsics.Vector256<int16>
Public Function NarrowWithSaturation (lower As Vector256(Of Integer), upper As Vector256(Of Integer)) As Vector256(Of Short)

Parameters

lower
Vector256<Int32>

The vector that will be narrowed to the lower half of the result vector.

upper
Vector256<Int32>

The vector that will be narrowed to the upper half of the result vector.

Returns

A vector of Int16 containing elements narrowed with saturation from lower and upper.

Applies to

NarrowWithSaturation(Vector256<Int64>, Vector256<Int64>)

Narrows two vector of Int64 instances into one vector of Int32 using a saturating conversion.

public:
 static System::Runtime::Intrinsics::Vector256<int> NarrowWithSaturation(System::Runtime::Intrinsics::Vector256<long> lower, System::Runtime::Intrinsics::Vector256<long> upper);
public static System.Runtime.Intrinsics.Vector256<int> NarrowWithSaturation(System.Runtime.Intrinsics.Vector256<long> lower, System.Runtime.Intrinsics.Vector256<long> upper);
static member NarrowWithSaturation : System.Runtime.Intrinsics.Vector256<int64> * System.Runtime.Intrinsics.Vector256<int64> -> System.Runtime.Intrinsics.Vector256<int>
Public Function NarrowWithSaturation (lower As Vector256(Of Long), upper As Vector256(Of Long)) As Vector256(Of Integer)

Parameters

lower
Vector256<Int64>

The vector that will be narrowed to the lower half of the result vector.

upper
Vector256<Int64>

The vector that will be narrowed to the upper half of the result vector.

Returns

A vector of Int32 containing elements narrowed with saturation from lower and upper.

Applies to

NarrowWithSaturation(Vector256<UInt16>, Vector256<UInt16>)

Important

This API is not CLS-compliant.

Narrows two vector of UInt16 instances into one vector of Byte using a saturating conversion.

public:
 static System::Runtime::Intrinsics::Vector256<System::Byte> NarrowWithSaturation(System::Runtime::Intrinsics::Vector256<System::UInt16> lower, System::Runtime::Intrinsics::Vector256<System::UInt16> upper);
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<byte> NarrowWithSaturation(System.Runtime.Intrinsics.Vector256<ushort> lower, System.Runtime.Intrinsics.Vector256<ushort> upper);
[<System.CLSCompliant(false)>]
static member NarrowWithSaturation : System.Runtime.Intrinsics.Vector256<uint16> * System.Runtime.Intrinsics.Vector256<uint16> -> System.Runtime.Intrinsics.Vector256<byte>
Public Function NarrowWithSaturation (lower As Vector256(Of UShort), upper As Vector256(Of UShort)) As Vector256(Of Byte)

Parameters

lower
Vector256<UInt16>

The vector that will be narrowed to the lower half of the result vector.

upper
Vector256<UInt16>

The vector that will be narrowed to the upper half of the result vector.

Returns

A vector of Byte containing elements narrowed with saturation from lower and upper.

Attributes

Applies to

NarrowWithSaturation(Vector256<UInt32>, Vector256<UInt32>)

Important

This API is not CLS-compliant.

Narrows two vector of UInt32 instances into one vector of UInt16 using a saturating conversion.

public:
 static System::Runtime::Intrinsics::Vector256<System::UInt16> NarrowWithSaturation(System::Runtime::Intrinsics::Vector256<System::UInt32> lower, System::Runtime::Intrinsics::Vector256<System::UInt32> upper);
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<ushort> NarrowWithSaturation(System.Runtime.Intrinsics.Vector256<uint> lower, System.Runtime.Intrinsics.Vector256<uint> upper);
[<System.CLSCompliant(false)>]
static member NarrowWithSaturation : System.Runtime.Intrinsics.Vector256<uint32> * System.Runtime.Intrinsics.Vector256<uint32> -> System.Runtime.Intrinsics.Vector256<uint16>
Public Function NarrowWithSaturation (lower As Vector256(Of UInteger), upper As Vector256(Of UInteger)) As Vector256(Of UShort)

Parameters

lower
Vector256<UInt32>

The vector that will be narrowed to the lower half of the result vector.

upper
Vector256<UInt32>

The vector that will be narrowed to the upper half of the result vector.

Returns

A vector of UInt16 containing elements narrowed with saturation from lower and upper.

Attributes

Applies to

NarrowWithSaturation(Vector256<UInt64>, Vector256<UInt64>)

Important

This API is not CLS-compliant.

Narrows two vector of UInt64 instances into one vector of UInt32 using a saturating conversion.

public:
 static System::Runtime::Intrinsics::Vector256<System::UInt32> NarrowWithSaturation(System::Runtime::Intrinsics::Vector256<System::UInt64> lower, System::Runtime::Intrinsics::Vector256<System::UInt64> upper);
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<uint> NarrowWithSaturation(System.Runtime.Intrinsics.Vector256<ulong> lower, System.Runtime.Intrinsics.Vector256<ulong> upper);
[<System.CLSCompliant(false)>]
static member NarrowWithSaturation : System.Runtime.Intrinsics.Vector256<uint64> * System.Runtime.Intrinsics.Vector256<uint64> -> System.Runtime.Intrinsics.Vector256<uint32>
Public Function NarrowWithSaturation (lower As Vector256(Of ULong), upper As Vector256(Of ULong)) As Vector256(Of UInteger)

Parameters

lower
Vector256<UInt64>

The vector that will be narrowed to the lower half of the result vector.

upper
Vector256<UInt64>

The vector that will be narrowed to the upper half of the result vector.

Returns

A vector of UInt32 containing elements narrowed with saturation from lower and upper.

Attributes

Applies to