diff options
author | Sang-Hoon Park <sang-hoon.park@arm.com> | 2021-03-04 17:03:46 +0000 |
---|---|---|
committer | Sang-Hoon Park <sang-hoon.park@arm.com> | 2021-03-05 09:22:27 +0000 |
commit | dcf3c7e1591cfac19ee2b800141df3b3fe45062d (patch) | |
tree | 3384387140c8955c24269f5e52788cdfb1de48d5 /src/core/NEON/NEMath.h | |
parent | ca419dde35118fcfe07fa0a5ce388c0a40b75c49 (diff) | |
download | ComputeLibrary-dcf3c7e1591cfac19ee2b800141df3b3fe45062d.tar.gz |
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 <sang-hoon.park@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5215
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/NEON/NEMath.h')
-rw-r--r-- | src/core/NEON/NEMath.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/core/NEON/NEMath.h b/src/core/NEON/NEMath.h index 877ffb2827..13484c9c15 100644 --- a/src/core/NEON/NEMath.h +++ b/src/core/NEON/NEMath.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2020 Arm Limited. + * Copyright (c) 2016-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -205,6 +205,24 @@ void convert_float32x4x4_to_uint8x16(const float32x4x4_t &in, uint8x16_t &out); */ void convert_float32x4x4_to_int8x16(const float32x4x4_t &in, int8x16_t &out); +/** Converts from float vector to integer vector + * + * @param[in] in Float vector to converted + * + * @return The converted integer vector + */ +template <typename float_vec_type, typename int_vec_type> +int_vec_type convert_float_to_int(const float_vec_type &in); + +/** Converts from integer vector to float vector + * + * @param[in] in Integer vector to converted + * + * @return The converted float vector + */ +template <typename float_vec_type, typename int_vec_type> +float_vec_type convert_int_to_float(const int_vec_type &in); + /** Calculate sine. * * @param[in] val Input vector value in radians, F32 format. |