forked from Imagelibrary/rtems
2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/score/sh.h: *_swap_u16( uint16_t ).
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* rtems/score/sh.h: *_swap_u16( uint16_t ).
|
||||
|
||||
2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* rtems/score/types.h: #include <rtems/stdint.h>.
|
||||
|
||||
@@ -201,11 +201,11 @@ static inline unsigned int sh_swap_u32(
|
||||
return( swapped );
|
||||
}
|
||||
|
||||
static inline unsigned int sh_swap_u16(
|
||||
unsigned int value
|
||||
static inline uint16_t sh_swap_u16(
|
||||
uint16_t value
|
||||
)
|
||||
{
|
||||
register unsigned int swapped ;
|
||||
register uint16_t swapped ;
|
||||
|
||||
asm volatile ( "swap.b %1,%0" : "=r" (swapped) : "r" (value) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user