1e1051a39Sopenharmony_ci/*
2e1051a39Sopenharmony_ci * Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved.
3e1051a39Sopenharmony_ci *
4e1051a39Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License").  You may not use
5e1051a39Sopenharmony_ci * this file except in compliance with the License.  You can obtain a copy
6e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at
7e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html
8e1051a39Sopenharmony_ci */
9e1051a39Sopenharmony_ci#include <openssl/crypto.h>
10e1051a39Sopenharmony_ci
11e1051a39Sopenharmony_ci#include "internal/tsan_assist.h"
12e1051a39Sopenharmony_ci
13e1051a39Sopenharmony_cistruct lhash_node_st {
14e1051a39Sopenharmony_ci    void *data;
15e1051a39Sopenharmony_ci    struct lhash_node_st *next;
16e1051a39Sopenharmony_ci    unsigned long hash;
17e1051a39Sopenharmony_ci};
18e1051a39Sopenharmony_ci
19e1051a39Sopenharmony_cistruct lhash_st {
20e1051a39Sopenharmony_ci    OPENSSL_LH_NODE **b;
21e1051a39Sopenharmony_ci    OPENSSL_LH_COMPFUNC comp;
22e1051a39Sopenharmony_ci    OPENSSL_LH_HASHFUNC hash;
23e1051a39Sopenharmony_ci    unsigned int num_nodes;
24e1051a39Sopenharmony_ci    unsigned int num_alloc_nodes;
25e1051a39Sopenharmony_ci    unsigned int p;
26e1051a39Sopenharmony_ci    unsigned int pmax;
27e1051a39Sopenharmony_ci    unsigned long up_load;      /* load times 256 */
28e1051a39Sopenharmony_ci    unsigned long down_load;    /* load times 256 */
29e1051a39Sopenharmony_ci    unsigned long num_items;
30e1051a39Sopenharmony_ci    int error;
31e1051a39Sopenharmony_ci};
32