Back to index

glibc  2.9
Defines | Functions
byteswap.h File Reference

Go to the source code of this file.

Defines

#define __bswap_constant_16(x)   ((((x) >> 8) & 0xffu) | (((x) & 0xffu) << 8))
#define __bswap_constant_32(x)

Functions

static __inline unsigned short int __bswap_16 (unsigned short int __bsx)
static __inline unsigned int __bswap_32 (unsigned int __bsx)

Define Documentation

#define __bswap_constant_16 (   x)    ((((x) >> 8) & 0xffu) | (((x) & 0xffu) << 8))

Definition at line 30 of file byteswap.h.

#define __bswap_constant_32 (   x)
Value:
((((x) & 0xff000000u) >> 24) | (((x) & 0x00ff0000u) >>  8) |         \
      (((x) & 0x0000ff00u) <<  8) | (((x) & 0x000000ffu) << 24))

Definition at line 46 of file byteswap.h.


Function Documentation

static __inline unsigned short int __bswap_16 ( unsigned short int  __bsx) [static]

Definition at line 39 of file byteswap.h.

{
  return __bswap_constant_16 (__bsx);
}
static __inline unsigned int __bswap_32 ( unsigned int  __bsx) [static]

Definition at line 65 of file byteswap.h.

{
  return __bswap_constant_32 (__bsx);
}