Go to the documentation of this file.
28 #include <sys/types.h>
31 #elif defined(__MSVC__)
41 #define IsBroadcastId(id) \
42 (memcmp("\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff", &(id), sizeof(dsid_t)) == 0)
44 #define IsEqualId(id1, id2) \
45 (memcmp(&(id1), &(id2), sizeof(dsid_t)) == 0)
47 #define SetBroadcastId(id) \
48 memcpy(&(id), "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff", sizeof(dsid_t))
50 #define SetNullId(id) \
51 memcpy(&(id), "\0\0\0\0\0\0\0\0\0\0\0\0", sizeof(dsid_t))
53 #define IsNullId(id) \
54 (memcmp("\0\0\0\0\0\0\0\0\0\0\0\0", &(id), sizeof(dsid_t)) == 0)
56 #if defined(__linux__)
57 # define BSP_MS_PER_TICKS 10
58 #elif defined(__APPLE__)
59 # define BSP_MS_PER_TICKS 10
60 #elif defined(__CYGWIN__)
61 # define BSP_MS_PER_TICKS 10