24 #ifndef ARM_COMPUTE_SVEMATH_H 25 #define ARM_COMPUTE_SVEMATH_H 27 #if defined(__ARM_FEATURE_SVE) 43 svfloat32_t svexp_f32_z(svbool_t pg, svfloat32_t val);
52 svfloat32_t svinv_f32_z(svbool_t pg, svfloat32_t x);
61 svfloat32_t svlog_f32_z(svbool_t pg, svfloat32_t x);
74 svfloat32_t svtanh_f32_z(svbool_t pg, svfloat32_t val);
87 svfloat16_t svtanh_f16_z(svbool_t pg, svfloat16_t val);
96 svfloat16_t svexp_f16_z(svbool_t pg, svfloat16_t x);
105 svfloat16_t svinv_f16_z(svbool_t pg, svfloat16_t x);
114 svfloat16_t svlog_f16_z(svbool_t pg, svfloat16_t x);
123 template <
typename VectorType>
124 inline VectorType svinvsqrt(svbool_t pg, VectorType val)
126 auto sqrt_reciprocal = svrsqrte(val);
127 sqrt_reciprocal = svmul_z(pg, svrsqrts(svmul_z(pg, val, sqrt_reciprocal), sqrt_reciprocal), sqrt_reciprocal);
128 sqrt_reciprocal = svmul_z(pg, svrsqrts(svmul_z(pg, val, sqrt_reciprocal), sqrt_reciprocal), sqrt_reciprocal);
129 return sqrt_reciprocal;
139 svfloat32_t svsin_f32_z(svbool_t pg, svfloat32_t val);
148 svfloat16_t svsin_f16_z(svbool_t pg, svfloat16_t val);
160 svfloat32_t svpow_f32_z(svbool_t pg, svfloat32_t a, svfloat32_t
b);
172 svfloat16_t svpow_f16_z(svbool_t pg, svfloat16_t a, svfloat16_t
b);
Copyright (c) 2017-2021 Arm Limited.