forked from Imagelibrary/rtems
2009-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Remove warnings.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user