Next: vrd2_log2, Previous: vrs8_log10f, Up: Vector
| int | n | - the number of values in both the input and output arrays.
|
| float | *x | - pointer to the array of input values.
|
| float | *y | - pointer to the array of output values.
|
This routine accepts an array of single precision input values,
computes the base-10 log for each input value, and
stores the result in the array pointed to by the y pointer input. It is the
responsibility of the calling program to allocate/deallocate enough storage for
the output array. This is a relaxed version of log10f, suitable for use with
fastmath compiler flags or applications not requiring full error handling.
Denormal inputs may produce unpredictable results. Special case inputs produce
C99 return values. The routine is accurate to better than 1 ulp over the valid
input range.
| Input | Output
|
| +/- 0 | -infinity
|
| negative | QNaN
|
| QNaN | same QNaN
|
| SNaN | same NaN converted to QNaN
|
| +infinity | +infinity
|
| -infinity | QNaN
|