vec_lvsl

Purpose

Returns a vector useful for aligning non-aligned data.

Syntax

d=vec_lvsl(a, b)

Result and argument types

The following tables describe the types of the returned value and the function arguments.

Table 1. Data type of function returned value and arguments (in 32-bit mode)
d a b
vector unsigned char int unsigned char*
signed char*
unsigned short*
short*
unsigned int*
int*
float*
Table 2. Data type of function returned value and arguments (in 64-bit mode)
d a b
vector unsigned char long unsigned char*
signed char*
unsigned short*
short*
unsigned int*
int*
float*

Result value

The first element of the result vector is the sum of the value of a and the address that is specified by b, modulo 16. The value of each successive element is the value of the previous element plus 1.