我要评分
获取效率
正确性
完整性
易理解

svml128_expm1_f?

Compute the base-e exponential value of the input vector and minus the result with 1.

Interface Definition

C interface:

float32x4_t svml128_expm1_f32(float32x4_t src);

float64x2_t svml128_expm1_f64(float64x2_t src);

Parameters

Parameter

Type

Description

Input/Output

src

  • For svml128_expm1_f32, src is of single-precision floating-point type.
  • For svml128_expm1_f64, src is of double-precision floating-point type.

Floating-point value of the input vector

Input

Return Value

  • The base-e exponential y of x is returned. y ∈ (0, +INF).
  • If the input is +0, the return value is +0.
  • If the input is -0, the return value is -0.
  • If svml128_expm1_f32 is greater than 0x1.62e42ep6f (about 88), +∞ is returned. If svml128_expm1_f64 is greater than 0x1.62p9 (about 708), +∞ is returned.
  • If the input of svml128_expm1_f32 is less than -0x1.9fe368p6f (about –104), +0 is returned. If the input of svml128_expm1_f64 is less than -0x1.62p9 (about –708), +0 is returned.
  • If the input is +∞, the return value is +∞.
  • If the input is -∞, the return value is +0.
  • If the input is NaN, the return value is NaN.

Dependencies

C: "ksvml.h"

Examples

C interface:

    float32x4_t src = {0.0f, 2.0f, INFINITY, NAN};
    float32x4_t dst = svml128_expm1_f32(src);
    printf("%.15g  %.15g  %.15g  %.15g\n", dst[0], dst[1], dst[2], dst[3]); 
    /**
     *  Output dst:
     *     0  6.38905609893065  inf  -nan
     *
     */