Data Structures | |
| struct | EndianCfg |
| Arguments for the endian calls, where each call reads only the members it needs. More... | |
| struct | EndianNs |
| Type of an endian dispatch table. More... | |
Enumerations | |
| enum | mmgr_endian_width { MMGR_ENDIAN_16 , MMGR_ENDIAN_32 , MMGR_ENDIAN_64 } |
| Width of one endian read or write, counted in bytes. More... | |
Functions | |
| EMBED_HOST_DEVICE size_t | mmgr_wr_le (const EndianCfg *args) |
| Writes args->width bytes of args->val to args->dst and does not reverse them. | |
| EMBED_HOST_DEVICE uint64_t | mmgr_rd_le (const EndianCfg *args) |
| Reads args->width bytes from args->src and does not reverse them. | |
| EMBED_HOST_DEVICE size_t | mmgr_wr_be (const EndianCfg *args) |
| Reverses args->val, then writes args->width bytes of it to args->dst. | |
| EMBED_HOST_DEVICE uint64_t | mmgr_rd_be (const EndianCfg *args) |
| Reads args->width bytes from args->src, then reverses them. | |
| EMBED_HOST_DEVICE uint64_t | mmgr_endian_rev (const EndianCfg *args) |
| Reverses the byte order of args->val at args->width bytes. | |
Variables | |
| static const EndianNs | parva_extremitas |
| Dispatch table instance named parva_extremitas, the little endian order. | |
| static const EndianNs | magna_extremitas |
| Dispatch table instance named magna_extremitas, the big endian order. | |
| enum mmgr_endian_width |
Width of one endian read or write, counted in bytes.
| Enumerator | |
|---|---|
| MMGR_ENDIAN_16 | Two bytes. |
| MMGR_ENDIAN_32 | Four bytes. |
| MMGR_ENDIAN_64 | Eight bytes. |
| EMBED_HOST_DEVICE size_t mmgr_wr_le | ( | const EndianCfg * | args | ) |
Writes args->width bytes of args->val to args->dst and does not reverse them.
| [in,out] | args | Destination, value and width [BORROWS]. |
References mmgr_wr_le().
Referenced by mmgr_wr_le().
| EMBED_HOST_DEVICE uint64_t mmgr_rd_le | ( | const EndianCfg * | args | ) |
Reads args->width bytes from args->src and does not reverse them.
| [in] | args | Source and width [BORROWS]. |
References mmgr_rd_le().
Referenced by mmgr_rd_le().
| EMBED_HOST_DEVICE size_t mmgr_wr_be | ( | const EndianCfg * | args | ) |
Reverses args->val, then writes args->width bytes of it to args->dst.
| [in,out] | args | Destination, value and width [BORROWS]. |
References mmgr_wr_be().
Referenced by mmgr_wr_be().
| EMBED_HOST_DEVICE uint64_t mmgr_rd_be | ( | const EndianCfg * | args | ) |
Reads args->width bytes from args->src, then reverses them.
| [in] | args | Source and width [BORROWS]. |
References mmgr_rd_be().
Referenced by mmgr_rd_be().
| EMBED_HOST_DEVICE uint64_t mmgr_endian_rev | ( | const EndianCfg * | args | ) |
Reverses the byte order of args->val at args->width bytes.
| [in] | args | Value and width [BORROWS]. |
References mmgr_endian_rev().
Referenced by mmgr_endian_rev().
|
static |
Dispatch table instance named parva_extremitas, the little endian order.
|
static |
Dispatch table instance named magna_extremitas, the big endian order.