diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2017-06-22 12:57:51 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | bbd9fb95daa08d6da67c567b40ca2cd032f7a2d3 (patch) | |
tree | c1401585f64396d6f22bb790442d8183f3a17a9e /arm_compute/core/FixedPoint.h | |
parent | 2eac5bd444d16e4e81c427d5a99e1534b387e211 (diff) | |
download | ComputeLibrary-bbd9fb95daa08d6da67c567b40ca2cd032f7a2d3.tar.gz |
COMPMID-412: Port PoolingLayer to use fixed point 16.
Change-Id: I2005de4c7c14526996309826d33a0ec8e732d2d5
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/78720
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Steven Niu <steven.niu@arm.com>
Diffstat (limited to 'arm_compute/core/FixedPoint.h')
-rw-r--r-- | arm_compute/core/FixedPoint.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arm_compute/core/FixedPoint.h b/arm_compute/core/FixedPoint.h index f166d93c3e..82c2d3347e 100644 --- a/arm_compute/core/FixedPoint.h +++ b/arm_compute/core/FixedPoint.h @@ -40,6 +40,24 @@ using qint64_t = int64_t; /**< 64 bit fixed point scalar value */ */ qint8_t sqshl_qs8(qint8_t a, int shift); +/** 8 bit fixed point scalar shift right + * + * @param[in] a First 8 bit fixed point input + * @param[in] shift Shift amount (positive only values) + * + * @return The result of the 8 bit fixed point shift + */ +qint8_t sshr_qs8(qint8_t a, int shift); + +/** 16 bit fixed point scalar shift right + * + * @param[in] a First 16 bit fixed point input + * @param[in] shift Shift amount (positive only values) + * + * @return The result of the 16 bit fixed point shift + */ +qint16_t sshr_qs16(qint16_t a, int shift); + /** 16 bit fixed point scalar saturating shift left * * @param[in] a First 16 bit fixed point input |