nxt_lvlhsh.h (598:70677ad404c1) nxt_lvlhsh.h (2084:7d479274f334)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_LEVEL_HASH_H_INCLUDED_
8#define _NXT_LEVEL_HASH_H_INCLUDED_

--- 100 unchanged lines hidden (view full) ---

109 */
110 uint32_t *bucket;
111 uint32_t current;
112 uint32_t entry;
113 uint32_t entries;
114} nxt_lvlhsh_each_t;
115
116
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_LEVEL_HASH_H_INCLUDED_
8#define _NXT_LEVEL_HASH_H_INCLUDED_

--- 100 unchanged lines hidden (view full) ---

109 */
110 uint32_t *bucket;
111 uint32_t current;
112 uint32_t entry;
113 uint32_t entries;
114} nxt_lvlhsh_each_t;
115
116
117#define \
118nxt_lvlhsh_is_empty(lh) \
117#define nxt_lvlhsh_is_empty(lh) \
119 ((lh)->slot == NULL)
120
121
118 ((lh)->slot == NULL)
119
120
122#define \
123nxt_lvlhsh_init(lh) \
121#define nxt_lvlhsh_init(lh) \
124 (lh)->slot = NULL
125
126/*
127 * nxt_lvlhsh_find() finds a hash element. If the element has been
128 * found then it is stored in the lhq->value and nxt_lvlhsh_find()
129 * returns NXT_OK. Otherwise NXT_DECLINED is returned.
130 *
131 * The required nxt_lvlhsh_query_t fields: key_hash, key, proto.

--- 71 unchanged lines hidden ---
122 (lh)->slot = NULL
123
124/*
125 * nxt_lvlhsh_find() finds a hash element. If the element has been
126 * found then it is stored in the lhq->value and nxt_lvlhsh_find()
127 * returns NXT_OK. Otherwise NXT_DECLINED is returned.
128 *
129 * The required nxt_lvlhsh_query_t fields: key_hash, key, proto.

--- 71 unchanged lines hidden ---