Open
Description
namespace System.Runtime.Intrinsics.Arm
/// VectorT Summary
public abstract class Sve : AdvSimd /// Feature: FEAT_SVE2 Category: counting
{
/// T: [uint, int], [ulong, long]
public static unsafe Vector<T> CountMatchingElements(Vector<T2> mask, Vector<T2> left, Vector<T2> right); // HISTCNT
/// T: uint, ulong
public static unsafe Vector<T> CountMatchingElements(Vector<T> mask, Vector<T> left, Vector<T> right); // HISTCNT
public static unsafe Vector<byte> CountMatchingElementsIn128BitSegments(Vector<sbyte> left, Vector<sbyte> right); // HISTSEG
public static unsafe Vector<byte> CountMatchingElementsIn128BitSegments(Vector<byte> left, Vector<byte> right); // HISTSEG
/// total method signatures: 4
}
CountMatchingElements
Count matching elements in vector
Compares each active element of the left
with all active elements with an element number less than or equal to its own in right
, and places the count of matching elements in the corresponding element of the destination vector. Inactive elements in the destination vector are set to zero.
CountMatchingElementsIn128BitSegments
Count matching elements in vector segments
Compares each 8-bit byte element of left
with all of the elements in the corresponding 128-bit segment of right
and places the count of matching elements in the corresponding element of the destination vector.