Table of Contents

Method YNarrowSaturateUnsigned

Namespace
Zyl.VectorTraits.Impl.AVector512
Assembly
VectorTraits.dll

YNarrowSaturateUnsigned(Vector512<short>, Vector512<short>)

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

public virtual Vector512<byte> YNarrowSaturateUnsigned(Vector512<short> lower, Vector512<short> upper)

Parameters

lower Vector512<short>

The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).

upper Vector512<short>

The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).

Returns

Vector512<byte>

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

See Also

YNarrowSaturateUnsigned(Vector512<int>, Vector512<int>)

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

[CLSCompliant(false)]
public virtual Vector512<ushort> YNarrowSaturateUnsigned(Vector512<int> lower, Vector512<int> upper)

Parameters

lower Vector512<int>

The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).

upper Vector512<int>

The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).

Returns

Vector512<ushort>

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

See Also

YNarrowSaturateUnsigned(Vector512<long>, Vector512<long>)

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

[CLSCompliant(false)]
public virtual Vector512<uint> YNarrowSaturateUnsigned(Vector512<long> lower, Vector512<long> upper)

Parameters

lower Vector512<long>

The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).

upper Vector512<long>

The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).

Returns

Vector512<uint>

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

See Also