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

Vector Splat

vec_splat(arg1, arg2)

Each element of the result is set to the element of arg1 that is specified by arg2.

Result

arg1

arg2
Maps To

vector unsigned char

vector unsigned char

4-bit unsigned literal
vspltb

vector signed char

vector signed char

4-bit unsigned literal
vspltb

vector bool char

vector bool char

4-bit unsigned literal
vspltb

vector unsigned short

vector unsigned short

3-bit unsigned literal
vsplth

vector signed short

vector signed short

3-bit unsigned literal
vsplth

vector bool short

vector bool short

3-bit unsigned literal
vsplth

vector pixel

vector pixel

3-bit unsigned literal
vsplth

vector unsigned long

vector unsigned long

2-bit unsigned literal
vspltw

vector signed long

vector signed long

2-bit unsigned literal
vspltw

vector bool long

vector bool long

2-bit unsigned literal
vspltw

vector float

vector float

2-bit unsigned literal
vspltw