Table of Contents

Method LessThan_Half

Namespace
Zyl.VectorTraits.Impl.AVector128
Assembly
VectorTraits.dll

LessThan_Half(Vector128<long>, Vector128<long>)

Compares two vectors to determine which is less on a per-element basis (比较两个向量,在每个元素的基础上确定哪个更小). Mnemonic: rt[i] := to_mask(left[i] < right[i]).

public static Vector128<long> LessThan_Half(Vector128<long> left, Vector128<long> right)

Parameters

left Vector128<long>

The vector to compare with right (将会与right进行比较的向量).

right Vector128<long>

The vector to compare with left (将会与left进行比较的向量).

Returns

Vector128<long>

A vector whose elements are all-bits-set or zero, depending on if which of the corresponding elements in left and right were less (一个向量,其元素是全位为1或0,取决于leftright的对应元素中哪个更小).

See Also