2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>

* rtems/score/sh.h: *_swap_u16( uint16_t ).
This commit is contained in:
Ralf Corsepius
2005-01-24 05:37:38 +00:00
parent 6d48403efd
commit a992b8e70b
2 changed files with 7 additions and 3 deletions

View File

@@ -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> 2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/score/types.h: #include <rtems/stdint.h>. * rtems/score/types.h: #include <rtems/stdint.h>.

View File

@@ -201,11 +201,11 @@ static inline unsigned int sh_swap_u32(
return( swapped ); return( swapped );
} }
static inline unsigned int sh_swap_u16( static inline uint16_t sh_swap_u16(
unsigned int value uint16_t value
) )
{ {
register unsigned int swapped ; register uint16_t swapped ;
asm volatile ( "swap.b %1,%0" : "=r" (swapped) : "r" (value) ); asm volatile ( "swap.b %1,%0" : "=r" (swapped) : "r" (value) );