Method YNarrowSaturateUnsigned
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
YNarrowSaturateUnsigned(Vector256<short>, Vector256<short>)
Saturate narrows two signed Vector256<T> instances into one unsigned Vector256<T>" (将两个有符号 Vector256<T> 实例饱和缩窄为一个无符号 Vector256<T> ). />.
Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), 0, TOut.MaxValue))
.
public static Vector256<byte> YNarrowSaturateUnsigned(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<byte>
A Vector256<T> containing elements narrowed from
lower
andupper
(一个包含了来自lower
与upper
缩窄元素的向量).
- See Also
YNarrowSaturateUnsigned(Vector256<int>, Vector256<int>)
Saturate narrows two signed Vector256<T> instances into one unsigned Vector256<T>" (将两个有符号 Vector256<T> 实例饱和缩窄为一个无符号 Vector256<T> ). />.
Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), 0, TOut.MaxValue))
.
[CLSCompliant(false)]
public static Vector256<ushort> YNarrowSaturateUnsigned(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<ushort>
A Vector256<T> containing elements narrowed from
lower
andupper
(一个包含了来自lower
与upper
缩窄元素的向量).
- See Also
YNarrowSaturateUnsigned(Vector256<long>, Vector256<long>)
Saturate narrows two signed Vector256<T> instances into one unsigned Vector256<T>" (将两个有符号 Vector256<T> 实例饱和缩窄为一个无符号 Vector256<T> ). />.
Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), 0, TOut.MaxValue))
.
[CLSCompliant(false)]
public static Vector256<uint> YNarrowSaturateUnsigned(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<uint>
A Vector256<T> containing elements narrowed from
lower
andupper
(一个包含了来自lower
与upper
缩窄元素的向量).
- See Also