Skip to content

Commit

Permalink
update code for comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
yajunxiaMS committed Jul 21, 2023
1 parent e56425d commit 67484b9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ports_module/cortex_a7/gnu/inc/tx_port.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,7 @@ typedef unsigned short USHORT;
#define TX_SEMAPHORE_DELETE_EXTENSION(semaphore_ptr)
#define TX_TIMER_DELETE_EXTENSION(timer_ptr)


/* Determine if the ARM architecture has the CLZ instruction. This is available on
architectures v5 and above. If available, redefine the macro for calculating the
lowest bit set. */
/* Redefine the macro for calculating the lowest bit set. */
#define TX_LOWEST_SET_BIT_CALCULATE(m, b) m = m & ((ULONG) (-((LONG) m))); \
asm volatile (" CLZ %0,%1 ": "=r" (b) : "r" (m) ); \
b = 31 - b;
Expand Down

0 comments on commit 67484b9

Please sign in to comment.