2009-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>

* rtems/score/cpu.h: Remove warnings.
This commit is contained in:
Joel Sherrill
2009-05-05 19:37:10 +00:00
parent 2f1f2ed05b
commit 4848b56083
2 changed files with 8 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
2009-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Remove warnings.
2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and

View File

@@ -828,14 +828,14 @@ static inline uint32_t CPU_swap_u32(
#endif
}
static inline uint16_t CPU_swap_u16(uint16_t value)
static inline uint16_t CPU_swap_u16(uint16_t value)
{
uint16_t lower;
uint16_t upper;
value = value & (uint16_t ) 0xffff;
lower = (value >> 8) ;
upper = (value << 8) ;
value = value & (uint16_t) 0xffff;
lower = (value >> 8);
upper = (value << 8) & 0xff;
return (lower | upper);
}