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

Vector Round to Floating-Point Integral Value

vec_round(arg1)

(Vector Round to Nearest)

Each word of the result is the nearest representable floating point integer to the corresponding word of arg1, using IEEE round-to-nearest rounding.

vec_trunc(arg1)

(Vector Truncate)

Each word of the result is the value of the corresponding word of arg1 truncated to an integral value.

vec_ceil(arg1)

(Vector Round to Ceiling)

Each word of the result is the smallest representable floating point integer greater than or equal to the corresponding word of arg1.

vec_floor(arg1)

(Vector Round to Floor)

Each word of the result is the largest representable floating point integer less than or equal to the corresponding word of arg1.

Command
Result

arg1

Maps To

vec_round

vector float

vector float

vrfin

vec_trunc

vector float

vector float

vrfiz

vec_ceil

vector float

vector float

vrfip

vec_floor

vector float

vector float

vrfim
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