Blame gettext-runtime/intl/hash-string.h

Packit 5b56b6
/* Description of GNU message catalog format: string hashing function.
Packit 5b56b6
   Copyright (C) 1995-2015 Free Software Foundation, Inc.
Packit 5b56b6
Packit 5b56b6
   This program is free software: you can redistribute it and/or modify
Packit 5b56b6
   it under the terms of the GNU Lesser General Public License as published by
Packit 5b56b6
   the Free Software Foundation; either version 2.1 of the License, or
Packit 5b56b6
   (at your option) any later version.
Packit 5b56b6
Packit 5b56b6
   This program is distributed in the hope that it will be useful,
Packit 5b56b6
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 5b56b6
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 5b56b6
   GNU Lesser General Public License for more details.
Packit 5b56b6
Packit 5b56b6
   You should have received a copy of the GNU Lesser General Public License
Packit 5b56b6
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
Packit 5b56b6
Packit 5b56b6
/* @@ end of prolog @@ */
Packit 5b56b6
Packit 5b56b6
/* We assume to have `unsigned long int' value with at least 32 bits.  */
Packit 5b56b6
#define HASHWORDBITS 32
Packit 5b56b6
Packit 5b56b6
Packit 5b56b6
#ifndef _LIBC
Packit 5b56b6
# ifdef IN_LIBINTL
Packit 5b56b6
#  define __hash_string libintl_hash_string
Packit 5b56b6
# else
Packit 5b56b6
#  define __hash_string hash_string
Packit 5b56b6
# endif
Packit 5b56b6
#endif
Packit 5b56b6
Packit 5b56b6
/* Defines the so called `hashpjw' function by P.J. Weinberger
Packit 5b56b6
   [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools,
Packit 5b56b6
   1986, 1987 Bell Telephone Laboratories, Inc.]  */
Packit 5b56b6
extern unsigned long int __hash_string (const char *str_param);