diff options
author | John Kesapides <john.kesapides@arm.com> | 2019-03-04 16:29:22 +0000 |
---|---|---|
committer | Pablo Marquez <pablo.tello@arm.com> | 2019-03-13 13:34:48 +0000 |
commit | adfb2737046028c042f0aecaff87733a442da29f (patch) | |
tree | 23b08fb9529075277e51dc1ae7e6489f690c9698 /src/core/Rounding.cpp | |
parent | 381fcf20c3ee028e14c154ff4b75bc7410f91168 (diff) | |
download | ComputeLibrary-adfb2737046028c042f0aecaff87733a442da29f.tar.gz |
COMPMID-1935 Add support for QASYMM8 in NEQuantizeLayer
Change-Id: I2b63a644d8e34f91c830d9ac398debcbdca3e497
Signed-off-by: John Kesapides <john.kesapides@arm.com>
Reviewed-on: https://review.mlplatform.org/c/829
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/Rounding.cpp')
-rw-r--r-- | src/core/Rounding.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/Rounding.cpp b/src/core/Rounding.cpp index fea635be97..da6e5f6099 100644 --- a/src/core/Rounding.cpp +++ b/src/core/Rounding.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -50,7 +50,13 @@ int arm_compute::round(float x, RoundingPolicy rounding_policy) } case RoundingPolicy::TO_NEAREST_EVEN: { +#ifdef __aarch64__ + asm("fcvtns %x[res], %s[value]" + : [res] "=r"(rounded) + : [value] "w"(x)); +#else // __aarch64__ ARM_COMPUTE_ERROR("TO_NEAREST_EVEN rounding policy is not supported."); +#endif // __aarch64__ break; } default: |