aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/NEON/NEMath.h
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2019-10-16 19:21:40 +0100
committerMichele Di Giorgio <michele.digiorgio@arm.com>2019-11-06 15:53:24 +0000
commitdbdea0d1c025b18d4d82c278c87454427918f5b4 (patch)
tree68bc25452f5d5b41006fb507c41516446cf8e457 /arm_compute/core/NEON/NEMath.h
parent75d47330e7ca0325cf5d83711452f6aeb085998f (diff)
downloadComputeLibrary-dbdea0d1c025b18d4d82c278c87454427918f5b4.tar.gz
COMPMID-2308: NEConvolutionLayer: support QUANT8_SYMM_PER_CHANNEL filters
Change-Id: Ic1bf5f0d21ccd525f84213a360f7e199d7f50577 Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/c/2177 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/NEON/NEMath.h')
-rw-r--r--arm_compute/core/NEON/NEMath.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arm_compute/core/NEON/NEMath.h b/arm_compute/core/NEON/NEMath.h
index 560abd6cdc..8593059b1a 100644
--- a/arm_compute/core/NEON/NEMath.h
+++ b/arm_compute/core/NEON/NEMath.h
@@ -129,6 +129,17 @@ float32x4_t vpowq_f32(float32x4_t val, float32x4_t n);
* @note This function calculates the following expression: (x + 2^n -1 ) / 2^n where n = exponent
*
* @param[in] x Vector of 4 elements
+ * @param[in] exponent Vector of 4 elements with integer value used to round to nearest division by a power-of-two
+ *
+ * @return the nearest division by a power-of-two using exponent
+ */
+int32x4_t rounding_divide_by_pow2(int32x4_t x, int32x4_t exponent);
+
+/** Round to the nearest division by a power-of-two using exponent
+ *
+ * @note This function calculates the following expression: (x + 2^n -1 ) / 2^n where n = exponent
+ *
+ * @param[in] x Vector of 4 elements
* @param[in] exponent Integer value used to round to nearest division by a power-of-two
*
* @return the nearest division by a power-of-two using exponent