getASIMDKind
public static AArch64Kind getASIMDKind(AArch64Kind base,
int length)
Returns the smallest ASIMD kind that is able to hold a value of the specified base and vector
length.
When a length is specified that results a total data size that is not an exact match for a
kind, the smallest kind that can hold the specified value will be returned. As an example, if
a base kind of DWORD and a length of 3 is specified the function will return
V128_DWORD since it is the smallest kind (4 x DWORD) that can hold the
requested data.
Calling this function with a length that exceeds the largest supported register is an error.
- Parameters:
base - the kind of each element of the vector
length - the length of the vector
- Returns:
- the kind representing the smallest vector register that can hold the requested data