CSL 5.2

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

Classes | Macros | Functions
lo_endian.h File Reference
`#include <sys/types.h>`
`#include <stdint.h>`
`#include <netinet/in.h>`

Go to the source code of this file.

## Classes
union | lo_split64

## Macros
#define | lo_swap16(x) htons(x)
#define | lo_swap32(x) htonl(x)
#define | lo_htoo16 lo_swap16
#define | lo_htoo32 lo_swap32
#define | lo_htoo64 lo_swap64
#define | lo_otoh16 lo_swap16
#define | lo_otoh32 lo_swap32
#define | lo_otoh64 lo_swap64

## Functions
static uint64_t | lo_swap64 (uint64_t x)

## Macro Definition Documentation

#define lo_swap16 | ( |  | x | ) | htons(x)

Definition at line 34 of file lo_endian.h.

#define lo_swap32 | ( |  | x | ) | htonl(x)

Definition at line 36 of file lo_endian.h.

Referenced by lo_swap64().

#define lo_htoo16 lo_swap16

Definition at line 111 of file lo_endian.h.

#define lo_htoo32 lo_swap32

Definition at line 112 of file lo_endian.h.

#define lo_htoo64 lo_swap64

Definition at line 113 of file lo_endian.h.

#define lo_otoh16 lo_swap16

Definition at line 114 of file lo_endian.h.

#define lo_otoh32 lo_swap32

Definition at line 115 of file lo_endian.h.

#define lo_otoh64 lo_swap64

Definition at line 116 of file lo_endian.h.

## Function Documentation

static uint64_t lo_swap64 | ( | uint64_t | x | ) |
| inline static

Definition at line 89 of file lo_endian.h.

References lo_split64::a, lo_split64::all, lo_split64::b, lo_swap32, and lo_split64::part.