8#if !defined(SDBWRITE_HOSTTOOL)
24#define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
26#define offsetof(TYPE, MEMBER) ((size_t)&(((TYPE *)0)->MEMBER))
30#define DEFAULT_TABLE_SIZE 0x100
51 SHIM_ERR(
"Failed to allocate 8 bytes.\r\n");
78 if (once &&
depth > 3)
116 if(!wcDest || !numElement)
126 if(
size > numElement)
142 entry = &(*entry)->Next;
163 entry->Tagid = tagid;
178 SHIM_ERR(
"Error creating hash table\n");
186 *tagid = (*entry)->Tagid;
GLint GLint GLsizei GLsizei GLsizei depth
#define memcpy(s1, s2, n)
static const unsigned char *static size_t const wchar_t * wcSrc
static unsigned __int64 next
DWORD SdbpStrlen(PCWSTR string)
#define SHIM_ERR(fmt,...)
void SdbpTableDestroy(struct SdbStringHashTable **pTable)
static struct SdbStringHashTable * HashCreate(void)
INT Sdbwcscpy(WCHAR *wcDest, size_t numElement, const WCHAR *wcSrc)
#define offsetof(TYPE, MEMBER)
BOOL SdbpAddStringToTable(struct SdbStringHashTable **table, const WCHAR *str, TAGID *tagid)
static DWORD StringHash(const WCHAR *str)
static BOOL HashAddString(struct SdbStringHashTable *table, struct SdbHashEntry **position, const WCHAR *str, TAGID tagid)
static struct SdbHashEntry ** TableFindPtr(struct SdbStringHashTable *table, const WCHAR *str)
int Sdbwcscmp(const WCHAR *s1, const WCHAR *s2)
#define DEFAULT_TABLE_SIZE
struct SdbHashEntry * Next
struct SdbHashEntry ** Entries
static const EHCI_PERIOD pTable[]