From 48f20af8bcd5b870f974c30adb6afed0e1edb96c Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Fri, 10 Jun 2022 14:16:14 +0200 Subject: [PATCH] arch/xtensa/xtensa_int_handlers.S: Remove unused macro. Signed-off-by: Abdelatif Guettouche --- arch/xtensa/src/common/xtensa_int_handlers.S | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/arch/xtensa/src/common/xtensa_int_handlers.S b/arch/xtensa/src/common/xtensa_int_handlers.S index d8bfc9de25..28946006f9 100644 --- a/arch/xtensa/src/common/xtensa_int_handlers.S +++ b/arch/xtensa/src/common/xtensa_int_handlers.S @@ -91,25 +91,6 @@ g_intstacktop: * Assembly Language Macros ****************************************************************************/ -/**************************************************************************** - * Macro extract_msb - return the input with only the highest bit set. - * - * Entry Conditions/Side Effects: - * Input : "ain" - Input value, clobbered. - * Output : "aout" - Output value, has only one bit set, MSB of "ain". - * - * The two arguments must be different AR registers. - * - ****************************************************************************/ - - .macro extract_msb aout ain -1: - addi \aout, \ain, -1 /* aout = ain - 1 */ - and \ain, \ain, \aout /* ain = ain & aout */ - bnez \ain, 1b /* Repeat until ain == 0 */ - addi \aout, \aout, 1 /* Return aout + 1 */ - .endm - /**************************************************************************** * Macro dispatch_c_isr level mask tmp *