You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/06/15 15:07:59 UTC
[incubator-nuttx] 03/08: arch/xtensa/xtensa_int_handlers.S: Remove unused macro.
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 48f20af8bcd5b870f974c30adb6afed0e1edb96c
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Fri Jun 10 14:16:14 2022 +0200
arch/xtensa/xtensa_int_handlers.S: Remove unused macro.
Signed-off-by: Abdelatif Guettouche <ab...@espressif.com>
---
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
*