diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2017-06-26 14:18:47 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:16:42 +0100 |
commit | 172e57028ef14f2f8d6c56edc53c5c85f97e07cd (patch) | |
tree | b3fe8c05902f07fb2381cf6dfd893654c8ccb63f /tests/validation/FixedPoint.h | |
parent | 579c0498e161215be1a36080b0b454e5198a992a (diff) | |
download | ComputeLibrary-172e57028ef14f2f8d6c56edc53c5c85f97e07cd.tar.gz |
COMPMID-425 Port CLBatchnormalization to support QS8/QS16
Change-Id: I46c93305f377666ea0915ff789b7dfdfff596087
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/78862
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'tests/validation/FixedPoint.h')
-rw-r--r-- | tests/validation/FixedPoint.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/validation/FixedPoint.h b/tests/validation/FixedPoint.h index 261fcd6df6..ab6f14a49b 100644 --- a/tests/validation/FixedPoint.h +++ b/tests/validation/FixedPoint.h @@ -768,7 +768,7 @@ struct functions x2 = shift_right(mul(x2, three_minus_dx), 1); } - return (shift < 0) ? shift_left(x2, -shift >> 1) : shift_right(x2, shift >> 1); + return (shift < 0) ? shift_left(x2, (-shift) >> 1) : shift_right(x2, shift >> 1); } /** Calculate the hyperbolic tangent of a fixed point number * |