|
Packit Service |
4684c1 |
/* hash-pjw-bare.h -- declaration for a simple hash function
|
|
Packit Service |
4684c1 |
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This program is free software: you can redistribute it and/or modify it
|
|
Packit Service |
4684c1 |
under the terms of the GNU Lesser General Public License as published
|
|
Packit Service |
4684c1 |
by the Free Software Foundation; either version 2.1 of the License, or
|
|
Packit Service |
4684c1 |
(at your option) any later version.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This program is distributed in the hope that it will be useful,
|
|
Packit Service |
4684c1 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
4684c1 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
4684c1 |
Lesser General Public License for more details.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
You should have received a copy of the GNU Lesser General Public License
|
|
Packit Service |
4684c1 |
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
#include <stddef.h>
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
/* Compute a hash code for a buffer starting at X and of size N,
|
|
Packit Service |
4684c1 |
and return the hash code. Note that unlike hash_pjw(), it does not
|
|
Packit Service |
4684c1 |
return it modulo a table size.
|
|
Packit Service |
4684c1 |
The result is platform dependent: it depends on the size of the 'size_t'
|
|
Packit Service |
4684c1 |
type. */
|
|
Packit Service |
4684c1 |
extern size_t hash_pjw_bare (const void *x, size_t n) _GL_ATTRIBUTE_PURE;
|