BurgerLib
Defines | Functions | Variables
guguidmanager.cpp File Reference
#include "guguid.h"
#include "pfprefs.h"
#include "clstdlib.h"
#include "ststring.h"
Include dependency graph for guguidmanager.cpp:

Defines

#define RAND_MASK   0x3fff /* same as CLOCK_SEQ_LAST */
#define TIME_MID_MASK   0x0000ffff
#define TIME_HIGH_MASK   0x0fff0000
#define TIME_HIGH_SHIFT_COUNT   16
#define MAX_TIME_ADJUST   9 /* Max adjust before tick */
#define CLOCK_SEQ_LOW_MASK   0xff
#define CLOCK_SEQ_HIGH_MASK   0x3f00
#define CLOCK_SEQ_HIGH_SHIFT_COUNT   8
#define CLOCK_SEQ_FIRST   1
#define CLOCK_SEQ_LAST   0x3fff /* same as RAND_MASK */
#define CLOCK_SEQ_BUMP(seq)   ((seq) = ((seq) + 1) & CLOCK_SEQ_LAST) /* Power of 2 */
#define UUID_C_100NS_PER_USEC   10
#define UUID_VERSION_BITS   (1 << 12)
#define UUID_RESERVED_BITS   0x80
#define rand_m_init   971
#define rand_ia_init   11113
#define rand_ib_init   104322
#define rand_irand_init   4181

Functions

static BURGER_INLINE Word GUIDCharIsHex (Word Input)
static Word32 GUIDFromHex (const char **input, Word digits)
void BURGER_API GUIDToString (char *Output, const GUID *Input)
Word BURGER_API GUIDHash (const GUID *Input)
Word BURGER_API GUIDIsEqual (const GUID *Input1, const GUID *Input2)
int BURGER_API GUIDCompare (const GUID *Input1, const GUID *Input2)
Word BURGER_API GUIDFromString (GUID *Output, const char *Input)
Word BURGER_API GUIDGetAddress (EthernetAddress_t *Output)
static Word16 GUIDRandom (void)
static void GUIDRandomInit (void)
static void GUIDNewSeq (Word16 *clkseq)
static void GUIDInitSelf (void)
void BURGER_API GUIDInit (GUID *Output)

Variables

static EthernetAddress_t saved_addr
static Word got_address
static Word last_addr_result
static Word32 rand_m
static Word32 rand_ia
static Word32 rand_ib
static Word32 rand_irand
static Word GUIDInitDone
static LongWord64_t GLastTime
static Word GTimeAdjust
static Word16 GClockSeq
GUID GUIDBlank

Define Documentation

#define CLOCK_SEQ_BUMP (   seq)    ((seq) = ((seq) + 1) & CLOCK_SEQ_LAST) /* Power of 2 */
#define CLOCK_SEQ_FIRST   1
#define CLOCK_SEQ_HIGH_MASK   0x3f00
#define CLOCK_SEQ_LAST   0x3fff /* same as RAND_MASK */
#define CLOCK_SEQ_LOW_MASK   0xff
#define MAX_TIME_ADJUST   9 /* Max adjust before tick */
#define rand_ia_init   11113
#define rand_ib_init   104322
#define rand_irand_init   4181
#define rand_m_init   971
#define RAND_MASK   0x3fff /* same as CLOCK_SEQ_LAST */
#define TIME_HIGH_MASK   0x0fff0000
#define TIME_HIGH_SHIFT_COUNT   16
#define TIME_MID_MASK   0x0000ffff
#define UUID_C_100NS_PER_USEC   10
#define UUID_RESERVED_BITS   0x80
#define UUID_VERSION_BITS   (1 << 12)

Function Documentation

static BURGER_INLINE Word GUIDCharIsHex ( Word  Input) [static]
int BURGER_API GUIDCompare ( const GUID Input1,
const GUID Input2 
)
static Word32 GUIDFromHex ( const char **  input,
Word  digits 
) [static]
Word BURGER_API GUIDFromString ( GUID Output,
const char *  Input 
)
Word BURGER_API GUIDHash ( const GUID Input)
void BURGER_API GUIDInit ( GUID Output)
static void GUIDInitSelf ( void  ) [static]
Word BURGER_API GUIDIsEqual ( const GUID Input1,
const GUID Input2 
)
static void GUIDNewSeq ( Word16 clkseq) [static]
static Word16 GUIDRandom ( void  ) [static]
static void GUIDRandomInit ( void  ) [static]
void BURGER_API GUIDToString ( char *  Output,
const GUID Input 
)

Variable Documentation

Word16 GClockSeq [static]
Word got_address [static]
Word GTimeAdjust [static]
Word GUIDInitDone [static]
Word32 rand_ia [static]
Word32 rand_ib [static]
Word32 rand_irand [static]
Word32 rand_m [static]