From dcf3c7e1591cfac19ee2b800141df3b3fe45062d Mon Sep 17 00:00:00 2001 From: Sang-Hoon Park Date: Thu, 4 Mar 2021 17:03:46 +0000 Subject: Move utility functions to NE/SVEMath To avoid unused function warnings when only partial data types are selected, the definition of functions are moved. Partially Resolves: COMPMID-4282 Change-Id: Ic30ddd3f2c88cac5978d27e5f4ada3639b5a04e5 Signed-off-by: Sang-Hoon Park Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5215 Reviewed-by: Georgios Pinitas Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- src/core/NEON/SVEMath.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/core/NEON/SVEMath.h') diff --git a/src/core/NEON/SVEMath.h b/src/core/NEON/SVEMath.h index 075cb457e3..b73043a435 100644 --- a/src/core/NEON/SVEMath.h +++ b/src/core/NEON/SVEMath.h @@ -171,6 +171,18 @@ svfloat32_t svpow_f32_z(svbool_t pg, svfloat32_t a, svfloat32_t b); */ svfloat16_t svpow_f16_z(svbool_t pg, svfloat16_t a, svfloat16_t b); +/** Convert and pack four 32-bit float vectors into an 8-bit integer vector + * + * @param[in] in_0 The first float vector + * @param[in] in_1 The second float vector + * @param[in] in_2 The third float vector + * @param[in] in_3 The fourth float vector + * + * @return The converted integer vector + */ +template +int_vec_type convert_float_to_int(const svfloat32_t &in_0, const svfloat32_t &in_1, const svfloat32_t &in_2, const svfloat32_t &in_3); + } // namespace arm_compute #include "src/core/NEON/SVEMath.inl" #endif /* defined(__ARM_FEATURE_SVE) */ -- cgit v1.2.1