SLEEF Documentation - Math library reference

Table of contents

Data types for AArch64 architecture

Sleef_float32x4_t_2

Description

Sleef_float32x4_t_2 is a data type for storing two float32x4_t values, which is defined in sleef.h as follows:

typedef struct {
  float32x4_t x, y;
} Sleef_float32x4_t_2;

Sleef_float64x2_t_2

Description

Sleef_float64x2_t_2 is a data type for storing two float64x2_t values, which is defined in sleef.h as follows:

typedef struct {
  float64x2_t x, y;
} Sleef_float64x2_t_2;

Trigonometric Functions

Vectorized double precision sine function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_sind2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sin_u10 with the same accuracy specification.


Vectorized single precision sine function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_sinf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sinf_u10 with the same accuracy specification.


Vectorized double precision sine function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_sind2_u35advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sin_u35 with the same accuracy specification.


Vectorized single precision sine function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_sinf4_u35advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sinf_u35 with the same accuracy specification.


Vectorized double precision cosine function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_cosd2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_cos_u10 with the same accuracy specification.


Vectorized single precision cosine function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_cosf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_cosf_u10 with the same accuracy specification.


Vectorized double precision cosine function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_cosd2_u35advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_cos_u35 with the same accuracy specification.


Vectorized single precision cosine function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_cosf4_u35advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_cosf_u35 with the same accuracy specification.


Vectorized single precision combined sine and cosine function with 0.506 ULP error bound

Synopsis

#include <sleef.h>

Sleef_float64x2_t_2 Sleef_sincosd2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sincos_u10 with the same accuracy specification.


Vectorized single precision combined sine and cosine function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

Sleef_float32x4_t_2 Sleef_sincosf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sincosf_u10 with the same accuracy specification.


Vectorized double precision combined sine and cosine function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

Sleef_float64x2_t_2 Sleef_sincosd2_u35advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sincos_u35 with the same accuracy specification.


Vectorized single precision combined sine and cosine function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

Sleef_float32x4_t_2 Sleef_sincosf4_u35advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sincosf_u35 with the same accuracy specification.


Vectorized double precision sine function with 0.506 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_sinpid2_u05advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sinpi_u05 with the same accuracy specification.


Vectorized single precision sine function with 0.506 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_sinpif4_u05advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sinpif_u05 with the same accuracy specification.


Vectorized double precision cosine function with 0.506 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_cospid2_u05advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_cospi_u05 with the same accuracy specification.


Vectorized single precision cosine function with 0.506 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_cospif4_u05advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_cospif_u05 with the same accuracy specification.


Vectorized double precision combined sine and cosine function with 0.506 ULP error bound

Synopsis

#include <sleef.h>

Sleef_float64x2_t_2 Sleef_sincospid2_u05advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sincospi_u05 with the same accuracy specification.


Vectorized single precision combined sine and cosine function with 0.506 ULP error bound

Synopsis

#include <sleef.h>

Sleef_float32x4_t_2 Sleef_sincospif4_u05advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sincospif_u05 with the same accuracy specification.


Vectorized double precision combined sine and cosine function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

Sleef_float64x2_t_2 Sleef_sincospid2_u35advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sincospi_u35 with the same accuracy specification.


Vectorized single precision combined sine and cosine function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

Sleef_float32x4_t_2 Sleef_sincospif4_u35advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sincospif_u35 with the same accuracy specification.


Vectorized double precision tangent function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_tand2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_tan_u10 with the same accuracy specification.


Vectorized single precision tangent function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_tanf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_tanf_u10 with the same accuracy specification.


Vectorized double precision tangent function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_tand2_u35advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_tan_u35 with the same accuracy specification.


Vectorized single precision tangent function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_tanf4_u35advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_tanf_u35 with the same accuracy specification.

Power, exponential, and logarithmic function

