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