NAME
roundf4
- return the nearest integer values to float elements
SYNOPSIS
Procedure
call syntax:
#include <simdmath.h> |
vector float roundf4(vector float x); |
Link with -lsimdmath |
Inline call syntax:
#include <simdmath.h> |
#include <roundf4.h> |
vector float _roundf4(vector float x); |
Parameters |
|
x |
input vector |
DESCRIPTION
The roundf4 function
returns a vector which contains the corresponding elements of x rounded
to the nearest integer.
Special Cases:- Halfway values are rounded away from 0 (zero), regardless of the current
rounding direction.
- On the SPU, the rounding mode is always towards 0 (zero).
RETURN VALUE
The function roundf4 returns
a float vector in which each element is defined as the nearest integer to
the corresponding element of x.
CONFORMING TO
SIMD Math library
specification for the Cell Broadband Engine⢠Architecture.
NOTES
Basis
ISO9899
(C99) round functions.
SEE ALSO
round(3),
roundd2(3), ceil(3),
ceilf4(3),
ceild2(3), floor(3),
floorf4(3),
floord2(3), nearbyint(3),
nearbyintf4(3),
nearbyintd2(3), nextafter(3)
,
nextafterf4(3),
nextafterd2(3), irint(3)
,
irintf4(3), llrint(3)
,
llrintf4(3),
llrintd2(3), rint(3),
rintf4(3),
rintd2(3),
iround(3),
iroundf4(3),
llround(3),
llroundf4(3),
llroundd2(3), trunc(3),
truncf4(3),
truncd2(3)