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

Vector Subtract Modulo

vec_sub(arg1, arg2)

Each element of the result is obtained by subtracting the corresponding element of arg2 from the corresponding element of arg1. The arithmetic is modular for integer types.

Result

arg1

arg2

Maps To

vector unsigned char

vector unsigned char

vector unsigned char

vsububm

vector unsigned char

vector unsigned char

vector bool char

vsububm

vector unsigned char

vector bool char

vector unsigned char

vsububm

vector signed char

vector signed char

vector signed char

vsububm

vector signed char

vector signed char

vector bool char

vsububm

vector signed char

vector bool char

vector signed char

vsububm

vector unsigned short

vector unsigned short

vector unsigned short

vsubuhm

vector unsigned short

vector unsigned short

vector bool short

vsubuhm

vector unsigned short

vector bool short

vector unsigned short

vsubuhm

vector signed short

vector signed short

vector signed short

vsubuhm

vector signed short

vector signed short

vector bool short

vsubuhm

vector signed short

vector bool short

vector signed short

vsubuhm

vector unsigned long

vector unsigned long

vector unsigned long

vsubuwm

vector unsigned long

vector unsigned long

vector bool long

vsubuwm

vector unsigned long

vector bool long

vector unsigned long

vsubuwm

vector signed long

vector signed long

vector signed long

vsubuwm

vector signed long

vector signed long

vector bool long

vsubuwm

vector signed long

vector bool long

vector signed long

vsubuwm

vector float

vector float

vector float

vsubfp
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