MOS Source Code
Loading...
Searching...
No Matches
libs.HashMap.Common

Common hash and comparison functions for hashmaps. More...

+ Collaboration diagram for libs.HashMap.Common:

Macros

#define hashmap_common_type_init(map, cap, type)
 

Functions

MOSAPI hash_t __pure hashmap_hash_string (uintn key)
 
MOSAPI int __pure hashmap_compare_string (uintn key1, uintn key2)
 
MOSAPI int __pure hashmap_simple_key_compare (uintn key1, uintn key2)
 
MOSAPI hash_t __pure hashmap_identity_hash (uintn key)
 

Detailed Description

Common hash and comparison functions for hashmaps.

Macro Definition Documentation

◆ hashmap_common_type_init

#define hashmap_common_type_init ( map,
cap,
type )

Function Documentation

◆ hashmap_hash_string()

MOSAPI hash_t __pure hashmap_hash_string ( uintn key)

Definition at line 20 of file hashmap_common.c.

Referenced by __mos_test_wrapped_test_hashmap_init_simple_macro(), and ipc_init().

+ Here is the call graph for this function:

◆ hashmap_compare_string()

MOSAPI int __pure hashmap_compare_string ( uintn key1,
uintn key2 )

Definition at line 25 of file hashmap_common.c.

Referenced by __mos_test_wrapped_test_hashmap_init_simple_macro(), and ipc_init().

+ Here is the call graph for this function:

◆ hashmap_simple_key_compare()

MOSAPI int __pure hashmap_simple_key_compare ( uintn key1,
uintn key2 )

Definition at line 30 of file hashmap_common.c.

Referenced by inode_init(), mountpoint_map_init(), and tasks_init().

◆ hashmap_identity_hash()

MOSAPI hash_t __pure hashmap_identity_hash ( uintn key)

Definition at line 35 of file hashmap_common.c.

Referenced by inode_init(), mountpoint_map_init(), and tasks_init().