svml128_log1p_f?
Interface Definition
C interface:
float32x4_t svml128_log1p_f32(float32x4_t src);
float64x2_t svml128_log1p_f64(float64x2_t src);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
src |
|
Floating-point value of the input vector. |
Input |
Return Value
- The base-e logarithm y of (x + 1) is returned. y ∈ (-INF, +INF)
- If the input x is ±0, the return value is ±0.
- If the input x is -1, the return value is -INF.
- If the input x is a negative number, the return value is NaN.
- If the input x is +∞, the return value is +∞.
- If the input x is NaN, the return value is NaN.
Dependency
C: "ksvml.h"
Example
C interface:
float32x4_t src = {0.0f, 2.0f, INFINITY, NAN};
float32x4_t dst = svml128_log1p_f32(src);
printf("%.15g %.15g %.15g %.15g\n", dst[0], dst[1], dst[2], dst[3]);
/**
* Output dst:
* 0 1.09861228866811 inf -nan
*
*/
Parent topic: Function Syntax