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

Vector Average Integer

vec_avg(arg1, arg2)

Each element of the result is the average of the corresponding elements of arg1 and arg2.

Result

arg1

arg2

Maps To

vector unsigned char

vector unsigned char

vector unsigned char

vavgub

vector signed char

vector signed char

vector signed char

vavgsb

vector unsigned short

vector unsigned short

vector unsigned short

vavguh

vector signed short

vector signed short

vector signed short

vavgsh

vector unsigned long

vector unsigned long

vector unsigned long

vavguw

vector signed long

vector signed long

vector signed long

vavgsw
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