ceilf4

NAME

ceilf4 - return accurate ceilings of float elements

SYNOPSIS

Procedure call syntax:

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

Inline call syntax:

#include <simdmath.h>
#include <ceilf4.h>
vector float _ceilf4(vector float x);
Parameters  
x input vector

DESCRIPTION

These functions round the elements of the input vector upwards to the next integer value.

They provide ceiling computation for the entire input range of IEEE floating point numbers. The ceiling of NaN values remain NaN, and the ceiling of subnormal values become zero.

On the SPU ceilf4_fast provides a limited range form which computes the ceiling of all floating-point values in the 32-bit signed integer range. Values outside this range get clamped to either 0 or MAX_INT. This mode is faster to compute, but has less range.

RETURN VALUE

The ceilf4 function returns a float vector in which each element is defined as the smallest integer value not less than x.

ENVIRONMENT

Full range: SPU and PPU

Integer range: SPU only

CONFORMING TO

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

NOTES

Basis

ISO9899 (C99) ceil functions.

SEE ALSO

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), round(3), roundf4(3), roundd2(3), iround(3), iroundf4(3), llround(3) , llroundf4(3), llroundd2(3), trunc(3), truncf4(3), truncd2(3)