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

Macros

#define __DX_CAT(id1, id2)
#define __DX_CAT_VERSION(mj, mn, s, d, b)
#define __DX_CAT_VERSION_SHORT_0(mj, mn, s)
#define __DX_CAT_VERSION_SHORT_1   __DX_CAT_VERSION_SHORT_S
#define __DX_CAT_VERSION_SHORT_2   __DX_CAT_VERSION_SHORT_S
#define __DX_CAT_VERSION_SHORT_3   __DX_CAT_VERSION_SHORT_S
#define __DX_CAT_VERSION_SHORT_4   __DX_CAT_VERSION_SHORT_S
#define __DX_CAT_VERSION_SHORT_5   __DX_CAT_VERSION_SHORT_S
#define __DX_CAT_VERSION_SHORT_6   __DX_CAT_VERSION_SHORT_S
#define __DX_CAT_VERSION_SHORT_7   __DX_CAT_VERSION_SHORT_S
#define __DX_CAT_VERSION_SHORT_8   __DX_CAT_VERSION_SHORT_S
#define __DX_CAT_VERSION_SHORT_9   __DX_CAT_VERSION_SHORT_S
#define __DX_CAT_VERSION_SHORT_S(mj, mn, s)
#define __DX_DEC(bcd)
#define __DX_FIRST(first, ...)
#define __DX_LSTRINGIFY(x)
#define __DX_NEXT(first, ...)
#define __DX_STRINGIFY(...)
#define DX_BCD(x)
#define DX_BUILD_INFO   " debug build " __DATE__ " " __TIME__
#define DX_CAT(id1, id2)
#define DX_CAT_VERSION(mj, mn, s, d, b)
#define DX_CAT_VERSION_SHORT(mj, mn, s)
#define DX_CFSTRINGIFY(...)
#define DX_DEBUG
#define DX_DEC(bcd)
#define DX_FIRST(...)
#define DX_GUID_FORMAT   %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x
#define DX_GUID_SPLIT(g)
#define DX_LSTRINGIFY(x)
#define DX_NEXT(...)
#define DX_PLATFORM_SDK   DX_VERSION32_COMBINE(DX_PLATFORM_SDK_MAJOR,DX_PLATFORM_SDK_MINOR,DX_PLATFORM_SDK_SUB,0,0)
#define DX_STRINGIFY(...)
#define DX_SWAP32(v32)
#define DX_VERSION   DX_CAT_VERSION(DX_VERSION_MAJOR,DX_VERSION_MINOR,DX_VERSION_SUB,DX_VERSION_DEPLOYMENT,DX_VERSION_BUILD)
#define DX_VERSION32   DX_VERSION32_COMBINE(DX_DEC(DX_VERSION_MAJOR),DX_VERSION_MINOR,DX_VERSION_SUB,DX_DEC(DX_VERSION_DEPLOYMENT),DX_DEC(DX_VERSION_BUILD))
#define DX_VERSION32_BUILD(v32)
#define DX_VERSION32_COMBINE(M, m, s, d, b)
#define DX_VERSION32_DEPLOYMENT(v32)
#define DX_VERSION32_FORMAT(v32)
#define DX_VERSION32_FORMAT_SHORT(v32)
#define DX_VERSION32_MAJOR(v32)
#define DX_VERSION32_MINOR(v32)
#define DX_VERSION32_SUB(v32)
#define DX_VERSION_FORMAT   %x.%d.%d%x%x
#define DX_VERSION_FORMAT_SHORT   %x.%d.%d
#define DX_VERSION_MASK_BUILD   0x00000fff
#define DX_VERSION_MASK_COMPATIBILITY   0xffffffff
#define DX_VERSION_MASK_DEPLOYMENT   0x0000f000
#define DX_VERSION_MASK_MAJOR   0xff000000
#define DX_VERSION_MASK_MINOR   0x00f00000
#define DX_VERSION_MASK_SUB   0x000f0000
#define DX_VERSION_SHIFT_DEPLOYMENT   12
#define DX_VERSION_SHIFT_MAJOR   24
#define DX_VERSION_SHIFT_MINOR   20
#define DX_VERSION_SHIFT_SUB   16
#define DX_VERSION_SHORT   DX_CAT_VERSION_SHORT(DX_VERSION_MAJOR,DX_VERSION_MINOR,DX_VERSION_SUB)
 the release by its number alone, as etc/tools.sh's short() and dx::version() read a final build: neither deployment letter nor build number, a sub of 0 dropped (1.0, 1.0.1)
#define sizeof_array(array)

Macro Definition Documentation

◆ __DX_CAT

#define __DX_CAT(id1, id2)
Value:
id1##id2

◆ __DX_CAT_VERSION

