Procedure call syntax:
#include <simdmath.h> |
(vector signed int) iroundf4(vector float x); |
Link with -lsimdmath |
Inline call syntax:
#include <simdmath.h> |
#include <iroundf4.h> |
(vector signed int) _iroundf4(vector float x); |
Parameters | |
x | input vector |
The iroundf4 function returns a vector of signed integers that contains the corresponding elements of x rounded to the nearest integer value, rounding halfway values away from 0 (zero), regardless of the current rounding direction.
The function iroundf4 returns a vector of signed integers defined as the nearest integer to the corresponding element of x.
If the rounded value is outside the range of the return type then the result is unspecified.
SPU and PPU
SIMD Math library specification for the Cell Broadband Engineā¢ Architecture.
Basis
ISO9899 (C99) iround functions.