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

Vector Shift Right Algebraic

vec_sra(arg1, arg2)

Each element of the result is obtained by shifting the corresponding element of arg1 right by the number of bits specified in the corresponding element of arg2. Byte, halfword, and word results use the least significant 3, 4, and 5 bits, respectively, of the corresponding element of arg2. Copies of the sign bit are shifted in from the left for both signed and unsigned types.

Result

arg1

arg2

Maps To

vector unsigned char

vector unsigned char

vector unsigned char

vsrab

vector signed char

vector signed char

vector unsigned char

vsrab

vector unsigned short

vector unsigned short

vector unsigned short

vsrah

vector signed short

vector signed short

vector unsigned short

vsrah

vector unsigned long

vector unsigned long

vector unsigned long

vsraw

vector signed long

vector signed long

vector unsigned long

vsraw
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