vec_lvsr

Purpose

Returns a vector useful for aligning non-aligned data.

Syntax

d=vec_lvsr(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 effective address is the sum of the value of a and the address that is specified by b, modulo 16. The first element of the result vector contains the value 16 minus the effective address. The value of each successive element is the value of the previous element plus 1.