Procedure call syntax:
#include <simdmath.h> |
#include <math.h> |
vector signed int ilogbf4(vector float x); |
Link with -lsimdmath |
Inline call syntax:
#include <simdmath.h> |
#include <ilogbf4.h> |
vector signed int _ilogbf4(vector float x); |
Parameters | |
x | input vector |
The ilogbf4 function extracts the exponents of the input vector as signed integers.
Because the SPU treats single-precision Inf and NaN codes as regular floating point numbers, ilogbf4 returns a result of 128 for these values. However, FP_ILOGBNAN is set to INT_MAX for compatibility with the double function ilogbd2.
SPU and PPU
SIMD Math library specification for the Cell Broadband Engineā¢ Architecture.
Basis
ISO9899 (C99) ilogb functions.