include/bytesex.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define const_bswap16(x)
#define const_bswap32(x)
#define sys_lefloat(x)   sys_bswapf(x)
#define sys_le32(x)   sys_bswap32(x)
#define sys_le16(x)   sys_bswap16(x)
#define sys_befloat(x)   (x)
#define sys_be32(x)   (x)
#define sys_be16(x)   (x)
#define const_le32(x)   const_bswap32(x)
#define const_le16(x)   const_bswap16(x)
#define const_be32(x)   (x)
#define const_be16(x)   (x)

Functions

static uint16_t sys_bswap16 (uint16_t x)
static uint32_t sys_bswap32 (uint32_t x)
static uint32_t sys_bswapf (uint32_t x)

Define Documentation

#define const_be16 (  )     (x)

Definition at line 45 of file bytesex.h.

#define const_be32 (  )     (x)

Definition at line 44 of file bytesex.h.

#define const_bswap16 (  ) 
Value:
((uint16_t)( \
                (((uint16_t)(x) & (uint16_t)0x00ffU) << 8) | \
                (((uint16_t)(x) & (uint16_t)0xff00U) >> 8)))

Definition at line 8 of file bytesex.h.

Referenced by sys_bswap16().

#define const_bswap32 (  ) 
Value:
((uint32_t)( \
                (((uint32_t)(x) & (uint32_t)0x000000ffUL) << 24) | \
                (((uint32_t)(x) & (uint32_t)0x0000ff00UL) <<  8) | \
                (((uint32_t)(x) & (uint32_t)0x00ff0000UL) >>  8) | \
                (((uint32_t)(x) & (uint32_t)0xff000000UL) >> 24)))

Definition at line 13 of file bytesex.h.

Referenced by sys_bswap32(), and sys_bswapf().

#define const_le16 (  )     const_bswap16(x)

Definition at line 43 of file bytesex.h.

#define const_le32 (  )     const_bswap32(x)

Definition at line 42 of file bytesex.h.

#define sys_be16 (  )     (x)

Definition at line 41 of file bytesex.h.

Referenced by set_df_fci(), set_ef_fci(), and set_fci().

#define sys_be32 (  )     (x)

Definition at line 40 of file bytesex.h.

#define sys_befloat (  )     (x)

Definition at line 39 of file bytesex.h.

#define sys_le16 (  )     sys_bswap16(x)

Definition at line 38 of file bytesex.h.

Referenced by byteswap_desc(), and get_endpoint().

#define sys_le32 (  )     sys_bswap32(x)

Definition at line 37 of file bytesex.h.

Referenced by _PC_to_RDR(), byteswap_desc(), and do_recv().

#define sys_lefloat (  )     sys_bswapf(x)

Definition at line 36 of file bytesex.h.


Function Documentation

static uint16_t sys_bswap16 ( uint16_t  x  )  [inline, static]

Definition at line 20 of file bytesex.h.

References const_bswap16.

static uint32_t sys_bswap32 ( uint32_t  x  )  [inline, static]

Definition at line 25 of file bytesex.h.

References const_bswap32.

static uint32_t sys_bswapf ( uint32_t  x  )  [inline, static]

Definition at line 30 of file bytesex.h.

References const_bswap32.

Generated on Sun Jan 2 08:34:35 2011 for ccid-utils by  doxygen 1.6.3