Blame gl/hash-pjw-bare.h

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