git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Decoupling Architectural-specific Code (#35)
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
ds
/
hstr.h
diff --git
a/lunaix-os/includes/lunaix/ds/hstr.h
b/lunaix-os/includes/lunaix/ds/hstr.h
index 5dab1cbbeb559a9ebb8a6c484e1322ade1a4ded6..6d2b0ee8f234fec19a77bb9ced25648756ede661 100644
(file)
--- a/
lunaix-os/includes/lunaix/ds/hstr.h
+++ b/
lunaix-os/includes/lunaix/ds/hstr.h
@@
-1,14
+1,14
@@
#ifndef __LUNAIX_HSTR_H
#define __LUNAIX_HSTR_H
#ifndef __LUNAIX_HSTR_H
#define __LUNAIX_HSTR_H
-#include <
lib
/hash.h>
+#include <
klibc
/hash.h>
#define HSTR_FULL_HASH 32
struct hstr
{
#define HSTR_FULL_HASH 32
struct hstr
{
- u
int
32_t hash;
- u
int
32_t len;
+ u32_t hash;
+ u32_t len;
const char* value;
};
const char* value;
};
@@
-27,7
+27,7
@@
struct hstr
#define HSTR_EQ(str1, str2) ((str1)->hash == (str2)->hash)
inline void
#define HSTR_EQ(str1, str2) ((str1)->hash == (str2)->hash)
inline void
-hstr_rehash(struct hstr* hash_str, u
int
32_t truncate_to)
+hstr_rehash(struct hstr* hash_str, u32_t truncate_to)
{
hash_str->hash = strhash_32(hash_str->value, truncate_to);
}
{
hash_str->hash = strhash_32(hash_str->value, truncate_to);
}