aboutsummaryrefslogtreecommitdiff
path: root/math/include/mathlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'math/include/mathlib.h')
-rw-r--r--math/include/mathlib.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/math/include/mathlib.h b/math/include/mathlib.h
index bacd2b6..405cf4a 100644
--- a/math/include/mathlib.h
+++ b/math/include/mathlib.h
@@ -24,6 +24,8 @@ double log2 (double);
double pow (double, double);
/* Scalar functions using the vector algorithm with identical result. */
+float __s_sinf (float);
+float __s_cosf (float);
float __s_expf (float);
float __s_expf_1u (float);
float __s_logf (float);
@@ -41,6 +43,8 @@ typedef __attribute__((__neon_vector_type__(2))) double __f64x2_t;
#endif
/* Vector functions following the base PCS. */
+__f32x4_t __v_sinf (__f32x4_t);
+__f32x4_t __v_cosf (__f32x4_t);
__f32x4_t __v_expf (__f32x4_t);
__f32x4_t __v_expf_1u (__f32x4_t);
__f32x4_t __v_logf (__f32x4_t);
@@ -50,12 +54,16 @@ __f64x2_t __v_exp (__f64x2_t);
#define __vpcs __attribute__((__aarch64_vector_pcs__))
/* Vector functions following the vector PCS. */
+__vpcs __f32x4_t __vn_sinf (__f32x4_t);
+__vpcs __f32x4_t __vn_cosf (__f32x4_t);
__vpcs __f32x4_t __vn_expf (__f32x4_t);
__vpcs __f32x4_t __vn_expf_1u (__f32x4_t);
__vpcs __f32x4_t __vn_logf (__f32x4_t);
__vpcs __f64x2_t __vn_exp (__f64x2_t);
/* Vector functions following the vector PCS using ABI names. */
+__vpcs __f32x4_t _ZGVnN4v_sinf (__f32x4_t);
+__vpcs __f32x4_t _ZGVnN4v_cosf (__f32x4_t);
__vpcs __f32x4_t _ZGVnN4v_expf (__f32x4_t);
__vpcs __f32x4_t _ZGVnN4v_logf (__f32x4_t);
__vpcs __f64x2_t _ZGVnN2v_exp (__f64x2_t);