dxd - dynax driver framework  3209
cross platform open source driver development framework
dx_macros.h File Reference
+ This graph shows which files directly or indirectly include this file:

Macros

#define __DX_BCD(bcd)   0x##bcd
 
#define __DX_CAT(id1, id2)   id1##id2
 
#define __DX_CAT_VERSION(mj, mn, s, d, b)   mj##.##mn##.##s##d##b
 
#define __DX_LSTRINGIFY(x)   L#x
 
#define __DX_STRINGIFY(x)   #x
 
#define DX_BCD(bcd)   __DX_BCD(bcd)
 
#define DX_BUILD_INFO   " debug build " __DATE__ " " __TIME__
 
#define DX_CAT(id1, id2)   __DX_CAT(id1,id2)
 
#define DX_CAT_VERSION(mj, mn, s, d, b)   __DX_CAT_VERSION(mj,mn,s,d,b)
 
#define DX_DEBUG
 
#define DX_GUID_FORMAT   %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x
 
#define DX_GUID_SPLIT(g)   (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]
 
#define DX_LSTRINGIFY(x)   __DX_LSTRINGIFY(x)
 
#define DX_PLATFORM_SDK   DX_VERSION32_COMBINE(DX_PLATFORM_SDK_MAJOR,DX_PLATFORM_SDK_MINOR,DX_PLATFORM_SDK_SUB,0,0)
 
#define DX_STRINGIFY(x)   __DX_STRINGIFY(x)
 
#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_BCD(DX_VERSION_MAJOR),DX_VERSION_MINOR,DX_VERSION_SUB,DX_BCD(DX_VERSION_DEPLOYMENT),DX_BCD(DX_VERSION_BUILD))
 
#define DX_VERSION32_BUILD(v32)   ((v32)&DX_VERSION_MASK_BUILD)
 
#define DX_VERSION32_COMBINE(M, m, s, d, b)   (((M)<<DX_VERSION_SHIFT_MAJOR)|((m)<<DX_VERSION_SHIFT_MINOR)|((s)<<DX_VERSION_SHIFT_SUB)|((d)<<DX_VERSION_SHIFT_DEPLOYMENT)|((b)))
 
#define DX_VERSION32_DEPLOYMENT(v32)   (((v32)&DX_VERSION_MASK_DEPLOYMENT)>>DX_VERSION_SHIFT_DEPLOYMENT)
 
#define DX_VERSION32_FORMAT(v32)   DX_VERSION32_MAJOR(v32),DX_VERSION32_MINOR(v32),DX_VERSION32_SUB(v32),DX_VERSION32_DEPLOYMENT(v32),DX_VERSION32_BUILD(v32)
 
#define DX_VERSION32_FORMAT_SHORT(v32)   DX_VERSION32_MAJOR(v32),DX_VERSION32_MINOR(v32),DX_VERSION32_SUB(v32)
 
#define DX_VERSION32_MAJOR(v32)   (((v32)&DX_VERSION_MASK_MAJOR)>>DX_VERSION_SHIFT_MAJOR)
 
#define DX_VERSION32_MINOR(v32)   (((v32)&DX_VERSION_MASK_MINOR)>>DX_VERSION_SHIFT_MINOR)
 
#define DX_VERSION32_SUB(v32)   (((v32)&DX_VERSION_MASK_SUB)>>DX_VERSION_SHIFT_SUB)
 
#define DX_VERSION_FORMAT   %x.%d.%d%x%x
 
#define DX_VERSION_FORMAT_SHORT   %x.%d.%d
 
#define DX_VERSION_MASK_BUILD   0x000003ff
 
#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 sizeof_array(array)   (sizeof(array)/sizeof((array)[0]))
 

Macro Definition Documentation

◆ __DX_BCD

#define __DX_BCD (   bcd)    0x##bcd

◆ __DX_CAT

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

◆ __DX_CAT_VERSION

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

◆ __DX_LSTRINGIFY

#define __DX_LSTRINGIFY (   x)    L#x

◆ __DX_STRINGIFY

#define __DX_STRINGIFY (   x)    #x

◆ DX_BCD

#define DX_BCD (   bcd)    __DX_BCD(bcd)

◆ DX_BUILD_INFO

#define DX_BUILD_INFO   " debug build " __DATE__ " " __TIME__

◆ DX_CAT

#define DX_CAT (   id1,
  id2 
)    __DX_CAT(id1,id2)

◆ DX_CAT_VERSION

#define DX_CAT_VERSION (   mj,
  mn,
  s,
  d,
 
)    __DX_CAT_VERSION(mj,mn,s,d,b)

◆ DX_DEBUG

#define DX_DEBUG

◆ 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)    (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)    __DX_LSTRINGIFY(x)

◆ 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 (   x)    __DX_STRINGIFY(x)

◆ DX_VERSION

◆ DX_VERSION32

◆ DX_VERSION32_BUILD

#define DX_VERSION32_BUILD (   v32)    ((v32)&DX_VERSION_MASK_BUILD)

◆ DX_VERSION32_COMBINE

#define DX_VERSION32_COMBINE (   M,
  m,
  s,
  d,
 
)    (((M)<<DX_VERSION_SHIFT_MAJOR)|((m)<<DX_VERSION_SHIFT_MINOR)|((s)<<DX_VERSION_SHIFT_SUB)|((d)<<DX_VERSION_SHIFT_DEPLOYMENT)|((b)))

◆ DX_VERSION32_DEPLOYMENT

#define DX_VERSION32_DEPLOYMENT (   v32)    (((v32)&DX_VERSION_MASK_DEPLOYMENT)>>DX_VERSION_SHIFT_DEPLOYMENT)

◆ DX_VERSION32_FORMAT

#define DX_VERSION32_FORMAT (   v32)    DX_VERSION32_MAJOR(v32),DX_VERSION32_MINOR(v32),DX_VERSION32_SUB(v32),DX_VERSION32_DEPLOYMENT(v32),DX_VERSION32_BUILD(v32)

◆ DX_VERSION32_FORMAT_SHORT

#define DX_VERSION32_FORMAT_SHORT (   v32)    DX_VERSION32_MAJOR(v32),DX_VERSION32_MINOR(v32),DX_VERSION32_SUB(v32)

◆ DX_VERSION32_MAJOR

#define DX_VERSION32_MAJOR (   v32)    (((v32)&DX_VERSION_MASK_MAJOR)>>DX_VERSION_SHIFT_MAJOR)

◆ DX_VERSION32_MINOR

#define DX_VERSION32_MINOR (   v32)    (((v32)&DX_VERSION_MASK_MINOR)>>DX_VERSION_SHIFT_MINOR)

◆ DX_VERSION32_SUB

#define DX_VERSION32_SUB (   v32)    (((v32)&DX_VERSION_MASK_SUB)>>DX_VERSION_SHIFT_SUB)

◆ 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   0x000003ff

◆ 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

◆ sizeof_array

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

(c) copyright 2009 dynamic acoustics e.U. generated on Fri Aug 14 2020

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.