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