Procedure call syntax:
#include <simdmath.h> |
vector float truncf4(vector float x); |
Link with -lsimdmath |
Inline call syntax:
#include <simdmath.h> |
#include <truncf4.h> |
vector float _truncf4(vector float x); |
Parameters | |
x | input vector |
The truncf4 function returns a vector of the corresponding elements of x rounded to the nearest integer not larger in absolute value (rounded towards 0).
The function truncf4 returns a float vector in which each element is defined as the nearest integer that is not larger in magnitude than the corresponding element of x.
SPU and PPU
SIMD Math library specification for the Cell Broadband Engineā¢ Architecture.
Basis
ISO9899 (C99) trunc functions.