diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-01-24 05:37:34 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-01-24 05:37:34 +0000 |
commit | 6d48403efd1706a31753f3b81b316604ec7d7610 (patch) | |
tree | 8c73d0cd34ab791370836e7a97478f38ae8c68c3 /cpukit/score/cpu/m68k/rtems | |
parent | 2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-6d48403efd1706a31753f3b81b316604ec7d7610.tar.bz2 |
2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/score/m68k.h: *_swap_u16( uint16_t ).
Diffstat (limited to 'cpukit/score/cpu/m68k/rtems')
-rw-r--r-- | cpukit/score/cpu/m68k/rtems/score/m68k.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/score/cpu/m68k/rtems/score/m68k.h b/cpukit/score/cpu/m68k/rtems/score/m68k.h index 9b9b7ec8df..b9af1c52dd 100644 --- a/cpukit/score/cpu/m68k/rtems/score/m68k.h +++ b/cpukit/score/cpu/m68k/rtems/score/m68k.h @@ -354,8 +354,8 @@ static inline unsigned int m68k_swap_u32( return( swapped ); } -static inline unsigned int m68k_swap_u16( - unsigned int value +static inline uint16_t m68k_swap_u16( + uint16_t value ) { return (((value & 0xff) << 8) | ((value >> 8) & 0xff)); @@ -376,11 +376,11 @@ static inline unsigned int m68k_swap_u32( return( swapped ); } -static inline unsigned int m68k_swap_u16( - unsigned int value +static inline uint16_t m68k_swap_u16( + uint16_t value ) { - unsigned short swapped = value; + uint16_t swapped = value; asm volatile( "rorw #8,%0" : "=d" (swapped) : "0" (swapped) ); |