Technical: Hardware: G4
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

Store Vector Indexed

vec_st(arg1, arg2, arg3)
vec_stl(arg1, arg2, arg3)

The 16-byte value of arg1 is stored to a 16-byte aligned address. arg2 is an integer value, while arg3 is a pointer. arg2 is added to arg3 and the sum is truncated, if necessary, to produce a 16-byte aligned result. The arg3 type may also be a pointer to a const-qualified type. The result of the operation is void.
vec_stl marks the data as Least Recently Used (LRU), while vec_st does not; otherwise the instructions are identical.

See AltiVec Alignment for a discussion of how to store data that may not be 16-byte aligned.

arg1

arg2

arg3

vec_st
vec_stl
Maps To

vector unsigned char

any integral type

vector unsigned char *

stvx
stvxl

vector unsigned char

any integral type

unsigned char *

stvx
stvxl

vector signed char

any integral type

vector signed char *

stvx
stvxl

vector signed char

any integral type

signed char *

stvx
stvxl

vector bool char

any integral type

vector bool char *

stvx
stvxl

vector bool char

any integral type

unsigned char *

stvx
stvxl

vector bool char

any integral type

signed char *

stvx
stvxl

vector unsigned short

any integral type

vector unsigned short *

stvx
stvxl

vector unsigned short

any integral type

unsigned short *

stvx
stvxl

vector signed short

any integral type

vector signed short *

stvx
stvxl

vector signed short

any integral type

short *

stvx
stvxl

vector bool short

any integral type

vector bool short *

stvx
stvxl

vector bool short

any integral type

short *

stvx
stvxl

vector bool short

any integral type

unsigned short *

stvx
stvxl

vector pixel short

any integral type

vector pixel short *

stvx
stvxl

vector pixel short

any integral type

short *

stvx
stvxl

vector pixel short

any integral type

unsigned short *

stvx
stvxl

vector unsigned long

any integral type

vector unsigned long *

stvx
stvxl

vector unsigned long

any integral type

unsigned int *

stvx
stvxl

vector unsigned long

any integral type

unsigned long *

stvx
stvxl

vector signed long

any integral type

vector signed long *

stvx
stvxl

vector signed long

any integral type

int *

stvx
stvxl

vector signed long

any integral type

long *

stvx
stvxl

vector bool long

any integral type

vector bool long *

stvx
stvxl

vector bool long

any integral type

unsigned int *

stvx
stvxl

vector bool long

any integral type

unsigned long *

stvx
stvxl

vector bool long

any integral type

int *

stvx
stvxl

vector bool long

any integral type

long *

stvx
stvxl

vector float

any integral type

vector float *

stvx
stvxl

vector float

any integral type

float *

stvx
stvxl
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2004 Apple Computer, Inc.
All rights reserved. | Terms of use | Privacy Notice