vec_lvsr

Purpose

Returns a vector useful for aligning non-aligned data.

Syntax

d=vec_lvsr(a, b)

Result and argument types

The following table describes the types of the returned value and the function arguments.

Table 1. Data type of function returned value and arguments
d a b
vector unsigned char int unsigned long*
long*
long unsigned char*
signed char*
unsigned short*
short*
unsigned int*
int*
float*

Result value

The effective address is the sum of a and the address of b, modulo 16. The first element of the result vector contains the value 16 minus the effective address. Each successive element contains the previous element's value plus 1.



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us