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); }
/* 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; }