libgphoto2 photo camera library (libgphoto2) Internals
2.5.26
|
#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) ((uint16_t)(((x)[0]<<8)|(x)[1])) |
#define | be32atoh(x) ((uint32_t)(((x)[0]<<24)|((x)[1]<<16)|((x)[2]<<8)|(x)[3])) |
#define | be64atoh_x(x, off, shift) (((uint64_t)((x)[off]))<<shift) |
#define | be64atoh(x) |
#define | le16atoh(x) ((uint16_t)(((x)[1]<<8)|(x)[0])) |
#define | le32atoh(x) ((uint32_t)(((x)[3]<<24)|((x)[2]<<16)|((x)[1]<<8)|(x)[0])) |
#define | le64atoh_x(x, off, shift) (((uint64_t)(x)[off])<<shift) |
#define | le64atoh(x) |
#define | htobe16a(a, x) (a)[0]=(uint8_t)((x)>>8), (a)[1]=(uint8_t)(x) |
#define | htobe32a(a, x) |
#define | htobe64a(a, x) |
#define | htole16a(a, x) (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) |
#define | htole32a(a, x) |
#define | htole64a(a, x) |
#define be16atoh | ( | x | ) | ((uint16_t)(((x)[0]<<8)|(x)[1])) |
Definition at line 128 of file gphoto2-endian.h.
#define be16toh | ( | x | ) | htobe16(x) |
Definition at line 69 of file gphoto2-endian.h.
#define BE16TOH | ( | x | ) | (x) = be16toh(x) |
Definition at line 78 of file gphoto2-endian.h.
#define be32atoh | ( | x | ) | ((uint32_t)(((x)[0]<<24)|((x)[1]<<16)|((x)[2]<<8)|(x)[3])) |
Definition at line 129 of file gphoto2-endian.h.
#define be32toh | ( | x | ) | htobe32(x) |
Definition at line 72 of file gphoto2-endian.h.
#define BE32TOH | ( | x | ) | (x) = be32toh(x) |
Definition at line 77 of file gphoto2-endian.h.
#define be64atoh | ( | x | ) |
Definition at line 131 of file gphoto2-endian.h.
#define be64atoh_x | ( | x, | |
off, | |||
shift | |||
) | (((uint64_t)((x)[off]))<<shift) |
Definition at line 130 of file gphoto2-endian.h.
#define be64toh | ( | x | ) | swap64(x) |
Definition at line 112 of file gphoto2-endian.h.
#define BE64TOH | ( | x | ) | (x) = be64toh(x) |
Definition at line 116 of file gphoto2-endian.h.
#define htobe16 | ( | x | ) | swap16(x) |
Definition at line 53 of file gphoto2-endian.h.
#define HTOBE16 | ( | x | ) | (x) = htobe16(x) |
Definition at line 75 of file gphoto2-endian.h.
#define htobe16a | ( | a, | |
x | |||
) | (a)[0]=(uint8_t)((x)>>8), (a)[1]=(uint8_t)(x) |
Definition at line 139 of file gphoto2-endian.h.
#define htobe32 | ( | x | ) | swap32(x) |
Definition at line 64 of file gphoto2-endian.h.
#define HTOBE32 | ( | x | ) | (x) = htobe32(x) |
Definition at line 76 of file gphoto2-endian.h.
#define htobe32a | ( | a, | |
x | |||
) |
Definition at line 140 of file gphoto2-endian.h.
#define htobe64 | ( | x | ) | swap64(x) |
Definition at line 109 of file gphoto2-endian.h.
#define HTOBE64 | ( | x | ) | (x) = htobe64(x) |
Definition at line 115 of file gphoto2-endian.h.
#define htobe64a | ( | a, | |
x | |||
) |
Definition at line 142 of file gphoto2-endian.h.
#define htole16 | ( | x | ) | (x) |
Definition at line 82 of file gphoto2-endian.h.
#define HTOLE16 | ( | x | ) | (void) (x) |
Definition at line 100 of file gphoto2-endian.h.
#define htole16a | ( | a, | |
x | |||
) | (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) |
Definition at line 146 of file gphoto2-endian.h.
#define htole32 | ( | x | ) | (x) |
Definition at line 85 of file gphoto2-endian.h.
#define HTOLE32 | ( | x | ) | (void) (x) |
Definition at line 101 of file gphoto2-endian.h.
#define htole32a | ( | a, | |
x | |||
) |
Definition at line 147 of file gphoto2-endian.h.
#define htole64 | ( | x | ) | (x) |
Definition at line 88 of file gphoto2-endian.h.
#define HTOLE64 | ( | x | ) | (void) (x) |
Definition at line 102 of file gphoto2-endian.h.
#define htole64a | ( | a, | |
x | |||
) |
Definition at line 149 of file gphoto2-endian.h.
#define le16atoh | ( | x | ) | ((uint16_t)(((x)[1]<<8)|(x)[0])) |
Definition at line 133 of file gphoto2-endian.h.
#define le16toh | ( | x | ) | (x) |
Definition at line 91 of file gphoto2-endian.h.
#define LE16TOH | ( | x | ) | (void) (x) |
Definition at line 103 of file gphoto2-endian.h.
#define le32atoh | ( | x | ) | ((uint32_t)(((x)[3]<<24)|((x)[2]<<16)|((x)[1]<<8)|(x)[0])) |
Definition at line 134 of file gphoto2-endian.h.
#define le32toh | ( | x | ) | (x) |
Definition at line 94 of file gphoto2-endian.h.
#define LE32TOH | ( | x | ) | (void) (x) |
Definition at line 104 of file gphoto2-endian.h.
#define le64atoh | ( | x | ) |
Definition at line 136 of file gphoto2-endian.h.
#define le64atoh_x | ( | x, | |
off, | |||
shift | |||
) | (((uint64_t)(x)[off])<<shift) |
Definition at line 135 of file gphoto2-endian.h.
#define le64toh | ( | x | ) | (x) |
Definition at line 97 of file gphoto2-endian.h.
#define LE64TOH | ( | x | ) | (void) (x) |
Definition at line 105 of file gphoto2-endian.h.
#define swap16 | ( | x | ) | ((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8))) |
Definition at line 14 of file gphoto2-endian.h.
#define swap32 | ( | x | ) |
Definition at line 15 of file gphoto2-endian.h.
#define swap64 | ( | x | ) |
Definition at line 21 of file gphoto2-endian.h.