Back to index

glibc  2.9
Defines
byteswap.h File Reference
#include <bits/wordsize.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define __bswap_constant_16(x)   ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))
#define __bswap_16(x)
#define __bswap_constant_32(x)
#define __bswap_32(x)

Define Documentation

#define __bswap_16 (   x)
Value:
(__extension__                                                       \
      ({ register unsigned short int __x = (x); __bswap_constant_16 (__x); }))

Definition at line 48 of file byteswap.h.

#define __bswap_32 (   x)
Value:
(__extension__                                                       \
      ({ register unsigned int __x = (x); __bswap_constant_32 (__x); }))

Definition at line 92 of file byteswap.h.

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

Definition at line 31 of file byteswap.h.

#define __bswap_constant_32 (   x)
Value:
((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >>  8) |                  \
      (((x) & 0x0000ff00) <<  8) | (((x) & 0x000000ff) << 24))

Definition at line 55 of file byteswap.h.