Changeset 552a80fc in rtems


Ignore:
Timestamp:
Nov 9, 2011, 3:15:25 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
0f7afe50
Parents:
4689f30c
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

    r4689f30c r552a80fc  
     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
    162011-09-27      Sebastian Huber <sebastian.huber@embedded-brains.de>
    27
  • cpukit/score/cpu/lm32/rtems/score/cpu.h

    r4689f30c r552a80fc  
    12591259 *  @return the value after being endian swapped
    12601260 */
    1261 #define CPU_swap_u16( value ) \
    1262   (((value&0xff) << 8) | ((value >> 8)&0xff))
     1261static inline uint16_t CPU_swap_u16(uint16_t v)
     1262{
     1263    return v << 8 | v >> 8;
     1264}
    12631265
    12641266#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.