Table of Contents

Method YNarrowSaturate

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YNarrowSaturate(Vector512<short>, Vector512<short>)

Saturate narrows two Vector512<T> instances into one Vector512<T>" (将两个 Vector512<T> 实例饱和缩窄为一个 Vector512<T> ). />. Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), TOut.MinValue, TOut.MaxValue)).

Vector512<sbyte> YNarrowSaturate(Vector512<short> lower, Vector512<short> upper)

Parameters

lower Vector512<short>

The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).

upper Vector512<short>

The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).

Returns

Vector512<sbyte>

A Vector512<T> containing elements narrowed from lower and upper (一个包含了来自 lowerupper 缩窄元素的向量).

See Also

YNarrowSaturate(Vector512<ushort>, Vector512<ushort>)

Saturate narrows two Vector512<T> instances into one Vector512<T>" (将两个 Vector512<T> 实例饱和缩窄为一个 Vector512<T> ). />. Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), TOut.MinValue, TOut.MaxValue)).

Vector512<byte> YNarrowSaturate(Vector512<ushort> lower, Vector512<ushort> upper)

Parameters

lower Vector512<ushort>

The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).

upper Vector512<ushort>

The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).

Returns

Vector512<byte>

A Vector512<T> containing elements narrowed from lower and upper (一个包含了来自 lowerupper 缩窄元素的向量).

See Also

YNarrowSaturate(Vector512<int>, Vector512<int>)

Saturate narrows two Vector512<T> instances into one Vector512<T>" (将两个 Vector512<T> 实例饱和缩窄为一个 Vector512<T> ). />. Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), TOut.MinValue, TOut.MaxValue)).

Vector512<short> YNarrowSaturate(Vector512<int> lower, Vector512<int> upper)

Parameters

lower Vector512<int>

The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).

upper Vector512<int>

The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).

Returns

Vector512<short>

A Vector512<T> containing elements narrowed from lower and upper (一个包含了来自 lowerupper 缩窄元素的向量).

See Also

YNarrowSaturate(Vector512<uint>, Vector512<uint>)

Saturate narrows two Vector512<T> instances into one Vector512<T>" (将两个 Vector512<T> 实例饱和缩窄为一个 Vector512<T> ). />. Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), TOut.MinValue, TOut.MaxValue)).

Vector512<ushort> YNarrowSaturate(Vector512<uint> lower, Vector512<uint> upper)

Parameters

lower Vector512<uint>

The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).

upper Vector512<uint>

The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).

Returns

Vector512<ushort>

A Vector512<T> containing elements narrowed from lower and upper (一个包含了来自 lowerupper 缩窄元素的向量).

See Also

YNarrowSaturate(Vector512<long>, Vector512<long>)

Saturate narrows two Vector512<T> instances into one Vector512<T>" (将两个 Vector512<T> 实例饱和缩窄为一个 Vector512<T> ). />. Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), TOut.MinValue, TOut.MaxValue)).

Vector512<int> YNarrowSaturate(Vector512<long> lower, Vector512<long> upper)

Parameters

lower Vector512<long>

The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).

upper Vector512<long>

The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).

Returns

Vector512<int>

A Vector512<T> containing elements narrowed from lower and upper (一个包含了来自 lowerupper 缩窄元素的向量).

See Also

YNarrowSaturate(Vector512<ulong>, Vector512<ulong>)

Saturate narrows two Vector512<T> instances into one Vector512<T>" (将两个 Vector512<T> 实例饱和缩窄为一个 Vector512<T> ). />. Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), TOut.MinValue, TOut.MaxValue)).

Vector512<uint> YNarrowSaturate(Vector512<ulong> lower, Vector512<ulong> upper)

Parameters

lower Vector512<ulong>

The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).

upper Vector512<ulong>

The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).

Returns

Vector512<uint>

A Vector512<T> containing elements narrowed from lower and upper (一个包含了来自 lowerupper 缩窄元素的向量).

See Also