cpu/byteorder.h File Reference
Functions to convert integers to/from host byte-order. More...
#include <cfg/compiler.h>#include <cpu/attr.h>Go to the source code of this file.
Functions | |
| uint16_t | swab16 (uint16_t x) |
| Swap upper and lower bytes in a 16-bit value. | |
| uint32_t | swab32 (uint32_t x) |
| Reverse bytes in a 32-bit value (e.g. | |
| uint64_t | swab64 (uint64_t x) |
| Reverse bytes in a 64-bit value. | |
| float | swab_float (float x) |
| Reverse bytes in a float value. | |
Detailed Description
Functions to convert integers to/from host byte-order.
- Version:
- Id
- byteorder.h 2506 2009-04-15 08:29:07Z duplo
Definition in file cpu/byteorder.h.
Function Documentation
| uint32_t swab32 | ( | uint32_t | x | ) | [inline] |
Reverse bytes in a 32-bit value (e.g.
: 0x12345678 -> 0x78563412).
Definition at line 57 of file cpu/byteorder.h.
