llroundf4

NAME

llroundf4 - return nearest integer values to float elements

SYNOPSIS

Procedure call syntax:

#include <simdmath.h>
llroundf4_t llroundf4(vector float x);
Link with -lsimdmath

Inline call syntax:

#include <simdmath.h>
#include <llroundf4.h>
llroundf4_t _llroundf4(vector float x);
Parameters  
x input vector

DESCRIPTION

The llroundf4 function returns a structure of vectors of signed long long integers which are nearest to the corresponding elements of x.

Special Cases:
  • Halfway values are rounded away from 0 (zero).
  • On the SPU the rounding mode is always towards 0 (zero).
  • If the rounded value is outside the range of the return type the numeric result is unspecified.

RETURN VALUE

The function llroundf4 returns a llroundf4_t structure containing vectors in which each element is defined as the nearest long long integer to the corresponding element of x.

The llroundf4_t structure is defined:
  typedef struct llroundf4_t {  
  vector signed long long vll[2];  
  } llroundf4_t;  

ENVIRONMENT

SPU and PPU

CONFORMING TO

SIMD Math library specification for the Cell Broadband Engineā„¢ Architecture.

NOTES

Basis

ISO9899 (C99) llround functions.

SEE ALSO

llroundf4_t(3), llround(3), llroundd2(3), llrint(3), llrintf4(3), llrintd2(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), rint(3), rintf4(3), rintd2(3), round(3), roundf4(3), roundd2(3), iround(3), iroundf4(3), trunc(3), truncf4(3), truncd2(3)