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