#define __DX_CAT_VERSION(mj, mn, s, d, b)
Value:
mj##.##mn##.##s##d##b

◆ __DX_CAT_VERSION_SHORT_0

#define __DX_CAT_VERSION_SHORT_0(mj, mn, s)
Value:
mj##.##mn

◆ __DX_CAT_VERSION_SHORT_1

#define __DX_CAT_VERSION_SHORT_1   __DX_CAT_VERSION_SHORT_S

◆ __DX_CAT_VERSION_SHORT_2

#define __DX_CAT_VERSION_SHORT_2   __DX_CAT_VERSION_SHORT_S

◆ __DX_CAT_VERSION_SHORT_3

#define __DX_CAT_VERSION_SHORT_3   __DX_CAT_VERSION_SHORT_S

◆ __DX_CAT_VERSION_SHORT_4

#define __DX_CAT_VERSION_SHORT_4   __DX_CAT_VERSION_SHORT_S

◆ __DX_CAT_VERSION_SHORT_5

#define __DX_CAT_VERSION_SHORT_5   __DX_CAT_VERSION_SHORT_S

◆ __DX_CAT_VERSION_SHORT_6

#define __DX_CAT_VERSION_SHORT_6   __DX_CAT_VERSION_SHORT_S

◆ __DX_CAT_VERSION_SHORT_7

#define __DX_CAT_VERSION_SHORT_7   __DX_CAT_VERSION_SHORT_S

◆ __DX_CAT_VERSION_SHORT_8

#define __DX_CAT_VERSION_SHORT_8   __DX_CAT_VERSION_SHORT_S

◆ __DX_CAT_VERSION_SHORT_9

#define __DX_CAT_VERSION_SHORT_9   __DX_CAT_VERSION_SHORT_S

◆ __DX_CAT_VERSION_SHORT_S

#define __DX_CAT_VERSION_SHORT_S(mj, mn, s)
Value:
mj##.##mn##.##s

◆ __DX_DEC

#define __DX_DEC(bcd)
Value:
0x##bcd

◆ __DX_FIRST

#define __DX_FIRST(first, ...)
Value:
first

◆ __DX_LSTRINGIFY

#define __DX_LSTRINGIFY(x)
Value:
L#x

◆ __DX_NEXT

#define __DX_NEXT(first, ...)
Value:
__VA_OPT__(,) __VA_ARGS__

◆ __DX_STRINGIFY

#define __DX_STRINGIFY(...)
Value:
#__VA_ARGS__

◆ DX_BCD

#define DX_BCD(x)
Value:
(((((x)/ 10)% 10)<< 4)+ ((x)% 10))

◆ DX_BUILD_INFO

#define DX_BUILD_INFO   " debug build " __DATE__ " " __TIME__

◆ DX_CAT

#define DX_CAT(id1, id2)
Value:
__DX_CAT(id1,id2)
#define __DX_CAT(id1, id2)
Definition dx_macros.h:40

◆ DX_CAT_VERSION

#define DX_CAT_VERSION(mj, mn, s, d, b)
Value:
__DX_CAT_VERSION(mj,mn,s,d,b)
#define __DX_CAT_VERSION(mj, mn, s, d, b)
Definition dx_macros.h:28

◆ DX_CAT_VERSION_SHORT

#define DX_CAT_VERSION_SHORT(mj, mn, s)
Value:
DX_CAT(__DX_CAT_VERSION_SHORT_,s)(mj,mn,s)
#define DX_CAT(id1, id2)
Definition dx_macros.h:50

◆ DX_CFSTRINGIFY

#define DX_CFSTRINGIFY(...)
Value:
CFSTR(__DX_STRINGIFY(__VA_ARGS__))
#define __DX_STRINGIFY(...)
Definition dx_macros.h:26

◆ DX_DEBUG

#define DX_DEBUG

◆ DX_DEC

#define DX_DEC(bcd)
Value:
#define __DX_DEC(bcd)
Definition dx_macros.h:41

◆ DX_FIRST

#define DX_FIRST(...)
Value:
__DX_FIRST(__VA_ARGS__)
#define __DX_FIRST(first,...)
Definition dx_macros.h:42

◆ DX_GUID_FORMAT

#define DX_GUID_FORMAT   %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x

◆ DX_GUID_SPLIT

#define DX_GUID_SPLIT(g)
Value:
(g).Data1,(g).Data2,(g).Data3,(g).Data4[0],(g).Data4[1],(g).Data4[2],(g).Data4[3],(g).Data4[4],(g).Data4[5],(g).Data4[6],(g).Data4[7]

◆ DX_LSTRINGIFY

#define DX_LSTRINGIFY(x)
Value:
#define __DX_LSTRINGIFY(x)
Definition dx_macros.h:27

◆ DX_NEXT

