Changeset c937e8fc in rtems


Ignore:
Timestamp:
11/09/11 15:15:40 (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10
Children:
e3fbffb
Parents:
41fb7c4
Message:

2011-11-09 Werner Almesberger <werner@…>

PR 1955/cpukit

  • rtems/score/cpu.h: Convert CPU_swap_u16 into a static inline.
Location:
cpukit/score/cpu/lm32
Files:
2 edited

Legend:

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

    r41fb7c4 rc937e8fc  
     12011-11-09      Werner Almesberger <werner@almesberger.net>
     2
     3        PR 1955/cpukit
     4        * rtems/score/cpu.h: Convert CPU_swap_u16 into a static inline.
     5
    162010-05-29      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • cpukit/score/cpu/lm32/rtems/score/cpu.h

    r41fb7c4 rc937e8fc  
    12731273 *  @return the value after being endian swapped
    12741274 */
    1275 #define CPU_swap_u16( value ) \
    1276   (((value&0xff) << 8) | ((value >> 8)&0xff))
     1275static inline uint16_t CPU_swap_u16(uint16_t v)
     1276{
     1277    return v << 8 | v >> 8;
     1278}
    12771279
    12781280#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.