RTEMS: CPUEndian

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Macros
CPUEndian
Internal » SuperCore » CPU Architecture Support » Example

CPUEndian. More...

## Macros
#define | CPU_swap_u16(value) (((value&0xff) << 8) | ((value >> 8)&0xff))

## Detailed Description

CPUEndian.

## Macro Definition Documentation

## ◆ CPU_swap_u16

#define CPU_swap_u16 | ( |  | value | ) | (((value&0xff) << 8) | ((value >> 8)&0xff))

This routine swaps a 16 bir quantity.

Parameters

  [in] | value | is the value to be swapped

Returns
  the value after being endian swapped