vec_ctiw

Purpose

Converts a quad vector to 32-bit signed integer values.

Syntax

d=vec_ctiw(a)

Result and argument types

The following table describes the types of the returned value and the function arguments.

d a
vector4double vector4double

Result value

Each element of a is rounded to floating-point integral value according to FPSCRRN. The four low-order bytes of the corresponding element of the result vector then contain one of the following values:

Example

FPSCRRN = DFP_ROUND_TOWARD_POSITIVE_INFINITY
a =  (1.4, -2.9,      9.0e11,     -5.0e12)
d: (  2,   -2, 0x7FFF FFFF, 0x8000 0000)

Related functions