From db5f70726127ae28321c1bf3dad824315472beae Mon Sep 17 00:00:00 2001 From: Evgeniy Paltsev Date: Tue, 12 Oct 2021 22:29:24 +0300 Subject: [PATCH] ARC: MWDT: drop LOG2CEIL macro as it's defined now for all toolchains LOG2CEIL is defined now for all tolchains in include/toolchain/common.h so let's drop it's definition for MWDT toolchain in include/linker/linker-tool-mwdt.h Signed-off-by: Eugeniy Paltsev Signed-off-by: Evgeniy Paltsev --- include/linker/linker-tool-mwdt.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/linker/linker-tool-mwdt.h b/include/linker/linker-tool-mwdt.h index 59fb7b54997..890b66300c1 100644 --- a/include/linker/linker-tool-mwdt.h +++ b/include/linker/linker-tool-mwdt.h @@ -21,16 +21,6 @@ #define ASSERT(x, y) #define SUBALIGN(x) ALIGN(x) -#define LOG2CEIL(x) ((((x) <= 2048) ? 11 : (((x) <= 4096)?12:(((x) <= 8192) ? \ - 13 : (((x) <= 16384) ? 14 : (((x) <= 32768) ? 15:(((x) <= 65536) ? \ - 16 : (((x) <= 131072) ? 17 : (((x) <= 262144) ? 18:(((x) <= 524288) ? \ - 19 : (((x) <= 1048576) ? 20 : (((x) <= 2097152) ? \ - 21 : (((x) <= 4194304) ? 22 : (((x) <= 8388608) ? \ - 23 : (((x) <= 16777216) ? 24 : (((x) <= 33554432) ? \ - 25 : (((x) <= 67108864) ? 26 : (((x) <= 134217728) ? \ - 27 : (((x) <= 268435456) ? 28 : (((x) <= 536870912) ? \ - 29 : (((x) <= 1073741824) ? 30 : (((x) <= 2147483648) ? \ - 31 : 32)))))))))))))))))))))) /* * The GROUP_START() and GROUP_END() macros are used to define a group * of sections located in one memory area, such as RAM, ROM, etc.