Method YNarrowSaturate
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
YNarrowSaturate(Vector256<short>, Vector256<short>)
Saturate narrows two Vector256<T> instances into one Vector256<T>" (将两个 Vector256<T> 实例饱和缩窄为一个 Vector256<T> ). />.
Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), TOut.MinValue, TOut.MaxValue))
.
Vector256<sbyte> YNarrowSaturate(Vector256<short> lower, Vector256<short> upper)
Parameters
lower
Vector256<short>The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).
upper
Vector256<short>The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).
Returns
- Vector256<sbyte>
A Vector256<T> containing elements narrowed from
lower
andupper
(一个包含了来自lower
与upper
缩窄元素的向量).
- See Also
YNarrowSaturate(Vector256<ushort>, Vector256<ushort>)
Saturate narrows two Vector256<T> instances into one Vector256<T>" (将两个 Vector256<T> 实例饱和缩窄为一个 Vector256<T> ). />.
Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), TOut.MinValue, TOut.MaxValue))
.
Vector256<byte> YNarrowSaturate(Vector256<ushort> lower, Vector256<ushort> upper)
Parameters
lower
Vector256<ushort>The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).
upper
Vector256<ushort>The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).
Returns
- Vector256<byte>
A Vector256<T> containing elements narrowed from
lower
andupper
(一个包含了来自lower
与upper
缩窄元素的向量).
- See Also
YNarrowSaturate(Vector256<int>, Vector256<int>)
Saturate narrows two Vector256<T> instances into one Vector256<T>" (将两个 Vector256<T> 实例饱和缩窄为一个 Vector256<T> ). />.
Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), TOut.MinValue, TOut.MaxValue))
.
Vector256<short> YNarrowSaturate(Vector256<int> lower, Vector256<int> upper)
Parameters
lower
Vector256<int>The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).
upper
Vector256<int>The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).
Returns
- Vector256<short>
A Vector256<T> containing elements narrowed from
lower
andupper
(一个包含了来自lower
与upper
缩窄元素的向量).
- See Also
YNarrowSaturate(Vector256<uint>, Vector256<uint>)
Saturate narrows two Vector256<T> instances into one Vector256<T>" (将两个 Vector256<T> 实例饱和缩窄为一个 Vector256<T> ). />.
Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), TOut.MinValue, TOut.MaxValue))
.
Vector256<ushort> YNarrowSaturate(Vector256<uint> lower, Vector256<uint> upper)
Parameters
lower
Vector256<uint>The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).
upper
Vector256<uint>The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).
Returns
- Vector256<ushort>
A Vector256<T> containing elements narrowed from
lower
andupper
(一个包含了来自lower
与upper
缩窄元素的向量).
- See Also
YNarrowSaturate(Vector256<long>, Vector256<long>)
Saturate narrows two Vector256<T> instances into one Vector256<T>" (将两个 Vector256<T> 实例饱和缩窄为一个 Vector256<T> ). />.
Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), TOut.MinValue, TOut.MaxValue))
.
Vector256<int> YNarrowSaturate(Vector256<long> lower, Vector256<long> upper)
Parameters
lower
Vector256<long>The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).
upper
Vector256<long>The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).
Returns
- Vector256<int>
A Vector256<T> containing elements narrowed from
lower
andupper
(一个包含了来自lower
与upper
缩窄元素的向量).
- See Also
YNarrowSaturate(Vector256<ulong>, Vector256<ulong>)
Saturate narrows two Vector256<T> instances into one Vector256<T>" (将两个 Vector256<T> 实例饱和缩窄为一个 Vector256<T> ). />.
Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), TOut.MinValue, TOut.MaxValue))
.
Vector256<uint> YNarrowSaturate(Vector256<ulong> lower, Vector256<ulong> upper)
Parameters
lower
Vector256<ulong>The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).
upper
Vector256<ulong>The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).
Returns
- Vector256<uint>
A Vector256<T> containing elements narrowed from
lower
andupper
(一个包含了来自lower
与upper
缩窄元素的向量).
- See Also