libgphoto2 photo camera library (libgphoto2) Internals
2.5.23
|
#include <_stdint.h>
Go to the source code of this file.
Macros | |
#define | swap16(x) ((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8))) |
#define | swap32(x) |
#define | swap64(x) |
#define | htobe16(x) swap16(x) |
#define | htobe32(x) swap32(x) |
#define | be16toh(x) htobe16(x) |
#define | be32toh(x) htobe32(x) |
#define | HTOBE16(x) (x) = htobe16(x) |
#define | HTOBE32(x) (x) = htobe32(x) |
#define | BE32TOH(x) (x) = be32toh(x) |
#define | BE16TOH(x) (x) = be16toh(x) |
#define | htole16(x) (x) |
#define | htole32(x) (x) |
#define | htole64(x) (x) |
#define | le16toh(x) (x) |
#define | le32toh(x) (x) |
#define | le64toh(x) (x) |
#define | HTOLE16(x) (void) (x) |
#define | HTOLE32(x) (void) (x) |
#define | HTOLE64(x) (void) (x) |
#define | LE16TOH(x) (void) (x) |
#define | LE32TOH(x) (void) (x) |
#define | LE64TOH(x) (void) (x) |
#define | htobe64(x) swap64(x) |
#define | be64toh(x) swap64(x) |
#define | HTOBE64(x) (x) = htobe64(x) |
#define | BE64TOH(x) (x) = be64toh(x) |
#define | be16atoh(x) be16toh(*(uint16_t*)(x)) |
#define | be32atoh(x) be32toh(*(uint32_t*)(x)) |
#define | be64atoh(x) be64toh(*(uint64_t*)(x)) |
#define | le16atoh(x) le16toh(*(uint16_t*)(x)) |
#define | le32atoh(x) le32toh(*(uint32_t*)(x)) |
#define | le64atoh(x) le64toh(*(uint64_t*)(x)) |
#define | htobe16a(a, x) *(uint16_t*)(a) = htobe16(x) |
#define | htobe32a(a, x) *(uint32_t*)(a) = htobe32(x) |
#define | htobe64a(a, x) *(uint64_t*)(a) = htobe64(x) |
#define | htole16a(a, x) *(uint16_t*)(a) = htole16(x) |
#define | htole32a(a, x) *(uint32_t*)(a) = htole32(x) |
#define | htole64a(a, x) *(uint64_t*)(a) = htole64(x) |
#define be16atoh | ( | x | ) | be16toh(*(uint16_t*)(x)) |
Definition at line 131 of file gphoto2-endian.h.
#define be16toh | ( | x | ) | htobe16(x) |
Definition at line 70 of file gphoto2-endian.h.
#define BE16TOH | ( | x | ) | (x) = be16toh(x) |
Definition at line 79 of file gphoto2-endian.h.
#define be32atoh | ( | x | ) | be32toh(*(uint32_t*)(x)) |
Definition at line 134 of file gphoto2-endian.h.
#define be32toh | ( | x | ) | htobe32(x) |
Definition at line 73 of file gphoto2-endian.h.
#define BE32TOH | ( | x | ) | (x) = be32toh(x) |
Definition at line 78 of file gphoto2-endian.h.
#define be64atoh | ( | x | ) | be64toh(*(uint64_t*)(x)) |
Definition at line 137 of file gphoto2-endian.h.
#define be64toh | ( | x | ) | swap64(x) |
Definition at line 113 of file gphoto2-endian.h.
#define BE64TOH | ( | x | ) | (x) = be64toh(x) |
Definition at line 117 of file gphoto2-endian.h.
#define htobe16 | ( | x | ) | swap16(x) |
Definition at line 54 of file gphoto2-endian.h.
#define HTOBE16 | ( | x | ) | (x) = htobe16(x) |
Definition at line 76 of file gphoto2-endian.h.
#define htobe16a | ( | a, | |
x | |||
) | *(uint16_t*)(a) = htobe16(x) |
Definition at line 150 of file gphoto2-endian.h.
#define htobe32 | ( | x | ) | swap32(x) |
Definition at line 65 of file gphoto2-endian.h.
#define HTOBE32 | ( | x | ) | (x) = htobe32(x) |
Definition at line 77 of file gphoto2-endian.h.
#define htobe32a | ( | a, | |
x | |||
) | *(uint32_t*)(a) = htobe32(x) |
Definition at line 153 of file gphoto2-endian.h.
#define htobe64 | ( | x | ) | swap64(x) |
Definition at line 110 of file gphoto2-endian.h.
#define HTOBE64 | ( | x | ) | (x) = htobe64(x) |
Definition at line 116 of file gphoto2-endian.h.
#define htobe64a | ( | a, | |
x | |||
) | *(uint64_t*)(a) = htobe64(x) |
Definition at line 156 of file gphoto2-endian.h.
#define htole16 | ( | x | ) | (x) |
Definition at line 83 of file gphoto2-endian.h.
#define HTOLE16 | ( | x | ) | (void) (x) |
Definition at line 101 of file gphoto2-endian.h.
#define htole16a | ( | a, | |
x | |||
) | *(uint16_t*)(a) = htole16(x) |
Definition at line 159 of file gphoto2-endian.h.
#define htole32 | ( | x | ) | (x) |
Definition at line 86 of file gphoto2-endian.h.
#define HTOLE32 | ( | x | ) | (void) (x) |
Definition at line 102 of file gphoto2-endian.h.
#define htole32a | ( | a, | |
x | |||
) | *(uint32_t*)(a) = htole32(x) |
Definition at line 162 of file gphoto2-endian.h.
#define htole64 | ( | x | ) | (x) |
Definition at line 89 of file gphoto2-endian.h.
#define HTOLE64 | ( | x | ) | (void) (x) |
Definition at line 103 of file gphoto2-endian.h.
#define htole64a | ( | a, | |
x | |||
) | *(uint64_t*)(a) = htole64(x) |
Definition at line 165 of file gphoto2-endian.h.
#define le16atoh | ( | x | ) | le16toh(*(uint16_t*)(x)) |
Definition at line 140 of file gphoto2-endian.h.
#define le16toh | ( | x | ) | (x) |
Definition at line 92 of file gphoto2-endian.h.
#define LE16TOH | ( | x | ) | (void) (x) |
Definition at line 104 of file gphoto2-endian.h.
#define le32atoh | ( | x | ) | le32toh(*(uint32_t*)(x)) |
Definition at line 143 of file gphoto2-endian.h.
#define le32toh | ( | x | ) | (x) |
Definition at line 95 of file gphoto2-endian.h.
#define LE32TOH | ( | x | ) | (void) (x) |
Definition at line 105 of file gphoto2-endian.h.
#define le64atoh | ( | x | ) | le64toh(*(uint64_t*)(x)) |
Definition at line 146 of file gphoto2-endian.h.
#define le64toh | ( | x | ) | (x) |
Definition at line 98 of file gphoto2-endian.h.
#define LE64TOH | ( | x | ) | (void) (x) |
Definition at line 106 of file gphoto2-endian.h.
#define swap16 | ( | x | ) | ((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8))) |
Definition at line 15 of file gphoto2-endian.h.
#define swap32 | ( | x | ) |
Definition at line 16 of file gphoto2-endian.h.
#define swap64 | ( | x | ) |
Definition at line 22 of file gphoto2-endian.h.