aboutsummaryrefslogtreecommitdiff
path: root/src/core/common
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2020-10-19 12:41:30 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2020-10-29 18:53:24 +0000
commitc4d45559b00cdbdca80296c23be5939439fbbbd0 (patch)
treeb8a76b8592de3cb5b8474b2a84e598fa32620b6a /src/core/common
parent27d92fd5da6ad16c9e3b38d82402a86cf7b208aa (diff)
downloadComputeLibrary-c4d45559b00cdbdca80296c23be5939439fbbbd0.tar.gz
COMPMID-3853: Decouple NEActivationLayer
Decouple datatypes and remove Activation template. Binary size dropped by 25Kb. Signed-off-by: Michalis Spyrou <michalis.spyrou@arm.com> Change-Id: I32c207db124895fee25b56437f9495403315b867 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4217 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/common')
-rw-r--r--src/core/common/Registrars.h18
1 files changed, 18 insertions, 0 deletions
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 */