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

Vector Permute

vec_perm(arg1, arg2, arg3)

Each byte of the result is selected by using the least significant 5 bits of the corresponding byte of arg3 as an index into the concatenated bytes of arg1 and arg2.
See
Example 3 of Highlights for a diagram of this operation.

Result

arg1 and arg2

arg3
Maps To

vector unsigned char

vector unsigned char

vector unsigned char
vperm

vector signed char

vector signed char

vector unsigned char
vperm

vector bool char

vector bool char

vector unsigned char
vperm

vector unsigned short

vector unsigned short

vector unsigned char
vperm

vector signed short

vector signed short

vector unsigned char
vperm

vector bool short

vector bool short

vector unsigned char
vperm

vector pixel

vector pixel

vector unsigned char
vperm

vector unsigned long

vector unsigned long

vector unsigned char
vperm

vector signed long

vector signed long

vector unsigned char
vperm

vector bool long

vector bool long

vector unsigned char
vperm

vector float

vector float

vector unsigned char
vperm
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