From 1c893b540454ffd46e72cf0fce9e7e6d962195b5 Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Wed, 26 May 2021 12:06:14 +0200 Subject: Optimizations Removing the ASSERT() makro using assert() instead. assert() is better controlled with the NDEBUG define. Using uintptr_t instead of uint32_t * for the NPU base address. This saves a division by 4 in the register read and write functions. Change-Id: I65a91fe35dc63666e50bdf7a756ad15b56dc66e9 --- src/ethosu_common.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/ethosu_common.h') diff --git a/src/ethosu_common.h b/src/ethosu_common.h index 30f07be..bf3aff0 100644 --- a/src/ethosu_common.h +++ b/src/ethosu_common.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2020 Arm Limited. All rights reserved. + * Copyright (c) 2019-2021 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * @@ -105,12 +105,6 @@ #define LOG_DEBUG(format, ...) #endif -#if defined(ASSERT_DISABLE) -#define ASSERT(args) -#else -#define ASSERT(args) assert(args) -#endif - #define UNUSED(x) ((void)x) #define VER_STR(X) VNUM_STR(X) -- cgit v1.2.1