Procedure call syntax:
#include <simdmath.h> |
vector double truncd2(vector double x); |
Link with -lsimdmath |
Inline call syntax:
#include <simdmath.h> |
#include <truncd2.h> |
vector double _truncd2(vector double x); |
Parameters | |
x | input vector |
The truncd2 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 truncd2 returns a double vector in which each element is defined as the nearest integer that is not larger in magnitude than the corresponding element of x.
SPU only
SIMD Math library specification for the Cell Broadband Engineā¢ Architecture.
Basis
ISO9899 (C99) trunc functions.