MOS Source Code
Loading...
Searching...
No Matches
hashmap_common.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2
3#pragma once
4
5#include <mos/moslib_global.h>
6#include <mos/types.h>
7
14#define hashmap_common_type_init(map, cap, type) hashmap_init(map, cap, hashmap_hash_##type, hashmap_compare_##type)
15
18
20
MOSAPI int __pure hashmap_simple_key_compare(uintn key1, uintn key2)
MOSAPI hash_t __pure hashmap_hash_string(uintn key)
MOSAPI hash_t __pure hashmap_identity_hash(uintn key)
MOSAPI int __pure hashmap_compare_string(uintn key1, uintn key2)
#define MOSAPI
Definition mos_global.h:102
#define __pure
Definition mos_global.h:31
Definition types.h:97
unsigned long uintn
Definition types.h:30