|
libpulsar
A modular compiler for the pulsar programming language
|
Hashing and equality functions for common data types. More...
#include "def.h"Go to the source code of this file.
Typedefs | |
| typedef u64 | hash_t |
| Numeric type for hashes. | |
| typedef u64(* | hasher_t) (void *) |
| Function that hashes an object. | |
| typedef bool(* | is_equal_t) (void *, void *) |
| Function that compares whether two objects are equal. | |
Functions | |
| hash_t | ps_str_hash (STR str) |
| Hashes the given string according to the FNV-1a algorithm. | |
| bool | ps_str_is_equal (STR a, STR b) |
| Compares the given strings. | |
Hashing and equality functions for common data types.
Definition in file hash.h.
| typedef u64(* hasher_t) (void *) |
| typedef bool(* is_equal_t) (void *, void *) |