Table of Contents

Method YNarrowSaturateUnsigned

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YNarrowSaturateUnsigned(Vector128<short>, Vector128<short>)

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

Vector128<byte> YNarrowSaturateUnsigned(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<byte>

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

See Also

YNarrowSaturateUnsigned(Vector128<int>, Vector128<int>)

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

Vector128<ushort> YNarrowSaturateUnsigned(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<ushort>

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

See Also

YNarrowSaturateUnsigned(Vector128<long>, Vector128<long>)

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

Vector128<uint> YNarrowSaturateUnsigned(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<uint>

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

See Also