#define DX_NEXT(...)
Value:
__DX_NEXT(__VA_ARGS__)
#define __DX_NEXT(first,...)
Definition dx_macros.h:43

◆ DX_PLATFORM_SDK

#define DX_PLATFORM_SDK   DX_VERSION32_COMBINE(DX_PLATFORM_SDK_MAJOR,DX_PLATFORM_SDK_MINOR,DX_PLATFORM_SDK_SUB,0,0)

◆ DX_STRINGIFY

#define DX_STRINGIFY(...)
Value:
__DX_STRINGIFY(__VA_ARGS__)

◆ DX_SWAP32

#define DX_SWAP32(v32)
Value:
(((v32)<< 24)| (((v32) &0xff0000)>> 8)| (((v32) &0xff00)<< 8)| ((v32)>> 24))

◆ DX_VERSION

◆ DX_VERSION32

◆ DX_VERSION32_BUILD

#define DX_VERSION32_BUILD(v32)
Value:
#define DX_VERSION_MASK_BUILD
Definition dx_macros.h:74

◆ DX_VERSION32_COMBINE

#define DX_VERSION32_COMBINE(M, m, s, d, b)
Value:
#define DX_VERSION_SHIFT_MAJOR
Definition dx_macros.h:75
#define DX_VERSION_SHIFT_MINOR
Definition dx_macros.h:76
#define DX_VERSION_SHIFT_DEPLOYMENT
Definition dx_macros.h:78
#define DX_VERSION_SHIFT_SUB
Definition dx_macros.h:77

◆ DX_VERSION32_DEPLOYMENT

#define DX_VERSION32_DEPLOYMENT(v32)
Value:
#define DX_VERSION_MASK_DEPLOYMENT
Definition dx_macros.h:73

◆ DX_VERSION32_FORMAT

#define DX_VERSION32_FORMAT(v32)
Value:
#define DX_VERSION32_MAJOR(v32)
Definition dx_macros.h:82
#define DX_VERSION32_BUILD(v32)
Definition dx_macros.h:86
#define DX_VERSION32_SUB(v32)
Definition dx_macros.h:84
#define DX_VERSION32_DEPLOYMENT(v32)
Definition dx_macros.h:85
#define DX_VERSION32_MINOR(v32)
Definition dx_macros.h:83

◆ DX_VERSION32_FORMAT_SHORT

#define DX_VERSION32_FORMAT_SHORT(v32)

◆ DX_VERSION32_MAJOR

#define DX_VERSION32_MAJOR(v32)
Value:
#define DX_VERSION_MASK_MAJOR
Definition dx_macros.h:70

◆ DX_VERSION32_MINOR

#define DX_VERSION32_MINOR(v32)
Value:
#define DX_VERSION_MASK_MINOR
Definition dx_macros.h:71

◆ DX_VERSION32_SUB

#define DX_VERSION32_SUB(v32)
Value:
#define DX_VERSION_MASK_SUB
Definition dx_macros.h:72

◆ DX_VERSION_FORMAT

#define DX_VERSION_FORMAT   %x.%d.%d%x%x

◆ DX_VERSION_FORMAT_SHORT

#define DX_VERSION_FORMAT_SHORT   %x.%d.%d

◆ DX_VERSION_MASK_BUILD

#define DX_VERSION_MASK_BUILD   0x00000fff

◆ DX_VERSION_MASK_COMPATIBILITY

#define DX_VERSION_MASK_COMPATIBILITY   0xffffffff

◆ DX_VERSION_MASK_DEPLOYMENT

#define DX_VERSION_MASK_DEPLOYMENT   0x0000f000

◆ DX_VERSION_MASK_MAJOR

#define DX_VERSION_MASK_MAJOR   0xff000000

◆ DX_VERSION_MASK_MINOR

#define DX_VERSION_MASK_MINOR   0x00f00000

◆ DX_VERSION_MASK_SUB

#define DX_VERSION_MASK_SUB   0x000f0000

◆ DX_VERSION_SHIFT_DEPLOYMENT

#define DX_VERSION_SHIFT_DEPLOYMENT   12

◆ DX_VERSION_SHIFT_MAJOR

#define DX_VERSION_SHIFT_MAJOR   24

◆ DX_VERSION_SHIFT_MINOR

#define DX_VERSION_SHIFT_MINOR   20

◆ DX_VERSION_SHIFT_SUB

#define DX_VERSION_SHIFT_SUB   16

◆ DX_VERSION_SHORT

the release by its number alone, as etc/tools.sh's short() and dx::version() read a final build: neither deployment letter nor build number, a sub of 0 dropped (1.0, 1.0.1)

◆ sizeof_array

#define sizeof_array(array)
Value:
(sizeof(array)/sizeof((array)[0]))