Go to the source code of this file.
Defines | |
| #define | stdf_bswap_16(x) |
| Swap bytes in a 16 bit value. | |
| #define | stdf_bswap_32(x) |
| Swap bytes in a 32 bit value. | |
| #define | stdf_bswap_64(x) |
| Swap bytes in a 64 bit value. | |
|
|
Value: x = ((((x) & 0xff00) >> 8) | \
(((x) & 0x00ff) << 8))
|
|
|
Value: x = ((((x) & 0xff000000) >> 24) | \
(((x) & 0x00ff0000) >> 8) | \
(((x) & 0x0000ff00) << 8) | \
(((x) & 0x000000ff) << 24))
|
|
|
Value: x = ((((x) & 0xff00000000000000) >> 56) | \
(((x) & 0x00ff000000000000) >> 40) | \
(((x) & 0x0000ff0000000000) >> 24) | \
(((x) & 0x000000ff00000000) >> 8) | \
(((x) & 0x00000000ff000000) << 8) | \
(((x) & 0x0000000000ff0000) << 24) | \
(((x) & 0x000000000000ff00) << 40) | \
(((x) & 0x00000000000000ff) << 56))
|
1.4.6