diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-12-03 14:30:05 +0000 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-01-14 17:53:22 +0000 |
commit | 5a5945387e70f62e6e1e95a177fae261d7570443 (patch) | |
tree | ff8bd61c2e071b5a0b923f4a0d1bef72486435e9 /arm_compute/core/NEON/wrapper/intrinsics/neg.h | |
parent | dea2d2d58fe3a742e6f66fe50befbe0044e15ad1 (diff) | |
download | ComputeLibrary-5a5945387e70f62e6e1e95a177fae261d7570443.tar.gz |
COMPMID-1809: Remove padding in NEGEMMConvolutionLayer 64-bit path.
Change-Id: I1806591a2c73a1f057f13d8c6107d7b9796a82c8
Reviewed-on: https://review.mlplatform.org/370
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Diffstat (limited to 'arm_compute/core/NEON/wrapper/intrinsics/neg.h')
-rw-r--r-- | arm_compute/core/NEON/wrapper/intrinsics/neg.h | 39 |
1 files changed, 16 insertions, 23 deletions
diff --git a/arm_compute/core/NEON/wrapper/intrinsics/neg.h b/arm_compute/core/NEON/wrapper/intrinsics/neg.h index 0ea1d429fe..7072866003 100644 --- a/arm_compute/core/NEON/wrapper/intrinsics/neg.h +++ b/arm_compute/core/NEON/wrapper/intrinsics/neg.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 ARM Limited. + * Copyright (c) 2018-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -30,36 +30,29 @@ namespace arm_compute { namespace wrapper { -#define VNEG_IMPL(vtype, postfix) \ - inline vtype vneg(const vtype &a) \ - { \ - return vneg_##postfix(a); \ +#define VNEG_IMPL(vtype, prefix, postfix) \ + inline vtype vneg(const vtype &a) \ + { \ + return prefix##_##postfix(a); \ } -VNEG_IMPL(int8x8_t, s8) -VNEG_IMPL(int16x4_t, s16) -VNEG_IMPL(int32x2_t, s32) -VNEG_IMPL(float32x2_t, f32) +VNEG_IMPL(int8x8_t, vneg, s8) +VNEG_IMPL(int16x4_t, vneg, s16) +VNEG_IMPL(int32x2_t, vneg, s32) +VNEG_IMPL(float32x2_t, vneg, f32) #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC -VNEG_IMPL(float16x4_t, f16) +VNEG_IMPL(float16x4_t, vneg, f16) #endif // __ARM_FEATURE_FP16_VECTOR_ARITHMETIC -#undef VNEG_IMPL -#define VNEGQ_IMPL(vtype, postfix) \ - inline vtype vnegq(const vtype &a) \ - { \ - return vnegq_##postfix(a); \ - } - -VNEGQ_IMPL(int8x16_t, s8) -VNEGQ_IMPL(int16x8_t, s16) -VNEGQ_IMPL(int32x4_t, s32) -VNEGQ_IMPL(float32x4_t, f32) +VNEG_IMPL(int8x16_t, vnegq, s8) +VNEG_IMPL(int16x8_t, vnegq, s16) +VNEG_IMPL(int32x4_t, vnegq, s32) +VNEG_IMPL(float32x4_t, vnegq, f32) #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC -VNEGQ_IMPL(float16x8_t, f16) +VNEG_IMPL(float16x8_t, vnegq, f16) #endif // __ARM_FEATURE_FP16_VECTOR_ARITHMETIC -#undef VNEGQ_IMPL +#undef VNEG_IMPL } // namespace wrapper } // namespace arm_compute #endif /* __ARM_COMPUTE_WRAPPER_NEG_H__ */ |