summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/hashmaps/vikings.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-09-05 18:10:14 +0200
committerTyge Løvset <[email protected]>2023-09-05 18:10:14 +0200
commit493c34e9c2de0587f38681340db8f2735e72d7dd (patch)
tree158838cfe8a4a59d258a9a5817faf2a18808ff38 /misc/examples/hashmaps/vikings.c
parent3628e4389ef9455960c42466487385fc228566c3 (diff)
downloadSTC-modified-493c34e9c2de0587f38681340db8f2735e72d7dd.tar.gz
STC-modified-493c34e9c2de0587f38681340db8f2735e72d7dd.zip
Renamed (half)internal functions:
cfasthash() => stc_hash() cstrhash() => stc_strhash() cnextpow2() => stc_nextpow2()
Diffstat (limited to 'misc/examples/hashmaps/vikings.c')
-rw-r--r--misc/examples/hashmaps/vikings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/hashmaps/vikings.c b/misc/examples/hashmaps/vikings.c
index d6125854..cef17a04 100644
--- a/misc/examples/hashmaps/vikings.c
+++ b/misc/examples/hashmaps/vikings.c
@@ -37,7 +37,7 @@ static inline RViking Viking_toraw(const Viking* vp) {
#define i_rawclass RViking // lookup type
#define i_keyfrom Viking_from
#define i_opt c_no_clone
-#define i_hash(rp) cstrhash(rp->name) ^ cstrhash(rp->country)
+#define i_hash(rp) stc_strhash(rp->name) ^ stc_strhash(rp->country)
#define i_val int // mapped type
#include <stc/cmap.h>