コード例 #1
0
ファイル: pair.c プロジェクト: qgewfg/gtk-gnutella
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);
}
コード例 #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;
}