Changeset 6d48403 in rtems


Ignore:
Timestamp:
Jan 24, 2005, 5:37:34 AM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
a992b8e
Parents:
afbadfb
Message:

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

  • rtems/score/m68k.h: *_swap_u16( uint16_t ).
Location:
cpukit/score/cpu/m68k
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/m68k/ChangeLog

    rafbadfb r6d48403  
     12005-01-24      Ralf Corsepius <ralf.corsepius@rtems.org>
     2
     3        * rtems/score/m68k.h: *_swap_u16( uint16_t ).
     4
    152005-01-24      Ralf Corsepius <ralf.corsepius@rtems.org>
    26
  • cpukit/score/cpu/m68k/rtems/score/m68k.h

    rafbadfb r6d48403  
    355355}
    356356 
    357 static inline unsigned int m68k_swap_u16(
    358   unsigned int value
     357static inline uint16_t m68k_swap_u16(
     358  uint16_t value
    359359)
    360360{
     
    377377}
    378378
    379 static inline unsigned int m68k_swap_u16(
    380   unsigned int value
     379static inline uint16_t m68k_swap_u16(
     380  uint16_t value
    381381)
    382382{
    383   unsigned short swapped = value;
     383  uint16_t swapped = value;
    384384
    385385  asm volatile( "rorw  #8,%0" : "=d" (swapped) : "0" (swapped) );
Note: See TracChangeset for help on using the changeset viewer.