ck_ht_hash_direct(3)

ck_ht_hash_direct3

Generate a hash value for a hash table

Usage

#include <ck_ht.h>

void

ck_ht_hash_direct(ck_ht_hash_t *h, ck_ht_t *ht, uintptr_t key);

Library

Concurrency Kit (libck, -lck)

Overview

The ck_ht_hash_direct() function will generate a hash value in the object pointed to by the h argument. The hash value is valid for use in the hash table pointed to by the ht argument for the key (of direct type) specified by the key argument.

Return values

ck_ht_hash_direct() has no return value.

Errors

Behavior is undefined if key is a 0 or UINTPTR_MAX value or if ht is uninitialized.

Releases

Unchanged in 5 releases since Debian 8 (Jessie).

  1. 8–13

From libck-dev 0.7.2-6 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.