Vectorized double precision power function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_powd2_u10advsimd(float64x2_t a, float64x2_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_pow_u10 with the same accuracy specification.


Vectorized single precision power function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_powf4_u10advsimd(float32x4_t a, float32x4_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_powf_u10 with the same accuracy specification.


Vectorized double precision natural logarithmic function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_logd2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_log_u10 with the same accuracy specification.


Vectorized single precision natural logarithmic function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_logf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_logf_u10 with the same accuracy specification.


Vectorized double precision natural logarithmic function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_logd2_u35advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_log_u35 with the same accuracy specification.


Vectorized single precision natural logarithmic function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_logf4_u35advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_logf_u35 with the same accuracy specification.


Vectorized double precision base-10 logarithmic function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_log10d2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_log10_u10 with the same accuracy specification.


Vectorized single precision base-10 logarithmic function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_log10f4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_log10f_u10 with the same accuracy specification.


Vectorized double precision logarithm of one plus argument with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_log1pd2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_log1p_u10 with the same accuracy specification.


Vectorized single precision logarithm of one plus argument with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_log1pf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_log1pf_u10 with the same accuracy specification.


Vectorized double precision base-e exponential function function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_expd2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_exp_u10 with the same accuracy specification.


Vectorized single precision base-e exponential function function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_expf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_expf_u10 with the same accuracy specification.


Vectorized double precision base-2 exponential function function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_exp2d2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_exp2_u10 with the same accuracy specification.


Vectorized single precision base-2 exponential function function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_exp2f4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_exp2f_u10 with the same accuracy specification.


Vectorized double precision base-10 exponential function function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_exp10d2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_exp10_u10 with the same accuracy specification.


Vectorized single precision base-10 exponential function function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_exp10f4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_exp10f_u10 with the same accuracy specification.


Vectorized double precision base-e exponential function minus 1 with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_expm1d2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_expm1_u10 with the same accuracy specification.


Vectorized single precision base-e exponential function minus 1 with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_expm1f4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_expm1f_u10 with the same accuracy specification.


Vectorized double precision square root function with 0.5001 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_sqrtd2_u05advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sqrt_u05 with the same accuracy specification.


Vectorized single precision square root function with 0.5001 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_sqrtf4_u05advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sqrtf_u05 with the same accuracy specification.


Vectorized double precision square root function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_sqrtd2_u35advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sqrt_u35 with the same accuracy specification.


Vectorized single precision square root function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_sqrtf4_u35advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sqrtf_u35 with the same accuracy specification.


Vectorized double precision cubic root function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_cbrtd2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_cbrt_u10 with the same accuracy specification.


Vectorized single precision cubic root function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_cbrtf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_cbrtf_u10 with the same accuracy specification.


Vectorized double precision cubic root function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_cbrtd2_u35advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_cbrt_u35 with the same accuracy specification.


Vectorized single precision cubic root function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_cbrtf4_u35advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_cbrtf_u35 with the same accuracy specification.


Vectorized double precision 2D Euclidian distance function with 0.5 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_hypotd2_u05advsimd(float64x2_t a, float64x2_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_hypot_u05 with the same accuracy specification.


Vectorized single precision 2D Euclidian distance function with 0.5 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_hypotf4_u05advsimd(float32x4_t a, float32x4_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_hypotf_u05 with the same accuracy specification.


Vectorized double precision 2D Euclidian distance function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_hypotd2_u35advsimd(float64x2_t a, float64x2_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_hypot_u35 with the same accuracy specification.


Vectorized single precision 2D Euclidian distance function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_hypotf4_u35advsimd(float32x4_t a, float32x4_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_hypotf_u35 with the same accuracy specification.

Inverse Trigonometric Functions

Vectorized double precision arc sine function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_asind2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_asin_u10 with the same accuracy specification.


Vectorized single precision arc sine function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_asinf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_asinf_u10 with the same accuracy specification.


Vectorized double precision arc sine function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_asind2_u35advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_asin_u35 with the same accuracy specification.


Vectorized single precision arc sine function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_asinf4_u35advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_asinf_u35 with the same accuracy specification.


Vectorized double precision arc cosine function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_acosd2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_acos_u10 with the same accuracy specification.


Vectorized single precision arc cosine function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_acosf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_acosf_u10 with the same accuracy specification.


Vectorized double precision arc cosine function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_acosd2_u35advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_acos_u35 with the same accuracy specification.


Vectorized single precision arc cosine function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_acosf4_u35advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_acosf_u35 with the same accuracy specification.


Vectorized double precision arc tangent function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_atand2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_atan_u10 with the same accuracy specification.


Vectorized single precision arc tangent function with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_atanf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_atanf_u10 with the same accuracy specification.


Vectorized double precision arc tangent function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_atand2_u35advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_atan_u35 with the same accuracy specification.


Vectorized single precision arc tangent function with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_atanf4_u35advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_atanf_u35 with the same accuracy specification.


Vectorized double precision arc tangent function of two variables with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_atan2d2_u10advsimd(float64x2_t a, float64x2_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_atan2_u10 with the same accuracy specification.


Vectorized single precision arc tangent function of two variables with 1.0 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_atan2f4_u10advsimd(float32x4_t a, float32x4_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_atan2f_u10 with the same accuracy specification.


Vectorized double precision arc tangent function of two variables with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float64x2_t Sleef_atan2d2_u35advsimd(float64x2_t a, float64x2_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_atan2_u35 with the same accuracy specification.


Vectorized single precision arc tangent function of two variables with 3.5 ULP error bound

Synopsis

#include <sleef.h>

float32x4_t Sleef_atan2f4_u35advsimd(float32x4_t a, float32x4_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_atan2f_u35 with the same accuracy specification.

Hyperbolic function and inverse hyperbolic function

Vectorized double precision hyperbolic sine function

Synopsis

#include <sleef.h>

float64x2_t Sleef_sinhd2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sinh_u10 with the same accuracy specification.


Vectorized single precision hyperbolic sine function

Synopsis

#include <sleef.h>

float32x4_t Sleef_sinhf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_sinhf_u10 with the same accuracy specification.


Vectorized double precision hyperbolic cosine function

Synopsis

#include <sleef.h>

float64x2_t Sleef_coshd2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_cosh_u10 with the same accuracy specification.


Vectorized single precision hyperbolic cosine function

Synopsis

#include <sleef.h>

float32x4_t Sleef_coshf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_coshf_u10 with the same accuracy specification.


Vectorized double precision hyperbolic tangent function

Synopsis

#include <sleef.h>

float64x2_t Sleef_tanhd2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_tanh_u10 with the same accuracy specification.


Vectorized single precision hyperbolic tangent function

Synopsis

#include <sleef.h>

float32x4_t Sleef_tanhf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_tanhf_u10 with the same accuracy specification.


Vectorized double precision inverse hyperbolic sine function

Synopsis

#include <sleef.h>

float64x2_t Sleef_asinhd2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_asinh_u10 with the same accuracy specification.


Vectorized single precision inverse hyperbolic sine function

Synopsis

#include <sleef.h>

float32x4_t Sleef_asinhf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_asinhf_u10 with the same accuracy specification.


Vectorized double precision inverse hyperbolic cosine function

Synopsis

#include <sleef.h>

float64x2_t Sleef_acoshd2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_acosh_u10 with the same accuracy specification.


Vectorized single precision inverse hyperbolic cosine function

Synopsis

#include <sleef.h>

float32x4_t Sleef_acoshf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_acoshf_u10 with the same accuracy specification.


Vectorized double precision inverse hyperbolic tangent function

Synopsis

#include <sleef.h>

float64x2_t Sleef_atanhd2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_atanh_u10 with the same accuracy specification.


Vectorized single precision inverse hyperbolic tangent function

Synopsis

#include <sleef.h>

float32x4_t Sleef_atanhf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_atanhf_u10 with the same accuracy specification.

Error and gamma function

Vectorized double precision error function

Synopsis

#include <sleef.h>

float64x2_t Sleef_erfd2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_erf_u10 with the same accuracy specification.


Vectorized single precision error function

Synopsis

#include <sleef.h>

float32x4_t Sleef_erff4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_erff_u10 with the same accuracy specification.


Vectorized double precision complementary error function

Synopsis

#include <sleef.h>

float64x2_t Sleef_erfcd2_u15advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_erfc_u15 with the same accuracy specification.


Vectorized single precision complementary error function

Synopsis

#include <sleef.h>

float32x4_t Sleef_erfcf4_u15advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_erfcf_u15 with the same accuracy specification.


Vectorized double precision gamma function

Synopsis

#include <sleef.h>

float64x2_t Sleef_tgammad2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_tgamma_u10 with the same accuracy specification.


Vectorized single precision gamma function

Synopsis

#include <sleef.h>

float32x4_t Sleef_tgammaf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_tgammaf_u10 with the same accuracy specification.


Vectorized double precision log gamma function

Synopsis

#include <sleef.h>

float64x2_t Sleef_lgammad2_u10advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_lgamma_u10 with the same accuracy specification.


Vectorized single precision log gamma function

Synopsis

#include <sleef.h>

float32x4_t Sleef_lgammaf4_u10advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_lgammaf_u10 with the same accuracy specification.

Nearest integer function

Vectorized double precision function for rounding to integer towards zero

Synopsis

#include <sleef.h>

float64x2_t Sleef_truncd2_advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_trunc with the same accuracy specification.


Vectorized single precision function for rounding to integer towards zero

Synopsis

#include <sleef.h>

float32x4_t Sleef_truncf4_advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_truncf with the same accuracy specification.


Vectorized double precision function for rounding to integer towards negative infinity

Synopsis

#include <sleef.h>

float64x2_t Sleef_floord2_advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_floor with the same accuracy specification.


Vectorized single precision function for rounding to integer towards negative infinity

Synopsis

#include <sleef.h>

float32x4_t Sleef_floorf4_advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_floorf with the same accuracy specification.


Vectorized double precision function for rounding to integer towards positive infinity

Synopsis

#include <sleef.h>

float64x2_t Sleef_ceild2_advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_ceil with the same accuracy specification.


Vectorized single precision function for rounding to integer towards positive infinity

Synopsis

#include <sleef.h>

float32x4_t Sleef_ceilf4_advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_ceilf with the same accuracy specification.


Vectorized double precision function for rounding to nearest integer

Synopsis

#include <sleef.h>

float64x2_t Sleef_roundd2_advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_round with the same accuracy specification.


Vectorized single precision function for rounding to nearest integer

Synopsis

#include <sleef.h>

float32x4_t Sleef_roundf4_advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_roundf with the same accuracy specification.


Vectorized double precision function for rounding to nearest integer

Synopsis

#include <sleef.h>

float64x2_t Sleef_rintd2_advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_rint with the same accuracy specification.


Vectorized single precision function for rounding to nearest integer

Synopsis

#include <sleef.h>

float32x4_t Sleef_rintf4_advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_rintf with the same accuracy specification.

Other function

Vectorized double precision function for fused multiply-accumulation

Synopsis

#include <sleef.h>

float64x2_t Sleef_fmad2_advsimd(float64x2_t a, float64x2_t b, float64x2_t c);

Link with -lsleef.

Description

This is the vectorized function of Sleef_fma with the same accuracy specification.


Vectorized single precision function for fused multiply-accumulation

Synopsis

#include <sleef.h>

float32x4_t Sleef_fmaf4_advsimd(float32x4_t a, float32x4_t b, float32x4_t c);

Link with -lsleef.

Description

This is the vectorized function of Sleef_fmaf with the same accuracy specification.


Vectorized double precision FP remainder

Synopsis

#include <sleef.h>

float64x2_t Sleef_fmodd2_advsimd(float64x2_t a, float64x2_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_fmod with the same accuracy specification.


Vectorized single precision FP remainder

Synopsis

#include <sleef.h>

float32x4_t Sleef_fmodf4_advsimd(float32x4_t a, float32x4_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_fmodf with the same accuracy specification.


Vectorized double precision function for multiplying by integral power of 2

Synopsis

#include <sleef.h>

float64x2_t Sleef_ldexpd2_advsimd(float64x2_t a, int32x2_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_ldexp with the same accuracy specification.


Vectorized double precision function for obtaining fractional component of an FP number

Synopsis

#include <sleef.h>

float64x2_t Sleef_frfrexpd2_advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_frfrexp with the same accuracy specification.


Vectorized single precision function for obtaining fractional component of an FP number

Synopsis

#include <sleef.h>

float32x4_t Sleef_frfrexpf4_advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_frfrexpf with the same accuracy specification.


Vectorized double precision function for obtaining integral component of an FP number

Synopsis

#include <sleef.h>

int32x2_t Sleef_expfrexpd2_advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_expfrexp with the same accuracy specification.


Vectorized double precision function for getting integer exponent

Synopsis

#include <sleef.h>

int32x2_t Sleef_ilogbd2_advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_ilogb with the same accuracy specification.


Vectorized double precision signed integral and fractional values

Synopsis

#include <sleef.h>

Sleef_float64x2_t_2 Sleef_modfd2_advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_modf with the same accuracy specification.


Vectorized single precision signed integral and fractional values

Synopsis

#include <sleef.h>

Sleef_float32x4_t_2 Sleef_modff4_advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_modff with the same accuracy specification.


Vectorized double precision function for calculating the absolute value

Synopsis

#include <sleef.h>

float64x2_t Sleef_fabsd2_advsimd(float64x2_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_fabs with the same accuracy specification.


Vectorized single precision function for calculating the absolute value

Synopsis

#include <sleef.h>

float32x4_t Sleef_fabsf4_advsimd(float32x4_t a);

Link with -lsleef.

Description

This is the vectorized function of Sleef_fabsf with the same accuracy specification.


Vectorized double precision function for copying signs

Synopsis

#include <sleef.h>

float64x2_t Sleef_copysignd2_advsimd(float64x2_t a, float64x2_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_copysign with the same accuracy specification.


Vectorized single precision function for copying signs

Synopsis

#include <sleef.h>

float32x4_t Sleef_copysignf4_advsimd(float32x4_t a, float32x4_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_copysignf with the same accuracy specification.


Vectorized double precision function for determining maximum of two values

Synopsis

#include <sleef.h>

float64x2_t Sleef_fmaxd2_advsimd(float64x2_t a, float64x2_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_fmax with the same accuracy specification.


Vectorized single precision function for determining maximum of two values

Synopsis

#include <sleef.h>

float32x4_t Sleef_fmaxf4_advsimd(float32x4_t a, float32x4_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_fmaxf with the same accuracy specification.


Vectorized double precision function for determining minimum of two values

Synopsis

#include <sleef.h>

float64x2_t Sleef_fmind2_advsimd(float64x2_t a, float64x2_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_fmin with the same accuracy specification.


Vectorized single precision function for determining minimum of two values

Synopsis

#include <sleef.h>

float32x4_t Sleef_fminf4_advsimd(float32x4_t a, float32x4_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_fminf with the same accuracy specification.


Vectorized double precision function to calculate positive difference of two values

Synopsis

#include <sleef.h>

float64x2_t Sleef_fdimd2_advsimd(float64x2_t a, float64x2_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_fdim with the same accuracy specification.


Vectorized single precision function to calculate positive difference of two values

Synopsis

#include <sleef.h>

float32x4_t Sleef_fdimf4_advsimd(float32x4_t a, float32x4_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_fdimf with the same accuracy specification.


Vectorized double precision function for obtaining the next representable FP value

Synopsis

#include <sleef.h>

float64x2_t Sleef_nextafterd2_advsimd(float64x2_t a, float64x2_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_nextafter with the same accuracy specification.


Vectorized single precision function for obtaining the next representable FP value

Synopsis

#include <sleef.h>

float32x4_t Sleef_nextafterf4_advsimd(float32x4_t a, float32x4_t b);

Link with -lsleef.

Description

This is the vectorized function of Sleef_nextafterf with the same accuracy specification.