summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/i386/rtems/score/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/cpu/i386/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/i386/rtems/score/cpu.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/cpukit/score/cpu/i386/rtems/score/cpu.h b/cpukit/score/cpu/i386/rtems/score/cpu.h
index 3f0e3369f9..6cfeee6b9b 100644
--- a/cpukit/score/cpu/i386/rtems/score/cpu.h
+++ b/cpukit/score/cpu/i386/rtems/score/cpu.h
@@ -552,14 +552,13 @@ extern void _CPU_Fatal_halt(uint32_t source, uint32_t error)
#define _CPU_Bitfield_Find_first_bit( _value, _output ) \
{ \
- register uint16_t __value_in_register = (_value); \
- \
- _output = 0; \
- \
+ register uint16_t __value_in_register = ( _value ); \
+ uint16_t __output = 0; \
__asm__ volatile ( "bsfw %0,%1 " \
- : "=r" (__value_in_register), "=r" (_output) \
- : "0" (__value_in_register), "1" (_output) \
+ : "=r" ( __value_in_register ), "=r" ( __output ) \
+ : "0" ( __value_in_register ), "1" ( __output ) \
); \
+ ( _output ) = __output; \
}
/* end of Bitfield handler macros */