From c4d45559b00cdbdca80296c23be5939439fbbbd0 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Mon, 19 Oct 2020 12:41:30 +0100 Subject: COMPMID-3853: Decouple NEActivationLayer Decouple datatypes and remove Activation template. Binary size dropped by 25Kb. Signed-off-by: Michalis Spyrou Change-Id: I32c207db124895fee25b56437f9495403315b867 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4217 Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas Comments-Addressed: Arm Jenkins --- src/core/common/Registrars.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/core/common') diff --git a/src/core/common/Registrars.h b/src/core/common/Registrars.h index 421a5a1899..dcea3e8d38 100644 --- a/src/core/common/Registrars.h +++ b/src/core/common/Registrars.h @@ -36,4 +36,22 @@ #define REGISTER_FP32_NEON(func_name) nullptr #endif /* defined(ENABLE_FP32_KERNELS) */ +#if defined(ENABLE_QASYMM8_SIGNED_KERNELS) +#define REGISTER_QASYMM8_SIGNED_NEON(func_name) &(func_name) +#else /* defined(ENABLE_QASYMM8_SIGNED_KERNELS) */ +#define REGISTER_QASYMM8_SIGNED_NEON(func_name) nullptr +#endif /* defined(ENABLE_QASYMM8_SIGNED_KERNELS) */ + +#if defined(ENABLE_QASYMM8_KERNELS) +#define REGISTER_QASYMM8_NEON(func_name) &(func_name) +#else /* defined(ENABLE_QASYMM8_KERNELS) */ +#define REGISTER_QASYMM8_NEON(func_name) nullptr +#endif /* defined(ENABLE_QASYMM8_KERNELS) */ + +#if defined(ENABLE_QSYMM16_KERNELS) +#define REGISTER_QSYMM16_NEON(func_name) &(func_name) +#else /* defined(ENABLE_QSYMM16_KERNELS) */ +#define REGISTER_QSYMM16_NEON(func_name) nullptr +#endif /* defined(ENABLE_QSYMM16_KERNELS) */ + #endif /* SRC_CORE_COMMON_REGISTRARS_H */ -- cgit v1.2.1