Exemplo n.º 1
0
static inline ALWAYS_INLINE long
exhash_big(DBM *db, const datum item, bool big)
{
	return big ? bigkey_hash(db, item.dptr, item.dsize) :
		sdbm_hash(item.dptr, item.dsize);
}
Exemplo n.º 2
0
/* adrpo: see the comment above about sdbm hash */
modelica_integer stringHashSdbm(metamodelica_string_const s)
{
    const char* str = MMC_STRINGDATA(s);
    long res = sdbm_hash((const unsigned char*)str);
    return res;
}