Procedure call syntax:
#include <simdmath.h> |
vector float ceilf4_fast(vector float x); |
Link with -lsimdmath |
Inline call syntax:
#include <simdmath.h> |
#include <ceilf4.h> |
vector float _ceilf4_fast(vector float x); |
Parameters | |
x | input vector |
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.
The ceilf4_fast function returns a float vector in which each element is defined as the smallest integer value not less than x.
SPU only
SIMD Math library specification for the Cell Broadband Engineā¢ Architecture.
Basis
ISO9899 (C99) ceil functions.