dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
Loading...
Searching...
No Matches
dxd_endian.h File Reference
This graph shows which files directly or indirectly include this file:

Classes

struct  dxd::adjust<endian_t>
struct  dxd::adjust<host>
struct  dxd::adjust<swap>

Namespaces

namespace  dxd
 dynax driver framework kernel namespace

Macros

#define BE32(v32)
#define LE32
#define SWAP32(v32)

Enumerations

enum  dxd::endian { dxd::little_endian , dxd::big_endian , dxd::host =little_endian , dxd::swap =big_endian }
 what the data on the wire is, not what the machine is: a swap happens where the two disagree, so the same driver source serves either host More...

Macro Definition Documentation

◆ BE32

#define BE32(v32)
Value:
SWAP32(v32)
#define SWAP32(v32)
Definition dxd_endian.h:30

◆ LE32

#define LE32

◆ SWAP32

#define SWAP32(v32)
Value:
(((v32)>>24)|(((v32)>>8)&0xff00)|(((v32)&0xff00)<<8)|(((v32)&0xff)<<24))